RESTRICT STORAGE LOCATION RESTRICTION WHEN GOODS POSTING
USED TCODES LIKE MIGO ,MB1A, MB1B, CO27.
USER EXIT NAME: MBCF0002
FUNCTION MODULE NAME:
EXIT_SAPMM07M_001
ZPROGRAM NAME: ZXMBCU02
LOGIC CODE
IF SY-UNAME = 'TEST01’.”USER NAME ENTER
*&IF
TCODES COMES
IF SY-TCODE EQ 'MB1B' OR SY-TCODE = 'CO27' OR SY-TCODE = 'MB1A' OR SY-TCODE = 'MIGO'.
*&
ONLY PARTICULAR STORAGE LOCATIONS ACCEPTED
IF I_MSEG-LGORT = 'STR1' OR I_MSEG-LGORT = 'STR2'.
ELSE.
MESSAGE 'STORAGE LOCATION IS NOT AUTHORIZATION FOR THIS USER' TYPE 'E'.
ENDIF.
ENDIF.
MESSAGE 'STORAGE LOCATION IS NOT AUTHORIZATION FOR THIS USER' TYPE 'E'.
ENDIF.
ENDIF.
ENDIF.
No comments:
Post a Comment