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

Input fields not editable after error message displayed

Former Member
10,783

Hi ,

I am developing dynpro transaction . I one dialog screen user needs to input values in FROM and TO fields .

In case when wrong values are entered program displays popup with error message

this is the code

message e152(5c) with text-006 text-007.

After user hits the 'enter' message disappears but input field on the screen are not editable any more.

What user wants is editable input fields ,and the same values remaining in them like before error message was displayed.

It doesn't have to be error message it can be another type like I or W.

Please advice.

Krsto

1 ACCEPTED SOLUTION
Read only

former_member208517
Participant
3,535

1. put you module which giving the error message in the PAI not PBO.

2. Using Chain to combine the several fields you want to be fillable after error message.

7 REPLIES 7
Read only

MarcinPciak
Active Contributor
0 Likes
3,535

message w152(5c) with text-006 text-007 display like 'E'.

Now, after pressing Enter key you will be able to correct the entry in that field.

Regards

Marcin

Read only

I066686
Product and Topic Expert
Product and Topic Expert
3,535

HI Krsto,

You can use Field statement or Chain Endchain statements in PAI of the screen , which makes the field ready for input after displaying error message.

eg:

process after input.
field field-name module field_validation.

"Inside the module display the error message.
module field_validation input.
if cond1 .
 message e152(5c) with text-006 text-007. 
endif.
endmodule.

I hope it solves your problem.

Regards,

Kiruba

Read only

Former Member
0 Likes
3,535

Hi Krsto.

Put your field in chain and endchain statement

for eg:

chain.

field field-name module field_validation.

endchain.

Regards,

Md Ziauddin.

Read only

former_member208517
Participant
3,536

1. put you module which giving the error message in the PAI not PBO.

2. Using Chain to combine the several fields you want to be fillable after error message.

Read only

0 Likes
3,535

Hi,

Sounds interesting, but i need some clarification .

All this happens in PAI in 'user commad module '.

This is actuall code .

if gv_user_from is not initial and

gv_user_to is not initial.

*check if FROM exist

read table i_lrf_wkqu with key bname = gv_user_from.

if sy-subrc = 0.

message e105(5a) with gv_user_from.

else.

gv_tabix_from = sy-tabix.

endif.

Edited by: Krsto Gjergja on Jun 1, 2010 1:00 PM

Edited by: Krsto Gjergja on Jun 1, 2010 1:05 PM

Read only

I066686
Product and Topic Expert
Product and Topic Expert
0 Likes
3,535

Hi Krsto,

Any error message without chain endchain , makes input field only in display mode.

Chain and Endchain , specifically used to show error messages in Screen programming so that it will be available for input again

use the below code.

it will work.

process after input."this should be in Screen Flowlogic
Chain.
field field-name module field_validation.
Endchain.
 
"Inside the module display the error message.
module field_validation input.
if cond1 .
 message e152(5c) with text-006 text-007. 
endif.
endmodule.

Read only

Former Member
0 Likes
3,535

Hi,

For this u have to write what ever the fields u wnat to enable after entering the wrong input ....between the CHAIN....END CHAIN.

chain.

field a ,b module m1.

endchain.