‎2009 Sep 30 10:34 AM
Hi,
Can anyone tell me BAPI for getting list of notifications as per STATUS?
‎2009 Sep 30 11:06 AM
Hi,
There is no such option available.
You need to get the OBJNR(object numbers) for the notifications and then pass the same to the FM: STATUS_READ
OR:
You can find the status from table JEST or JSTO and take all the OBJNR for the required status and then go the Notification table (QMEL or any table) and get the notifications required.
Hope this helps
Regards
Shiva
‎2009 Sep 30 11:28 AM
Hi,
You can use the tables for this purpose.
1.Get the object no of the notification and notification type from QMEL table based on the Notifcation no.
2. Get the Status profile of the Notifcation from TQ80 based on the Notifcation type (QMART).
3. Get all the user statuse no.s of this profile from TJ30T table and get the status no.s of the system statuses from TJ02T table.
4. Read the status table to get the required status no. of the the status (either user or system status).
5. Based on the object no. in step 1, status no obtained in step 4, hit the table JEST to know whether that particular status is set on the notification or not. you can also use INACT flag to know whether the status is set on the notification or not.
There is no BAPI for doing this. It is suggested to use the above logic, which will increase the performance of the program.
Thanks & Regards
Navy.