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

 

                            Refer- Introduction to value operator

Report

REPORT zab_rp_value.

TYPESBEGIN OF ls_stu,
         st_id(10)   TYPE n,
         st_name(15TYPE c,
       END OF ls_stu.

DATAlt_stu TYPE TABLE OF ls_stu.
lt_stu VALUE #st_id st_name 'ajay' )
                              st_id st_name 'vinod' )
                              st_id st_name 'venu' )
                              st_id st_name 'anil' ).
cl_demo_output=>displaylt_stu ).

Output




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

Comments

Popular posts from this blog

Pf status and user command in factory method - OOPS ALV in ABAP

fetch the data from table and send an email in ABAP

Enhancements in abap