Dear Experts,
Hope you r doing well.
I have an requirement like this " In VK11 or VK12 tcode if Region of Div.Plant and Region input value will be same then it wont allow to save."
I wrote the below code in custom BADI ZSD_COND_SAVE_A. but the KOMG is not recognise.
Please give me advice or send me sample code so i can comeout from this issue.
METHOD IF_EX_SD_COND_SAVE_A~CONDITION_SAVE_EXIT.
IF RV13A-KSCHL = 'JIVC' or RV13A-KSCHL = 'JIVP'.
IF KOMG-WKERG = KOMG-REGIO.
MESSAGE 'Region of div Plant & Region is Same' TYPE 'E'.
ENDIF.
*ENDIF.
ENDMETHOD
Advance Thanks to all.
Thanks & regards
Ranjit