ALV with IDA(ALVonHANA)-14

alv-idaALV on screen Container

 

 

 

Displaying alv on screen with custom container.

1

Code:


DATAlr_salv TYPE REF TO if_salv_gui_table_ida,
                     lr_cust_cont TYPE REF TO cl_gui_custom_container.

END-OF-SELECTION.
CALL SCREEN 0001.

*&———————————————————————*
*&      Module  DISPLAY_ALV  OUTPUT
*&———————————————————————*
*       text
*———————————————————————-*
MODULE display_alv OUTPUT.
  CREATE OBJECT lr_cust_cont
    EXPORTING
      container_name ‘CUST’.

  cl_salv_gui_table_ida=>create(
  EXPORTING
    iv_table_name       =  ‘SFLIGHT’
    io_gui_container    lr_cust_cont
  RECEIVING
    ro_alv_gui_table_ida lr_salv ).

ENDMODULE.


 

23

Output:

4


 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s