Skip to Content
0
Former Member
Mar 30, 2007 at 06:10 AM

error

18 Views

Hi all,

Could you help me where the error?

DATA: BEGIN OF wa,

vbeln TYPE vbak-vbeln,

vgbel type lips-vgbel,

posnr type vbap-posnr,

vgpos type vbrp-vgpos,

vbeln1 type vbrk-vbeln,

END OF wa.

DATA itab LIKE SORTED TABLE OF wa

WITH UNIQUE KEY vbeln.

select avbeln cvgbel bposnr dvgpos e~vbeln

into CORRESPONDING FIELDS OF TABLE itab

from ( ( ( ( vbak as a

inner join vbap as b on avbeln = bvbeln )

inner join lips as c on cvgbel = bvbeln and cvgpos = bposnr )

inner join vbrp as d on dvgbel = cvbeln and dvgpos = cposnr )

inner join VBRK as e on evbeln = dvbeln ) .

loop at itab into wa.

write:/ wa-vbeln, wa-posnr, wa-vgbel,wa-vgpos,wa-vbeln1.

endloop.

Thanks