‎2008 May 15 8:17 AM
Hi,
Need your inputs. Details mentioned below:
Program needs to compare values between 2 variables. However, the comparison operators (EQ, NE, GT, GE, LT, LE) are retrieved from a custom table and my code needs to compare based on the values returned in the internal table i.e. if I get EQ, then i have to equate the values of 2 variable.
One way of working around this is to use IF ELSEIF but I am not very inclined on using that.
Any other pointers?
Will appreciate an early response.
Thanks
Regards
Yatin.
‎2008 May 21 11:14 AM
‎2008 May 21 11:14 AM
‎2008 May 21 11:23 AM
Hi Viswas,
Why to go for if elseif.
CASE itab-operator. "from Database table
WHEN 'EQ'.
check var1 EQ var2.
WHEN 'GT'.
check var1 GT var2.
.
.
.
WHEN OTHERS.
through error.
ENDCASE.
Thanks,
Vinod.
‎2008 May 29 8:16 AM
hi,
Kindly close the the thread if question is solved.
regards,
mahantesh