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

Call a transaction or screen from a report

Hi All,

Is it possible to call a transaction or screen or subscreen from a report source.

If yes then how?

Regards

Amit

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2004 at 07:37 AM

    Hello Amit,

    Of course it is possible to call a transaction / screen from a report. A subscreen, however, as you might be knowing can only be called from within a screen (typically in it's PBO).

    The most basic example of this would be a report with a selcection-screen (which always has the number 1000). When you declare some PARAMETERS or SELECT-OPTIONS in a report, you get a selection-SCREEN. In this case, however, it is the ABAP Environment that calles the screen for you.

    Apart from a selection-screen (which is a <i>system-defined</i> screen in one way)that, you can call your own screens using the CALL SCREEN statement. Typical example would be to call a screen in your START-Of-SELECTION.

    Consider the following code snippet:

    =====================================================

    select-options s_vbeln type vbeln.

    data itab type table of vbak.

    start-of-selection.

    select * from VBAK into table itab where vbeln in s_vbeln.

    call screen 100.

    MODULE PBO_100 OUTPUT.

    • Contains the logic, for example to display the sales

    • documents in the internal table in a table control (or

    • an ALV grid, for that matter)

    ENDMODULE.

    =====================================================

    Remember:

    1. The screen 100 in the above example would be defined in the screen-painter, for the report program in question.

    2. It is generally not recommended that you declare a screen with number 1000 in the screen-painter ( more so in this ).

    The generic nature of your questions provides a lot of other things that I could tell you. But it is best you could read the ABAP documentation for those details. If you are faced with a particular requirement, then I will be able to help you find the best possible solution.

    Regards,

    Anand Mandalika.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2004 at 09:14 AM

    Hello,

    You can also try to get the programm transaction name ( doing systems -> status ) and insert in your ABAP :

    SUBMIT PROG_TRANSACTION VIA SELECTION-SCREEN AND RETURN.

    Regards,

    Erwan.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 03, 2004 at 10:21 AM

    call transaction 'TCODE'.

    call screen screennumber.

    look at the link below for details.

    http://help.sap.com/saphelp_46c/helpdata/en/34/8e73a86df74873e10000009b38f9b8/frameset.htm

    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.