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

Difference between BAPI_ACC_DOCUMENT_POST and POST_DOCUMENT

Former Member
0 Likes
1,928

Hello,

Anybody knows the difference between this MF: BAPI_ACC_DOCUMENT_POST and POST_DOCUMENT ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,157

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

2 REPLIES 2
Read only

Former Member
0 Likes
1,157

BAPI_ACC_DOCUMENT_POST is documented and released for customer use. POST_DOCUMENT is not. That's enough for me.

Rob

Read only

Former Member
0 Likes
1,158

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