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

Purchase Order

Former Member
0 Likes
636

Hi

I wonder how should i achieve the below items for a custom open Purchase Order report

1) Still to be delivered and

2) still to be invoiced qty.

Please advise the logic with the tables and fields involved.

Rgds

MM

Moderator Message: Please use a more meaningful subject in future.

Edited by: Suhas Saha on Feb 8, 2012 11:08 AM

Hi

I wonder how should i achieve the below items for a custom open Purchase Order report

1) Still to be delivered and

2) still to be invoiced qty.

Please advise the logic with the tables and fields involved.

Rgds

MM

Moderator Message: Please use a more meaningful subject in future.

Edited by: Suhas Saha on Feb 8, 2012 11:08 AM

3 REPLIES 3
Read only

Former Member
0 Likes
592

Hi,

Depending on your requirement you can use the following tables:-

vbak,vbap,mara,kna1,vbup,vbep,eban,mard,marc,vbpa,vbfa,tvkot.

main tables are

VBAP, VBEP, VBAK, EBAN

Edited by: Nishantbhargava on Feb 8, 2012 9:40 AM

Read only

Former Member
0 Likes
592

This message was moderated.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
592

1) You can use the view MDUB to get the details for still to be delivered. So still to be delivered = MENGE - WEMNG.

Now for Still to be invoiced the formula is , Still to be invoiced = GR Quantity - Total invoiced quantity

The invoiced Quantity will be available in RSEG and GR quantity will be available in EKBE

2) The details are available through transaction ME2L, Just gothorugh the logic written in it.

3) You can also use the class CL_PO_ITEM_HANDLE_MM and method GET_HISTORY which will give you all the details.

Refer wiki [Purchase Order Data Extraction using ABAP Classes|http://wiki.sdn.sap.com/wiki/display/ABAP/PurchaseOrderDataExtractionusingABAPClasses]