Hi
I have this issue with a SAP script text in Webdynpro. I have a TextView on screen:
First of all i convert the text from TextView to SAP Script format by this
DATA: lt_tline TYPE tline_t
,stream TYPE STANDARD TABLE OF text1024.
SPLIT text_stream AT cl_abap_char_utilities=>cr_lf INTO TABLE stream.
CALL FUNCTION 'CONVERT_STREAM_TO_ITF_TEXT'
EXPORTING
language = sy-langu
TABLES
text_stream = stream
itf_text = lt_tline.
....
CALL FUNCTION 'SAVE_TEXT'
EXPORTING.....
text_stream is the content from the screen...
When i need to read the text back, i use this
CALL FUNCTION 'TEXT_READ'
EXPORTING...
....
data stream_part type standard table of text1024.
call function 'CONVERT_ITF_TO_STREAM_TEXT'
tables
itf_text = lt_tline
text_stream = stream_part.
concatenate lines of stream_part into text_stream.
....
But the problem is that somehow i get an xtra Linefeed into the TextView
Any good ideas?