Application Development 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: 

Changing the cursor position on selection screen.

Former Member
0 Kudos

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

SuhaSaha
Advisor
Advisor

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

Former Member
0 Kudos

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' .

SuhaSaha
Advisor
Advisor

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks a lot.

Former Member
0 Kudos

Hi Mudit ,,

Use SET CURSOR FIELD 'MAKTX' .

In the event AT SELECTION-SCREEN OUTPUT.

Regards,

Nishit Joshi.