Skip to Content

Call standard report with screen variant

Hi,

I've created a screen variant in a standard report.

I want to create a transaction to call this report with this variant.

Is it possible?
I cannot use in se93 "Transaction with variant" because this is for transction variants created with SHD0. And in SHD0 you can only use normal screens, not selection screens.

As a workaround I know I can create an enhancement point and do a LOOP AT SCREEN, or create my custom report with my own selection screen and do a SUBMIT to the standard one.

But I'm wondering if it is possible to do it in other way.

Thanks in advance.
Regards

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    May 22, 2017 at 06:28 PM

    If it's not a screen variant then if you have a normal report with selection screen, and a program variant, and you want to start this program with this program variant via a custom transaction code, then you have to use SE93 to create a transaction code of type "report", enter the program name, the selection screen 1000 and the program variant.

    Add comment
    10|10000 characters needed characters exceeded

  • May 18, 2017 at 06:17 AM

    You must create a "transaction variant" too, in SHD0, and attach the screen variant to it, and then create a "transaction with variant" in SE93 to start your transaction code, with the "transaction variant".

    In SE93, you cannot create a "transaction with variant" to start another "transaction with variant". What this latter transaction with variant calls a classic transaction code. Why don't you create a "transaction with variant" which starts this transaction code?

    About the selection screens, the only limit is that you can't create a screen variant on a selection screen. As you have already created the screen variant, it means the screen is not a selection screen. You must use "program variants" on selection screens. You may create a transaction code in SE93 which starts a report (the "standard report" as you say) with a given program variant.

    Add comment
    10|10000 characters needed characters exceeded

    • Sorry, I did not express my self well.

      I didnt create a screen variant in the standard report, I've created a program variant in the selection screen. Using the SAVE button in the selection screen.

      And I cannot use this variant in se93. In SHD0 I cannot use the screen 1000 for the selection screen, it's not allowed.

  • avatar image
    Former Member
    May 18, 2017 at 07:26 AM

    yes, you can use the "transaction variant" with your defined 'Screen Variants' assigned. This is the standard approach for such requirement.

    You can read more in blog:

    https://blogs.sap.com/2013/03/26/learning-shd0-with-example/

    Add comment
    10|10000 characters needed characters exceeded