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

Sting operation

Former Member
0 Likes
784

Hi Experts,

i have a string like this.

EURO:HI ALL.

but i want the string only after : to get printed.

Hi All.

Note : No matter wt is there before : But in want to print only the data after :

Thanks in Advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
674

Hi,

Do like this

Data: str type string.

Data: str1 type string,

str2 type string.

Str = 'EURO:HI ALL'.

Split str at ':' into str1 str2.

Write: str2.

Regards,

Satish

4 REPLIES 4
Read only

Former Member
0 Likes
675

Hi,

Do like this

Data: str type string.

Data: str1 type string,

str2 type string.

Str = 'EURO:HI ALL'.

Split str at ':' into str1 str2.

Write: str2.

Regards,

Satish

Read only

Former Member
0 Likes
674

Split the data at : into 2 variables using teh SPLIT command.

Write the 2nd variable.

Read only

Former Member
0 Likes
674

Use SPLIT command.

Split <string> at ':' into <string1> <string2>.

String2 will contain the data after ":".

Read only

Former Member
0 Likes
674

Hi,

data:

count type i

search for ':' string .

if sy-subrc eq 0.

count = sy-fdpos + 1.

endif.

char = string+5.

write : / char.

plzz reward if it is usefull...