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

ABAP Query Variant Does Not Exist

Former Member
0 Likes
8,466

Hi,

After remote client copy from production to quality server with copy profile “SAP_ALL”, I faced with “Variant does not exist” for ABAP Query.

TCode SQ01, execute query with Variant, the pop up did show the variant, but when continue, it just show “Variant xxx does not exist”. 

I checked in production, the variant was not protected.

May I know how to solve this?

Thank you.

1 ACCEPTED SOLUTION
Read only

Former Member
4,597

Hi,

Solved based on SAP Note 374503. Thank you all.

5 REPLIES 5
Read only

ThangaPrakash
Active Contributor
0 Likes
4,597

Hello ZL,

Did you check the VARID table does the variant exists there.

In VARDI table you need to give the report name generated by SQ01 query.

To find the same goto SQ01 --> Query --> More functions --> Display report name.

Pass the report name to VARID table and check whether the variant exists int he table.

Regards,

Thanga

Read only

0 Likes
4,597

Hi Thanga,

There's some report name with AQTG.... and AQFK....., may I know what's the difference?

Read only

0 Likes
4,597

Hello ZL,

Can you please explain where did you find this report name and what steps you used to achieve this ?

Regards,

Thanga

Read only

Former Member
0 Likes
4,597

Hello,

Run the t-code once again, system--> status. double click on program name and select variants. if you have a backup before update, compare that and this. you may have to recreate the variant.

and after recreating it will work fine.

se38--> display variants.

Regards,

Arati

Read only

Former Member
4,598

Hi,

Solved based on SAP Note 374503. Thank you all.