Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP New Syntax for READ table into workarea ?

kiran_k8
Active Contributor
0 Kudos
417

Folks,

**--Delivery qty
<lfs_final>-lfimg = VALUE #( lt_lips[ vbeln = <lfs_data>-vbeln_p
posnr = <lfs_data>-posnr_p ]-lfimg OPTIONAL ).

1.Is this the new syntax alternative to read table into workarea ?

2.what does lfimg OPTIONAL mean ?

Thanks,

K.Kiran

1 REPLY 1

Sandra_Rossi
Active Contributor
347

Did you search?

ABAP New Syntax for READ table into workarea ? site:sap.com

Yes, it's named a Table Expression https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abentable_expressions...

Clean ABAP guide = prefer Table Expression over READ TABLE: styleguides/clean-abap/CleanABAP.md at main · SAP/styleguides (github.com)

OPTIONAL for VALUE/REF and Table Expressions: ABAP Doc - table_exp - default.