Kenzuke

Table into alv_grid

Jan 26th, 2020
377
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DATA:
  2. *      Custom_container TYPE REF TO cl_gui_custom_container,
  3. *      alv_grid TYPE REF TO cl_gui_alv_grid,
  4.   sc TYPE table of scustom,
  5.   ok_code  TYPE sy-ucomm.
  6.  
  7. Set Screen 100.
  8.  
  9. *START-OF-SELECTION.
  10. * Ruft die Funktion auf - Mann kann es auch in User Commands schreiben
  11. PERFORM GET_DATA.
  12. PERFORM DISPLAY_DATA.
  13. *PERFORM clean_up.
  14. * --------------------------------------------------------------------
  15.  
  16.  
  17.  
  18. form get_data .
  19.   select * from scustom into table sc.
  20. endform.
  21.  
  22. form display_data .
  23.  
  24.   CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
  25.   EXPORTING
  26.   I_CALLBACK_PROGRAM = 'SY-REPID'
  27.   i_structure_name = 'SCUSTOM'
  28.   TABLES
  29.     T_OUTTAB = sc.
  30.  
  31.  
  32.  
  33. endform.
  34.  
  35. *form clean_up.
  36. *CALL METHOD custom_container->free.
  37. *Clear:
  38. *alv_grid.
  39. *endform.
  40.  
  41.  
  42.  
  43.  
  44. * User Commands
  45. INCLUDE zddevd966_pruefung_2018_3_ui01.
  46. * Menu
  47. INCLUDE zddevd966_pruefung_2018_3_so01.
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×