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

Selection screen focus

Former Member
0 Likes
600

Hi all

Please help me to dothis I am displaying the error message by checking the input values at selection scree.Now the problem is after displaying the error message focus is comming on to the first field of selection screen but I want it to be displayed on the field whose value is wrong.

Thank You.

Regards

Giri.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
515
parameters : p_fld(1).

at selection-screen.

if p_fld is initial.
 SET CURSOR FIELD 'P_FLD'.  " if it is select option then S_FLD-LOW
  message ..........
endif.
4 REPLIES 4
Read only

Former Member
0 Likes
515

sap gets defaulted that way.....

Read only

Former Member
0 Likes
516
parameters : p_fld(1).

at selection-screen.

if p_fld is initial.
 SET CURSOR FIELD 'P_FLD'.  " if it is select option then S_FLD-LOW
  message ..........
endif.
Read only

PS_1978
Active Participant
0 Likes
515

Hi Giri,

write your code at selection-screen on <b>block</b> or on <b>field</b>.

if you have defined this filed in a block then u can use at selection screen on block <block name>. In this case, the entire block will be focused. if you want that particular field, then go for at selection screen on <field name>.

else if you have defined this out side the block, then u can use at selection screen on <field name>.

Hope it solves

Regards,

Phani...

Message was edited by:

Sivapuram Phani Kumar

Read only

Former Member
0 Likes
515

Hi,

Write the Error message in the Event of AT Selection screen On Field ..

or you can use the Set CURSOR Field <Field-Name>.

Regards

Sudheer