Skip to Content
0
Former Member
Apr 15, 2010 at 12:03 PM

Read Table into WITH KEY

21852 Views

Hi GURUS,

Need your help, I wrote the below piece of code in my report program and I DINT GET ANY DATA IN "wa_it_ekpo"???

and there is no syntactical error when I execute the program pls help me get data into "wa_it_ekpo"..

LOOP AT it_lips into wa_it_lips.

MOVE-CORRESPONDING wa_it_lips TO wa_asnmain_ref.

SORT it_ekpo DESCENDING by ebeln ebelp .

READ TABLE it_ekpo INTO wa_it_ekpo WITH KEY ebeln = wa_it_lips-vgbel ebelp = wa_it_lips-vgpos .

MOVE-CORRESPONDING wa_it_ekpo TO wa_asnmain_ref.

*APPEND wa_it_ekpo to it_ekpo.

*MOVE-CORRESPONDING

*CONCATENATE wa_it_lips wa_it_ekpo INTO WA_ASNMAIN_ref.

*CLEAR wa_it_lips.

ENDLOOP.

Thanks,

Dep