Application Development 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: 

BADI for MM02

asik_shameem
Active Contributor
0 Kudos

Hi,

In MM02, whenever we give invalid change number in the inital screen, i need to display a window(enhancement)before the error messge(change no does not exist) which should give list of change numbers for that material. For that, i need to find a BADI. I tried ECM_EXIT, But it works only for valid change numbers. And i need to find the <b>table which has material numbers and change numbers</b>. its very urgent. please help me out of this.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

Try this

MGA00001

MGA00002

Also, check these BADIs

BADI_MATERIAL_CHECK

BADI_MATERIAL_OD

BADI_MATERIAL_REF

Regards,

7 REPLIES 7

Former Member
0 Kudos

Hi Sham,

Check for BADI : DOCUMENT_MAIN01 and Method AFTER_CHANGE_NUMBER_CHECK.

Reward if useful.

Thanx & Rgds.

0 Kudos

Hi Krishna,

I tried that BADI. it didnt work. i put break points in every methods but neither of them worked.

please tell me, how did u manage to find the BADI?

Thanks in advance.

Sham.

Former Member
0 Kudos

Hi

Try this

MGA00001

MGA00002

Also, check these BADIs

BADI_MATERIAL_CHECK

BADI_MATERIAL_OD

BADI_MATERIAL_REF

Regards,

Former Member
0 Kudos

Check the following BADi

ECM_OTHERS_DECO

Former Member
0 Kudos

Also check this BADi ECM_DOC_DECO

0 Kudos

Hi Patil,

Thanx for ur answers. but both ECM_DOC_DECO, ECM_OTHERS_DECO are for SAP internal use only. we cant create our own implementation, neither we can change.

0 Kudos

Hi,

Following steps will help you to find out the BADis being called,

1. go to tcode SE24, and enter the class :- CL_EXITHANDLER, go to display mode. double click on the method GET_INSTANCE. And put a break point at line number 25 (CASE SY-SUBRC.)

2. In another session, go to tcode mm02, debuggere will get opened, press F8 to get the selection screen for mm02.

3. Now enter the material and change number, you will get the debugger, now check the contents of the variable, EXIT_NAME. Values of this field are the names of BADIs being called.

Check the BADis being called.

thanks,