Skip to Content
0
Former Member
Mar 11, 2009 at 01:15 PM

save string with save_text FM

1077 Views

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