‎2010 Nov 29 3:04 PM
Hello,
Anybody knows the difference between this MF: BAPI_ACC_DOCUMENT_POST and POST_DOCUMENT ?
‎2010 Nov 29 3:15 PM
Hi
The first is a BAPI so it's a method (RFC enable) to post an accounting document, POST_DOCUMENT is the fm to update the database only, so probably it can be called by BAPI_ACC_DOCUMENT_POST
That means all data are formatted in according to the accounting tables (BKPF, BSEG .......and then the fm POST_DOCUMENT is called in order to save them in database.
All updating database processes are usually included in fm, UPDATE MODULE enable, in order to run the saving in update task process, triggered as soon as a commit is called
So DON'T USE the fm POST_DOCUMENT to create an accounting document, because you should know all FI processes very very very well in order to fill correctly all accounting table, else you risk to create inconsistences in the accounting data.
Max
Edited by: max bianchi on Nov 29, 2010 4:17 PM
‎2010 Nov 29 3:13 PM
BAPI_ACC_DOCUMENT_POST is documented and released for customer use. POST_DOCUMENT is not. That's enough for me.
Rob
‎2010 Nov 29 3:15 PM
Hi
The first is a BAPI so it's a method (RFC enable) to post an accounting document, POST_DOCUMENT is the fm to update the database only, so probably it can be called by BAPI_ACC_DOCUMENT_POST
That means all data are formatted in according to the accounting tables (BKPF, BSEG .......and then the fm POST_DOCUMENT is called in order to save them in database.
All updating database processes are usually included in fm, UPDATE MODULE enable, in order to run the saving in update task process, triggered as soon as a commit is called
So DON'T USE the fm POST_DOCUMENT to create an accounting document, because you should know all FI processes very very very well in order to fill correctly all accounting table, else you risk to create inconsistences in the accounting data.
Max
Edited by: max bianchi on Nov 29, 2010 4:17 PM