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

Align Text in Single Row

Former Member
0 Likes
677

Hi All,

I am getting text in ITAB using READ_TEXT FM in the below format.

Table -  lt_lines[]

LINE      TDFORMAT     TDLINE

1               *                         Hello

2               *                         World

I want to pass the text into an variable like below and finally pass it to final display for ALV.

Hello World.

Please suggest.

Thanks,

VB

Hi All,

I am getting text in ITAB using READ_TEXT FM in the below format.

Table -  lt_lines[]

LINE      TDFORMAT     TDLINE

1               *                         Hello

2               *                         World

I want to pass the text into an variable like below and finally pass it to final display for ALV.

Hello World.

Please suggest.

Thanks,

VB

3 REPLIES 3
Read only

yogendra_bhaskar
Contributor
0 Likes
588

Hi vikas ,

U can simply use Concatenate to concatenate the two text and pass it into a variable.

whats the big deal here ?

regards ,

Yogendra Bhaskar

Read only

Former Member
0 Likes
588

HI,

data : char1(10) type c value 'Hello'.
data : char2(10) type c value 'World'.

data : char(25) type c.

concatenate char1 char2 into char separated by space.

Pass Veriable 'CHAR' to ALV through internal table you pass to alv.

You will get the desired output.

Regards,

Ravi Singh

Read only

Clemenss
Active Contributor
0 Likes
588

Hi vikas,

TDformat * means new paragraph (including line break). If you know, where a new line is waned and where not, you can use concatenate as suggested.

Regards,

Clemens