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: 

Problem in set cursor after after pressing enter in Module pool

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

karun_prabhu
Active Contributor
0 Kudos

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.

6 REPLIES 6

karun_prabhu
Active Contributor
0 Kudos

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.

himanshu_gupta13
Employee
Employee
0 Kudos

I think their is problem in cursor field name.

Many Thanks/ Himanshu Gupta

venuarun
Active Participant
0 Kudos

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

kabil_g
Active Participant
0 Kudos

Dear Priya,

Under Pai

Use Modify statement your internal table

Ex. Modify gt_tab into gw_tab index 1.

Former Member
0 Kudos

Fields Name should be upper case

raymond_giuseppi
Active Contributor
0 Kudos

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