04-26-2005 10:25 AM
Hello,
I'm trying to delete a service notification task in my program and I'm using the FM ALM_PM_NOTIFICATION_DELETE. I enter the following fields:
notification number
notiftask-refobjectkey
notiftask-task_key
notiftask-task_sort_no
notiftask-task_codegrp
notiftask-task_code
However the return table comes back with the error 'Notification type ZW is not defined'. Can anyone help? The notification type is defined as the notification exists, does this error mean I can't delete the task?
Thanks,
Gill
04-26-2005 10:34 AM
Hello Gill,
I don't know which version you're on, but did you try out BAPI_ALM_NOTIF_DATA_DELETE?
Regards,
Anand Mandalika.
P.S. Your last name reminds me of the famous novel by Agatha Christie "The Murder of Roger Ackroyd" :-). Have you read that one , by the way ?
04-26-2005 10:34 AM
Hello Gill,
I don't know which version you're on, but did you try out BAPI_ALM_NOTIF_DATA_DELETE?
Regards,
Anand Mandalika.
P.S. Your last name reminds me of the famous novel by Agatha Christie "The Murder of Roger Ackroyd" :-). Have you read that one , by the way ?
04-26-2005 10:37 AM
Anand,
I'm on 4.6c so the BAPI you suggest doesn't exist in my system, thanks anyway.
Yes I have read the book, it's an old Yorkshire name.
Gill
04-26-2005 10:42 AM
Hi Jill,
One thing more, the documentation for the functon module says of the parameter NOTIFTASK -
<i>Table which contains the service notification's tasks which should be deleted. Only the TASK_KEY field must be filled.</i>
Why don't you try out that?
Regards,
Anand Mandalika.
04-26-2005 10:46 AM
04-26-2005 10:57 AM
Hello,
I've found the problem, the function I was using checks to make sure the notification type (in this instance ZW) is assigned to plant maintenance. Unfortunately ZW is a service notification so the FM will not work.
I think I'll have to copy it and modify it slightly. Thanks for your help.
Gill