‎2011 Feb 11 4:10 PM
Hi,
There is requirement to update the long text in the task of a notification.
I tried using SAVE_TEXT followed by BAPI_TRANSACTION_COMMIT.
Also I tried using BAPI_ALM_NOTIF_DATA_ADD followed by BAPI_ALM_NOTIF_SAVE and commit.
But the task long text does not get updated.
Please suggest.
Thanks in advance.
Deepti
‎2011 Feb 11 5:57 PM
Is it a custom program or any user exit ??? Please be more clear.
‎2011 Feb 14 4:54 AM
‎2011 Feb 14 10:30 PM
TRY THIS BAPI:
*... set up a long text entry
lw_text-objtype = 'QMSM'.
lw_text-objkey = LW_QMSM-MANUM.
lw_text-format_col = '*'.
lw_text-text_line = lv_text_string.
APPEND LW_TEXT TO LT_BAPI_LONGTEXTS.
CALL THE BAPI
CALL FUNCTION 'BAPI_SERVNOT_ADD_DATA'
EXPORTING
number = LW_QMSM-QMUNM
TABLES
notfulltxt = lt_bapi_longtexts
return = lt_return.
AND FOLLOW UP BY CALLING
BAPI_SERVNOT_SAVE
AND THEN
BAPI_TRANSACTION_COMMIT
‎2011 Feb 14 6:18 AM
‎2011 Feb 15 3:48 AM
Hi,
All long texts have a header and text lines. The header contains the text object, text id and a couple of other values(structure THEAD). On this structure there is also a field for the number lines in the line table.
May be your text header area is not filling properly but you are trying to add lines to it. For your [referrence|;.
Hope it helps you.
Regards,
<DS>