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

Comparing 2 values

Former Member
0 Likes
474

Dear All,

Var2 = 00005345678

or 0050005689

or 508990034

0r 1234567

Here i should check whether the number is starting with 5 or not. In above 3 cases i have to consider first 5.

I don't want to consider 4th number.

please Help me if any keyword.

Thanks and regards,

RK

1 ACCEPTED SOLUTION
Read only

former_member491305
Active Contributor
0 Likes
446

hi ,

Use like below.

*---To remove leading zero's


Call function CONVERSION_EXIT_ALPHA_OUTPUT
exporting = var2.
importing = var2.

and then do like below.

If var2+0(1) = '5'.

Your logic..

Endif.

Edited by: Vigneswaran S on Feb 8, 2010 4:46 PM

Edited by: Vigneswaran S on Feb 8, 2010 4:48 PM

3 REPLIES 3
Read only

former_member491305
Active Contributor
0 Likes
447

hi ,

Use like below.

*---To remove leading zero's


Call function CONVERSION_EXIT_ALPHA_OUTPUT
exporting = var2.
importing = var2.

and then do like below.

If var2+0(1) = '5'.

Your logic..

Endif.

Edited by: Vigneswaran S on Feb 8, 2010 4:46 PM

Edited by: Vigneswaran S on Feb 8, 2010 4:48 PM

Read only

0 Likes
446

Thank alot my problem solved, points awarded.

Read only

Former Member
0 Likes
446

hi,

use condense statement.

Thanks,

sakshi