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

Using SET CURSOR

Former Member
0 Likes
361

Hi, I am trying to set the cursor so it always appears in an input field on my screen. The screen itself contains some input fields at the top of the screen, and then an ALV grid on the bottom half. The transaction then transfers values from the input fields to the ALV grid, but after each update I want the cursor to return to the first input field. But this doesn't seem to work consistently.

In the screens PBO I use SET CURSOR FIELD ekpo-matnr

And in the PBO I am doing the same.

But with no joy.

2 REPLIES 2
Read only

Former Member
0 Likes
323

Hi

I think you should pass the vales in Single Quotes

SET CURSOR FIELD 'field name'.

where field name is the name of the screen field.

Thanks!

Rahul

Read only

Former Member
0 Likes
323

when we refer to a table name/fieldname like EKPO-MATNR, SAP uses the VALUE stored at that pointer... This is important to remember...As noted previously, to reference a table and fieldname, we use a literal, or we store the table-field by computing = to a literal value, in another variable and refer to that.