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

Comparison Operator <> Issue

Former Member
0 Likes
843

Hi

I am trying to execute code based on IF statement to compare char variable lv_role  , its value is ZCRM22 as you an see in the variable 1 screen.

Condition is to process only if lv_role is not equal to ZCRM22.

But its not working, you can see the program continued to execute line 71 after IF statement.

What  am I doing wrong?

Thanks

Swapnil

1 ACCEPTED SOLUTION
Read only

Clemenss
Active Contributor
0 Likes
806

Hi,

I can't see if or what kind of non-printable characters lv_role may contain. Try to replace your statement with

IF NOT ( lv_role(6) = 'ZCRM22' ).

How did you define (and fill) lv_role?

Regards

Clemens

3 REPLIES 3
Read only

Clemenss
Active Contributor
0 Likes
807

Hi,

I can't see if or what kind of non-printable characters lv_role may contain. Try to replace your statement with

IF NOT ( lv_role(6) = 'ZCRM22' ).

How did you define (and fill) lv_role?

Regards

Clemens

Read only

0 Likes
806

Hi Swapnil,

Add condense lv_role before if condition.

Thanks

Read only

Former Member
0 Likes
806

This worked  on it own , when i tested  again  just now. May be BG job which activates the implementation ran in meanwhile..