Application Development 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: 

Problem when uploading data using CATT

Former Member
0 Kudos

Hi

I am doing a CATT upload for the transaction ct04.

In the CATT functions Maintain Test Case Screen,I have written the code as below

*******************************************************

C Funct. Object Text

IF &ATNAM NE &TEMP

SETVAR &TEMP = &ATNAM

TCD CT04 Characteristics

ELSE

TCD CT04 Characteristics

ENDIF

*********************************************************

ATNAM is the name of the chracteristic which is taken from the input file and temp is a local variable.

For the first record,the if condition will be satisfied and for the rest else part needs to be satisfied.

But for me,it is executing only the if part and the else part is not getting triggered.

Please help me in this regard.

1 ACCEPTED SOLUTION

christian_wohlfahrt
Active Contributor
0 Kudos

Hi!

Do you want to have something like 'on change of ATNAM'?

Looks like TEMP is reset for each new entry and not saved STATIC for next input line.

There is a work-around. Add a new column (in excel) &TEMP (which is now no longer local, but input variable). Let's asume, ATNAM is in column C: write if statement for TEMP-column (e.g. D2:) if(C1 <> C2; 1; 0).

Then your if-statement in catt can be static like:

IF &TEMP = 1

In other words: write a 1 in each line, where your if part should be executed, write a 0 in each line, where your else part should be executed. With a static if-clause, CATT should work fine.

Regards,

Christian

4 REPLIES 4

christian_wohlfahrt
Active Contributor
0 Kudos

Hi!

Do you want to have something like 'on change of ATNAM'?

Looks like TEMP is reset for each new entry and not saved STATIC for next input line.

There is a work-around. Add a new column (in excel) &TEMP (which is now no longer local, but input variable). Let's asume, ATNAM is in column C: write if statement for TEMP-column (e.g. D2:) if(C1 <> C2; 1; 0).

Then your if-statement in catt can be static like:

IF &TEMP = 1

In other words: write a 1 in each line, where your if part should be executed, write a 0 in each line, where your else part should be executed. With a static if-clause, CATT should work fine.

Regards,

Christian

0 Kudos

Hi Christian,

Thanks a lot for your help.

Your suggestion has solved my problem.

Thanks and Regards,

Venkatalakshmi