‎2012 Jan 04 5:00 PM
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
‎2012 Jan 04 5:06 PM
Are you trying to create new documents or change existing ones?
Rob
‎2012 Jan 04 5:08 PM
‎2012 Jan 04 5:17 PM
Where in the documentation does it say that you can change docuements using this FM??
Rob
‎2012 Jan 04 7:32 PM
You must reverse the existing documents and repost them with the correct order number.
Rob
‎2012 Jan 04 5:07 PM
This bapi is used to post documents to FI...are you testing it in SE37? Use bapi_transaction_commit after the call..
Nabheet
‎2012 Jan 04 6:00 PM
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
‎2012 Jan 05 9:58 AM
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.