Additional file in File adapter

Hi,
I have two File scenario inbound and outbound.
Outbound:
In this scenario we are sending a File using File Adapter.Our requirement is we have to count number of data records and then write the number of records in other file.We won't be writing number of total records in same data file but other file which will have only value for  total number of records and the extension of this file will be different.
Inbound:
In Inbound we have two file one with data and other with total number of records in first file.We need to pick both files and then validate in sap  that total number of records from first file is equal to value in the second file.
Can we achieve this without using BPM?If yes please let me know all steps required.
If we have to use BPM then how  much file size  can BPM handle.Any one has some experience using BPM for large files.
Thanks in advance.
Rekha.

Hi Rekha,
you can realize the outbound scenario without BPM with a message split : <a href="/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible without BPM - Yes, it’s possible!</a>
The inbound scenario can be done with a <a href="/people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer.
BPM should be able to handle large files. It is only slow. So if you have to much of large files it can be a problem. The bottle neck for large files is assumedly the mapping. Depending on mapping content, hardware and kind of mapping in this sequence files of 40 - 200 MB should be mappable (appreciated).
Regards,
Udo

Similar Messages

  • Additional Files in Sender File Adapter

    Hi
    I have to collect 2 files (IN.txt, IS.txt) and attach 2 files as an attachment to mail.
    So I opted Additional Files in Sender File Adapter
    Source Directory = D:\usr\sap\pitest\LoadTest\Output\Invoice
    File Name = IN.TXT
    Additional Files
    File List <IS.TXT>
    <IS.TXT>.namePart               ".TXT"=".TXT"
    <IS.TXT>.optional                  NO
    <IS.TXT>.type                       TXT
    But I am able to Pick only one file (IN.TXT) from the Source Directory.
    IS.TXT file is not at all picking.
    Please give me your suggestion.

    I reply just want to close this issue.
    if file Name = Item.TXT and additional file name is ItemText.csv then configuration as following.
    File List <Item.TXT>
    <IS.TXT>.namePart               ".TXT"="Text.csv"
    <IS.TXT>.optional                  NO
    <IS.TXT>.type                       TXT
    for namePart parameter, we should give the str which need to be replaced. for your example, we could give as <IS.TXT>.namePart               "IS.TXT"="IN.TXT"
    replace all the file name.

  • What is the use of additional file(s) in  sender file adapter?

    Hi experts,
    what is the use of  additional files parameter in sender file adapter?
    give me some example.......
    Thanks & Regards
    E.Ravi Chandra Reddy

    Hi,
    please check the below link,
    you can specify additional files to be included in the XI message as attachments.
    http://help.sap.com/saphelp_tm90/helpdata/en/44/692ab8a4b633eae10000000a1553f6/content.htm
    Regards

  • Specifying Additional Files in an FTP Sender Adapter

    Hi,
    Has anyone worked out how to specify additional files in a File/FTP Sender Adapter using the FTP transport protocol? This functionality comes 'standard' in the File/FTP Sender Adapter using NFS transport protocol so that additional files can been included as attachments, however, it doesn't seem to be available when trying to use the FTP protocol.
    Thanks in advance.
    Regards,
    Reuben.

    Yes this is available in only NFS mode check sap help
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/frameset.htm
    Thanks!

  • Accesing additional files in the sender adapter

    Hi,
    I'd like to use this option in the sender file adapter: http://help.sap.com/saphelp_nwpi71/helpdata/en/44/692ab8a4b633eae10000000a1553f6/frameset.htm
    --> "In the sender file adapter, you can specify additional files to be included in the XI message as attachments" ... "Additional files are transported unchanged without conversion options"
    After testing I'm getting two files in the soap message, which is what I wanted. But how can I get the content of the second file (not the main one).
    For example, in a custom module in the file adapter I can get the main payload as this:
    public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData)
                                       throws ModuleException {
    Message msg = (Message) inputModuleData.getPrincipalData();
    I guess that to get the second file it could be something like:
    inputModuleData.getSupplementalData("?");
    but don't really know what to insert there as a parameter.
    Basically I would need to find out a way to access the content of that second file: it could be in a custom module, it could be in a graphical or java mapping...
    Thanks!
    Edited by: Jorge Lopez on Mar 17, 2009 11:09 AM

    Finally I could access that attachment in a Java mapping using this code:
    private String getAttachment(TransformationInput in){
         InputAttachments inpAttach = in.getInputAttachments();
         Collection<String> collIDs = inpAttach.getAllContentIds(true);
         Object[] arrayObj = collIDs.toArray();
         getTrace().addInfo("Number of attachments: " + arrayObj.length);
         String idAttachment = (String) arrayObj[0];
         return new String(inpAttach.getAttachment(idAttachment).getContent());
    and so getting the attachment in a string.
    You also have to set on the flag "Read Attachments" in the Operation Mapping (PI 7.1, old Interface Mapping), so that the ABAP side passes the attachment to the Java runtime.
    I'm not sure if it's possible to access the attachment in the sender adapter in a custom module
    Edited by: Jorge Lopez on Mar 18, 2009 4:06 PM

  • File adapter: Additional files option and Archive option

    Hi all!
    I configure file adapter to take file with two additional files. Additional files is optional. Also I configure to processing mode to archive.
    So when I put all three files in folder everything works fine - all files are archived.
    Problems begins when I put not all additional files for example:
    1) when I put one main file and the <b>FIRST</b> additional file, files are archived, in communication channel monitoring i see error in message java.lang.NullPointerException, but message with payload transfers to IE successful.
    2) when I put one main file and the <b>SECOND</b> additional file, the main file archived, the SECOND  file <b>NOT</b> archived and stayed in source directory. In CC monitoring I see error message java.lang.NullPointerException, but message with payload transfers to IE successful.
    Please provide me with some solution, because I need to archive all files.
    Maxim.

    in file sender CC, thr is option to archive and error file store also..
    1)under processing mode - archive.. give the path thr..
    2) To archive source files where a permanent error occurred during processing, select Archive Faulty Source Files
    http://help.sap.com/saphelp_nwpi71/helpdata/en/44/658abd344a4de0e10000000a1553f7/frameset.htm

  • File adapter - Additional field

    Hi,
       Can I pass an additional field in the file adapter. The scenario is
    1. Inbound file - to XI - File adapter
    2. XI to R3 - Proxy with no mapping.
    I am trying to add a field at the end of the file to signify the source in the file adapter.
    Any help is appreciated.
    Joe Vellaiparambil

    If you want to get the source directory from the file adapter, use the Adapter-Specific Message Attributes.
    Look at the section "Advanced Tab Page" in
    http://help.sap.com/saphelp_nw70/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    Then use the following to retrieve the information in your mapping.
    http://help.sap.com/saphelp_nw70/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm

  • Get additional file attachements with file adapter

    Hello,
    Has anyone ever had the following situation:
    A Sender interface sends a little bit of data to XI.
    This data contains the filenames of some files on a FTP server.
    Based on these filename the file needs to be retreived from a FTP server and further handled as an attachement of the XI message?
    Is it possible to trigger a sender file adapter with a variable directory and filename from XI, in a BPM or Mapping?
    Warm Regards,
    Leon Boeijen

    hi,
    >>>>Is it possible to trigger a sender file adapter with a variable directory and filename from XI, in a BPM or Mapping?
    no it's not possible to start a file adapter from BPM
    you can use a java proxy that will do the trick
    we've used a solution like this many times with no big issues
    remember that it's better to use an async java proxy
    (with correlation) then a sync one...
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Dynamic configuration required in sender file - Adapter Module

    Hi Everybody,
    I am developing an Adapter Module in the file adapter (sender) using Adapter Specific Message Attributes.
    I am using Dynamic configuration inside the Module Process method in the adapter module.
    We are getting an error saying Dynamic Configuration cannot be resolved.
    Can anybody tell me the package to be used.
    Thanks,
    Zabiulla

    You can access the dynamic configuration in adapter module like this:
    Message msg = (Message) inputModuleData.getPrincipalData();
    String fileName = msg.getMessageProperty("http://sap.com/xi/XI/System/File", "FileName");
    You do not need any addition library besides the adapter module API.
    Hope that helps
    Stefan

  • Need help with a simple process with FTP Adapter and File Adapter

    I am trying out a simple BPEL process that gets a file in opaque mode from a FTP server using a FTP adapter and writes it to the local file system using a File Adapter. However, the file written is always empty (zero bytes). I then tried out the FTPDebatching sample using the same FTP server JNDI name and this work fine surprisingly. I also verified by looking at the FTP server logs that my process actually does hit the FTP server and seems to list the files based on the filtering condition - but it does not issue any GET or RETR commands to actually get the files. I am suspecting that the problem could be in the Receive, Assign or Invoke activities, but I am not able identify what it is.
    I can provide additional info such as the contents of my bpel and wsdl files if needed.
    Would appreciate if someone can help me with this at the earliest.
    Thanks
    Jay

    persiandude wrote:
    Topic: Need help with if, else, and which statements and loops.
    How would I display 60 < temp. <= 85 in java
    System.out.println("60 < temp. <= 85 in java");
    another question is how do I ask a question like want to try again (y/n) after a output and asking that everytime I type in yes after a output and terminate when saying No.Sun's [basic Java tutorial|http://java.sun.com/docs/books/tutorial/]
    Sun's [New To Java Center|http://java.sun.com/learning/new2java/index.html].Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    [http://javaalmanac.com|http://javaalmanac.com]. A couple dozen code examples that supplement [The Java Developers Almanac|http://www.amazon.com/exec/obidos/tg/detail/-/0201752808?v=glance].
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's [Thinking in Java|http://mindview.net/Books/DownloadSites] (Available online.)
    Joshua Bloch's [Effective Java|http://www.amazon.com/Effective-Java-2nd-Joshua-Bloch/dp/0321356683/ref=pd_bbs_1?ie=UTF8&s=books&qid=1214349768&sr=8-1]
    Bert Bates and Kathy Sierra's [Head First Java|http://www.amazon.com/exec/obidos/tg/detail/-/0596004656?v=glance].
    James Gosling's [The Java Programming Language|http://www.bookpool.com/sm/0321349806].

  • File to RFC want to delay rfc or file adapter

    Hi,
    I’ve got a problem with my file to RFC scenario.
    XI picks up a file and puts it to an archive directory.
    Then it makes a synchoon call to a RFC. Quality of Service is Best Effort
    The problem is, that the function module does not execute properly, because it can not find the file, so the RFC acts to quick.
    When I change the quality of service to Exactly One or Exactly One in Order it works properly but in that cause I can not see my return message in the payload from SXMB_MONI.
    I guess it is not possible to delay the RFC with the help of additional parameters. The only way to handle this I think is to build a wait function into the function module but my opinion, that's not a correct solution.
    Any expert an idea?
    Thanks in advance for your answers!

    Hi,
    File adapter doesnot support Sychronous. It only supports Asynchronous. Even you specify as synchrounous it acts like asynchronous only. So that is the reason why you are not seeing the response message in SXMB_MONI.
    ---Satish

  • File adapter: how to change filename

    Hi all,
    In my scenario I need to add specific time stamp (current date actually) to filename when it's copied to target system. In the properties of file adapter there is an option to add time stamp, but I need it to be in format YYMMDD.hhmm, while XI default suggests another one. How can I solve the problem? Use variable substitution or m.b. dynamic configuration? In addition want to say that there is no any mapping in the scenario.
    Thank you.

    Hi Dmitriy,
    pls do chk this links
    An interesting usage of Variable Substitution in XI
    Solution to the problem encountered using Variable Substitution with XI-SP12
    The specified item was not found.
    do g with dynamic configuration
    Regrads
    Sampath

  • Unable to clone File Adapter receiver channel for parallel processing

    Hi Experts,
    I am using variable substitution for File - RFC - File with out BPM scenario(using request response, oneway bean).
    While i placed the file in the sender FTP folder, the file didnt get picked up, but in communication channel monitoring, i am getting error ' Unable to clone File Adapter receiver channel for parallel processing'.
    Can anybody provide me suggestions to solve this error.
    Note : without variable substitution , the interface is working good.
    Is it due to, i am trying the source structure field in response file adapter?

    Hi,
    In your CC, do you use some additional paramaters ?
    like these one of point 47/48 of [Oss note 821267 - FAQ: XI 3.0 / PI 7.0/ PI 7.1 File Adapter|https://service.sap.com/sap/support/notes/821267]
    Maybe there is conflict with a parallel connexion and the bean used to do asynch-synch bridge...
    Mickael

  • Receiver File Adapter fails saving an attachment

    Dear XI/PI experts. I have a file to file scenario where I send a XML message with PDF attachment. I am using Additional Files configuration in the Sender adapter. I can monitor that the attachment goes succesfully through Xi runtime environment and to Adapter Engine. Even there I can monitor that the attachment is with the xml message when the saving is done but only main payload, xml message is saved to disk. No errors, pdf file just do not appear in the folder, Is there any extra configuration needed to be done e.g Module configurations in Receiver adapter?

    well the reason i can think of is that the receiver system is not capable of handling XML message with attachments.
    have a look at the help.sap document and see all the constraints and if all the conditions are met
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/frameset.htm
    Thanx
    Aamir

  • ZIP FileName (Additional Files)

    Hi, My sender FTP channel picks two files Main& Additional file suing adavanced options and zips it using Payloadzipbean and writes to the target without any mapping,however the name inside the zipped file is "MainDocument & File"
    How can i get the original file name as in the source directory inside my zipped file? I think I need a module for this but not sure how to access the source filenames inside the module any help would be greatly appreciated.
    Thanks,

    Thanks Ryan, as i cannot attach the screenshot here is how the soap header looks..
    <Inbound Message>
    <Soap Header>
    <Soap Body>
    <Payloads>
         MainDocument (application/xml)
         <File> (application/xml)
    <Receiver Identification >
    The two payloads when doubleclicked opens up the pdf documents, The dynamic Configuration contains the name of the Main Document i.e..
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">601070461-601070461-WB.pdf</SAP:Record>
      </SAP:DynamicConfiguration>
    Now when I use PayloadZipBean in my reciever File adapter the zip file is written as
    Output.zip->when Unzipped>MainDocument &_File_  , with no extensions.
    I have tried to include a custom module before PayloadZipBean to set the ContentType of the MainDocument and gave the parameter zip.filenameKey = contentType ,but still the Archive filename in the zip file does not change.
    Kindly let me know if you need further info..struggling wid this ) i could send the screenshots to ur mail(if u ok to provide)
    Many Thanks,

Maybe you are looking for

  • RAISE_EXCEPTION

    Hi , We are getting the runtime error " RAISE_EXCEPTION" in BW3.5 production server. Error analysis     A RAISE statement in the program "SAPLSDD1" raised the exception     condition "DB_ERROR".     Since the exception was not intercepted by a superi

  • Bootproblem with ntdll.dll

    Each time I start my computer I have a Msg that a program not compatible with windows has a message. When I open this I hav a light blue screen with nothing in it and a second window which offers me to return to Windows. Whem I ask details I get the

  • Can't connect wifi if there is a sign on screen!

    I have a problem connecting to networks that have a sign in screen when you load the web. For instance, at work I have a patient network and when you access it from any computer it comes up with a screen that tells you to put in your user name and pa

  • Is there a possibility for message losting?

    Actually i have got 2 questions. first, if i use the method MessageProducer's send(message, DeliveryMode.persistent, priority, Integer.MAX_VALUE ) method to send messages,is there any possibility of send failure(exclude the disk error)? second, when

  • Still Interlace problem

    I am using photos in my FCE timeline. I have a bunch...I'm using .png and .jpg but I'm having an issue with 1 photo. It is the one that I exported from my video still. When I burn it to DVD and play it in a progressive dvd player this one photo has s