2009 Jan 07 2:27 AM
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??
2009 Jan 14 3:38 AM
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
2009 Jan 14 8:22 AM
2009 Jan 14 9:26 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |