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

SYNTAX

Former Member
0 Likes
384

Hi ,

I need the syntax to know the numbers in between.

for ex.

num = CV100000109999

and I need to check the 2places from the one and write the code.

I must check the numbers in the brackets CV(10)0000(10)9999

How should I write the syntax?

Anyone please help me.

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
359

Hi,,

MOVE INTO ANOTHER VARAILBLE

TEST = NUM+2(2) ==10

TEST = NUM+8(2)==10

HOPE THIS HELPS

THANKS

2 REPLIES 2
Read only

Former Member
0 Likes
360

Hi,,

MOVE INTO ANOTHER VARAILBLE

TEST = NUM+2(2) ==10

TEST = NUM+8(2)==10

HOPE THIS HELPS

THANKS

Read only

Former Member
0 Likes
359

Hi Bharat,

Use offset operation on strings for your requirement.

DATA V_NUM(14) TYPE C VALUE 'CV100000109999'.

DATA V_FNO(2) TYPE C.

DATA V_SNO(2) TYPE C.

V_FNO = V_NUM+2(2) -> To get 1st 10

V_SNO = V_NUM+9(2) -> To get 2nd 10

Thanks,

Vinay