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

Changing the cursor position on selection screen.

Former Member
0 Likes
5,083

Hi everyone,

I am working in report program in which i have different fields as a parameter in selection screen.

Actualy by default the cursor position comes on the first field . i want to change the postion of cursor to another field.

I tried to do it using set cursor field under At selection screen on block event but its not working .

Kindly suggest me the way to do that.

For example:

SELECTION-SCREEN BEGIN OF BLOCK b.

PARAMETERS: MATNR LIKE makt-matnr,

MAKTX LIKE makt-maktx.

SELECTION-SCREEN END OF BLOCK b.

AT SELECTION-SCREEN on block b .

SET CURSOR FIELD 'MAKTX' .

Cursor comes by default on matnr field . i want on maktx .

Thanks in advance

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
2,237

Hello Mudit,

SELECTION-SCREEN BEGIN OF BLOCK b.

PARAMETERS:
matnr LIKE makt-matnr,
maktx LIKE makt-maktx.

SELECTION-SCREEN END OF BLOCK b.

AT SELECTION-SCREEN ON BLOCK b .

INITIALIZATION.
  SET CURSOR FIELD 'MAKTX' .

BR,

Suhas

Hello Mudit,

SELECTION-SCREEN BEGIN OF BLOCK b.

PARAMETERS:
matnr LIKE makt-matnr,
maktx LIKE makt-maktx.

SELECTION-SCREEN END OF BLOCK b.

AT SELECTION-SCREEN ON BLOCK b .

INITIALIZATION.
  SET CURSOR FIELD 'MAKTX' .

BR,

Suhas

5 REPLIES 5
Read only

Former Member
0 Likes
2,237

Try This way..

SELECTION-SCREEN BEGIN OF BLOCK b.

PARAMETERS: MATNR LIKE makt-matnr,

MAKTX LIKE makt-maktx.

SELECTION-SCREEN END OF BLOCK b.

AT SELECTION-SCREEN on block b .

SET CURSOR FIELD 'MAKTX' .

AT SELECTION-SCREEN OUTPUT

SET CURSOR FIELD 'MAKTX' .

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
2,238

Hello Mudit,

SELECTION-SCREEN BEGIN OF BLOCK b.

PARAMETERS:
matnr LIKE makt-matnr,
maktx LIKE makt-maktx.

SELECTION-SCREEN END OF BLOCK b.

AT SELECTION-SCREEN ON BLOCK b .

INITIALIZATION.
  SET CURSOR FIELD 'MAKTX' .

BR,

Suhas

Read only

Former Member
0 Likes
2,237

Hi Mudit,

Kindly go through this link below:

http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dbac0b35c111d1829f0000e829fbfe/content.htm

Hope it helps you

Regrds

Mansi

Read only

Former Member
0 Likes
2,237

Thanks a lot.

Read only

Former Member
0 Likes
2,237

Hi Mudit ,,

Use SET CURSOR FIELD 'MAKTX' .

In the event AT SELECTION-SCREEN OUTPUT.

Regards,

Nishit Joshi.