We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

[sap-abap] PK01-PK02 save or update

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Posted by crepmaster (Mr)
on May 21 at 10:20 AM
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
View this online
  
Popular White Papers

In the Spotlight
Which response to your Toolbox.com Groups post was the most helpful? Use 'Best Answer' to mark highest quality content.
_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language