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: 

Method in BADI not loaded

Former Member
0 Kudos

I am currently using BADI BADI_MATERIAL_OD to save data from my subscreen into a customized table. I am using method MATERIAL_POST_OTHER_DATA but every time I execute transaction MM02, it seems to ignore the method. Why is it so? I do not think any other method could be used to save the data. Kindly advise. Thank you

6 REPLIES 6

Former Member
0 Kudos

hi,,,,,

If according to you tthis is the right method,,,, just activate your method and BADI also.....

and put breakpoint in that method..... and check on which point that methods get triggered.....

for ex....


break big_mug. >>>>>>>>>.. your sap-login id

thanks

Saurabh

0 Kudos

Yes, I put a break point in that method and activated the method and the implementation. When I execute MM02 until the end of it, this method has never appear in debug mode. The last thing shown is the first screen of MM02 with the message 'No changes made'.

Former Member
0 Kudos

hi,,,,,

do oner more thing.......

go to se24,,,,,, open class name cl_exithandler..

there are lsit of methods. double click on method "GET_INSTANCE".

now apply break point on statement

"CALL METHOD cl_exithandler=>get_class_name_by_interface"

in this method the changing parameter

CHANGING

exit_name = exit_name.

will give you the appropriate badi for t-code mm02.

just run mm02 and when you reach that particular screen on which you want to make changes

just see what comes in exit_name that will be the appropriate badi for you then select the approprate method and do your coding.

note: if nothing comes in exit_name then there is no badi defined for MM02 by sap the probably you need to use functio-exit or user-exit.

thanks

saurabh

0 Kudos

Ok i will try that. By the way, I read other posting, many mentioned about the table T130F. What is that? What I need to do with this table?

Former Member
0 Kudos

Hi,,,

Nothing its just aa field Attributes table, if you want to make any change in the Material Master.....

for ex.......

I have add a specific field in MARA for the first screen (Basic Data 1), but this field is never updated when I change the value with MM02. Then In that case you have update that field in T130F also,

It's nothing to do with your requirement.....

Thanks

Saurabh

0 Kudos

After putting a break point at CL_EXITHANDLER, I get the following results:

Before my subscreen is loaded, BADI_MATERIAL_OD is loaded.

After my subscreen is loaded & after I have entered values to the input/output fields of my subscreen, a prompt of 'Last data screen reached' appeared, and I click Yes to save the data. At this point, the following BADI are loaded:

BADI_MATERIAL_CHECK

BADI_MAT_F_SPEC_SEL

BADI_GTIN_VARIANT

In this case, does that mean that I cannot use BADI_MATERIAL_OD to save the data? I can only try using the above 3 listed BADIs?

Edited by: big mug on Dec 2, 2008 6:53 AM