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

any JUMP or GOTO keyword

i want to Jump CURSOR from line 10 to line 20.

how is it possible.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on May 22, 2009 at 06:31 AM

    i do not think so .. well you can do the same in debug mode

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 22, 2009 at 06:36 AM

    Hi ,

    SKIP TO LINE n. statement will work,

    regards

    gowri

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 22, 2009 at 06:37 AM

    HI,

    if you want to read the lines on the report

    Use system fields sy-lisel or sy-lilli to read the lines

    But these system fields work only if you use the at line-selection event.

    if you want to write at tenth line then use

    skip to line 10.
    write:/ 'ABCD' .

    Thanks&Regards

    Sarves

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 22, 2009 at 06:43 AM

    >

    > i want to Jump CURSOR from line 10 to line 20.

    > how is it possible.

    So you want to jump program lines or during report output.

    Skip to line can only be used in report output and there is no jump/goto statment in ABAP. You should develop your program with available control and branching statements like IF, CONTINUE, EXIT, RETURN etc.

    Regards

    Karthik D

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 22, 2009 at 06:45 AM

    Hi,

    Another option is you can set a flag = 'X' at the current line and then

    if flg ne 'X'.

    line11 statement here...

    ...

    elseif flg eq 'X'.

    line 20 statement here....

    endif.

    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.