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

Long text

Former Member
0 Likes
2,396

Can someone please explain how to add activity long text in the notification?

Currently i am using BAPI_ALM_NOTIFY_DATA_ADD

BAPI_ALM_NOTIFY_SAVE

BAPI_TRANSACTION_COMMIT.

It is adding a activity but long text is not getting updated.

thanks and regards,

Krish...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,585

Hi Krish,

As suggested by Max as well.. You can use NOTFULLTXT (Present under TABLES)

Declare the internal table of type BAPI2080_NOTFULLTXTI

Fill the values for

OBJTYPE

OBJKEY

FORMAT_COL

TEXT_LINE 132 Chars Only "

and

Append the lines to this internal table then pass it in BAPI BAPI_ALM_NOTIF_DATA_ADD

But Take care as same as SAVE_TEXT ...

Here TEXT_LINE is of length 132 Char...

So if your Long text is having more length then split it in 132 chars and then append one by one to internal table and then pass it to BAPI as internal tabl...

Hope it will solve your problem..

Thanks & Regards

ilesh 24x7

ilesh Nandaniya

6 REPLIES 6
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,585

Hello,

To save the long text you have to use the SAVE_TEXT FM. With the following info:


DATA: ST_THEAD TYPE THEAD.

ST_HEAD-TDOBJECT = 'QMMA'.
ST_HEAD-TDNAME = Your Notification Number.
ST_HEAD-TDID = 'LTXT'.
ST_HEAD-TDSPRAS = SY-LANGU.

BR,

Suhas

Read only

Former Member
0 Likes
1,585

Hi

U need to transfer the text to parameter NOTFULLTXT

Max

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,585

Hello Max,

I thought NOTLONGTXT is for Notification Long Text only & activity long text cannot be added with this. Stupid me

Just to add:

DATA:
IT_NOTIFLTXT TYPE STANDARD TABLE OF BAPI2080_NOTFULLTXTE,
WA_NOTIFLTXT TYPE BAPI2080_NOTFULLTXTE.

WA_NOTIFLTXT-OBJTYPE = 'QMMA'.
WA_NOTIFLTXT-OBJKEY = '00000001'.
WA_NOTIFLTXT-TEXT_LINE = 'Your Long Text'.

APPEND WA_NOTIFLTXT TO IT_NOTIFLTXT.

Cheers,

Suhas

Read only

Former Member
0 Likes
1,585

I am using one function module it is designed for client specific in that those function modules are included. This long text filed assigned to one function module in that function module Object type, object key, format col and text line fields are there I filled every thing even though it won't fill the activity long text.hope that the problem is clearly understood.

Read only

Former Member
0 Likes
1,586

Hi Krish,

As suggested by Max as well.. You can use NOTFULLTXT (Present under TABLES)

Declare the internal table of type BAPI2080_NOTFULLTXTI

Fill the values for

OBJTYPE

OBJKEY

FORMAT_COL

TEXT_LINE 132 Chars Only "

and

Append the lines to this internal table then pass it in BAPI BAPI_ALM_NOTIF_DATA_ADD

But Take care as same as SAVE_TEXT ...

Here TEXT_LINE is of length 132 Char...

So if your Long text is having more length then split it in 132 chars and then append one by one to internal table and then pass it to BAPI as internal tabl...

Hope it will solve your problem..

Thanks & Regards

ilesh 24x7

ilesh Nandaniya

Read only

Former Member
0 Likes
1,585

Dear ilesh Nandaniya,

Thanks for answer it is really helped me and I resolved the problem your effort is really appreciated.

Thanks and regards,

Krish.....