Skip to Content
0
Former Member
Dec 09, 2009 at 02:59 PM

How to create a LONG TEXT object in BAPI_ALM_NOTIF_CREATE

1014 Views

Dear experts,

Would you please give me a hand how to create a LONG TEXT object when creating a new Notification using BAPI_ALM_NOTIF_CREATE.

The snapit of my code is below. The Notification is created but without a long text.

THANK YOU!!

___________________________________________________________________________

Data:

lv_it_longText type STANDARD TABLE OF BAPI2080_NOTFULLTXTI,

lv_st_longText like LINE OF lv_it_longText,

lv_st_longText-OBJTYPE = 'QME'.

lv_st_longText-TEXT_LINE = DESCRIPTIONLONG.

CALL FUNCTION 'BAPI_ALM_NOTIF_CREATE'

EXPORTING

  • EXTERNAL_NUMBER =

notif_type = 'M1'

notifheader = lv_header

  • TASK_DETERMINATION = ' '

  • SENDER =

  • ORDERID =

IMPORTING

NOTIFHEADER_EXPORT = lv_header_import

TABLES

*NOTITEM = lv_it_item

  • NOTIFCAUS =

  • NOTIFACTV =

  • NOTIFTASK =

  • NOTIFPARTNR =

LONGTEXTS = lv_it_longText

  • KEY_RELATIONSHIPS =

RETURN = lv_it_return.