You are on page 1of 1

User Exit: - MGA00001 Material Master (Industry): Checks and Enhancements

Under this use Function exit "EXIT_SAPLMGMU_001"

In this case, you have to create a Z-Table (For e.g. zmmt_plantprofit) for maintaining combination of Plant and Profit center and then validate based on this table.

Following is the sample code for the same;

TABLES : zmmt_plantprofit. IF wmarc-prctr IS NOT INITIAL. SELECT SINGLE * FROM zmmt_plantprofit WHERE werks = wmarc-werks AND prctr = wmarc-prctr. IF sy-subrc <> 0. MESSAGE e004(zm01). "WITH 'Please Enter Correct Profit Center '. ENDIF. ENDIF.

You might also like