‎2009 Jan 22 3:12 AM
Hello everyone,
I'm facing a problem in creating service notification using BAPI_SERVNOT_CREATE. It's always saying the same error message, 'Notification type M1 is not defined'. I've been looking for the example code in Google but never got any luck. Does anyone have any example for implementing this function module? Your help will be very much appreciated. Thanks a lot.
-Vera-
‎2009 Jan 22 3:25 AM
‎2009 Jan 22 5:39 AM
I have read the link you gave me but unfrotunately we don't have BAPI_ALM_NOTIF_CREATE function module. FYI we are using SAP/R3 4.6D Thanks
‎2009 Jan 22 5:58 AM
Hi,
U can do recording and create an FM and use it.
Let me know further.
Cheers,
Parth Parikh
‎2009 Jan 22 6:44 AM
‎2009 Jan 22 6:14 AM
‎2009 Jan 22 6:46 AM
‎2009 Jan 22 7:01 AM
Hi,
After the call to function 'BAPI_SERVNOT_CREATE' read the contents of the table RETURN. If it does not have a entry with key = E then call the subsequent BAPI's.
Use the code below after the call to function 'BAPI_SERVNOT_CREATE'.
READ TABLE return WITH KEY type = 'E'.
IF sy-subrc EQ 0.
*Write the error
ELSE.
CALL FUNCTION 'BAPI_SERVNOT_SAVE'
READ TABLE return WITH KEY type = 'E'.
IF sy-subrc EQ 0.
*Write the error
ELSE.
CALL 'BAPI_TRANSACTION_COMMIT'
ENDIF.
ENDIF.
Also check the below Thread
Hope it helps.
Regards,
Anki Reddy
‎2009 Jan 22 7:56 AM
Hi Anki,
I have never even succeeded creating the notification using BAPI_SERVNOT_CREATE. It always gives error in the RETURN table saying 'the notification type XXX is not defined'.
Thanks.
-Vera-
‎2009 Jan 23 6:41 AM
Helo everyone,
I think I found the function module I've been looking for. It's ALM_PM_MAINTNOT_CREATE. It's not BAPI but it works fine on my system. Thanks for all your responds..
-Vera-