Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALE - Notification

Former Member
0 Likes
400

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

1 REPLY 1
Read only

Former Member
0 Likes
336

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