cancel
Showing results for 
Search instead for 
Did you mean: 

Text issue

jakob_steen-petersen
Active Participant
0 Kudos

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?




 


Accepted Solutions (1)

Accepted Solutions (1)

jakob_steen-petersen
Active Participant
0 Kudos

Hi

Sorry for not responding... The problem solved, but to be honest i don't know how...

I went home and when i got back monday morning there was no problems?! So some kind of browser issue i think...

Answers (2)

Answers (2)

former_member211591
Contributor
0 Kudos

Hi Jakob...

this can also be an issue with the browser you are using. did you already try an different browser?

BR

iSD

Former Member
0 Kudos

Hi,

Try to sort LT_TLINE and check.

Thanks

KH