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

eCATT Error loading variants

Former Member
0 Likes
1,832

Hi,

I am running an eCATT script with external variants and getting this error "Variants that Match Selection Cannot Be Found".

The script has to load goods issue using transaction MB1B.

The file format I am using for loading variants is

[VARIANT] [DESCRIPTION] I_VENDOR I_QUANTITY I_ARTICLENO I_STGLOCA I_SITE I_SPLSTOCK I_MOVETYPE

*ECATTDEFAULT1 6000092 20 1000101761 0001 9029 K 411

*ECATTDEFAULT2 6000092 20 1000101761 0001 9029 K 411

*ECATTDEFAULT3 6000092 20 1000101761 0001 9029 K 411

*ECATTDEFAULT4 6000092 20 1000101761 0001 9029 K 411

*ECATTDEFAULT5 6000092 20 1000101761 0001 9029 K 411

*ECATTDEFAULT6 6000092 20 1000101761 0001 9029 K 411

The scrips runs well when I use an internal variant, I think its using the default variant to post the first line.

I dont know if its the format of file or anything else thats causing the error. Any help is highly appreciated.

5 REPLIES 5
Read only

Former Member
0 Likes
1,141

Hi Vaseem,

External Variants work perfectly without any issues. I hope you must have followed following steps -

1. Download the variant from the <i>Test Data Container</i> for the format details from the menu <i>Edit->Variants->Download</i>.

2. Copy the content of this downloaded text file as it is in an excel.

2. Now, prepare data in excel in the mentioned format. This means you will know which are the columns for which you need to give values.

3. For each of the line in the excel give some name like var1, var2 etc in the first column of <i>Variant</i>.

4. Now, copy this again, in the same text file and save.

5. Upload this data file back into eCATT Test Data Container using menu<i> Edit-> Variant->Upload.</i>

6. At the execution time, select the checkbox for External Variant in the Parameter tab. Specify the path and execute.

Hope this helps.

PS If the answer solves your query, plz close the thread by marking it solved and rewarding each reply.

Regards

Read only

0 Likes
1,141

I am still unable to load them correctly. I think I am doing something wrong.

Also, is there are way to run the eCATT Script completely in the background? I am using the background method in execution, but the script still runs in foreground. Am I missing something?

Read only

0 Likes
1,141

Hi Vaseem

I think there must be some problems with SAP GUI or sth like that (maybe sth local on the comp). I also have similar problem with eCATT variants when I'm trying to execute them on my computer. When I try to run it on some other comp, they work properly. I use SAP GUI 7.10, and on the other two comps there is 6.40, and I didn't come to an end of the problem yet.

Regards

Matija

Read only

matija_zaloznik
Explorer
0 Likes
1,141

Hi Vaseem

Maybe there is a problem in your file also. There should be no aterixs (*) at the begining of the line.

If there is an asterix the line is commented (as in ABAP I think). Try this.

[VARIANT] [DESCRIPTION] I_VENDOR I_QUANTITY I_ARTICLENO I_STGLOCA I_SITE I_SPLSTOCK I_MOVETYPE

ECATTDEFAULT1 6000092 20 1000101761 0001 9029 K 411

ECATTDEFAULT2 6000092 20 1000101761 0001 9029 K 411

ECATTDEFAULT3 6000092 20 1000101761 0001 9029 K 411

ECATTDEFAULT4 6000092 20 1000101761 0001 9029 K 411

ECATTDEFAULT5 6000092 20 1000101761 0001 9029 K 411

ECATTDEFAULT6 6000092 20 1000101761 0001 9029 K 411

Regards, Matija

Read only

Former Member
0 Likes
1,141

Hi,

I was facing the same issue and this is how i resolved it.

Download the variants file from Edit-->Variants--> Download. Once this file is downloaded in your desktop, make sure you open the file in the notepad and fill in the variants in the same pattern as you will be able to see your default variants. Then save the text file and upload the variants from Edit-->Variants-->Upload.

Make sure you give the External Variants/path correctly and give your variants File path.