Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
Hello, is there any way to stop or avoid the update or save of control cycle? i'm doing some check on the values of custom fields inserted by the user, and if one of the values is not correct, i want to avoid the save or the update. so i'm the EXIT_SAPMMPKR_002 (include zxmpku05). How can i interrupt the flow of updating or saving? i tried with POPUP_TO_DISPLAY_TEXT like this. IF NOT pkhd-zwcm IS INITIAL. SELECT SINGLE * FROM zmm_wcm_class INTO wa_wcm_class WHERE werks = pkhd-werks AND zwcm = pkhd-zwcm. IF sy-subrc 0. DATA: p_mess(50). MESSAGE e015(zal) INTO p_mess WITH pkhd-werks. CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' EXPORTING textline1 = p_mess. * MESSAGE e015(zal) WITH pkhd-werks. * CLEAR pkhd-zwcm. ENDIF. ENDIF. i first cleared the pkhd-zwcm after the message but if the user click on continue the update will be made (PK02), if i don't clear the field, the flow will be stop but the message in an error message so the user won't be able to change the value. Any idea to how to stop the update untill a correct value is inserted? | __.____._ Copyright © 2011 Toolbox.com and message author. Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251 | | Popular White Papers In the Spotlight _.____.__ |