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 Problem for MM41/MM42/MM43

Former Member
0 Kudos

For test, I just migrated class BADI - BADI_MAT_F_SPEC_SEL with SE18 while the interface IF_BADI_MAT_F_SPEC_SEL and class CL_BADI_MAT_F_SPEC_SEL were created, then implement it. After finding it's not what i want, I delete the BADI as well as interface/class, but now I get problem when I go to MM42, SAP just give an error message and exit.

I debugged, found the problem happened at:

*1x Instance erzeugen

IF G_BADI_MAT_F_SPEC_SEL IS INITIAL.

class CL_EX_BADI_MAT_F_SPEC_SEL definition load.

CALL METHOD CL_EXITHANDLER=>GET_INSTANCE

EXPORTING

EXIT_NAME = 'BADI_MAT_F_SPEC_SEL'

IMPORTING

ACT_IMP_EXISTING = badi_imp_found

CHANGING

INSTANCE = G_BADI_MAT_F_SPEC_SEL

EXCEPTIONS

others = 1.

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

ENDIF.

and the error message is 356(message class OL: SAPLSHL2): Element MATERIALEVG is not available in the container!

Who know how to fix this problem?!

Thanks in advance

2 REPLIES 2

Former Member
0 Kudos

Fixed

0 Kudos

How did you fix it