SAP Inbox - Forward documents
We're executing CATS WorkFlow and everything works ok. This WF sends a message to the user Inbox when the manager rejects the Time Sheet.
We need to forward all therejected messages to the user external email, and this must be done for all the CATS users.
Then... SO16 > Mail sy. grp > and here I click over "Send to home addresses of users". Here I understand that all the documents that will arrive to the SAP user Inbox will be forwarded to the user communication mail (SU01 > Address > E-Mail), right?
If it works fine, I need another thing... I need that just the CATS users have this functionality working; I mean, I need to forward only the CATS messages. Is it possible? Maybe some kind of filter by user in SCOT?
Create a enhancement spot in the below function module and write the logic to send mail using SO_NEW_DOCUMENT_SEND_API1 at the beginning of the FM.
I have done this and working absolutely fine for me.
Check the entries in Table parameters I_CATSDBCOMM of this FM.
Check if time entries for any record is '40' and if true send a rejection notification.