REF operator sample code to check value of integer at a given row

 REPORT zdemo_ref_operator.

PARAMETERS: p_var type i.

data : it_tab type STANDARD TABLE OF i with empty key.

 it_tab = value #( for i = 0 until i >= 10 ( i + 1 ) ) .
 cl_demo_output=>display_data(
   value   = it_tab
*   name    =                  " Name
*   exclude =                  " Exclude structure components
*   include =                  " Include structure components
 ).
 data(dref) = ref #(  it_tab[ p_var ] ).
 cl_demo_output=>display( dref->* ).

Selection Screen

Output







Comments

Popular posts from this blog

Eclipse ABAP Editor Shortcut keys

Important SAP developer transaction code