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 call failing

Former Member
0 Likes
879

Hi,

I am calling a bapi FM to update a field called timeslot in the notifications, that are being passed from an internal table to the called FM.

In the output i notice some discrepancies. Like if there are 5-6 notifications then the first notification time slot is not updated. I tried giving the commit work statement with a wait of 1 second , in that case some of the notification is not updated, mostly the second one. Interestingly each time only one of the notification fails to update from the whole list given.

Can anyone help??

Hi,

I am calling a bapi FM to update a field called timeslot in the notifications, that are being passed from an internal table to the called FM.

In the output i notice some discrepancies. Like if there are 5-6 notifications then the first notification time slot is not updated. I tried giving the commit work statement with a wait of 1 second , in that case some of the notification is not updated, mostly the second one. Interestingly each time only one of the notification fails to update from the whole list given.

Can anyone help??

3 REPLIES 3
Read only

Former Member
0 Likes
750

Hi Jaydeep,

Could you please check your BAPI's return code first. I guess in return structure you are getting message type 'E'. Probably this would be the reason else it should work fine.

Thanks,

Amit

Read only

0 Likes
750

Try giving DESTINATION 'NONE' while calling the BAPI

Read only

0 Likes
750

Hi,

it's not a commit problem.

You have to put a break point after the BAPI call and watch the internal table of the messages.

Remeber: with the bapi you have to use the FM BAPI_TRANSACTION_COMMIT (if all goes right) and NOT the commit-work instruction (commit+wait doesen't works with BAPI's)

Bye

Andrea