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: 

SAP 7.40 ABAP code need help

Former Member
0 Kudos

Hi I am using SAP 7.40 ABAP code

Where I am joining 4 tables , in one of the table there is no data “t005u” the corresponding data must filled empty. But If one read is failed then lt_final is empty without any results that must not happen.

T005u is empty because customer region is not updated in customer master.

Below part of code fails

FOR lw_t005u IN lt_t005u WHERE ( land1 = lw_kna1-land1 AND bland = lw_kna1-regio )

related Code: can any one answer this how to fill lt_final as Old regular loop and read used to fill lt_final.

DATA:lt_final TYPE STANDARD TABLE OF ty_final INITIAL SIZE 0.

lt_final = VALUE #( FOR lw_vbak IN lt_vbak

FOR lw_vbap IN lt_vbap WHERE ( vbeln = lw_vbak-vbeln )

FOR lw_kna1 IN lt_kna1 WHERE ( kunnr = lw_vbak-kunnr )FOR lw_makt IN lt_makt WHERE ( matnr = lw_vbap-matnr )

FOR lw_t005u IN lt_t005u WHERE ( land1 = lw_kna1-land1 AND bland = lw_kna1-regio )

( vbeln = lw_vbak-vbeln
kunnr = lw_vbak-kunnr
matnr = lw_vbap-matnr
maktx = lw_makt-maktx
netwr = lw_vbap-netwr
erdat = lw_vbak-erdat
name1 = lw_kna1-name1
ort01 = lw_kna1-ort01
regio = lw_t005u-bland
bezei = lw_t005u-bezei) ).

0 REPLIES 0