cancel
Showing results for 
Search instead for 
Did you mean: 

Posting new FI document from MB31

Former Member
0 Kudos
65

Hi,

l am using this BAPI: BAPI_ACC_GL_POSTING_POST to post new FI Excise Duty.

With TC MB31.

It's create document related to that TC.

But none of my document have been created, event passing thrue the BAPI.

Any help would be appreciated.

Robert

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

After the call to BAPI_ACC_GL_POSTING_POST, you have to explicitly do a commit. You can use BAPI_TRANSACTION_COMMIT.

Rob

Former Member
0 Kudos

Ok, but when calling commit, will it be apply for all the transaction in process?

Robert

former_member181962
Active Contributor
0 Kudos

Hi Robert,

What this FM does is an explicit commit only.

So, It will commit all the changes to the database that are still pending.

REgards,

Ravi

Former Member
0 Kudos

Generally, for each call to BAPI_ACC_GL_POSTING_POST, you examine the contents of the RETURN structure. Based on that, you either call BAPI_TRANSACTION_COMMIT or BAPI_TRANSACTION_ROLLBACK.

All of these BAPIS are pretty well documented, so you can check that as well.

Rob