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

diff line items in single field

Former Member
0 Likes
311

Hi All

I have a requirement,

I have a internal table with field called content(40) type c.

and the values in this field are as below

CONTENT

m/s jani sales

uniwalkar

abc ltd

ghj ltd...etc

but my requirement is this all content on different line

i want to collect in single line

CONTENT

i.e m/s jani sales, uniwalkar, abc ltd, ghj ltd...etc

How should i proceed.

Thanks & Regards

Lalith

Hi All

I have a requirement,

I have a internal table with field called content(40) type c.

and the values in this field are as below

CONTENT

m/s jani sales

uniwalkar

abc ltd

ghj ltd...etc

but my requirement is this all content on different line

i want to collect in single line

CONTENT

i.e m/s jani sales, uniwalkar, abc ltd, ghj ltd...etc

How should i proceed.

Thanks & Regards

Lalith

1 REPLY 1
Read only

Former Member
0 Likes
294

Hi,

Find below code..........

data : begin of itab occurs 0

contact(40) type c,

end of itab.

data: str1 type string.

Loop it itab.

concatenate str1 itab-contact to str1.

endloop.

I think it help u.......................