Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

PM notification Task long text

Former Member
0 Likes
2,370

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

5 REPLIES 5
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,296

Is it a custom program or any user exit ??? Please be more clear.

Read only

0 Likes
1,296

It is in a custom program.

Regards

Deepti

Read only

0 Likes
1,296

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

Read only

former_member404244
Active Contributor
0 Likes
1,296

Hi,

Check this FM (LANGTEXT_ONLY)..

Regards,

Nagaraj

Read only

Former Member
0 Likes
1,296

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>