Application Development and Automation 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: 
Read only

Function for Notification Data

Former Member
0 Likes
1,789

Hello all,

I need to write a report that looks similar to SHN5 but with more fields,

for that I need to get all data of those notifications by Notification ID (QMEL-QMNUM)

is there any standart function (or BAPI) that return all (or most) data for this qmnum ?

Best Regards,

Amit Berku

11 REPLIES 11
Read only

jogeswararao_kavala
Active Contributor
1,608

These are the FMs in line of your requirement

BAPI_ALM_NOTIF_LIST_EQUI

BAPI_ALM_NOTIF_LIST_FUNCLOC

BAPI_ALM_NOTIF_LIST_PLANGROUP 

BAPI_ALM_NOTIF_LIST_SORTFIELD

BAPI_ALM_NOTIF_LIST_PARTNER

Regards

KJogeswaraRao

Read only

0 Likes
1,608

Hello Jogeswara Rao Kavala,

Thank you for your quick answer but all function that you mentioned

are for equipment or PM Notification and this is not what I need.

I need functions for QM Notification that are opened in front of Process orders (PP),

sorry I didn't mention it in my original question.

I need data like event date start and end, work center, category, Code group, Materials, Process orders, notification dates and time...

Regards,

Amit Berku

Read only

0 Likes
1,608

Look at this: BAPI_QUALNOT_GETDETAIL

Also

BAPI_ALM_NOTIF_GET_DATA

BAPI_QNOTIFICAT_GETKEYFIGURES

BAPI_QNOTIFICAT_GETLISTFORCUST

Read only

0 Likes
1,608

Hi,

I tried the BAPI_QUALNOT_GETDETAIL and got the following message :

Notification type SN not defined

and no data with it (entered the notif number with leading zero's),

do you know what can I do with such message ?

Regards,

Amit Berku

Read only

0 Likes
1,608

Hello Amit,

I understood your issue. Your Notificatiob (SN type) is a service notification for which fm BAPI_QUALNOT_GETDETAIL will not work. You need fm BAPI_ALM_NOTIF_GET_DETAIL. This will work for you.

Regards

KJogeswaraRao

Read only

0 Likes
1,608

Hi,

With this function I get the following message :

Transaction  not allowed for notification type SN

What else can I try or do ?

And, again, thank you for your help !!!

Regards,

Amit Berku

Read only

jogeswararao_kavala
Active Contributor
0 Likes
1,608

You can not do anything further. You need to investigate and rectify your local issue.I have tested. BAPI_ALM_NOTIF_GET_DETAIL working well for both Maintenance and Service Notifications. You need to input only Notification number. Why transaction message?

Read only

0 Likes
1,608

Hi,

I don't have any idea why it's a transaction message, I tried to look into some of the functions you mentioned before and tried to execute  IQS4_GET_NOTIFICATION and got some data, I don't know yet if it's full data that I requested to get (I have to do meeting with my colleague).

I will look into the customization of this kind of notification to look if I find any thing wrong there.

Regards,

Amit Berku

Read only

0 Likes
1,608

Exactly.

You should look into what the type of Notification this SN is.

Read only

0 Likes
1,608

Hi,

It's written there that SN is a Shift Note with type 05 (General Notification), catalog profile is 000000001 (General Catalog Profile), No partners are configured for this type, Priority type : G0.

That's all, hope that this is what you ment

Regards,

Amit Berku

Read only

0 Likes
1,608

Yes, Amit,

Ours being ECC6 no EHPs I can not further throw light, because it seems a different Notification type has been provided for Shift Note, if it were true you need to search for suitable FM.