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

Refresh screen fields

Former Member
0 Likes
2,129

Hi all,

In my dialog screen, if i get an error after giving a wrong input, the input fields are disabled. i have to go back to the program and exec again to key in. how can i solve this problem.

plese advice me,

Rajesh.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
938

Hi,

Use Chain and Endchain statements.

syntax:

CHAIN.

FIELD: <f1>, <f 2>,...

MODULE <mod1>.

FIELD: <g1>, <g 2>,...

MODULE <mod2>.

...

ENDCHAIN.

In MODULE <mod1>. and MODULE <mod2> u can write ABAP codings for validations.

Suppose if u give wrong input for the field <f1>, all fields will be disabled except f1. once u give correct input for f1 and press enter all fields will be enabled.

Regards

Divakar

6 REPLIES 6
Read only

Former Member
0 Likes
938

Hi,

Try to use CHAIN and ENDCHAIN. Place all the required screen fields in between CHAIN and ENDCHAIN.

Thanks and Regards,

Bharat Kumar Reddy.V

Read only

Former Member
0 Likes
938

Put the fields to be inputted in CHAIN,ENDCHAIN in PAI

PAI.

CHAIN.

<FIELD1>

<FIELD2>

ENDCHAIN.

If any validations fails control goes to the field where error occurred.

Read only

anversha_s
Active Contributor
0 Likes
938

hi,

in the PBO.

assaign screen fields name = field values.

ur problem will be solve.

rgds

anver

Read only

Former Member
0 Likes
939

Hi,

Use Chain and Endchain statements.

syntax:

CHAIN.

FIELD: <f1>, <f 2>,...

MODULE <mod1>.

FIELD: <g1>, <g 2>,...

MODULE <mod2>.

...

ENDCHAIN.

In MODULE <mod1>. and MODULE <mod2> u can write ABAP codings for validations.

Suppose if u give wrong input for the field <f1>, all fields will be disabled except f1. once u give correct input for f1 and press enter all fields will be enabled.

Regards

Divakar

Read only

Former Member
0 Likes
938

Thank u all.

I have solved the problem using chain and end chain statements.

Regards,

Rajesh.

Read only

Former Member
0 Likes
938

hello,

i need to give points for all who have helped me.

but iam not able do. how can i do so.

regards,

rajesh.