Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Report Variant

Former Member
0 Likes
2,817

Experts,

There was a variant to schedule a background job. Due to some selection screen changes done in that report, not able to get the variant values. It shows error:

Variant XXX of program ZABC is not the current version.

Is there any way to get it back? Since this variant is required to continue the business as it was earlier.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,062

Hi All,

i regenerated the old version and then copied the variant defined. Altering with new change i re-used the variant.

thanks.

Experts,

There was a variant to schedule a background job. Due to some selection screen changes done in that report, not able to get the variant values. It shows error:

Variant XXX of program ZABC is not the current version.

Is there any way to get it back? Since this variant is required to continue the business as it was earlier.

7 REPLIES 7
Read only

Former Member
0 Likes
2,062

I also tried FM: RS_VARIANT_CONTENTS. Its not working.

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
2,062

You may check tables like VARI, VAR* .

Read only

Sijin_Chandran
Active Contributor
0 Likes
2,062

Hi Fasiullah ,

Create the earlier variant again.

I don't think you can be able to retrieve it again.

Variant history is not maintained anywhere I guess.

Read only

0 Likes
2,062

Thanks sijin.

Problem is i am not aware of earlier variant but business needs same variant.

Read only

0 Likes
2,062

Hi Fasiullah ,

As far as my knowledge there is no provision in SAP to retrieve the earlier version of a variant.

If someone provides  with a positive solution for your query it would be really informative.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,062

Did you try with

1. Start transaction SE38

2. Enter program name zxxxxxx and check the 'Variants' option

3. On the resulting ABAP: Variants - Initial screen, go to the menu option Variants --> Adjust

4. The 'Rescue Obsolete Variants' program will be triggered

Else, using version management, regenerate the old version of program, if required transport it to the system where the variant is defined, note the information of the variant, reapply the source code change to get the current version of program and transport it once again.

Regards,

Raymond

Read only

Former Member
0 Likes
2,063

Hi All,

i regenerated the old version and then copied the variant defined. Altering with new change i re-used the variant.

thanks.