SAP Tutorials Blog

 

>>data(lv_vbeln) = ‘0000000003’ .


SELECT VBAK~*, VBAP~*


FROM VBAK INNER JOIN VBAP


ON VBAK~VBELN = VBAP~VBELN


where VBAK~VBELN = @LV_VBELN


into table @data(IT_TAB).


 


LOOP AT IT_TAB INTO DATA(WA_TAB).


 


Write: / WA_TAB-VBAK-VBELN ,WA_TAB-VBAK-ERDAT,WA_TAB-VBAK-ERNAM ,                      WA_TAB-VBAP-POSNR ,WA_TAB-VBAP-MATNR ,WA_TAB-VBAP-MATKL.


 


ENDLOOP.


Serkan AKKAVAK

Computer Engineer BSc

SAP Department Deputy Manager

Contact : serkurumsal@yandex.com