cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to see the long text in the long text field in SAP Notification

0 Kudos

Hi,

We have one requirement in Fiori application where if we save the notification form the front end it should save in the Long text of SAP notification. Long text value is getting saved in the Created text field but not in the actual long text.

In the high lighted blue if we click we are not able to see the data which is been saved. Can you please guide or provide some exapmples to see the data in Long text field in the Notification. Currently we have written the below code.

Code we wrote to save the Notification.

CALL FUNCTION 'CONVERT_STRING_TO_TABLE'
EXPORTING
i_string = wa_notif_header-text_n
i_tabline_length = 132
TABLES
et_table = it_text.


* Text Header
lv_thead-tdid = 'LTXT'.
lv_thead-tdobject = 'QMEL'.
lv_thead-tdspras = wa_notif_header-kzmla. "sy-langu.
lv_thead-tdname = wa_notif_header-qmnum.

* Get Old Text
CLEAR it_tline.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = lv_thead-tdid
language = lv_thead-tdspras "sy-langu
name = lv_thead-tdname
object = lv_thead-tdobject
TABLES
lines = it_tline
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.

LOOP AT it_text INTO wa_text.

wa_tline-tdformat = '>X'.
wa_tline-tdline = wa_text.
CONCATENATE '*' wa_tline-tdline INTO wa_tline-tdline SEPARATED BY space.
APPEND wa_tline TO it_tline.
CLEAR wa_tline.
ENDLOOP.

* Save Text
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
header = lv_thead
insert = ''
savemode_direct = 'X'
TABLES
lines = it_tline
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.

Please suggest some ideas here. Thanks in advance.

Accepted Solutions (0)

Answers (0)