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.