08-01-2007 10:09 AM
Hi Friends
I have disigned one custom screen. In that, for a validation i have given error message type E. while exicuting the transaction i am getting the error message in status bar but screen is becoming gray mode. I am not able to rectify my error on screen. How can i enable my screen fields by getting error message in status bar.
Please let me know.
08-01-2007 11:02 AM
for this u have to use FIELD in flow logic
Eg
FIELD matnr MODULE chkmatnr.
module chkmatnr.
if matnr is not in mara..give error...
endmodule.
You can refer program DEMO_DYNPRO_FIELD for better understanding
reward if useful
Message was edited by:
Arjun Puthuruthy
08-02-2007 2:07 AM
You need to have the fields you want left open for input in your "CHAIN" in the flow logic, e.g. (from SAP help):
PROCESS BEFORE OUTPUT.
MODULE init_screen_100.
PROCESS AFTER INPUT.
MODULE cancel AT EXIT-COMMAND.
FIELD input1 MODULE module_1.
FIELD input2 MODULE module_2.
FIELD input3 MODULE module_3.
CHAIN.
FIELD input4.
MODULE chain_module_1.
FIELD input5.
FIELD input6 MODULE chain_module_2.
ENDCHAIN.
MODULE EXECUTION.
See:
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa4735c111d1829f0000e829fbfe/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa4735c111d1829f0000e829fbfe/content.htm</a>
08-02-2007 2:05 AM
hi,
make sure that your type E message is in PAI module, for message effect you can check DEMO_MESSAGES.
regards
08-02-2007 3:33 AM
You have to use Chain Endchain to rectify this greying off when a Error msg is triggered.
just include the fields in between chain endchain and also the module in which the error msg is raised
chain.
field: <field1>,
<field2>. " You can include all the fields which you dont want to
" grey off when error being raised.
module VALIDATE_DATA. " module in which error is raised
endchain.
Regards
Gopi
08-20-2007 1:33 PM
Hi,
You can try it this way.
U code a message like this.
<b>message text-xxx type 'S' display like 'E'.
return.</b>
This willnt make the screen grey but the message works like an error one.
Reward if useful
Thanks ,
Neeraja.C
08-20-2007 1:36 PM
Hi,
U can also try this way.
<b>message s000(zabc) display like 'E' with text-xxx.
return.</b>Reward if useful,
Thanks,
Neeraja.C