Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to make disply information messages with type error?

Former Member
0 Kudos

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.

6 REPLIES 6

Former Member
0 Kudos

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

0 Kudos

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>

Former Member
0 Kudos

hi,

make sure that your type E message is in PAI module, for message effect you can check DEMO_MESSAGES.

regards

gopi_narendra
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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