Skip to Content
0
Former Member
Apr 15, 2020 at 08:31 PM

ABAP 7.40 Syntax

234 Views

Hi experts,

As in below there are two similar statements behaving differently.

Requesting to point out the mistake i’m making.

DATA: ls_ret TYPE bapiret2,

ls TYPE atpmsg,

lt TYPE tbl_atpmsg,

lt1 TYPE tbl_atpmsg.

ls_ret-message = 'test'.

APPEND INITIAL LINE TO lt1.

"*Statement1 - ****NOT WORKING****

lt = VALUE #( FOR ls1 IN lt1 ( VALUE #( BASE CORRESPONDING #( BASE ( CORRESPONDING #( ls_ret ) ) ls1 ) type = 'E' ) ) ).

"*Statement2 - ****WORKING**** ls = VALUE #( BASE CORRESPONDING #( BASE ( CORRESPONDING #( ls_ret ) ) ls ) type = lv_sflag ).