Application Development 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: 

Adding filter criterias to BAPI_GOODSMVT_ITEMS

Former Member
0 Kudos

Hello everyone,

I am extracting purchase order row information from SAP using .NET Connector 3 and I noticed that the delivered quantity information is not available. Say that I've created a PO with one row and that row has a quantity of 100.

I've gotten a delivery of 25 and made a call to BAPI_GOODSMVT_CREATE. The problem now is that when I retrieve the PO row it does not say that 25 out of the 100 has been delivered.

I can call BAPI_GOODSMVT_GETITEMS and filter out the rows that belong to my PO and thus, sum and extract how many items that have been delivered. The problem is that it's not that efficient to filter out the rows returned after the BAPI call has been made.

Is there a way to wrap and/or modify the call to BAPI_GOODSMVT_GETITEMS so I can filter and only retrieve the rows that belong to my PO?

Edited by: Mikael Nensén on Apr 18, 2011 4:50 PM

1 REPLY 1

Former Member
0 Kudos

I'll answer my own question. I thought the BAPI_PO_GETDETAIL didn't return already delivered quantities but it does, if I inform the BAPI that I want PO History information by passing in 'X' for HISTORY.