Skip to Content

AT LINE SELECTION.

Dear Friends,

<u>Could you please help me with the following problem.</u>

I am getting a Report(list) which are some programs in the system. I should go to that program if I double click on that line or on the program name.

Thank you very much,

Best Regards,

Subramanyeshwer

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

9 Answers

  • Best Answer
    Posted on Aug 25, 2006 at 02:16 PM

    Check this sample code.

    
    report zrich_0001.
    
    tables: trdir.
    
    data: itrdir type table of trdir with header line.
    
    select-options: s_name for trdir-name.
    
    start-of-selection.
    
      select * into table itrdir
                from trdir
                   where name in s_name.
    
      loop at itrdir.
    <b>    format hotspot on.
        write:/ itrdir-name.
        hide itrdir-name.
        format hotspot off.</b>
      endloop.
    
    
    <b>at line-selection.
    
      editor-call for report itrdir-name display-mode.</b>
    
    

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 25, 2006 at 02:13 PM

    at line selection.

    you can read the contents of the selected line from sy-lisel.

    and using the program name from there call transaction SE38 if you wish to view the code

    or SA38 to execute it with the particular pgm

    or surely u can submit the same and return.

    Message was edited by: Anurag Bankley

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 25, 2006 at 02:13 PM

    Hi,

    You can use

    SET HOTSPOT ON.

    Write :/'Report1'.

    Write :/'Report2'.

    SET HOTSPOT OFF.

    Then use SET PARAMETER AND GET PARAMETER to get the report name which user has clicked.

    Use SUBMIT <reportname> via selection-screen.

    Please let us know whether fair idea is enough or you want a code.

    Best regards,

    Prashant

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 25, 2006 at 02:13 PM

    YOu should go to the program? or you should run that program?

    if you want to go to that program,

    then:

    read current line.

    progname = sy-lisel+0(15) (Give the exact offset)

    set parameter id 'RID' field progname.

    call transaction 'SE38' and skip first screen.

    Regards,

    ravi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 25, 2006 at 02:14 PM

    Hy

    If it is only report you could use the event "At Selection screen"

    If you want to jump in the SE38 Try this

    Call Transaktion SE38 with <REPORT_NAME>

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 25, 2006 at 02:25 PM

    hi,

    SET HOTSPOT ON.

    Write :/'Report1'.

    Write :/'Report2'.

    SET HOTSPOT OFF.

    Now as you enabled the hotspot on the report names. You can capture the names and call the transaction se38 or editor with the name of the report at line-selection event.

    Regards,

    Richa

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 25, 2006 at 05:45 PM

    Please be sure to award points for helpful answers and mark as solved when solved completely. Thanks.

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 31, 2006 at 10:05 AM

    hi

    you can read the contents of the selected line from sy-lisel for futur operations on it...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 31, 2006 at 01:15 PM

    HI,

    Scrolling is possible in case of lists by using statement <b>SCROLL LIST</b>.

    I think it is not possible with abap editor.

    Regards,

    Sailaja.

    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.