Mass Maintenance of Tcode Variants
Many a times there are business scenarios wherein there is a possibility of migration to a new entity. For example if your organization decides to go for the implementation of a standard chart of account for the existing company codes, new company codes might be created. In such cases when the company code changes we also have to ensure that in all the Report variants the new company code needs to be updated. In case the report numbers cross hundreds it would be a painstaking process to change each and every variant. (Same case for background jobs too)
Now? There was a business change and company code IN01 would no longer be used and will be replaced with IN02. The ABAP and BASIS teams are entrusted with the responsibility of creating new variants/change the existing variants.
How? Automation can be achieved by the following piece of code:
Source code: Z_VARIANT_CHANGE