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: 

Function to delete service notification task?

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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 ?

5 REPLIES 5

Former Member
0 Kudos

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 ?

0 Kudos

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

0 Kudos

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.

0 Kudos

Anand,

I still get the same error.

Gill

0 Kudos

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