Skip to Content
0
Former Member
Mar 05, 2009 at 11:50 AM

Sending mail after file has been created

184 Views

Hi Friends,

I am doing File to File scenario, Here is the decription:

PI 7.0, sender file adapter is picking IDOC-XML(IDOCs of type INVOIC02 ) file and generating text file (using XSL) and sends it to third party.

After generating text file, one html report has to be sent as attachment to mail,indicating these many invoices (BELNR) has been processed.

For generating mail report I am using XSL. XSL also takes same input which PI 7.0 sender adapter picks(i.e. IDOC-XML file) to generate text file.

Mail has to be generated only after text file has been generated.

I need help togenerate mail report, text file is generating properly.

Would be good if I can avoid BPM.

I found one solution:

In sender file adapter while picking file, file will be archived in some location.

In receiver file adapter, after sending text file, one script can be written(OS command after processing), which will move file from archived location to dummy folder.

And one new scenario , File to Mail , can be configured, where sender file adapter will pick file from dummy folder location , which we used earlier in File to File scenario.

But here, how to get exact file name in script(which will be written in receiver file adapter), to move file from archived location to dummy folder.

Because, In sender file adapter I am picking files (.xml).*

And I am agian using DynamicConfiguration in Java mapping to generate dyanmic file name.

I hope, scenario would be clear.

Please revert back ot me for more clarification.

Best Regards,

Divyesh