11-13-2007 5:17 AM
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.
11-13-2007 6:12 AM
Hi
Try this
MGA00001
MGA00002
Also, check these BADIs
BADI_MATERIAL_CHECK
BADI_MATERIAL_OD
BADI_MATERIAL_REF
Regards,
11-13-2007 5:42 AM
Hi Sham,
Check for BADI : DOCUMENT_MAIN01 and Method AFTER_CHANGE_NUMBER_CHECK.
Reward if useful.
Thanx & Rgds.
11-13-2007 6:35 AM
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.
11-13-2007 6:12 AM
Hi
Try this
MGA00001
MGA00002
Also, check these BADIs
BADI_MATERIAL_CHECK
BADI_MATERIAL_OD
BADI_MATERIAL_REF
Regards,
11-13-2007 6:33 AM
11-13-2007 6:37 AM
11-13-2007 6:44 AM
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.
11-13-2007 7:00 AM
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,