Application Development 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: 

Creating the Service Notification for the Object of the Service order

Former Member
0 Kudos

Dear ABAPers,

I want to create the Service notification for the Service order.My Exact Requirement is i have to create the Service Notification for the object of the Service order.I have tried using 'BAPI_ALM_NOTIF_CREATE'.I can able to create the Service notification for the Service order.But i am not able to create the Service Notification Specifically for the Object of the Service order.

When i am creating the Notification using BAPI i am not Passing Following Fields REFOBJECTTYPE ,REFOBJECTKEY ,REFRELTYPE.Can anyone tell me the Importance of these Fields.

Thanks & Regards,

Ashok.

2 REPLIES 2

Former Member
0 Kudos

Solved it on my own.

Thanks & Regards,

Ashok.

0 Kudos

How did you solved it, because when i fill in the orderid I'm not able to create the service notification:

See here my code:

ls_notifheader-funct_loc = ls_order_header-funct_loc.

ls_notifheader-short_text = ls_order_header-short_text.

ls_notifheader-pm_wkctr = ls_order_header-mn_wk_ctr.

ls_notifheader-planplant = ls_order_header-planplant.

ls_notifheader-maintplant = ls_order_header-maintplant.

LOOP AT lt_partner_read INTO ls_partner_read.

ls_partner-partn_role = ls_partner_read-partn_role_old.

ls_partner-partner = ls_partner_read-partner_old.

APPEND ls_partner TO lt_partners.

ENDLOOP.

CALL FUNCTION 'BAPI_ALM_NOTIF_CREATE'

EXPORTING

  • EXTERNAL_NUMBER =

notif_type = lv_qmart

notifheader = ls_notifheader

  • TASK_DETERMINATION = ' '

  • SENDER =

ORDERID = gw_fields-aufnr

IMPORTING

notifheader_export = ls_notifheader_ex

TABLES

  • NOTITEM =

  • NOTIFCAUS =

  • NOTIFACTV =

  • NOTIFTASK =

notifpartnr = lt_partners

  • LONGTEXTS =

  • KEY_RELATIONSHIPS =

return = lt_return

.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'

IMPORTING

return = ls_return.

thanks for your reply!