Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BADI is not working

hi all,

i made an Implementation for BADI 'BADI_GTIN_VARIANT' for tcode MM01 for making default value '03' in view 'sales organization1' during material creation, but problem is that value is coming during debug but it is not showing on screen, so can anyone please help me?

i m writing code :

if sy-tcode = 'MM01'.

mara-mstav = '03'.

endif.

regards saurabh.

Edited by: saurabh srivastava on May 5, 2009 9:23 AM

Former Member
Former Member replied

HI,

Why dont u try witha different Bapi. Implement the Bapi BADI_MATERIAL_REF.

METHOD IF_EX_MATERIAL_REFERENCE~CREATE_MATERIAL.

IF SY-TCODE = 'MM01'.

E_MARAU-MSTAV = '03'.

ENDIF.

ENDMETHOD.

Also add the field E_MARAU-MSTDV value if its mandatory.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question