‎2009 Jun 03 8:32 AM
Hi,
I have a:
MESSAGE e809(00) WITH zwqh-wqid wich is placed in after input module on a screen.
When it occurs, all input field on a screen has value "______________________" (underline) than, when I press enter... program is terminated 😕 Is that normal behaviour ? thx for help
‎2009 Jun 03 8:36 AM
‎2009 Jun 03 8:44 AM
Hi,
Just write this way..
example:
parameters: p_num type i default 10.
data: v_text(20) type c value 'Variant'.
at selection-screen.
if p_num gt 5.
message e809(00) with v_text.
endif.
Regards,
Kumar Bandanadham
‎2009 Jun 03 9:27 AM
Hi,
Instead of using MESSAGE e809(00) WITH zwqh-wqid.
Better move with MESSAGE S809(00) WITH zwqh-wqid DISPLAY LIKE 'E'.
Note: Make sure the control should not move further unless the criteria generating the error was
met properly.
Hope this will help you.
Regards,
Smart Varghese
‎2009 Jun 03 9:28 AM
‎2009 Jun 03 1:29 PM
FLOW LOGIC:
PROCESS BEFORE OUTPUT.
MODULE STATUS_3001.
CALL SUBSCREEN SUBSCR_MATNR
INCLUDING sy-repid '3002'.
CALL SUBSCREEN SUBSCR_PARAM
INCLUDING sy-repid '3003'.
LOOP AT t_descr CURSOR obj_descr-current_line WITH CONTROL obj_descr.
ENDLOOP.
PROCESS AFTER INPUT.
CALL SUBSCREEN SUBSCR_MATNR.
CALL SUBSCREEN SUBSCR_PARAM.
LOOP AT t_descr.
MODULE update_descr.
ENDLOOP.
MODULE USER_COMMAND_3001.
in a module USER_COMMAND_3001 there is:
MESSAGE s809(00) WITH zwqh-wqid.
it works strange for me... after error message popup all input fileds under it looks wired, all content of subscreens disapear, after press enter everythig is closing 😕
Call stack looks like this:
Z_WEB_QUERIES === FORM ==========CHANGE_QUERY ( <- error message placed)
Z_WEB_QUERIES === MODULE (PBO) === STATUS_3001
Z_WEB_QUERIES === MODULE (PAI) === USER_COMMAND_3000
Z_WEB_QUERIES === EVENT ========= START-OF-SELECTION