Skip to Content
Former Member
Jun 06, 2014 at 04:38 AM

How to get PGI data in sd



I have a requirement to msds data downloading program there i have modify that program to download PGI data.first sales order fetching from one ztable into internal table.i have requirement if those sales orders we will collect and put table VBFA based on this condition VBFA-VBELV = ZTABLE-VBELN ( sales order number ) and VBFA-VBTYP_N = 'J' Get all the VBFA-VBELN (Delivery Number) against a VBFA-VBELV.

Now pass the VBFA-VBELN (Delivery Numbers) in VBUK-VBELN based on this condition VBUK-WBSTK = 'C' and get the how much delivery numbers showing in VBUK table based on order numbers those orders only i have to download.So anyone can suggest me in internal table i am getting all orders from there i have to filter with VBFA-VBELN based on VBUK-VBELN field then i will get PGI data on my output screen.So anyone can suggest me some sample coding.