cancel
Showing results for 
Search instead for 
Did you mean: 

Need a UDF to genearte a mail content with different lines in SAP PI 7.31

Former Member
0 Kudos

HI All,

I am working on File to Mail Scenario using MAil.xsd and Mail Package.

The scenario is running file with the below content in mail body:

"Payment File with file name File1_002.txt is sent sucessfully to ABC @ 2013/01/16 01:03:43Thanks & RegardsSAP"

I am using UDF for the same to get Filname dynamically.

Now, the issue is that i want the Greetings - "Thanks & Regards and SAP" like below i.e; in new lines

"Payment File with file name File1_002.txt is sent sucessfully to ABC @ 2013/01/16 01:03:43.

Thanks & Regards

SAP"

Bt i am not able to do so with UDF.

Can anyone plz help me with this.

Thanks
neha


Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Chk this blog (in the end u will find a 2 line code to adjust ur mail content):

http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/04/13/renaming-email-attachment-with-in...

Thanks

Amit Srivastava

Former Member
0 Kudos

HI Amit,

Its working fine now and i am getting the file as below:

Payment File with file name File1.txt is sent sucessfully to ABC @ 2013/01/16 02:02:43

Thanks & Regards

From

But I want "From" as the same name as my sender's ID.

I am using Value Mapping for it but its not working here.Its working fine for From field.

Any help.

Thanks

Neha

Former Member
0 Kudos

Hello,

I hope you are correctly passing id field (which is coming from source) inside your UDF method where you are actually creating mail content?

Thanks

Amit Srivastava

Answers (0)