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 for TCODE: MB02

Former Member
0 Likes
692

Hi,

In TCODE MB02, enter material document no and click on header, in the subsequent screen... document header text has to be changed and when SAVE button is clicked it should update a ZTABLE which already has this material doc no. Can u suggest a suitable BADI and an idea about change document concept.

Regards,

Prasad reddy.

2 REPLIES 2
Read only

Former Member
0 Likes
519

hi prasad,

try to find badi.

1) Goto se24 (Display class cl_exithandler)

2) Double click on the method GET_INSTANCE.

3) Put a break point at Line no.25 (CASE sy-subrc).

Now

4) Execute SAP standard transaction

5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.

6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.

7) This way you will find all the BADIs called on click of any button in any transaction.

Read only

Former Member
0 Likes
519

Hi,

try use the BADI MB_DOCUMENT_UPDATE..

Thanks,

Naren