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

Issues with BAPI_ACC_DOCUMENT_POST when parking documents

mart_kink
Discoverer
0 Likes
1,849

Hello,

I'm using BAPI_ACC_DOCUMENT_POST to park accounting documents. Using BTE RWBAPI01 I'll change document status, so documents will be not posted but parked. Parked documents are created successfully, but there are some problems.

At first WBS Element field value is not transferred to parked document line. When disabling document status change and posting document directly, WBS element field value will be transferred to document line correctly. But not in case document is parked.

Another issue is changing and saving parked document imported through accounting interface with FV60/FV70. When saving parked document, changes are not saved and message is sended to inbox: "Update was terminated. Error when reading VBSEGK ".

Does anybody have used accounting interface to park documents and came across with abovementioned issues?

Thank You!

Mart

3 REPLIES 3
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,189

Hi,

First of all i think for parking the document this BAPI should not be used. Seconldy you can use PP_COMPLETE_DOCUMENT_ENJ to park the documents. This is infact used by Standard SAP in FV60.By using this i think your all problem will get solved.

Nabheet

Read only

mvoros
Active Contributor
0 Likes
1,189

Hi,

unfortunately, SAP does not have any BAPI for parking documents and I doubt that you can use that BTE as a workaround for this. You can try to use FM PRELIMINARY_POSTING_FB01 or search for FV60 BAPI on this forum.

Cheers

Read only

mart_kink
Discoverer
0 Likes
1,189

Thanky You guys! PRELIMINARY_POSTING_FB01 was the way to go!

wbr,

Mart