10-05-2008 7:41 AM
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.
10-06-2008 6:15 AM
10-29-2008 8:59 AM
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!