‎2009 Dec 10 10:29 AM
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...
‎2009 Dec 10 11:12 AM
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
‎2009 Dec 10 10:38 AM
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
‎2009 Dec 10 10:40 AM
‎2009 Dec 10 10:53 AM
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
‎2009 Dec 10 10:57 AM
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.
‎2009 Dec 10 11:12 AM
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
‎2009 Dec 10 12:47 PM
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.....