Skip to Content
author's profile photo Former Member
Former Member

Send mail after timesheet rejection CATS

Hi all,

I have an issue with the rejection of timesheet on CATS_APPR_LITE transaction.

When the timesheet approver reject the time record the notification is send to sap office, but I need to send out an email.

The workflow isn't used for this issue.

Thanks in andvance.

Salvatore

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Feb 09, 2010 at 11:10 PM

    Hi,

    do your users have email address maintained? Have you also tried to set E-mail as preferred communication method in SU3? I'm not sure if this helps but you can try.

    Cheers

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Experts,

      Even i have the same problem we have maintained the user mail id in SU3.

      And in PA30 also the personnel number comunication is maintained as 0010( E- Mail). the mail id is our project email id, SMTP in SCOT is configured for our domain.

      When we try to send a test mail from SBWP by clicking New message, we are green..

      In our sandbox system we don't have the SMTP configuration, so in PA30 we have maintained 0001-system user name (SY-UNAME) in the communication for the personnel number.

      we had a round of test in sandbox and the rejected timesheet has come in SBWP inbox. we have tested for more than 15 times.

      but strange thing happens is, this is not happening in our DEV system

      Scenario1: Set communication as 0001-system user name (SY-UNAME) for the personnel number.

      Result: The mial is not received in the SAP inbox.

      Scenario2: Set communication as 0010 - E-mail for the personnel number.

      Result: The mial is not received in External inbox.

      there is no trace of mail sent in SCOT or SOST.

      Kindly advice in this, because of this we are missing our schedule.

      thanks in advance.

      regards,

      Venkat

  • author's profile photo Former Member
    Former Member
    Posted on Mar 02, 2010 at 03:39 PM

    Has anyone come up with a solution to this problem?

    We are currently implementing rejection reasons for time approval and would like the generated notification to be sent to the users lotus notes email account. Currently the notification goes to the SAP Inbox (SBWP). We are considering using So12 to setting autoforwarding active, but the problem with this is that we would only want the rejection notifications to go to Lotus.

    Additionally we are looking at S016, which is a global forwarding and has the same concerns as SO12.

    Has anyone used a BADI or user exit to solve this problem?

    Regards

    Joan Gourlie

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      We had similar requirements in our project to send email to outlook email ID of employee (maintained in infotype PA0105/sub type 0010).

      After debugging we found out that SAP calls a FM CATS_SEND_MAIL to send notifications during rejection. We placed in implicit enhancement point at start of this FM and wrote custom code to send the email.

      Below sample code may help you as well to start with code in implicit enhancement.

      CONSTANTS

      : lc_id type char1 value 'I',
      lc_key type char3 value '004'.

      DATA: lt_prg_txt TYPE STANDARD TABLE OF TEXTPOOL,
      ls_text type textpool.
      " Text element Text-004 of report SAPLCAPP is set as Header for

      " CATS Rejection email. So read the text-004 from SAPLCAPP

      READ TEXTPOOL 'SAPLCAPP' into lt_prg_txt.

      READ TABLE lt_prg_txt WITH KEY ID = lc_id
      KEY = lc_key INTO ls_text.

      IF header = ls_text-entry.
      *--Call your custom FM here and in custom FM write code to send email using CL_BCS

      * If we need not send email to UWL (Standard SAP functionality). write an EXIT statement after call

      * to your custom FM

      ENDIF

      .

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.