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

Dynamin comparision operators

Former Member
0 Likes
479

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
460

Hi,

Better you can use the CASE. ENDCASE.

regards,

mahantesh

3 REPLIES 3
Read only

Former Member
0 Likes
461

Hi,

Better you can use the CASE. ENDCASE.

regards,

mahantesh

Read only

vinod_vemuru2
Active Contributor
0 Likes
460

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.

Read only

Former Member
0 Likes
460

hi,

Kindly close the the thread if question is solved.

regards,

mahantesh