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

Navigation from report

Hi,

I can call my transaction from a button on two reports output or by directly giving transaction.

Now my requirement is that how do I go back to the previous report from where the transaction is called or to the selection screen if it is directly called through transaction when presses back button.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 08, 2010 at 12:02 PM

    Hi,

    If you are using selection screen then on at selection screen command write below logic.

    at selection-screen.

    case sy-ucomm.

    when 'STRT'.

    leave to screen 0.

    endcase.

    If back having some other function code, please check in dibugger the value of sy-ucomm.

    If you are using module pool then IN PAI of both the reports write below logic

    Module exit.

    Module exit.

    case sy-ucomm.

    when 'BACK'.

    leave to screen 0.

    endcase.

    endmodule.

    Edited by: UMANGmehta on Oct 8, 2010 2:07 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 08, 2010 at 12:05 PM

    hi

    You can do it by either by using leave to transaction or use set screen no. This will do for you.. Hope this information is useful to you.

    Regards

    Vinodh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 08, 2010 at 01:03 PM

    Hi,

    In your transaction write

    LEAVE TO SCREEN 0

    for back button.

    Close the threat if aswered.

    THanks,

    Anmol.

    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.