Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8372

Re: Table for getting notification history

$
0
0

Hello JK S,

 

Your requirement is understood.See these bullet points as answers (and beyond) to your queries.

  • Your knowledge about the tables is very right.
  • There is no single table or view for this pupose.
  • There is a Logical Data Base namely Notifications which can be tried to develop a report through SQVI for at a glance report on Notification history
  • In standard we these reports in 3 parts with tcodes IW68/69, IW66/67 and IW64/65.
  • Inspite of the above LDB convenience I developed this at a glance report through ABAP using tables(views) specified by you, because we can not design the selection screen as we want when LDB is used in SQVI (or in Infosets).
  • You have asked what is the sequence of these tables. The answer is

          VIQMFE (For both Object part and Damage information)

          VIQMUR (For Cause)

          VIQMSM (For Tasks)

          VIQMMA (For Activites)

  • The above is because in a Notification all other catalogs are related to the line items in the first tab, namely Object part & Damage.
  • All these tables can be queried for the corresponding information by giving the Notification number as input.

 

  • Now coming  to your other query

I need to configure the notification in a way so that if the History data has not been maintained into notification, it should not be allowed to be closed.

       For this requirement, you need to use user-exit QQMA0014.

       Put the following code in the include ZXQQMU20.

IF i_viqmel-qmart = 'M2'  and i_viqmel-phase = '4'.


IF t_viqmfe[] IS INITIAL.
   MESSAGE: 'Please fill Object part & Damage in Catalogs&Codes tab' TYPE 'E' DISPLAY LIKE 'I'.

elseif t_viqmur[] IS INITIAL.
   MESSAGE: 'Please fill Cause in Catalogs&Codes tab' TYPE 'E' DISPLAY LIKE 'I'.

elseif t_viqmsm[] IS INITIAL.
   MESSAGE: 'Please fill Task in Catalogs&Codes tab' TYPE 'E' DISPLAY LIKE 'I'.

elseif t_viqmma[] IS INITIAL.
   MESSAGE: 'Please fill Activites in Catalogs&Codes tab' TYPE 'E' DISPLAY LIKE 'I'.
ENDIF.


ENDIF.


 

This code in full,  forces the user to fill some information in all the Catalogs and Codes tabs when he tries to complete the Notification. You can remove those corresponding set of 2lines in above code, if you do not want to force for any catalog tab like causes,tasks or activities. Hope you'll understand the code above which throws popup like this one when some tab is left unfilled.

Capture.JPG

Similar popup you'll get for other tabs if left blank.


Please note that I have assumed the Notification type as 'M2'. You'll replace  the same in the code with your type if it is different. I hope I've covered all your queries. If something is left you may revert.



Good luck

KJogeswaraRao


Viewing all articles
Browse latest Browse all 8372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>