‎2011 Feb 02 8:29 AM
Hi,
I am having one non-sense difficulty, I have implemented one Explicit enhancement fv50xf0b_beleg_sichern_06 spots es_fv50xf0b_beleg_sichern include bound in include FV50XF0B_BELEG_SICHERN to update my custom database table after new delivery is created or changed.
But the problem is whenever I try to create the delivery, my custom table is not updating but if I put the breakpoint anywhere in include FV50XF0B_BELEG_SICHERN, the table is getting updated.
The implementation is active as well as there is no user specific check as well as no authorization issue.
Kindly suggest me, how to get out of this trouble, its really causing headache.
Thanks in advance.
‎2011 Feb 02 8:44 AM
Hi Mandar,
Check whether database commit is there after your update statement.
if not the put commit work
when you put breakpoint explict coomit work is eecuted by sys and database is updated.
hope this will help.
Thanks
Dhiraj.
‎2011 Feb 02 9:08 AM
Hi Dhiraj,
Thanks for your reply, but I have observed from 3 4 Different user ids, if we wont put the break-point, then database table will not get updated and if we put it and run one transaction and remove it after that then custom database table will get updated after that every time even if break-point is not present. However I have added Commit Work, but as I said, from my user id, it is not giving any problem now, if I try using a new user id, until and unless I execute the transaction in debug mode, the table will not get updated.
‎2011 Feb 02 9:53 AM
As you said its not authorization issue.
so try commit work and wait.
‎2011 Feb 02 9:57 AM
Never ever program your own COMMIT in standard SAP. Lest you want to create inconsistencies.
‎2011 Feb 02 10:46 AM
try using enqueue and dequeue objects while updating the Z table. Maybe that there is some locking issue that is causing the problem.
Just for the sake of confirmation, you can try putting an information message in the enhancement, and then run the program without breakpoint. This can confirm you that the code is being executed, but the database update has failed. Then, add this queue objects and hopefully this would solve your problem.
Regards,
Jacky.