‎2011 Feb 01 1:59 PM
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.
‎2011 Feb 01 4:19 PM
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
‎2011 Feb 01 4:55 PM
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.