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

Data format

Former Member
0 Likes
805

Hi,

In my variable data is like this.

g_var = 546734364,6454847,23354645,9486454

i want to format like this.

g_var = 546734364,

6454847,

23354645,

9486454

Let me know if any one knows.

regards,

vijay

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
790

Hello,

Please clarify the question. Because in a variable I believe we cannot have data as asked by you. We can have the same in internal table.

Thanks,

Jayant

5 REPLIES 5
Read only

Former Member
0 Likes
790

take a text internal table: itab type soli_tab.

SPLIT g_var into table itab at ','.

Read only

Former Member
0 Likes
791

Hello,

Please clarify the question. Because in a variable I believe we cannot have data as asked by you. We can have the same in internal table.

Thanks,

Jayant

Read only

Former Member
0 Likes
790

>

> Let me know if any one knows.

@ Fun

I know a person who knows this but i dont know his name, will let you know if i know the name of the person who knows the answer.

Regards

Karthik D

Read only

Former Member
0 Likes
790

Hi Kartik,

If you use a variable then you can use only one value at a time.

for this type of requirement what you need to do is to create an internal table and populate it in your internal table.

Thats the only solution.

Thanks,

Chidananddd

Read only

0 Likes
790

>

> Hi Kartik,

> If you use a variable.....

> Thanks,

> Chidananddd

@ Chidanand

I hope my reply slightly confused you

See this question was not asked by me, you should have addressed Vijay.

Regards

Karthik D