Skip to Content

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

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 01, 2011 at 05:15 AM

    Hi,

    Develop one Adapter Module then it can work.

    Regards,

    Naga.

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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 01, 2011 at 06:42 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 01, 2011 at 08:34 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.