SAP Tutorials Blog

 

>>Select VBELN


from VBAK


into table @DATA(IT_VBELN)


Where SPART =’KT’.


 


IF IT_VBELN is NOT INITIAL.


SELECT *


FROM VBAP


into TABLE @DATA(IT_VBAP)


FOR ALL ENTRIES IN @IT_VBELN


WHERE VBELN = @IT_VBELN-VBELN.


ENDIF.


LOOP AT IT_VBAP INTO DATA(WA_VBAP).


WRITE: / WA_VBAP-VBELN,WA_VBAP-POSNR,WA_VBAP-MATNR,WA_VBAP-MATKL..


ENDLOOP.


Serkan AKKAVAK

Computer Engineer BSc

SAP Department Deputy Manager

Contact : serkurumsal@yandex.com