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

Set Cursor For Select Option ?

Former Member
0 Likes
2,725

How can i using Set Cursor for my select option

4 REPLIES 4
Read only

sivaganesh_krishnan
Contributor
0 Likes
1,531

HI Burak,

This will place the cursor in selection screen

SELECT-OPTIONS : S_FY FOR lt.

AT SELECTION-SCREEN ON S_FY.

   IF S_FY-LOW IS INITIAL.

    MESSAGE  'EMPTY' TYPE 'E'.

   ENDIF.


Regards,

Sivaganesh

Read only

former_member220538
Active Participant
0 Likes
1,531

Hi Burak,

Use SET CURSOR in the At Selection Screen Output event.Try this

PARAMETERS p_name TYPE char10.

SELECT-OPTIONS s_dte FOR sy-datum.

AT SELECTION-SCREEN OUTPUT.

   SET CURSOR FIELD 'S_DTE-LOW'.

Regards,

Jeffin

Read only

Former Member
0 Likes
1,531

Hi,

Follow the above coding.

Remember to place the set cursor coding before the error message you need to display while coding.

Regards

Read only

Arun_Prabhu_K
Active Contributor
0 Likes
1,531

SET CURSOR will work if it is executed in PBO (Module pool) / AT SELECTION-SCREEN OUTPUT (Report transaction).

In PBO, you can write it to set the cursor whichever field you want.

Regards.