on 10-21-2014 6:12 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.