‎2010 May 31 3:00 PM
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
‎2010 Jun 01 9:31 AM
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.
‎2010 May 31 3:11 PM
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
‎2010 Jun 01 5:50 AM
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
‎2010 Jun 01 9:25 AM
Hi Krsto.
Put your field in chain and endchain statement
for eg:
chain.
field field-name module field_validation.
endchain.
Regards,
Md Ziauddin.
‎2010 Jun 01 9:31 AM
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.
‎2010 Jun 01 11:59 AM
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
‎2010 Jun 01 12:18 PM
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.
‎2010 Jun 09 10:20 AM
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.