05-17-2017 9:42 AM
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
05-22-2017 7: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.
05-18-2017 7: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.
05-22-2017 5:43 PM
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.
05-18-2017 8: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/
05-22-2017 5:56 PM
Hi, Eric.
Thanks for answer.
I've already followed this blog, but is not working with a selection screen. This only works with normal screens...
05-22-2017 7: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.
05-23-2017 9:49 AM
Yes, I've tried this before post the question. But I couldn't create the transaction.
05-23-2017 9:54 AM
Ok, the problem was that the variant was saved as local object and doesn't appear in the F4 help...
but you can type the variant name anyway... and its working...
silly question, sorry...
05-23-2017 4:50 PM