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 methods

Former Member
0 Likes
339

Hi,

I have a scenario where a Badi is used for a tcode. Within the badi there is a method in which it seems that one part of the code is not getting called inspite of the correctness of the logic and everything.

I have a BADI for a tcode. Say the tcode is AB00 and it has a buttons, say, New. Once clicking it the Badi gets fired and in the page displayed some of the fields get greyed so that no inputs could be given there. But only one field is affected and we need another field to be afftected. The code is ok but we cant acheive this functionality. So I placed a break point on the method meant for this. I clicked the button New on the tcode after activating the debugger. But I am not able to get the control on the method, but I am getting the output with one field greyed and not the other.

Could any one tell me how does it happen and what to do for checking when the control is going to the method ?

Please reply me as this is too urgent.

Regards,

Binay.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
303

Hi ,

It might be possible that some other code might be triggering this behavior and not the method or code written by you.

1.If the breakpoint goes to your method,then you can check why its not working?

2.If breakpoint doesn't go to your method,then put break point on click of button and then do F5 /F6 to check where exactly the fields are getting grayed(must be some other code ,then your code).Once you find this ,then you can understand how you can sync this code with your code to make all fields grayed or as you required.

Hope this helps.

Regards,

Abhishek

1 REPLY 1
Read only

Former Member
0 Likes
304

Hi ,

It might be possible that some other code might be triggering this behavior and not the method or code written by you.

1.If the breakpoint goes to your method,then you can check why its not working?

2.If breakpoint doesn't go to your method,then put break point on click of button and then do F5 /F6 to check where exactly the fields are getting grayed(must be some other code ,then your code).Once you find this ,then you can understand how you can sync this code with your code to make all fields grayed or as you required.

Hope this helps.

Regards,

Abhishek