Value operator in ABAP (new syntax 7.4+) and # significance.

 

                            Refer- Introduction to value operator

Report

REPORT zab_rp_value.

TYPES: BEGIN OF ls_stu,
         st_id(10)   TYPE n,
         st_name(15) TYPE c,
       END OF ls_stu.

DATA: lt_stu TYPE TABLE OF ls_stu.
lt_stu = VALUE #( ( st_id = 1 st_name = 'ajay' )
                              ( st_id = 2 st_name = 'vinod' )
                              ( st_id = 3 st_name = 'venu' )
                              ( st_id = 4 st_name = 'anil' ) ).
cl_demo_output=>display( lt_stu ).

Output




******************************Thank You***************************

Comments

Popular posts from this blog

Custom entity/Action dialog in RAP using Unmanaged scenario

New syntax for append- VALUE (new syntax 7.4+) in ABAP

Read statement new syntax in ABAP. (7.4+).