07-25-2014 5:59 AM
Hi Expertise,
I am working on one requirement, which is having multiple input fields.
after entering value in first input field. on enter press cursor position
should go to another input field.
In PAI and PBO of i have written.
if ls_emp-empid is not initial.
set cursor field ls_emp-empfname.
endif.
But it is not working .
Please help me out.
Best Regards,
Priyaranjan
07-25-2014 6:12 AM
Hello Priyaranjan.
SET CURSOR should be set only in PBO.
Please check the syntax. You should put the field name in quotes.
SET CURSOR FIELD 'FIELDNAME'.
Regards.
07-25-2014 6:12 AM
Hello Priyaranjan.
SET CURSOR should be set only in PBO.
Please check the syntax. You should put the field name in quotes.
SET CURSOR FIELD 'FIELDNAME'.
Regards.
07-25-2014 6:26 AM
I think their is problem in cursor field name.
Many Thanks/ Himanshu Gupta
07-25-2014 6:40 AM
Hi,
SET CURSOR FIELD should be set in PBO
SYNATX - --> SET CURSOR { { FIELD field [LINE line] [[DISPLAY] OFFSET off] }
The data object field must be character-type and flat.
Regards,
Arun VS
07-25-2014 10:11 AM
Dear Priya,
Under Pai
Use Modify statement your internal table
Ex. Modify gt_tab into gw_tab index 1.
07-25-2014 10:12 AM
07-25-2014 10:18 AM
Use only GET CURSOR in PAI modules, SET CURSOR must be coded in PBO Module, so store information in some global variable and use it in PBO to execute the SET CURSOR.
Else, press F1 on SET CURSOR for this information and the syntax, for field either put the field name in uppercase between quotes else Abap will use the value of field...
Regards,
Raymond