cancel
Showing results for 
Search instead for 
Did you mean: 

How to send email notification with attachment in SAP HCI-DS/CPI-DS

0 Kudos

Hi All,

We have a requirement to send a file as an attachment through email in SAP CPI-DS.

Below are the details for this requirement task:

Source: IBP table

Target: File

Output target file i have to attach and send a email notification to planners.

Could you please help me with any workaround scenarios for this requirement

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member1270519
Participant
0 Kudos

Hi Mahesh,

Please note below steps to achieve this requirement

1. Create one task to load data from IBP to FF

2. Add above Data Flow in a Process

3. After Data Flow, add a script in Process

4. Inside the script, you can call OS level applications on the Agent server by using function 'exec'

5. Use this function to call a VB Script on the Agent server

6. Inside the VB Script, you can write code to pick up the generated flat file and send emails with attachments

(Of course, you need SMTP server details and access to send emails)

Regards,

Sagar Dixit

0 Kudos

Hi Sagar,

Thank you..i will try this one...if you could provide VB script that helps a lot.

JiePeng
Explorer
0 Kudos

Hello Sagar,

you need SMTP server details and access to send emails

--can you share more detail how to check SMTP in IBP? we face issue to send email notification.Error message

"Message cannot be transferred to node SMTP due toconnection error (final)"