Multiple EDI files at receiver side

Hi,
We have an outbound interface(flat file --> PI --> EDI) where flat file coming in and PI processing it to customers.
Based on a field from input file, i am creating 3 UNH segments in one EDI file. But, we need to create 3 EDI files for each UNH segment.
For eg:
Number(from input file): 001,002,003, for each number I am creating 3 UNHs in one EDI file.
But I need 1 EDI for 001,1 EDI for 002,1 EDI for 003.
Is it possible to create multiple EDI at receiver side.
Please suggest me the possible ways to achieve this requirement.
Regards,
KNR.

Hi Its possible,
-->Number(from input file): 001,002,003, for each number I am creating 3 UNHs in one EDI file.
But I need 1 EDI for 001,1 EDI for 002,1 EDI for 003.
do You have any EDI XML structure in mapping?
In Message mapping signature tab change your mapping occurence 0..unbounded
and in mapping click target structure and click on duplicate subtree .(create 3 times)
and map your structure to 3 different structure of the same target message based on 3 UNHs
it will be basically 1:N mapping without BPM

Similar Messages

  • Append the data in file at receiver side

    Hi All,
    I want dump the data frm SAP tables. the data is hughe so we are sending the data in slots from ECC like 50K recoerds at a time and after that to collect that i using the append parameter at file receiver side and records are getting appended in file only that is correct 
    but my one doubt is
    let say monday the records get append into file at receiver side and on tuesday again the records will get appended in same file....it will be problem for this i used create parameter with overrite my question if i am using create then we can not use append ........
    please suggest...........
    Regards

    Hi gangadhar,
                             Append will work like this..
    if there is no file ..create the file and if file already exists then appends the data to the existing file..
    in your case when you create the file with day i.e file_day ..first time when you send 50K records file will get created..
    if you send another 50k in the same then will get appended to the same...
    in case if you send the another 50K set another day..then a new file will get create as there is no file available with taht file name
    i.e filename_nextday...
    Hope this clears all your queries
    HTH
    Rajesh

  • FIle content conversion on receiver side

    Hey guys
    i m getting and XML file of the following form on the receiver side
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_sender xmlns:ns0="urn:Nov:FileToFile">
       <Emp_name>mark</Emp_name>
       <Emp_Age>25</Emp_Age>
    </ns0:MT_sender>
    and i need to convert this into a CSV format.
    what parameters will i use?
    i am using the following
    Recordset Structure: Emp_name,1,Emp_Age,1
    Emp_name.fieldSeparator=,
    Emp_Age.fieldSeparator=,
    i guess this is wrong coz i m not getting any file on receiver side,in MONI its chequered flag but i dont see any file on receiver side
    thanx
    ahmad

    Figured out by myself,i need to add Root elements in the XML,so that it looks like
    <Root>
          <Subroot>
                 <Emp_name>Mark</Emp_name>
                  <Emp_Age>25</Emp_Age>
           </Subroot>
    </Root>
    it's working for me this way
    thanx
    ahmad

  • 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

  • Problem in Receiver side File Adapter using FTPS mode

    Hello,
    Here I am facing some problem in receiver side while using FTPS mode in the channel configuration.
    The error message which i could see in the audit log is,
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: java.lang.NullPointerException
    Can anyone help me out in solving this issue ASAP?
    I am using Per file transfer mode ni the reciever channel.
    Thanks in advance,
    Yours
    Soorya

    HI Surya,
    First check wether server started or not and then check you are connecting to FTP server by
    go to run -> cmd and write ping and ipaddress which is used and see whether u r getting reponse from teh FTP server.
    Try to login to the ftp server which you have mentioned in CC using the user name and pwd, to chk whether you have the permissions to login to the server.
    Also the check whether the folder you are trying to access is having permission for delete/read/write.
    Restart the FTP server and try it again.
    Regards
    Sridhar Goli

  • File access parameter in file adapter at receiver side

    Hi Experts,
    1- i am using file adapter at receiver side. i want to create my file with time stamp for that i have given the file construction    mode = add time stamp and put file directly .but it is showing time in file name????????
    2. i want my file name as  TimeSheet_Country_Date_time.csv so for this what value i have to give in file Name Scheme parameter.
    Regards

    1- i am using file adapter at receiver side. i want to create my file with time stamp for that i have given the file construction mode = add time stamp and put file directly .but it is showing time in file name????????
    The addtime stamp will add timestamp as the last part of the filename before the extension.
    2. i want my file name as TimeSheet_Country_Date_time.csv so for this what value i have to give in file Name Scheme parameter.
    You can achieve this using dynamic file naming UDF in mapping and using ASMA in file adapter.
    Use current date function and generate the current date. Then use substring to pick date,time from it and format it according to your requirement (TimeSheet_Country_Date_time).Else you can write a UDF to generate the file name as per your requirement and then pass it to the dynamic filenaming UDF in the mapping.
    Search SDN for dynamic file naming.

  • FCC in receiver side in idoc to file scenario

    Hi all,
               I am doing an idoc to file scenario using FCC .I am using FCC in receiver side ,but i am getting my output file in only one line while i want structre to be seprated by new line.for more information i am giving muy file structre.
    Record
        header(1to1)
        data    (0 to unbounded)
        footer  (1to 1)          header, data, footer are three structre which contain various fields.I have to use fieldFixedLengths as filed separator. I am also using endseperator as 'nl' but its not coming in new line.Please share ur views on this issue.
    Regards
    Neha

    hi neha,
    In your scenario
    Recordset Structure  header,data,footer
    header.fieldFixedLengths    =  1,2,3,  whatever it is 
    data.fieldFixedLengths      =  similar to header
    footer.fieldFixedLengths    =  similar to header
    header.endSeparator  = 'nl'
    data.endSeparator  = 'nl'
    footer.endSeparator  = 'nl'
    I guess you dont have to do any thing else.
    Regards
    Pushkar
    Message was edited by:
            Pushkar Anand

  • Problem with file contnet conversion in receiver side.

    Hi All,
    I have a source strucuture as below.
    Header-1.1
    Item..1..unbounded.
    footer..1..1,
    As i am using PI 7.0 , can you any one tell me ..how do i mention item segment is occuring multiple times in the reciever content conversion.If only one segment is comming then the scenario is working but if the item segment is comming with multiple times, it is throwing error.
    Can any one let me know how do we achieve this.
    Regards,
    Chandu.

    hi,
    There is no need of giving * in receiver side FCC
    give the structure as
    header,item,footer
    try with this one,it will work....
    and give corresponding
    header.feildSeparator
    header.fieldNames
    item.feildSeparator
    item.fieldNames
    footer.feildSeparator
    footer.fieldNames
    default endSeparator is 'nl'
    if fixed length give fixed lengths

  • Part of sender File name at the receiver side?

    Hello All,
    My requirement is like this.
    iam picking the file from FTP server and place the file in another FTP server with out mapping.
    I need to use part of sender file name to create the receiver side along with current date.
    for example.
    sender side file name : LM01000008.txt
    recevier side file name need to generate : LM01dd/mm/yyyy
    Please let me know how to achive this.
    i tried with the blog given below, but partial file name is not possible with that blog.
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417100)ID0229698450DB11989196758750510369End?blog=/pub/wlg/6400
    Thanks and Regards,
    chinna

    Hi Chinna,
    Use this code
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    SimpleDateFormat dateformat = new SimpleDateFormat("yyyyMMdd");
    String timestamp = dateformat.format(new Date());
    String newfilename=fileName+timestamp+".txt";
    // change to new file name
    conf.put(key, newfilename);
    return "";
    Regards
    Suraj

  • Dynamic File Name on Receiver Side using XSLT mapping

    Hi,
      My scenario is a Proxy to File scenario.The File on the receiving side is a TEXT file generated due to XSLT mapping. The file name has to be dynamic like- TEST<DDMMYYHHMMSS>File.DAT.
    If somebody knows how to do the same please help.
    Regards
    Ritu

    Hi Ritu,
    I agree to Krishna.With your XSLT mapping create a XML output which can be converted to a text file with content conversion.
    And for the dynamic file name, i guess its the date that matters which needs to be in DDMMYYHHMMSS format. the same can be accomplished by a Java function and calling it in your XSLT .
    Do refer this weblog it will help you accomplish the same.
    >>> /people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners
    Regards,
    Shabarish

  • How to Get the Source File Path in the Receiver Side

    Hi Experts,
    Here We are Trying to Do How to Get the Sender Information ( File Name & Path ) on the Receiver Side .
    According to the Michal Blog
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Here we Are Able to Get only the File Name.
    But If I Want to get the Total File  Path Also means What Should I Do Here ????
    Please Let Me Know
    Regards
    Khanna

    Khanna,
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey fkey = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    DynamicConfigurationKey dkey = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
    String fname = conf.get(fkey);
    Sring path = conf.get(dkey);
    String final=fname""path;
    return ""final"";
    Best regards,
    raj.

  • Encoding in Receiver side file adapter

    Hi All,
    I have special characters in message structure. While writing the message to output file the special characters are not getting printed(getting replaced by '?'); I have tried using UTF8, ISO-8859-1 and other code pages related to latin characters; Still facing an issue. I have tried using Binary mode also.
    I tried using similar encoding formats in sender adapter. It was working fine and all the special characters are visible.
    Is this problem in receiver side file adapter? Any inputs on the same will be a lot more help ful.
    Thanks in advance
    Nik

    Hi
    I have é, à and some other characters in my source message structure. The same characters are visible in message monitoring. While writing to file, they are being replaced by ?
    This type of character are generated using UTF-8
    use the same for receiver
    The default setting for code page is the system code page that is specific to the configuration of the installed operating system.The content of the message needs to be converted to the corresponding code page before the message is saved as a file.
    You should use this conversion only for plain text and not for XML documents. If you want to change the encoding of an XML document, then select the File Type as Binary and apply XMLAnonymizerBean as an additional module in the Module tab page.
    Thanks
    Gaurav

  • Copy  file name on receiver side

    can some one send Adapter Specific SCREN SHOTS of Sender and Receiver Adapters to handle file and get it with same name on the receiver side ...
    Good replies will awarded with more...
    Please help..

    for sender file details:
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    you have to give any file name in the sender side which the adapter should pick...cehck the adpter specific attributes and check the filename option....this will get you the filename whcih adapter picked and it will be ther ein the XI mesasge then you can write an UDF to get this name and pass to the tarrget.....
    for receiver details:
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    Message was edited by:
            Nisar Khan

  • File Content Conversion on the Receiving side

    Is there a way in which if I want a Pipe Delimited File as a result, after the last field also I get a pipe with next record starting in the next line.

    Hi,
    For | (Pipe), use corresponding hex code as fieldSeparator i.e. 0x7C as fieldSeparator.
    For FCC on receiver side refer -
    [Simple FCC|http://www.riyaz.net/blog/index.php/2008/02/19/xipi-file-content-conversion-for-simple-structure/], [Complex FCC|http://www.riyaz.net/blog/index.php/2008/02/20/xipi-file-content-conversion-for-complex-structures/]
    For separotor at the end of line you can try using a dummy field or use combination of pipe and newline i.e. '0x7C' and '0x0D' (stands for carriage return) or 'nl' as endSeparator
    Edit: You might consider using 'nl' as beginSeparator parameter and 0x7C as endSeparator. This will do the trick. However, this would add a blank line in the beginning of the file.
    Hope this helps.
    Regards,
    Riyaz
    Edited by: Riyaz Sayyad on Aug 21, 2008 3:00 PM

  • File to File (get confirmation from receiver side)

    Hi All,
    I have a FILE to FILE scenario (assynch of course) (both FTP) and the manager of this project is asking us to have a confirmation when the interfaces have been performed and received sucessfully in receiver side and LOG it in a table of our DataBase (Oracle).
    I'd like to know what is the best way to achieve this ? How can the sender side know if the file has been received sucessfully in receiver side and thus the interface can log it in a DB table as sucessful ?
    Thank you,
    Regards

    Hi Diego,
    you can setup an Business Process where you receive the file sender message, send to the file receiver asking for an acknowledgment and define an exception branch for that. In the exception branch you map the error cases (for the two receiver of the status). In the normal branch you map the positive response for the status receivers. Finally you have the two send steps to the status receivers.
    receive step
    block
    -normal branche
          --send step to file receiver
          --transformation positive 1
          --transformation positive 2
      -exception branche
          --transformation negative 1
          --transformation negative 2
    end block
    send step status receiver 1
    send step status receiver 2
    Regards,
    Udo

Maybe you are looking for

  • Closing the browser after logout

    Version 1.6 We're using Internet Explorer and I need to close the browser after/when the user clicks on the Logout link. How can I accomplish this? Thanks, Joe

  • Please wait while windows configures microsoft visual studio professional 2013

    After installing visual community 2013 and rebooting visual studio works fine but all other microsoft office programs display "please wait while windows configures microsoft visual studio professional 2013" and continues the installation for about 1

  • Receiver RFC Adapter Error

    Hi All, I have a file to RFC scenario. I keep getting the below error: Any Ideas? Danny, Delivery of the message to the application using connection RFC_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: error

  • QT 7 and higher won't play .mov data that QT 6 used to play.

    I got several .mov files along with a biochemistry book. After having updated to QT 7, QT Player won't play some of these files. The progress bar displays a progress as it used to under QT 6. There is neither audio, and the screen stays black. Howeve

  • How do you display ID3 tag info?

    Does anyone know how to display detailed id3 tag info for a song that is playing? I'm looking for a display of the bitrate, genre, file size, track number, etc. I've tried pressing the center button a few times as suggested by the manual, but it does