Application Development 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: 

save string with save_text FM

Former Member
0 Kudos

Hi all,

I use to save long text this FM call:

CALL FUNCTION 'SAVE_TEXT'
  EXPORTING
    header = header
  TABLES
    lines  = text_table.

where text_table:

DATA text_table TYPE STANDARD TABLE OF tline.

where tline is char 132:

TDFORMAT	TDFORMAT	CHAR	2	0	Tag column
TDLINE	        TDLINE	       CHAR	132	0	Text Line

If I have a string longer then 132 I split the string in substring long 132 (counting each characters) and reassembling when reloading with read_text, and I ask myself ... this is the only way possible or does exist a more simple way?

thanks

Gabriele

Edited by: Gabriele Montori on Mar 11, 2009 2:15 PM

4 REPLIES 4

Former Member
0 Kudos

I am afraid that there isn't any other way.

the text is split into substrings of 132 length and appended, we have no other way of passing long texts longer than 132 chars

кu03B1ятu03B9к

Former Member
0 Kudos

Hello

For split text use FM TR_SPLIT_TEXT

former_member217544
Active Contributor
0 Kudos

Hi,

There is no option other than splitting the string into 132 chanracters. However, rather than splitting the string by counting, you can use the function module RKD_WORD_WRAP.

Hope this will be helpful.

Regards,

Swarna Munukoti.

Former Member
0 Kudos

thanks, even if it's incredible that RKD_WORD_WRAP FM take only char and not string as input... opening a new post on it