Map File name in BPM to email response

I have a scenario I am working:
File FTP -> FTP -> RFC
The file is deleted off initial server and pulled into our landscape to Processing server, then processed into SAP via RFC.  I wish for an email response to send on pass/fail of interface.
This is all done and executing as expected with pass/fail message in body of email, received in inbox - no problem.
However, one thing is missing....
When the file is first processed, the File name is deleted and renamed with a time and date stamp (not ideal, but I got this working) is added when the file is created on receiving server.  I am using a BPM to do the file send mapping and email response.
I wish to map the initial file name to the new file name, and then process then add time/date stamp when placed into Archive folder.  I would like the email to have the original name oif the file in the Subject line of the email, if possible....
Has anyone done something similar?  Can you point me in the right direction?

Hi,
You can do this using Adapter specific identifiers in receiver CC. You can get the same filename as your source file.
Blog: /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Go thro this thread as well for more details: Target file of the same name as source file
Then in BPM, add one more send step for a file receiver CC and place the file in the archive directory with timestamp.
Regards,
P.Venkat.
Message was edited by:
        Venkataramanan

Similar Messages

  • File name - When sending a email.

    I am just doing a report.the report fetches some data, do a GR Using a BAPI for each line item.
    If there are error logs - the logs will be sent to the respective email id which is entered in selection screen.
    My Question is.
    1. Email is working - > but the file name is coming as ATT*.XLS
    PERFORM send_file_as_email_attachment
                                       TABLES it_message
                                              it_attach
                                        USING s_email
                                              'GR Log Entries'
                                              'XLS'
                                              'GR_Error_Log'.
    FORM send_file_as_email_attachment  TABLES   it_message
                                                 it_attach
                                        USING    s_s_email
                                                 p_p_mtitle   "value(p_0402)
                                                 p_p_format   "value(p_0403)
                                                 p_p_filename "value(p_0404).
    ld_mtitle  = p_p_mtitle.
      ld_format              = p_p_format.
      ld_attfilename         = p_p_filename.
       t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    This t_packing_list is passed to  FM CALL FUNCTION 'SO_DOCUMENT_SEND_API1'.
    packing_list               = t_packing_list
    ENDFORM.
    Please let me know how can i get the correct file name....? ---GR_Error_Log.XLS
    2.This report take the file as input from application server.
    Hence the first value comes PO number then item number -- this is seperated by PIPE Symbol.
    So i am Spliting these values using Split Command as below
    SPLIT wa_string AT v_pipe INTO wa_ekko-ebeln wa_ekko-ebelp
    when the first line item comes in the file - if there are lenght of PO numbre is 10 Char - its taking only 9 ...and the last number is not picked up.... as per my analysis ...i guess there is a empty space in the front ....but we could not see that exaclty...
    i tried Condense ... Shift left with deleting ....its not working.
    But the Second line item is working fine.
    Please help me to solve this 2 issues.
    Thanks
    Senthil

    Check the length accepted in ld_attfilename and your length of file name.
    For testing purpose hardcode ld_attfilename         = 'GR_ERROR_LOG' and run it.
    Kesav

  • File name as subject in email

    Is there a way to make XI Pro automatically insert the pdf file name as the subject when emailing a pdf from Acrobat XI Pro like the older versions did?  I've tried installing Email_(file_name_as_subject).sequ but I get an error message stating it "has the same filname as one that's already been imported" but the action does not show up on the "manage actions" list.

    Hi, I have the same problem as Alan L. Whenever I have a file open in Acrobat 9 Pro Extended and click File-> Attach to Email it creates a new Outlook message and attaches the file but does not populate the subject line with the file name. The subject line is blank. I tried to email the same PDF file from Foxit Reader and it correctly populated the subject field with the file name.
    If anyone can help me I would really appreciate it.
    Thanks,
    Michael

  • Mapping File Name or Filename

    here we go... I'm trying to map the information of the quicktime filename to a new field named "work#" just like its mapped from "filename" to Title. Which "filename/file name do I use

    ps it worked but only creates the link for new assets
    jp

  • Can't get Version or File name to show in Email.

    When I email an image directly from Aperture, I would like the filename to appear in the email. I thought this could be set somewhere, but I'm drawing a blank and can't get a filename or any meta data to show up in my emailed images. I'm using Apple Mail.
    Any assistance most appreciated!
    MacPro 2.66 4 GB   Mac OS X (10.4.8)  

    Pagemaker did not have native tables. There was the app Adobe Table which you could create a stand-alone table file, then export to place in PM. So, this file is probaly not a "table", and most likely text. But you could easily convert text to table in Indesign, and then setup your alternating rows.

  • Javascript code for setting output file name of emailed form in Livecycle

    I was given a task of creating a new form with livecycle. I have no knowledge of javascripting so I am struggling with one of the things I am trying to get this form to do. The overview of this form is people around my company fill out this form then hit a button to email the completed form to me. I was able to accomplish part of this task by using the following code within an up mouse event script on a button.
    oDoc = event.target;
    oDoc.mailDoc({
    cTo: ********@******.com,
    cSubject: "IB Update Request - Instance" + IBInstance.rawValue,
    This takes the form and emails it to me with the data from the field called "IBinstance" in the subject line which is what I want but the file name attached to the email is garbage. presently is says "newupdateform.pdf - Adobe Acrobat Pro.pdf"
    What I would like is some javascript code that I can take the data from the field called "IBinstance" and use it as the name of the file being sent in. Is there a simple code that i can put in this event to allow me to do this?
    Thank you

    Hi Joerg,
    I have been trying to solve this as well, but gave up. I also could not get the workaround you found to work with EFM files.
    If you do find a solution, please update your message to share?
    Thanks
    Julie

  • BPM - merge files based on file name

    Hi All,
    i need to collect two source files based on the file name in BPM and then process it.
    Lets say, i need to collect a header file and a items file. but any point of time, there can be more than one header and more than one item file in the source folder. and i need to collect the header and its corresponding/related item file.
    can anyone help me how to achieve it in BPM? whats the correlation i need to give? is it possible to have a java code executed in BPM?
    Is it possible to take care of this at adapter level itself while picking the file? if so, whats the file name scheme can i give?
    Faster reply is very much appreciated.
    Thanks n regards,
    Rashmi

    hi,
    we can have the header file as header and item file as item. basically based on our convenient we can suggest the file name to the sender. so scheme can be anything that fits our requirement

  • What file name, are old emails saved under in backups?

    Time Machine, does not seem to operate properly, past the date when I clean installed Yosemite. My files are all there, but I can only find them by going into my drive, and either searching for the file in Time Machine, or searching for it in my backup drive. I cannot restore a mail file, by opening mail, and time machine. It works fine up until the date, when I installed Yosemite. I have done 2 different  completely clean installs, and one using migration assistant, wt a multitude of problems. I am done wt doing that. My iMac is finally running smoothly, and I have managed to migrate everything back into my iMac, except for my old emails. I'm pretty sure that I could restore my emails, as long as I knew where there there supposed to be stored on my iMac. I could basically restore them, by either looking in my backup drive where they are before I installed Yosemite. What file name, are old Maverick emails saved under in backups?

    The information viewed in Contacts is not located in a single file, nor a single directory.
    [Copied from another thread I responded to recently:
    https://discussions.apple.com/message/24658329#24658329]
    This MIGHT be include all the files you need, but there might also be Preferences files needed from another directory.
    Also, I migrated my data from an older OS X version (10.6.8) where the app was called Address Book. On brand new systems, it is called Contacts, and the correct directory might be named Contacts.
    NOTE: Be sure to replace Macintosh HD below with the actual hard drive name if not Macintosh HD, and username below with the actual user's name...
    Transfer all the files from Macintosh HD/Users/username/Library/Application Support/AddressBook/
    That WILL INCLUDE each of these three subdirectories where the necessary files and data are stored:
    Macintosh HD/Users/username/Library/Application Support/AddressBook/images
    Macintosh HD/Users/username/Library/Application Support/AddressBook/Metadata
    Macintosh HD/Users/username/Library/Application Support/AddressBook/Sources

  • Error in 'eMail Response - Process Message' --- Error running sub-process 'eMail Response - Create Activity' at step 'Create Activity Process'.(

    Hi,
    When I was simulating the 'eMail Response - Process Message', I had been getting the below error when entering to 'Create activity Process' step.(provided all the inputs per testmode.xml file)
    Error running sub-process 'eMail Response - Create Activity' at step 'Create Activity Process'.(SBL-BPR-00183)
    I increased the log level to 5 and got the below message in log file
    ObjMgrBusServiceLog    InvokeMethod    4    0000000251b51f04:0    2013-06-10 01:30:12    Begin: Business Service 'XML Hierarchy Converter' invoke method: 'DocToHier' at 12cc4240
    ObjMgrBusServiceLog    Error    1    0000000251b51f04:0    2013-06-10 01:30:12    (xmlcnvsv.cpp (548)) SBL-EAI-00246: XML Hierarchy Converter error - empty input message, expecting an XML document in <Value> of input arguments
    I was wondering I could not find 'XML Hierarchy Converter' business service in 'eMail Response - Process Message' and 'eMail Response - Create Activity' sub process.
    Can any body help me out in this regard.
    Thanks in advance..
    Jagadeesh

    Hi Naresh,
    yes, I am using the delete polling strategy. Here is the .jca file:
    <adapter-config name="Pozadavky" adapter="Database Adapter" wsdlLocation="Pozadavky.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
    <connection-factory location="eis/DB/PozadavkyConn" UIConnectionName="PozadavkyConn" adapterRef=""/>
    <endpoint-activation portType="Pozadavky_ptt" operation="receive">
    <activation-spec className="oracle.tip.adapter.db.DBActivationSpec">
    <property name="DescriptorName" value="Pozadavky.Pozadavky"/>
    <property name="QueryName" value="PozadavkySelect"/>
    <property name="MappingsMetaDataURL" value="Pozadavky-or-mappings.xml"/>
    <property name="PollingStrategy" value="DeletePollingStrategy"/>
    <property name="PollingInterval" value="120"/>
    <property name="MaxRaiseSize" value="1"/>
    <property name="MaxTransactionSize" value="10"/>
    <property name="NumberOfThreads" value="1"/>
    <property name="ReturnSingleResultSet" value="false"/>
    </activation-spec>
    </endpoint-activation>
    </adapter-config>

  • File name issue

    Hi All,
    My scenario is :
    1. SAP (sender ) sends file name to BPM(e.g myfile1.txt)
    2.BPM sends the same file name (e.g myfile1.txt) to a HTTP reciever.
    3.Http receiver then responses with a file(around 30mb size of file)
    4.Then the file can be send to a file system
    I need to save the file in the file system with the same file name (e.g:myfile1.txt) which is requested in http request(e.g myfile1.txt). How can configure file adapter to achive this?
    Regards,
    Praveen

    Hi Praveen,
         BY using the option of Variable subtitution in Receiver File Adapter CC, you can achieve this with the refrence of your paylaod and message.If the file name holding in the payload you can give the refrence of your structure which field is exactly holding the file name value.
    refer the following weblogs , how to use the Variable subtitution
    /people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi
    /people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12
    Hope it will give an idea to get the same filename which is coming from HTTP response.
    Cheers
    Veera
    >>>Reward points, if it is needful

  • How to configure .jdo file name

    It is possiple to put all mapping information in one file and provide its
    name to PMF (as MappingFactory property). Is the same possible for .jdo
    information (i.e. put all .jdo information in one file and provide file
    name in configuration) ?
    -Zach

    Zach,
    You cannot control the .jdo file name, but you can control the mapping
    file name.
    For information on controlling the mapping file name, see the
    description of the file mapping factory at
    http://docs.solarmetric.com/ref_guide_mapping_factory.html
    For information on the placement for .jdo metadata files, see
    http://docs.solarmetric.com/jdo_overview_meta_placement.html
    Note that since all mapping information can be kept out of the .jdo
    file, you can have several independent mapping files for different
    database schemas and a single JDO metadata file for JDO-related properties.
    -Patrick
    zach wrote:
    It is possiple to put all mapping information in one file and provide its
    name to PMF (as MappingFactory property). Is the same possible for .jdo
    information (i.e. put all .jdo information in one file and provide file
    name in configuration) ?
    -Zach

  • Newbie Map File question

    I have inherited a huge project in RoboHelp which contains
    multiple map files. One of the map files is the custom map file
    that was apparently imported. This is the only one I need, yet
    there is also a BSSCDefault.h. When I right click to delete, it is
    greyed out. There are no map IDs in it, but it's still there. There
    is also the "All Map IDs" file which appears to be identical to my
    custom file. I'm guessing that one has to stay? I've managed to
    delet all the rest of the old map files.
    Each time I assign a map ID I feel that I have to make sure
    that I select my custom map ID from the drop-down box, and that's
    just one more step that I could accidentally forget. I'd rather do
    away with everything else so I'll know that I'm always using only
    my custom map file. Is this possible?
    Thanks so much in advance for your help.

    Welcome to the forums.
    I don't think the "All Map IDs" is a file in itself, but
    maybe a combination of all files' IDs displayed together. I don't
    know for sure, as I always use only one map file for a project, and
    I leave BSSCDefault empty. The BSSCDefault file seems like it is
    forced on us, but we don't have to use it, as you know.
    I think you mean that you are selecting your custom map file
    name from the "Map File" dropdown box. You can skip that step by
    clicking on your map file's name in the Project Manager. For
    example, I have a map file called "cshmap.h." In the Project
    Manager, I expand Context-Sensitive Help, then Map Files, then
    double-click "cshmap.h," which has a page icon with an "h." The map
    ID dialog opens with cshmap.h selected in the dropdown, so all the
    changes I make will be in that file.
    Hope this helps,
    Ben

  • Accessing the sender file name in the response email

    Hi,
    I have an asynchronous proxy scenario wherein I am calling an outbound proxy within an inbound proxy.
    Basically a file is sent from an external partner and response is sent back to them if there are any errors. Also email notification will be sent and that email should include the sender file name so that they can know which file is erroneous and can resend that file after making changes. Any help will be appreciated.
    Many Thanks.

    Hi,
    Have a look just two threads below yours !!
    File recr Adapter : How to set target directory based on sender interface ?
    See "Adapter-Specific Message Attributes" for a Sender File Adapter
    http://help.sap.com/saphelp_nw70/helpdata/EN/e3/94007075cae04f930cc4c034e411e1/content.htm
    I suppose your flow is:
    1. File -> PI -> proxy_req     (request)
    2. proxy_resp -> PI -> Mail   (response)
    Thanks to "Adapter-Specific Message Attributes" ofr a Sender File Adapter, you will be able to store filename in DynamicConfiguration and then you will able to use a UdF to catch the source file and provide it somewhere in your proxy_req.
    After for the returned flow "2. proxy_resp -> PI -> Mail   (response)", your proxy_resp has to returned to PI the filename providen with the 1st step.
    And then, In PI you will be able to send by email the source filename.
    Regards.
    Mickael

  • File-name not being fetched in a multi-message mapping by Dynamic Conf

    In a scenario, i have a BPM which has a transformation step which contains a mutimapping ...means 2 messages mapped to 1 messgaes, here in the mapping i m using an UDF and written code to extract the file name from dynamic configuration.....
    the problem is ...the same BPM contains another transformation step which contains a message mapping (which is not multi mapping), and here the code (UDF) works to fetch the file name...
    the code is all correct....and it looks like
    DynamicConfiguration conf = (DynamicConfiguration)
    container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String sourceFileName = conf.get(key);
    if (sourceFileName == null ){
    sourceFileName = "ErrorFile.xml";}
    return sourceFileName;

    Hi,
    The scenario I am trying to test is a multi mapping scenario where I am trying to split one source message and create two target messages by using two different receiver interfaces, one for each message.
    I am on PI 7.1 and when I test message mapping and operation mapping using the payload from SXMB_MONI, it is successful. Whereas when I test the scenario end to end I am getting the following error messages:
    Operation Mapping
    Employee_Out_SI_To_Employee1_In_SI_AND_Employee2_In_SI_OM
    Name
    Employee_Out_SI_To_Employee1_In_SI_AND_Employee2_In_SI_OM
    Namespace
    http://accenture.com/1:N_multi-mapping
    Runtime error
    Split mapping created no messages
    Start tag ns0:Messages Add raw attribute xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge" Start tag ns0:Message1 Close tag ns0:Message1 Start tag ns0:Message2 Close tag ns0:Message2 Close tag ns0:Messages
    Could someone please help
    Cheers,
    S

  • File name cant be fetched from Dynamic configuration...mutli-mapping used

    In a scenario, i have a BPM which has a transformation step which contains a mutimapping ...means 2 messages mapped to 1 messgaes, here in the mapping i m using an UDF and written code to extract the file name from dynamic configuration.....
    the problem is ...the same BPM contains another transformation step which contains a message mapping (which is not multi mapping), and here the code (UDF) works to fetch the file name...
    the code is all correct....and it looks like
    DynamicConfiguration conf = (DynamicConfiguration)
    container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String sourceFileName = conf.get(key);
    if (sourceFileName == null ){
    sourceFileName = "ErrorFile.xml";}
    return sourceFileName;

    Hi,
    Yes u r correct it will show error in operation mapping.. bcoz u cannot check the DynamicConfiguration in Operation mapping...
    It will throw Exception..
    The parameter to UDF depends on ur requirement.... Let us know ur requirements exactly...
    If u r doing for file to file means no UDF required,, just check ASMA on both sides....
    Babu

Maybe you are looking for

  • ClassCastException when calling SOAP adapter

    Hello, I created a Web service interface to an ABAP RFC via XI and a corresponding communication channel (SOAP/HTTP to a specific message interface with data types, message types, mappings etc. defined in the integration repository). Sending SOAP mes

  • Double sql statements in JSP..HELP...

    When I use this code in a single JSP file it doesn't update the database....I guess there is something wrong with this....There is no error but in JSP but It doesn't update....Need help guys.... String SQLStatement = "select * from test, test1"; Stri

  • Torrents not Working?

    Hello, It seems that after installing Snow Leopard, Vuze (formerly Azereus) has stopped functioning.I DO NOT USE TORRENTS FOR ILLEGAL ACTIVITIES, and I use the Vuze HD Network, which cannot download stuff anymore. Vuze also gives an error while openi

  • Entry 220 RR KONV SAKN2 is missing in table TVUVF

    Hi Guru's, i have newly implemented a process of POD, where we do manual pod. everythign is going fine but Invoice is not released to accounting, system shows a warning message as "Entry 220 RR KONV SAKN2 is missing in table TVUVF" pleasae suggest wh

  • PS CS4 Layer Style has become unresponsive

    Hi Gang, Never had a problem with photoshop in my life, so this is my first post. I have literally opened a new document and now when I right click and go "Blending Options" I am unable to click on anything in this window. I've open up other document