How to Default Variant Created for Report Developed In Report Painter/Writer Applies to: Any business organization having reports developed using Report Painter/Report Writer. This is applicable from R/3 4.7 Version. For more information, visit the Enterprise Resource Planning homepage. Summary This article displays the process creation of variant for report developed in Report Painter/Report Writer and making it default for execution. This includes making the one of the selection field as mandatory and another not available for input. Author: Harish Kumar Singhania Company: Infosys Technologies Limited Created on: 23rd Jan 2010 Author Bio Harish Kumar Singhania is a Chartered Accountant and has more than 10 years of total experience including domain. He is working as a Sr. Consultant with Infosys Technologies Limited and has been part of FICO competency. He has worked for four years in production support and enhancement. 2008 SAP AG 1
Table of Contents Introduction... 3 Objective... 3 Business Requirement... 3 Solution... 4 Steps involved:... 4 Step - I... 4 Step II... 5 Procedure... 5 Step III... 7 Procedure... 7 Related Content... 10 Disclaimer and Liability Notice... 11 2008 SAP AG 2
Introduction As a solution provider you may have to create and default the variant for report developed in Report Painter/Report Writer. Objective The objective of this article is to explain step by step process for creation of variant and making it default for report execution. Business Requirement For reports developed in Report Painter Report, business asks for creation of variant and making it default for execution reports. In addition, to make the one of the selection field (Fiscal Year) as required entry and to default account group with values and field not ready for input in selection screen. 2008 SAP AG 3
Solution Steps involved: Step - I Procedure Access the activity using one of the following navigation options: SAP Menu Information Systems Adhoc Reports Report Painter Report Writer Report Group Transaction Code User Actions and Values GR55 1. Mention the Report Group to which report is assigned. 2. Execute the Report 3. Mention the Values to be defaulted in selection screen for report execution. 4. Click on save button 5. Enter the Variant Name and description. 6. Save Result Variant is created Alternatively, variant can also be created using ABAP Editor T Code: SE38. 2008 SAP AG 4
Step II To make one of the selection field (Fiscal Year) mandatory and to default account group with values as field not ready for input. Procedure Access the activity using one of the following navigation options: SAP Menu Information Systems Adhoc Reports Report Painter Report Writer Report Group Transaction Code User Actions and Values GR55 1. Mention the Report Group to which report is assigned. 2. Execute the Report 3. In menu bar select GOTO button and select Get Variant. 4. Click on save button 5. Existing Variant will be displayed. 6. Check on Required Field O box against for Fiscal Year 7. Check on Protect Field P box against for Account Group. 8. Click on Save 9. Overwrite Existing Variant 10. Yes, Continue 2008 SAP AG 5
Result Variant created in Step 1 above is changed making Fiscal Year as required field and Account Group as field not ready for input. Alternatively, variant can also be changes using ABAP Editor T Code: SE38 2008 SAP AG 6
Step III To default the variant created above for report execution. This step involves creation of custom Z transaction code and assigning the variant to same. It s advisable to make the variant as protected when created. Procedure Access the activity using one of the following navigation options: SAP Menu Tools ABAP Workbench Development Other Tools Transactions Transaction Code User Actions and Values SE093 1.Enter the proposed name of transaction code and click on create 2. Enter the short text. 3. Select Transaction with Parameters 4.Enter Start_Report section Default Values for Transaction 5. Check Inherit GUI attributes 6. Enter the following in Default Values Name of screen field D_SREPOVARI-REPORTTYPE D_SREPOVARI-REPORT D_SREPOVARI-EXTDREPORT Value RW <Report Grp> <Report Name> D_SREPOVARI-VARIANT D_SREPOVARI-NOSELSCRN <Variant Created (ZTEST)> Leave Blank 7. Save Result Transaction Code is created and variant created above is made default for running the report. 2008 SAP AG 7
This should be development Package as Transport Request will be generated. 2008 SAP AG 8
2008 SAP AG 9
Related Content For more information, visit the Enterprise Resource Planning homepage. 2008 SAP AG 10
Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document. 2008 SAP AG 11