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

Separate text contain / as separator

Former Member
0 Likes
726

Hi Experts,

I want to separate a sentance Shah & Shah Transporter/GJ.1.ER.1234/789 which contain Name,Car No and Lic. No .

Now i want this three in separate variables .

is there any FM which can help.

Thnx.

REGARDS,

Nishit Joshi

Edited by: NISHIT JOSHI on Apr 21, 2009 5:50 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
594

Hi,

Use SPLIT statemnt .

You can split the string at '/' into three parts and then store them in different variables.

Press f1 on split to get syntax details.

Hi Experts,

I want to separate a sentance Shah & Shah Transporter/GJ.1.ER.1234/789 which contain Name,Car No and Lic. No .

Now i want this three in separate variables .

is there any FM which can help.

Thnx.

REGARDS,

Nishit Joshi

Edited by: NISHIT JOSHI on Apr 21, 2009 5:50 PM

2 REPLIES 2
Read only

Former Member
0 Likes
595

Hi,

Use SPLIT statemnt .

You can split the string at '/' into three parts and then store them in different variables.

Press f1 on split to get syntax details.

Read only

Former Member
0 Likes
594

Hi,

Use this

data : w_str type string,

w_name(20),

w_car(10),

w_lic(10).

w_str = Shah & Shah Transporter/GJ.1.ER.1234/789

SPLIT w_str AT '/' INTO w_name,w_car,w_lic.

Regards

Krishna