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

How to use BAPI_ACC_DOCUMENT_POST

0 Likes
1,729

Hello ALL.

I need to update the field AUFNR in database table BSEG, I'm using the BAPI BAPI_ACC_DOCUMENT_POST, the function module execute with out errors, but do not change the field AUFNR.

Could any one help me?

Thanks in advance

7 REPLIES 7
Read only

Former Member
0 Likes
1,176

Are you trying to create new documents or change existing ones?

Rob

Read only

0 Likes
1,176

Hello Rob.

I am trying to change existing ones.

Read only

0 Likes
1,176

Where in the documentation does it say that you can change docuements using this FM??

Rob

Read only

0 Likes
1,176

You must reverse the existing documents and repost them with the correct order number.

Rob

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,176

This bapi is used to post documents to FI...are you testing it in SE37? Use bapi_transaction_commit after the call..

Nabheet

Read only

Former Member
0 Likes
1,176

Firstly the BAPI you are tyring to use is for posting an accouting document and secondly SAP allows you to only change texts fields in accounting document and not the order number.... You need to take care of this before creating the accounting document

Read only

0 Likes
1,176

Hello Lalit, thanks for your answer.

We take care about the order number while creating new accounting documents, But the users are creating these documents automatically through transaction code FAGL_FC_VAL (Foreign Currency Valuation).

This transaction code creates a new accounting document based on another accounting document already created, what I need is, replicate the order number from original accounting document into the new one.

Best regards.