2009 Aug 18 1:01 PM
Hi,
i have created 2 input fields in a popup which is a small dynpro. In my program will be checked, if the two fields are not initial. When they have no values, then will get a error message. This message will be displayed with a popup. When i close this popup, the two fields will be outputfields. That means man can not input. How to do it in order to keep two fields output fields?
thanks
2009 Aug 18 1:46 PM
Hi,
If you want your fields to be open for input even after the error message is displayed, then you gotto use
CHAIN.
FIELD <field-name>.
FIELD <field-name>.
MODULE module_name.
ENDCHAIN.
Or you can display it as a warning message.
If you want your fields to be closed for input once you display your message in a pop up, then you can write this in the PBO (in case of module pool ) or in at selection-screen output (in executable program)
loop at screen.
if screen-name eq 'NAME'.
screen-input = '1'.
modify screen.
endif.
endloop.
Hi,
i have created 2 input fields in a popup which is a small dynpro. In my program will be checked, if the two fields are not initial. When they have no values, then will get a error message. This message will be displayed with a popup. When i close this popup, the two fields will be outputfields. That means man can not input. How to do it in order to keep two fields output fields?
thanks
2009 Aug 18 1:03 PM
Hi,
You need to keep the fields inside CHAIN...ENDCHAIN to keep the fields as editable after error message.
Hope it helps you.
Thanks,
Sri.
2009 Aug 18 1:35 PM
hi gang qin ,
there are following methods choose the best one u like
1. Use "SET CURSOR FIELD field" for your requirement and display the message in warning.
Hope it shall be useful.
2. by using of CHAIN/ENDCHAIN statement in pbi.
3. Use
In FLowlogic
FIELD FIELD1 MODULE VALIDATE.
Inside the module you give the error message. then the cursor will wait in the field field1 until a correct value is entered.
-Thanks
Saurabh Goel
2009 Aug 18 1:46 PM
Hi,
If you want your fields to be open for input even after the error message is displayed, then you gotto use
CHAIN.
FIELD <field-name>.
FIELD <field-name>.
MODULE module_name.
ENDCHAIN.
Or you can display it as a warning message.
If you want your fields to be closed for input once you display your message in a pop up, then you can write this in the PBO (in case of module pool ) or in at selection-screen output (in executable program)
loop at screen.
if screen-name eq 'NAME'.
screen-input = '1'.
modify screen.
endif.
endloop.