cancel
Showing results for 
Search instead for 
Did you mean: 

How to send mail notification based on file content

former_member308595
Participant
0 Kudos


Hi Experts,

I am having one passthrough scenario file to email (


If the must copied in a text file

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member308595
Participant
0 Kudos

Hi Experts,

Any solutions for this requirement.

former_member272234
Active Participant
0 Kudos

Dear Shiva

You can user Java mapping to implement this scenario

If only once the output text file has to be generated from the input file, then find the 82: pattern in the input data and extract all the following data characters till "-".

Return this output data in a text file by using the Dynamic FileName Configurations to the receiver channel

Thanks and Regards

Sikander

former_member308595
Participant
0 Kudos

Hi Sikander ,

Thanks ,Can you give sample Java code? which can be done for above requirement?

Best , Venkatesh

former_member272234
Active Participant

Dear Shiva

Below link can help you out to set file name dynamically

https://wiki.scn.sap.com/wiki/display/XI/Dynamic+file+name+and+directory+in+Receiver+File+Adapter+-+...

Below link can help you out with some java code to extract the data based on some pattern

https://stackoverflow.com/questions/4662215/how-to-extract-a-substring-using-regex

Thanks and Regards

Sikander

manoj_khavatkopp
Active Contributor
0 Kudos

Hi Shiva,

Use java mapping to read only the part of text file using substring function and also embeed the dynamic filename in this java mapping only.

Br,

Manoj

former_member308595
Participant
0 Kudos

Hi Manoj ,

Thanks for your involvement again in this topic, It would be great if you provide Java mapping code reference for this, I will change accordingly.

In this source file, we have multiple bank identifiers/accounts, for each bank file we need to create new txt file as well and need to send as email notification,

Best , Shiva