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

BAPI_ACC_DOCUMENT_POST

SumanaSoori
Participant
0 Likes
1,030

Hi All,

I have used the BAPI "BAPI_ACC_DOCUMENT_POST" for posting a FI document and I could get the document number also generated. But I am not able to see the same document through the T code FB03. Please let me know what could be possible reason for this.Any pointers in this regard will be highly appreciated.

Regards,

S.Sumana.

Are you running it via SE37?

7 REPLIES 7
Read only

Former Member
0 Likes
985

Have you used BAPI_TRANSACTION_COMMIT after the call of BAPI_ACC_DOCUMENT_POST?

Greetings,

Blag.

Read only

0 Likes
985

No. I did not do that. If that also requires to be done, pls let me know how to do it. Thanks in advance.

Read only

0 Likes
985

Simple...After call BAPI_ACC_DOCUMENT_POST, just call BAPI_TRANSACTION_COMMIT.


CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

Greetings,

Blag.

Read only

0 Likes
985

Hi,

After FM 'BAPI_ACC_DOCUMENT_POST' check if sy-subrc = 0.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

This commits your records to the database..that is it saves the document generated.

Regards,

Read only

0 Likes
985

How to do Commit. Should i go to SM37 and open the BAPI'BAPI_TRANSACTION_COMMIT' and the hit F8?

Read only

0 Likes
985

No...

All you have to do is to write CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' in ur code....

If you are not doing posting through code then how r u doing it ????

Read only

0 Likes
985

Are you running it via SE37?