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

Explicit enhancement implementation not triggering without breakpoint.

Former Member
0 Likes
829

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.

5 REPLIES 5
Read only

Former Member
0 Likes
673

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.

Read only

Former Member
0 Likes
673

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.

Read only

0 Likes
673

As you said its not authorization issue.

so try commit work and wait.

Read only

0 Likes
673

Never ever program your own COMMIT in standard SAP. Lest you want to create inconsistencies.

Read only

0 Likes
673

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.