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

Convert to text format

balbinosoares
Active Participant
0 Likes
1,043

Hi,

I need to convert a header line of a internal table into a text. I try simply to do this:

data: text(4096) type c.

data: ti_ekko standard table of ekko with header line.

read table ti_ekko index 1.

text = ti_ekko.

but the values of column type currency had not been converted correctly. I try to use too a FM SAP_CONVERT_TO_TEXT_FORMAT.

Thank's for some help...

Hi,

I need to convert a header line of a internal table into a text. I try simply to do this:

data: text(4096) type c.

data: ti_ekko standard table of ekko with header line.

read table ti_ekko index 1.

text = ti_ekko.

but the values of column type currency had not been converted correctly. I try to use too a FM SAP_CONVERT_TO_TEXT_FORMAT.

Thank's for some help...

4 REPLIES 4
Read only

Former Member
0 Likes
889

Hi,

Try this..

loop at itab.

concatinate itab-field1 concatinate itab-field2 concatinate itab-field3 concatinate itab-field4 concatinate itab-field5 into text.

endloop.

hope this will help.

Amit.

Read only

0 Likes
889

Hi,

I try to do this, but fields of currency type can not be concatenate. Only fields of type Char or numeric.

Thanks

Read only

Former Member
0 Likes
889

Hi,

try this function module

TRS_CONVERT_AMOUNT_TO_TEXT

please reward points if useful.

Read only

0 Likes
889

Hi nilanjana sinha

I can't find this FM. I using R/3 4.6C.

Thanks