‎2010 May 10 2:14 PM
Hi @ all,
I have the Problem that after an exception & his error message all input fields (in my dynpro) are gray marked & can not be field again. Is there any function for reset the input fields, because i don't want to restart the transaction by the transactioncode.
Thaks a lot.
Regrads
Phil.
‎2010 May 10 2:34 PM
This is done by [FIELD and CHAIN statements|http://help.sap.com/saphelp_46c/helpdata/en/9f/dbaa4735c111d1829f0000e829fbfe/frameset.htm] in module pool program.
Regards
Marcin
‎2010 May 10 2:34 PM
This is done by [FIELD and CHAIN statements|http://help.sap.com/saphelp_46c/helpdata/en/9f/dbaa4735c111d1829f0000e829fbfe/frameset.htm] in module pool program.
Regards
Marcin
‎2010 May 10 2:46 PM
Hi Philipp,
You can use I-messages instead of E-messages (and of course refuse to do the action the user requested).
Regards,
Gerd Rother
‎2010 May 10 4:54 PM
What do you mean Gerd? I don't understand that. Please give me an example.
THX
Regrads
Phil
‎2010 May 10 5:15 PM
And Is there no easyer way to do this like call screen 0100 again or initial screen 0100?
Regrads Phil
‎2010 May 10 5:29 PM
Hi,
An E-Message in PAI will gray out all screen fields which are not in the FIELD or CHAIN module of the current PAI module (Marcin already mentioned that). Please refer to the documentation of those flow logic commands.
To prevent fields from being greyed out simple use:
message Ixxx with ....
leave screen.Leave screen will leave PAI and start PBO of the next screen (which is probably the same screen again, check your screen attributes, if not use LEAVE TO SCREEN SY-DYNNR).
Regards, Gerd Rother
‎2010 May 10 8:57 PM
Philipp, as Marcin explained, you should use:
CHAIN.
FIELD : <list of fields>.
MODULE paimodule.
ENDCHAIN.
it means that any error message sent by paimodule will make the <list of fields> input-capable (and all the other ones will be protected). This is the basis of dynpro programming.