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 Update problem( BAPI_ACC_BILLING_POST)

Former Member
0 Likes
754

Hi,

I am creating AR documents using BAPI_ACC_BILLING_POST.It is returning successful creation message. But the coresponding document doesnot exist in the database. Please help me in this issue.Urgent

Thanks,

Bhanu Gattu.

5 REPLIES 5
Read only

Former Member
0 Likes
719

You have to execute FM BAPI_TRANSACTION_COMMIT after your BAPI is successful.

Rob

Read only

Former Member
0 Likes
719

You can also use <b>ENQUE_SLEEP</b> FM....Which makes you app sleep for some seconds, giving time for tables to get updated -;)

Greetings,

Blag.

Read only

Former Member
0 Likes
719

hi Bhanu,

You have to call BAPI_TRANSACTION_COMMIT after the calling, BAPI_ACC_BILLING_POST.

Hope this helps,

Sajan Joseph.

Read only

dev_parbutteea
Active Contributor
0 Likes
719

Hi,

use the following after your bapi call;

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'

Regards,

Sooness

Read only

Former Member
0 Likes
719

Hi,

1. Not sure but I think I encountered similar problem with GL A/C BAPI and that was due to the fact the lines were not balanced.

The problem was solved by filling the field CURRENCYAMOUNT-AMT_BASE for all line items.

2. Try setting the WAIT to space or simply replace bapi_commit_work fm by commit work .

Thanks,

Anitha