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

Split statement separating by comma

Former Member
0 Likes
1,060

I am my data in tdines..........

i am having two fields data in single line separated by comma.

Now i moved tdlines data to V1.

i have to use split statemnt by using comma so that it should get in to V2 and V3

EX: 1234a,65432a

this is tdlines.

i have moved that to V1.

so V1 = 1234a,65432a

I wanted to get

V2 = 1234a

V3 = 65432a

Please tell the syntax

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,012

Split V1 at ',' into v2 v3.

Regards

Vinod

7 REPLIES 7
Read only

Former Member
0 Likes
1,012
split text1 at var into table it_text. " chops the string at value in "var"(put ',' in this var) and puts sequentially in table it_text(field shud b char)

or

split text1 at var into text1 text2 text2.   " into individual variables

regards,

Sumit

Edited by: Sumit Nene on Mar 31, 2010 6:57 AM

Read only

Former Member
0 Likes
1,012

Hello


split V1 at ',' into V2 V3.

Read only

Former Member
0 Likes
1,013

Split V1 at ',' into v2 v3.

Regards

Vinod

Read only

Former Member
0 Likes
1,012

Use like this

SPLIT V1 AT ',' INTO V2 V3.

Read only

praveen_hannu
Contributor
0 Likes
1,012

Hi

Use Split Command

 split v1 at ',' into v2 v3. 

Read only

Former Member
0 Likes
1,012

This is the syntax.

SPLIT dobj AT sep INTO

{ {result1 result2 ...}

So you can code like this .

c_comma = ','.

SPLIT var AT c_comma INTO: v1 V2.

Read only

Sathya_Gunasekaran
Contributor
0 Likes
1,012

Split V1 at ',' into V2 V3.

Edited by: Sathya Gunasekaran on Mar 31, 2010 8:42 AM