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

how to get input field after error message ?

Former Member
0 Likes
2,707

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,502

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.

3 REPLIES 3
Read only

sridhar_meesala
Active Contributor
0 Likes
1,502

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.

Read only

Former Member
0 Likes
1,502

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

Read only

Former Member
0 Likes
1,503

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.