Application Development and Automation 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: 
Read only

screen enhancements

Former Member
0 Likes
604

Hi all,

I am new to screen enhancements. I am adding custom screen to ME23n where I am adding custom field. During the change of transaction me22n or me21n if i enter wrong value into the custom field I am issuing error message. At this point all other fields belonging to main screen are getting disabled for input.

Please help me how to keep them enabled along with my field. Please help me

Regards,

vijy.

Hi all,

I am new to screen enhancements. I am adding custom screen to ME23n where I am adding custom field. During the change of transaction me22n or me21n if i enter wrong value into the custom field I am issuing error message. At this point all other fields belonging to main screen are getting disabled for input.

Please help me how to keep them enabled along with my field. Please help me

Regards,

vijy.

3 REPLIES 3
Read only

Former Member
0 Likes
538

Hi

You need to insert a message in PAI of the screen-exit where you've insert your custom field.

In PAI use FIELD statament:

PROCESS PAI

FIELD <CUSTO FIELD> MODULE <MODULE>.

Max

Read only

nishanthbhandar
Contributor
0 Likes
538

The error message is going to grey out the remaining fields.If you dont want this to happen then just display the message in the form

Message sxxx display like 'E'

instead of

Message Exxx.

Putting the message in a FIELD statement will keep only your field ready for input but still grey out the remaining fields.So use the above option.

Read only

Former Member
0 Likes
538

HI Vijy,

You can do this byusing of Chain and Endchain..

If you send a warning or error message from a module <mod> that you called using a FIELD statement as follows:

CHAIN.
  FIELD: <f1>, <f 2>,... 
  MODULE <mod1>. 
  FIELD: <g1>, <g 2>,... 
  MODULE <mod2>. 
...
ENDCHAIN.

all of the fields on the screen that belong to the processing chain (all of the fields listed in the field statements) are made ready for input again. Other fields are not ready for input. Whenever the MODULE statement appears within a processing chain, even if there is only one FIELD attached to it, all of the fields in the chain (not only the affected field) are made ready for input again, allowing the user to enter new values. If the fields in the processing chain are only checked once, the PAI processing continues directly after the FIELD statement, and the preceding modules are not called again.

Please refer this below link for more info

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa4735c111d1829f0000e829fbfe/content.htm

Please close if this answers your question

Thanks

Sudheer