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

Badi working only in Debug mode

Former Member
0 Likes
1,141

Hi experts,

It's my first time with Badi, and I'm facing a issue I can't understand.

I've activated badi ME_PROCESS_PO_CUST , and everything work's fine .

From the method "Close" I call a Z... function which writes data on a custom table.

I've tested it and the system correctly update the table , but when I deactivate the debug in the badi's method , it looks like the badi is not implemented and the system doesn't pass trough the function.

Can somebody adress me to solve it ?

Thank you in advance for any help.

Ciao.

Hi experts,

It's my first time with Badi, and I'm facing a issue I can't understand.

I've activated badi ME_PROCESS_PO_CUST , and everything work's fine .

From the method "Close" I call a Z... function which writes data on a custom table.

I've tested it and the system correctly update the table , but when I deactivate the debug in the badi's method , it looks like the badi is not implemented and the system doesn't pass trough the function.

Can somebody adress me to solve it ?

Thank you in advance for any help.

Ciao.

3 REPLIES 3
Read only

Former Member
0 Likes
693

Whenever you are updating database tables make sure you write 'COMMIT WORK' statement after update(DELETE/UPDATE/INSERT/MODIFY) statement.When in debug mode system gets enough time to commit values to the database table otherwise in some instances it will not update the database table.

Read only

Former Member
0 Likes
693

Thank you for your help Sudhir , but the table update it's done by the custom function which should be called by the BAdI. My issue is that the BAdI's method works only if I set a break-point on it. If I do not put a break-point on the BAdI , the function is not called at all !!.

Thanks again for your suggestion.

Read only

Former Member
0 Likes
693

Hi , I've solved my issue.

Before calling the ZFunction, the system reads a std table wich was not updated yet. Simply adding a "WAIT" instruction the broblem is solved.

Thank's for the help..