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: 

Using BAPI For Inbound Delivery...

Former Member
0 Kudos
89

hi all,

we are having problem with our archiving of our inbound delivery. it won't archive documents with header or line items (vbup, vbuk) when not all status = 'C'. we are considering BAPI to update the status manually. can u help us?

regards,

sid

1 REPLY 1

christian_wohlfahrt
Active Contributor
0 Kudos
38

Hi Sid!

I doubt you can change the status with a BAPI - the fields can't be changed in a transaction, so they won't be changeable in a BAPI.

You might use direct database updates - but you might run into consistency problems with this: there might be follow on documents, where archiving still isn't deleting them.

Have a look, if some 'delivery complete' (in the purchase order field ELIKZ) can be set or if some dummy goods receipts will change the status of the documents to be archiveable. This will be a much better solution.

At least check all tables of the corresponding archiving object - you might need to adjust much more than just inbound deliveries to get a successful archiving.

Regards,

Christian