Advertisement
rplantiko

Transfer concomitant fields from a value help

Jun 6th, 2013
511
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ABAP 0.89 KB | None | 0 0
  1. * This report demonstrates how more than one fields
  2. * can be transferred from a pick in the value help
  3. * See http://scn.sap.com/message/14103652 for details
  4.  
  5. * The important point is to make all the involved fields
  6. * part of one DDIC structure (here: ZZORGEH),
  7. * and to refer to this DDIC structure in the parameter
  8. * and/or select-options definitions.
  9. * In the DDIC structure, the F4 assignment is defined.
  10.  
  11. report  zz_test_orgeh.
  12.  
  13. selection-screen begin of line.
  14. selection-screen comment 1(30) for field p_org.
  15. parameters: p_org type zzorgeh-orgeh.
  16. parameters: p_orgtx type zzorgeh-orgtx.
  17. selection-screen end of line.
  18.  
  19. * This is only for closing the field P_ORGTX for input
  20. * (as it is only concomitant, and will be populated by F4 pick)
  21. at selection-screen output.
  22.   loop at screen.
  23.     if screen-name eq 'P_ORGTX'.
  24.       screen-input = 0.
  25.       modify screen.
  26.     endif.
  27.   endloop.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement