‎2008 Apr 14 10:48 AM
Hi All,
Can anybody please tell me how to send notification (mail) after every successful data transfer using ALE ?
Thanks,
Sushmitha
Edited by: Sushmitha S on Apr 16, 2008 7:59 AM
‎2008 Apr 16 8:17 AM
Hi Sushmitha,
Before ending of the function module check for the success or not .If Success ,create an Enchancement Spot and use FUNCTION RS_SEND_MAIL_FOR_SPOOLLIST .
If UNIX is being used, you may send a report to any internet mail with the following:
REPORT ZSNDMAIL.
DATA: COMND (200) type c.
DATA: RESULT (200) type c occurs 100 with header line.
PARAMETERS: FILE (60) type c lower case default '/sapdata/sd_outbound/testmail.dat'.
PARAMETERS: SUBJECT (60) type c lower case.
PARAMETERS: EMAIL (60) type c lower case.
INITIALIZATION.
TRANSLATE EMAIL TO LOWER CASE.
START-OF-SELECTION.
TRANSLATE EMAIL TO LOWER CASE.
CONCATENATE 'cat' FILE '| elm -s "' subject '"' email into comnd seperated by space.
CALL 'SYSTEM' ID 'COMMAND' FIELD comnd 'TAB' FIELD UNIX_RESULTS-SYS.
Loop at Results.
write: /1 results.
endloop
end-of-selection.
I hope so it will resolve ur problem .Please let me know if u have any queries
Rgds
Sree m