05-20-2005 8:08 AM
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.
05-20-2005 8:47 AM
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
05-20-2005 8:47 AM
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
05-20-2005 9:42 AM
Hi Christian,
Thanks a lot for your help.
Your suggestion has solved my problem.
Thanks and Regards,
Venkatalakshmi
05-20-2005 9:04 AM
Hi Lakshmi,
Check these links.
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCATTOL/BCCATTOL.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCATTOL/CACATTOL.pdf
Regards,
J.Jayanthi
05-20-2005 9:27 AM