cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in calling BAPI form remote system

bhargava_dns
Participant
0 Kudos

Hi all,

I have developed a Z BAPI. Inside the bapi we are calling a Z Txn which inturn calls a BDC.when this BAPI is executing form the local system everything works fine, but when this is getting called form the remote sytem, the BDC which contains 3 series of Txn need to executed after each txn there is data Database update operation, the transaction will get the input form the db update operation but the txn is not waiting for the update operation to complete and the txn is geeting executed, how to make the txn wait till the operation of DB is completed.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Bhargava,

If you are processing 3 transaction then I am afraid it will be a little difficult to achieve.

When you will call BAPI via RFC it will have only single session which will have one LUW only.

And unless you commit the changes will not be written in this case and you will not get the record.

I would suggest to split the 3 TXN as 3 different Update FM's and call them with SET UPDATE TASK LOCAL and commit work with wait.

This should solve the issue. But still it is not fool proof.

BR,

Yakub Shah