Gyan Factory

Gyan Factory
SAP Technical Project Support

Thursday, January 14, 2016

Executing a report with a Transaction start Variant

Step1. Go to Tcode- SE38 and create a report program.



















Step2. Provide the description.





















Step3. Choose type as Executable program.





















Step4. Select the check box: Start using Variant and this appears only for type 1 program.





















Step5. Create some parameters and execute it.




















Step6. Well we receive the below output i.e it can only be executed by a variant.



















Step7. Navigate along the path to create a Variant for the report. Usually we create the variant from the selection screen of the report by providing some values to the input fields and then saving it. But here in this case while executing the selection doesn't appear.





















Step8. Provide the parameter value and click on attributes button.











Step9. The variant name comes automatically from the program name and in display mode. Provide the description and save it.














Step10. So variant created and saved.
















Step11. Again run the program yet still receiving the same error. So it can only be run by a report transaction code.



















Step12. Go to Tcode- SE93.






Step13. Provide a Tcode name and click on create button.

















Step14. Provide the short text and select the second radio button for the report transaction and continue.

























Step15. Provide the report name and the start variant name from the F4 value. Save it.




























Step16. Launch the report transaction  created above.





Step17. So the value comes from the start variant.









Step18. From the variant button we can see our above created variant.
























Step19. Execute and the below o/p appears.

No comments:

Post a Comment