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

Change a parked non-po document line item by FM or a BAPI instead of FBV2

Former Member
0 Kudos
367

Hello,

We are trying to change/edit the line items of a parked document (NON-PO) document in the background. We dont want to update it through the standard Tcodes like FBV2 but we would prefer some FMs or BAPIs. We found this FM PP_CHANGE_DOCUMENT_ENJ but its always throwing an error after execution saying "Express document "Update was terminated" received from author" as an SAP-mail.

Has anyone used this before? Can this be made to update the document in real-time rather than as a background job?

Please reply.

Thanks,

Sam

2 REPLIES 2
Read only

hadiman_ngoei
Product and Topic Expert
Product and Topic Expert
0 Kudos
175

Yes, you can use that FM because as far as I know, there is no standard BAPI to do it. Check out in ST22 for the dump that you've got.

Thanks & regards,

Hadiman

Read only

Former Member
0 Kudos
175

Hi

you can post an invoice or park a document with the following:

Check the document by pasing data to the BAPI.

BAPI_ACC_INVOICE_RECEIPT_CHECK

use the function module to post or park the doucment using the below function module

PRELIMINARY_POSTING_FB01.

I have used this to park from the custom form with sucess.