Skip to Content
author's profile photo Former Member
Former Member

Problem in set cursor after after pressing enter in Module pool

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    Posted on Jul 25, 2014 at 05: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 25, 2014 at 09: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 25, 2014 at 05:26 AM

    I think their is problem in cursor field name.

    Many Thanks/ Himanshu Gupta

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 25, 2014 at 05: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 25, 2014 at 09:11 AM

    Dear Priya,

    Under Pai

    Use Modify statement your internal table

    Ex. Modify gt_tab into gw_tab index 1.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2014 at 09:12 AM

    Fields Name should be upper case

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.