cancel
Showing results for 
Search instead for 
Did you mean: 

File to Mail Passthrough Scenario - Filename in E-Mail Subject.

former_member210091
Participant
0 Kudos

Hey Friends,

We have a simple File to File scenario, we are picking a flat file and passing it to receiver system without any Message Mapping. We developed this interface without configuring any ESR objects (passthrough scenario). Now we have a need that we have to send an e-mail notification as well once the file is transferred, the subject line of e-mail should have the filename. To achieve this, we configured Mail as an additional receiver (and maintained the sequencing). The problem we are facing is that we don't know of any way to get the filename in the e-mail Subject.Since we are not doing any message mapping, we can't use ASMA.

Is there any way in which we can get the filename in the e-mail subject without using ASMA? I know we can send the whole file as an attachment but we don't want that. We just want a notification e-mail with Filename in the subject Line.

Appreciate your help.

Thanks

Saif

Edited by: Saif Manzar on Jul 1, 2011 6:55 AM

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member854360
Active Contributor
0 Kudos

Hi saif,

Please use DynamicconfigurationBean to set the subject.

Adapter-Specific Message Attributes

To process adapter attributes in the message header of the XI message, select Use Adapter-Specific Message Attributes and Variable Transport Binding. The following attributes in the message header are available for processing:

Meaning

Technical Name

User

TServerLocation

Authentication Keys

TAuthKey

Mail header 'from' field

THeaderFROM

Mail header 'to' field

THeaderTO

Mail header 'Cc' field

THeaderCC

Mail header 'Bcc' field

THeaderBCC

Mail header 'subject' field

THeaderSUBJECT

Mail header field for reference to mail which is being replied to

THeaderIN-REPLY-TO

Mail header 'reply to' field

THeaderREPLY-TO

Mail header field for mail client program

THeaderX-MAILER

Mail header field for delivery acknowledgement

THeaderDISPOSITION-NOTIFICATION-TO

Mail header field for priority

THeaderPRIORITY

Mail header field for message importance

THeaderIMPORTANCE

http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm

Former Member
0 Kudos

Hi,

You can try the DynamicConfig bean to directly populate the ASMA for mail subject from the filename property in ASMA file adapter.

You can use this in the sender or receiver channel.

https://help.sap.com/saphelp_nwpi711/helpdata/EN/44/748d595dab6fb5e10000000a155369/frameset.htm

Regards

0 Kudos

Hi,

Develop one Adapter Module then it can work.

Regards,

Naga.

Edited by: nagababumathi on Jul 1, 2011 10:45 AM