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

Dynproproblems - How to reset input fields after exception?

Former Member
0 Likes
971

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.

1 ACCEPTED SOLUTION
Read only

MarcinPciak
Active Contributor
0 Likes
843

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

6 REPLIES 6
Read only

MarcinPciak
Active Contributor
0 Likes
844

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

Read only

gerd_rother
Active Participant
0 Likes
843

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

Read only

0 Likes
843

What do you mean Gerd? I don't understand that. Please give me an example.

THX

Regrads

Phil

Read only

0 Likes
843

And Is there no easyer way to do this like call screen 0100 again or initial screen 0100?

Regrads Phil

Read only

gerd_rother
Active Participant
0 Likes
843

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

Read only

Sandra_Rossi
Active Contributor
0 Likes
843

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.