Hi Experts,
Below is my code. Here i am using mmpur_message_forced to display all the three error messages at the same time, i should not able to save the PO.
I tried using mmpur_message also. In that case, i can able to show only one Error message (the first error message it is encountered) and shows in the ME22n error log. how to display all the 3 error messages.
* Checking for contract - payment term IF lwa_ekko-zterm IS NOT INITIAL AND lwa_ekko-zterm NE lwa_cekko-zterm. IF lwa_zspochk-ertyp = 'E'. mmpur_message_forced lc_e lc_msgid 061 lwa_cekko-zterm ' ' ' ' ' '. ELSEIF lwa_zspochk-ertyp = 'W'. mmpur_message_enaco lc_w lc_msgid 064 lwa_cekko-zterm ' ' ' ' ' '. ENDIF. lv_check1 = 'X'. ELSEIF lwa_ekko-zterm = space. ENDIF. * Checking for contract - incoterm1 IF lwa_ekko-inco1 IS NOT INITIAL AND lwa_ekko-inco1 NE lwa_cekko-inco1. IF lwa_zspochk-ertyp = 'E'. mmpur_message_forced lc_e lc_msgid 062 lwa_cekko-inco1 ' ' ' ' ' '. ELSEIF lwa_zspochk-ertyp = 'W'. mmpur_message_enaco lc_w lc_msgid 065 lwa_cekko-inco1 ' ' ' ' ' ' . ENDIF. lv_check1 = 'X'. ELSEIF lwa_ekko-inco1 = space. ENDIF. * Checking for contract - incoterm2 IF lwa_ekko-inco2 IS NOT INITIAL AND lwa_ekko-inco2 NE lwa_cekko-inco2. IF lwa_zspochk-ertyp = 'E'. mmpur_message_forced lc_e lc_msgid 063 lwa_cekko-inco2 ' ' ' ' ' '. ELSEIF lwa_zspochk-ertyp = 'W'. mmpur_message_enaco lc_w lc_msgid 066 lwa_cekko-inco2 ' ' ' ' ' ' . ENDIF. lv_check1 = 'X'. ELSEIF lwa_ekko-inco2 = space. ENDIF. IF lv_check1 = 'X'. lv_check1 = ''. EXIT. ENDIF.