04-13-2009 5:26 AM
Hi,
We have a scenario where PERNRs (Personal Numbers) are being transferred through IDOCs. The IDOCs are reaching the other system and is also showing Status 53 (Application Document Posted) but the Corresponding Table PA0000 is not getting updated at all. No PERNR inside the IDOCs are getting created in PA0000.
Everything seems to be working fine, I could not find any error at all but the Table. Can anyone please explain this anomaly?
Regards
Abhishek Sahi
04-13-2009 6:16 AM
Hi,
You debug the inbound function module, during debugging you check the sy-subrc value after the data is updated/inserted in the database. Use BAPI_TRANSACTION_COMMIT instead of commit work. It happens because of commit problems.
Thanks,
Asit Purbey.
04-14-2009 5:01 AM
Hi,
While updating the table, follow the below steps.
1) Lock the table
2) Update the table
3) Do Commit on the table
4) Change the status of the Idoc
5) Unlock the table.
Once you follow all the above steps, you will never see the problem that you have mentioned
Hope it is helpful
Thanks,
Babu Kilari
04-14-2009 6:24 AM