Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9052

Re: Problem while Displaying Text of SO10 in Formatted Text View

$
0
0

Hi,

 

you are supposed to call the FM in WDDOINIT method of the view.

steps to be followed.

1) Call the FM - Read_text

pass the parameters:client = sy-mandt

                               id      = 'ST'

                               language = sy-langu

                                name = SO10 text in quotes

                                object = 'TEXT'

                               archive_handle = 0

                               local_cat = '  '

 

                               tables = lt_lines ( where lt_lines should be type table of tline)

 

 

 

2)   LOOP AT LT_LINES INTO WA_LINES.

     LV_NOTETMP1 = WA_LINES-TDLINE.
     CONCATENATE LV_NOTE1 WA_LINES-TDLINE CL_ABAP_CHAR_UTILITIES=>NEWLINE INTO LV_NOTE1 SEPARATEDBY SPACE.

   ENDLOOP.

3)  *   set single attribute
   LO_EL_CONTEXT->SET_ATTRIBUTE(
     NAME =  `NOTE1`
     VALUE = LV_NOTE1 ).

 

 

 

try this out.

 

 



Viewing all articles
Browse latest Browse all 9052

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>