Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Sales Orders

Former Member
0 Likes
832

Hi,

Need to remove sales order items which are been PGI from a report . Just wondering what tables will give the info. whether a sales order item is been PGI or not .

Thanks,

Vind

Hi,

Need to remove sales order items which are been PGI from a report . Just wondering what tables will give the info. whether a sales order item is been PGI or not .

Thanks,

Vind

5 REPLIES 5
Read only

Former Member
0 Likes
772

Just try to link VBAP and LIKP or LIPS.

amit.

Read only

Former Member
0 Likes
772

you can find the status using the table VBUP

VBUP-WBSTA = 'C'. then it is completely Processed.

WBSTA is the Goods Movment status.

So using the status you can delete the items from VBAP/

Read only

0 Likes
772

Hi Vijay ,

The status is blank for table vbup so its not working that way though the orders itenms are PGI.

THANKS,

Read only

0 Likes
772

You have to check the PGI from Delivery .

SO you go to Delivery

First select all the sales orders ,

Now using the sales Orders Go to table LIPS

with the LIPS-VGBEL = VBAP-VBELN and

LIPS-VGPOS = VBAP-POSNR.

Now you will get all the Deliveries.

using the deliveries you go to the Table VBUP with WBSTA = 'C' now you will be success.

what ever Delivery you will find entry in the VBUP with WBSTA = 'C' you delete those sales orders.

Read only

vinod_vemuru2
Active Contributor
0 Likes
772

Hi,

Just go to VBFA table.

Give sales order and item in VBELV and POSNV fields, capital R in vbtyp_n field. If u have a record then PGI is done. If not the PGI is not done. In the field VBELN u will get GI doc number.

This table not only give u PGI. U can check in backwards also like by giving delivery u can find sales order.

Thanks,

Vinod.