Multiple file receiver scenario

Hi,
I am carrying on a file to multiple files scenario(3 in no). The scenario is simple and it's just that some fields of  <b>Sender File</b> are mapping to <b>Receiver Files</b>
There are no conditional routing, BPM etc. I have done all the IR part
<u><b>Message Mapping</b></u>
Source message type is Sender Message type while Target messages includes all the Receiver Message types.
<u><b>Interface Mapping</b></u>
A corresponding interface mapping giving the above Message Mapping is done.
What will the steps in ID part?

Hello Arpil,
I did the similar kind of scenario recently
where in I was to dynamically send the data to the corresponding reciever (one out of 3 receivers) based on one field on the source side.
dont get confused with standard and extended.
In standard you can achieve this directly using context object or X path definition
eg : if you want to route data based on a field say ...
if abcd = '3' then route the message to "Receiver I"
if abcd = '4' then route the message to "Receiver II"
if abcd = '5' then route the message to "Receiver III"
specify the same in the configured receiver condition
you will have 1 receiver determination, 3 receiver and interface agreements
Hope it finds it useful to you.
Regards,
venkat.

Similar Messages

  • Conceptual advice required for file receiver scenario

    Hi,
    My scenario is to read 3 sets of data from SAP ERP and write files on the receiver system, one per data set.
    I could create 3 service interfaces and set up Integration Builder configuration for each one but this seems messy.
    Alternatively, if I create one service interface with 3 operations to group them, it is not possible to create the required files unless I add mapping and use dynamic configuration to determine the filename from the payload and set this in the receiver communication channel.
    It seems to me that I would have benefited from the ability to define a rule in the receiver determination to define a different communication channel per operation where the specific filename could be specified.
    It is only possible to bind a service interface to one communication channel in the receiver agreement.
    What would you recommend as the cleanest and best approach to meet this requirement - 1 or 3 service interfaces, use of mapping or are there any alternatives?
    Thanks in advance.
    Alan
    Edited by: Alan Cecchini on Aug 4, 2011 7:02 PM
    Edited by: Alan Cecchini on Aug 4, 2011 7:02 PM

    Basically your requirement is many to many mapping.  Please decide based on the sender system requirement. If your sender system sends different message structure then you can break into three diff interfaces and keep the interface simple.
    You can route to three diff recievers based on the condition setting in the receiver determination or you can do in the mapping too. That is not the whole point. you need to think about how do pick the three different interfaces.  You might also consider using ccbpm for this. 
    Refer the pattern that comes in the PI standard installation under SAP BASIS  SWCV.
    BPMPatternSerializeMultipleTrigger or BPMPatternSerializeOneTrigger

  • File sender to file receiver scenario

    Hi,
    I need to move a file (any type) from an FTP server to another file server as-is (no mapping) via XI.
    What would be the quickest way to achieve this? Is doing anything in the IR avoidable since there is no mapping required?
    Regards,
    Rex

    I double checked the parameters..evrything looks fine.
    I donno why the adapter is not picking up the file. But my other file adapters are working fine.
    The parameters are as follows.
    (x) Sender () Receiver
    Adapter type: File
    Transport Protocol: File system (NFS)
    Msg Protocol: File
    Adapter Engine: Integration Server
    Src Directory: D:\XIDemo\Send
    File Name:    Pick_up.txt
    QoS: Exactly once
    Poll interval: 600
    Processing mode: Test
    Processing sequence: By Name
    File Type: Text
    The adapter is in active state.
    I deleted the initial adapter and created again, still not result
    Whats wrong here?
    thx
    praveen

  • Dynamic File name for File receiver adapter

    Hello,
    I am doing Proxy sender to File receiver scenario.
    Filename is generated in SAP R/3 program and I want to create the file with this same name
    on target location.
    please suggest me how to use this file name in Receiver file adapter?.
    Thanks & Regards
    Jagesh

    Hi,
    you have to enable the adapter specific parameter --> file name in both the sender and the receiver CC to get the input file name as output file name.
    Refer this blog:
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Also you need to use this udf
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return  ourSourceFileName; 
    Also refer this blog:
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    Regards,
    Nithiyanandam

  • ZIP File has damaged contents - Multiple file download

    Hi,
    I am using ZIP API in Web Dynpro JAVA for multiple file download scenario.
    Issue:--->
    Some files are not opening correctly after unzipping the ZIP file.
    Example-1: some PDF files gives out message that " "
    Example-2: Also, a JPG file shows only upper half of the image.
    So in all, the content of generated ZIP file are damaged.
    Any idea why this is happening?
    Thanks & regards,
    Amey

    And this is the code I'm using:-
    Unzipped PDF files give this error --> There was an error opening this document. The file is damaged and could not be repaired
    for(int i = 0; i < l_int_NodeSize; i++){
         g_SearchOutputEle = g_SearchOutputNode.getCtx_vn_SearchOutputElementAt(i);
         java.net.URL url = new URL(g_SearchOutputEle.getFileUrl());
         java.net.URLConnection urlConnection = url.openConnection();
         java.io.InputStream inputStream = url.openStream();
         int arraySize = urlConnection.getContentLength();
         byte[] byteArray = new byte[arraySize];
         DataInputStream dis = new DataInputStream(inputStream);
         dis.read(byteArray);
         ZipEntry zipEntry = new ZipEntry("Name-"+i);
         zipEntry.setSize(byteArray.length);
         zos.putNextEntry(zipEntry);
         zos.write(byteArray);
         zos.closeEntry();
    zos.close();
    byte[] byteOutArray = baos.toByteArray();
    IWDResource resource = WDResourceFactory.createResource(byteOutArray, "Downloads.zip",WDWebResourceType.UNKNOWN);
    String urlString = resource.getUrl(WDFileDownloadBehaviour.ALLOW_SAVE.ordinal());
    IWDWindow win_MultiFileWindow = wdComponentAPI.getWindowManager().createNonModalExternalWindow(urlString);
    win_MultiFileWindow.setWindowSize(0,0);
    win_MultiFileWindow.show();
    Edited by: Amey Mogare on Mar 30, 2010 7:49 AM

  • How to create multiple files with Receiver File Adapter in SAP PI 7.31 Java Stack

    Dear Friends,
    I am using Sender JDBC Adapter and Receiver File Adapter in Integration Flow in SAP PI 7.3 EHP 1 SP08 Java Stack environment. The requirement is that we need to create multiple files based on the row count in jdbc resultset. If there are 5 rows in resultset, we need to create 5 XML files with one row elements in one file. Similarly if there are 10 rows, we need to create 10 XML files.
    So how can we create multiple files in this scenario. I tried placing a for loop in the Java Mapping as below in the transform method:
    DynamicConfiguration conf = arg0.getDynamicConfiguration();
    StringBuffer sbFileData = new StringBuffer();
    for (int i =0; i < record.size(); i++ {
         . // Create XML for each row and Marshal the object into to the String Buffer
         String strFileName = "DC_" + new SimpleDateFormat("ddMMyyyyHHmm").format(new java.util.Date())+"_"+i+".xml";
         conf.put(KEY_FILENAME, strFileName);
         arg1.getOutputPayload().getOutputStream().write(sbFileData.toString().getBytes("UTF-8"));
         arg1.getOutputPayload().getOutputStream().flush();
    So here I'm flushing the OutputStream for each record. But it's not creating the multiple file, instead it creates only one file will all record XMLs appended to each other.
    Please let me know if I missing something or need to do some thing else.
    Regards,
    Shreyansh Shah

    Hi
    You can easily achieve this using graphical mapping.  Create your target message type like below
    MT_Target
      Details  0 to 1
          Data  0 to 1
    Source sample structure
    <resultset>
    <row>
    <column-name>column-value</ column-name>
    </row>
    Then do the message mapping like below
    map <row> with  MT_Target
    contant ----> Deatils
    column-name ------>Data
    In the signature tab of message mapping, choose the occurrence of your target message type as
    0 to unbounded.
    This will generate multiple files from multiple rows.
    Let me know if you have any doubt.

  • Receiving multiple files with dual extension using file adapter

    Hi,
    The scenario where I am implementing requires multiple files of different names to be picked(ABC.txt) and dropped at destination(ABC.txt.pgp) up by my File Sender and Receiver adapters.  Any idea on about how the configuration for receiving multiple files with dual extension for receiver adapter is to be done?
    Note:- currently, The scenario is working fine without dual extension. i.e Its picking all files which starts with ABC and creating at destination as it is. even I configured as ABC.txt.pgp, but its not creating the second extension.
    Thanks in Advance
    Manmadha

    Hi,
    Try to concatenate '.pgp ' to the source file name to create the target file name for the receiver file adapter, by accessing the Adapter Specific Attributes using Java user defined function. This might work.
    Reference links:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm">SAP Help - Accessing Adapter Specific Attributes</a>
    <a href="/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14 - XI: The same filename from a sender to a receiver file adapter - SP14</a>
    Regards,
    S.Santhosh Kumar

  • Idoc to Multiple file scenario

    Hi Experts,
    My scenario is IDOC to Multiple files..
    IDOC will be triggered from the ECC system and i have three differient structures and need to drop those 3 files in the ftp server at the target system.
    Here we can use multimapping for such scenario but the problem here is ..
    In my scenario for all the 3 mappings i am using combination of message mapping and xslt mapping as below
    1st case:
    Idoc -
    Message mapping -
      Target First File.
    XSLT Mapping1
    XSLT Mapping2
    XSLT Mapping3
    XSLT Mapping4    -
    The output of the xslt 4th mapping will go to the target ftp server
    In similar for the other 2 mappings also uses the combination of messag mapping and xslt mapping.
    Here as the receiver system is one in the interface determination (PI 7.1-- NO Enhanced determination)when i add these operation mapping in the interface determination when i execute the scenario all the operation mappings are not getting executed.
    For example;; If the first target file has no records then it is not executing the 2nd operaion mapping, does the occurence of the operation mapping needs to changed.
    could anyone suggest on this..
    Thanks,
    sai

    Hi,
    Why cannot you use three mappings when you want to generate the three files for the same input instead of multimapping as the multimapping generates either of the three messages only...
    you can later provide the condition at the interface determination to execute the mappings if not all mappings to be executed..
    if there are no conditions provided by you at the interface determination level then mappings will get executed automatically..
    provided your mapping is working fine..so in your case check /test the message mapping..
    HTH
    Rajesh

  • Send multiple files in different directories using Receiver File Adapter

    Hi Experts,
    I have one File to File without ESR scenario where I have to pick multiple files from different directories and to save them in different directories on receiver side.
    Can anyne help me to send multiple files in different directories using receiver file adapter.
    Is it possible??
    Any help will be appreciated.
    Regards,
    Danish

    hi ,
    that is possiable without esr,
    we need to create one sender communication channel , in that  we nend to use "adavnced selection for source file " for sending multiple files from multiple directories.
    we need to create 'n' receiver communication channels and 'n' receiver agreements based on communication channels .
    in receiver determination, provide multiple receivers
    In interface determination , provide * symbol for receiver communication components
    thanks,

  • Hadeling multiple files in sender and receiver adapter

    Hi ,
    In my sender FTP server multiple files gets created at a same time i want to send this same files to the target FTP server am not doing any file content conversion. Just pick this multiple files at a single poll and drop it in the target FTP system.
    I gave . in the as file name parameter in the sender file adapter..PI system picks all the files as separate message but if i give . in the receiver adapter itu2019s not creating the file and its giving Java exception..
    Is there any other method to do this without having File content conversion... ?
    Regards
    Shakfie

    I gave *.* in the as file name parameter in the sender file adapter..PI system picks all the files as separate message but if i give *.* in the receiver adapter itu2019s not creating the file and its giving Java exception..
    For receiver adapter you have to give some file name, '.' will not work for receiver adapter. So give any temporary name just to satisfy the mandatory field. And when you selet the ASMA settings in both SENDER & RECEIVER adapter then your Receiver File adapter will write the same file name which it has picked up and NOT the one which you have written in your receiver adapter.
    Note: Set ASMA setting in both else you will not get the same file name at receiver. You can see the same in blog given by Siva. You need not to create any UDF since you are not using any mapping. Just use the ASMA settings.. that's it.
    > Is there any other method to do this without having File content conversion... ?
    You can go through this blog for the same...
    /people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
    Regards,
    Sarvesh

  • Using adapter specific parameters in  a multiple receiver scenario.

    Hi all,
    I have a scenario in which I am sending a binary file from one folder to another using a file sender and file receiver adapter.
    But, I have another file receiver to this message which expects the filename of the above binary file in the form of an XML file.
    I want to know is this possible to receive an adapter specific value in the form of XML when we havent sent any xml from source side?
    Please reply.
    Sumit

    Sumit,
    I got ur sceario.
    I'm sure u have designed the data type for the target file am I right.
    Let say it looks  like
    DT_Filename
    File   1..1
        Filename 1..1
    U might have created the message type for the same.
    Please create the message mapping with the source and target as same(above structure).
    Now create simple UDF with no input.
    DynamicConfiguration conf = (DynamicConfiguration) container
    .getTransformationParameters()
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION );
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
    "http://sap.com/xi/XI/System/File","FileName");
    String name = conf.get(key);
    return ""name"";
    UDF mapping
    UDF --> Filename[Target node, as per my data type designed above]
    Hope it helps!!!
    If not kindly revert back.
    Best regards,
    raj.

  • Creating Multiple Files with different name at Receiver side

    Gurus -
    Can anybd tell me how to generate multiple files at the Receiver side in the given target directory with different file names?
    One source message will contain number "N" using which we have to generate files "N" number of times at the Receiver side.
    Kindly help.

    hi,
    are you following this blog?
    provided you have SP>14 and no IDOC/HTTP involved.
    and have you got the error you mentioned when testing with sample payload?
    from where did you take the payload? if is from SXMB_MONI make sure you dont have <MESSAGE> tags in the payload,generally systems adds <MESSAGE> tags when you do multi mapping.
    get the payload from SXMB_MONI right click ->view source payload(this is raw data) and test it.
    it should be ok now.
    and refer my discussion in the thread ,as I got he same error.
    Split mapping created no messages -Mluti Mapping

  • Scenario PROXY - SENDER FILE - RECEIVER FILE

    Hi Experts,
    I need to create a synchronous scenario where the proxy sends the filename to send and PI must transfer the file to a location X. The source file is in a different location of the destination file 
    This scenario, should this be done through Process Integration?
    Thanks,

    Hi,
    I think you can use a sync/async bridge to do your scenario and you wont need any development outside of using standard modules. The idea is to create a scenario Proxy(sync)-File(Async) -File (Async) without BPM. Check the point 8 in this document http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80f96dbf-adca-3010-ffb5-daf2d1f0e276?QuickLink=index&…
    I have never tested this with the SFTP channel, and i dont know if this adapter supports the RequestOneWayBean and WaitResponseBean modules. May be you should wait to someone that confirms to you the possibility of using this modules with the SFTP adapter.
    Regards.

  • Mail 2 File scenario - problems with attachments in file receiver

    Hi experts,
    I want to receive PDF documents via email and send them thru file adapter. Now I have some trouble with the attachments. I have configured my mailsender as follows:
    localejbs/AF_Modules/PayloadSwapBean    TRANSFORM
    sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean    mail
    Modules:
    TRANSFORM       swap.keyName   Content-Disposition
    TRANSFORM     swap.keyName     Content-Description
    TRANSFORM       swap.keyValue     MailAttachment-1
    TRANSFORM       swap.keyValue     attachment;filename="MailAttachment-1.pdf"
    Now what modules do I have to use in my file receiver when I want to write the PDF-attachment to my directory? I already tried a lot and referred to many blogs but nothing really worked. I only get my header information in the output file.
    Any ideas?
    Thanks in advance.
    Best regards.
    Oliver.

    Hi
    Check this blogs
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417700)ID1810608850DB10913328217115658435End?blog=/pub/wlg/1685
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417700)ID1810608850DB10913328217115658435End?blog=/pub/wlg/2849
    Regards
    Ramesh

  • Receive Pipeline In Decoder Stage to Extract Single Or Multiple Files From A Zipped Folder In Biztalk Server 2010

    Hi,
    I need help in developing a customized pipeline for the Decoder Stage.
    Requirement : Extract single or multiple files from a zipped folder with any format and extension (X12/EDIFACT/Flat/XML) and send to Disassemble stage for further action.
    Need Urgent help.
    Any suggestion or help is much appreciated.
    Thanks & Best Regards

    Hi Siddharth,
    Have look at article: BizTalk Server 2010: Processing Zip Message Having Multiple Type
    Files and http://tech-findings.blogspot.com/2013/10/custom-zipreceivepipeline-to-unzip.html
    Maheshkumar S Tiwari|User
    Page|Blog|BizTalk
    Server : Scheduling Orchestration using Trigger Message

Maybe you are looking for

  • URGENT: Need help to add files to OA Project in JDev 9i

    Hi, OA Framework Version 11.5.10.6RUP JDeveloper 9.0.3.5 (Build 1453) 1. The standard iProcurement NonCatalogRequestPG page is running fine in PRODUCTION and I have been asked to do enhancements like VO extn etc so I am trying to import files from se

  • Need help selecting router

    Hello All, I need some help in selecting the best router for our wireless setup.  I have never setup a wireless network, so please forgive if I am a little lost.  I have an older laptop, HP Pavilion ze4400 (windows xp) and a brand new gateway (window

  • Uploading File with Umlaute (German) - solved

    I am using the .csv to table package from Vikas. The uploaded file comes from one of my customers. The customer is supposed to save an .xls file as .csv and upload it into a collection. So far so good. Whenever there are Umlaute (ä, ö, ü), they are n

  • Query Selection Box Descriptions

    When I set up selections options in the 'WHERE' statement the selection fields default to standard text such as: Posting Date                          Greater or equal Posting Date                          Smaller or equal Description in Foreign Lang

  • Create new portlet?

    On my development server, I was able to create a new portlet, which I configured to display the content from a .ASPX file. It displayed properly. Now, on my production server, I cannot create a blank portlet where I can edit the portlet to display th