cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to send mail from CATC transaction to external email adrress?

Former Member
0 Kudos

Hi,

We run transaction CATC Time leveling to see who is missing times and tick the "Send mail" button at the bottom of the report to send notifications to the user's SAP Inbox in SBWP. But users always dont look at their Inbox in SBWP. So we need to send those mail to their lotus mail id which are maintained in SU01 communication tab.

We have already maintained infotype 0105 subtype 0001. But it is not working.

Any help could be greatly appreciated.

Thanks,

Piyali.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member

Just had similar problem, I created implicit enhancement in the function CATS_SEND_MAIL (called by more cats transactions!!).

Basically, the code is the same as FORM SEND_MAIL, replace following code

  MOVE AENAM TO RECEIVERS-RECNAM.

  MOVE 'B' TO RECEIVERS-RECESC.

  APPEND RECEIVERS.

with

  MOVE 'me@example.com' TO RECEIVERS-RECEXTNAM.

  MOVE 'U' TO RECEIVERS-RECESC.

  APPEND RECEIVERS.

Above, the mail is hardcoded, to get it from the infotype:

  data    ls_0105          TYPE p0105.

  lo_infotype_0105 =  cl_hrsen_read_infotype_fmri=>get_instance( ).

  lo_infotype_0105->read_single(

    EXPORTING

*            tclas        = 'A'

      pernr        = iv_cpernr

      infty        = '0105' "communication

      subty        = '0010' "e-mail

      objps        = space

      begda        = sy-datum

      endda        = sy-datum

      no_auth_check = 'X'

    IMPORTING

      pnnnn        = ls_0105

    EXCEPTIONS

      e_assertion  = 1

      OTHERS        = 2

        ).

ls_0105-usrid_long  -> e-mail adress