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

Need to Create the Notification by a Function Module.

Former Member
0 Likes
447

Hi experts ,

Iam Trying to create a Notification using the BAPI FM "ALM_PM_NOTIFICATIO_CREATE".

Below are the Importing parameters to be Passed on to the bapi.

BAPI2080_NOTHDRE-SHORT_TEXT

BAPI2080_NOTHDRE-FUNCT_LOC

These 2 fields need to be Passed to the NOTIFHEADER.

BAPI2080_NOTFULLTXTE-TEXT_LINE

need to be Passed to LONGTEXTS

BAPI2080_NOTITEME-DESCRIPT

need to be Passed to NOTITEM

and I want notification Number to be Exporetd to WA_Num.

I was Strucked up with an Runtime Error .

Can Someone Guide me how to pass the Above PArametrs and creat the Notification.

*"----


""Local Interface:

*" IMPORTING

*" VALUE(NOTI_TYPE) TYPE BAPI2080-NOTIF_TYPE OPTIONAL

*" VALUE(NOTI_HEADER) TYPE BAPI2080_NOTHDRE-SHORT_TEXT OPTIONAL

*" VALUE(NOTI_FUNC) TYPE BAPI2080_NOTHDRE-FUNCT_LOC OPTIONAL

*" VALUE(NOTI_DESC) TYPE BAPI2080_NOTFULLTXTE-TEXT_LINE OPTIONAL

*" VALUE(NOTI_ITEM) TYPE BAPI2080_NOTITEME-DESCRIPT OPTIONAL

*" EXPORTING

*" VALUE(NUMBER) LIKE BAPI2080_NOTHDRE-NOTIF_NO

*"----


data: wa_num TYPE BAPI2080_NOTHDRE-NOTIF_NO.

CALL FUNCTION 'ALM_PM_NOTIFICATION_CREATE'

EXPORTING

  • EXTERNAL_NUMBER =

NOTIF_TYPE = 'A7'

NOTIFHEADER =

  • SENDER =

  • ORDERID =

IMPORTING

NOTIFHEADER_EXPORT = wa_num

TABLES

NOTITEM =

  • NOTIFCAUS =

  • NOTIFACTV =

  • NOTIFTASK =

  • NOTIFPARTNR =

LONGTEXTS =

  • KEY_RELATIONSHIPS =

  • RETURN =

Regards

Prem.r

1 REPLY 1
Read only

former_member217544
Active Contributor
0 Likes
345

Hi Prem,

What error you are getting?

And check this link if it helps you:

Regards,

Swarna Munukoti