File Sender Filename scheme problem

Hello,
we need to pick two types of files from the same folder on FTP server:
Examples of filenames are:
FILEINVRPT12_28102010.xml  and  FILESLSRPT12_28102010.xml
We tried to use Advanced selection of files for these two file types and the filename scheme used was
FILEINVRPT.xml in filename and FILESLSRPT.xml in Filename mask for Advanced selection
All files of type FILEINVRPT.xml  have been picked up but FILESLSRPT.xml were not.
We tried to remove advanced selection and even used *.xml and . as filename scheme ,still these files aren't picked up.
Then we tried giving exact filename (hardcoded) for some of these files and they were picked up ,so there should be no problem with these files.
Can anyone please suggest what could be the reason for this strange behaviour?
Thanks a lot.
Best Regards,
Shweta

Hi Shwetha,
As per my understanding, you need to pick two different files(not having same naming convension) from the same folder. I see that you are using Advanced selection for Source files.
This can be easily achieved, I have done it and providing you the steps to configure the adapter.
1. In the File Access parameters, provide the source directory and filename as FILE*.xml.
2. Now, check the option, advanced selection for source files.
provide the directory = 10.20.30.40
and the File Name Mask FILEINVRPT.xml, FILESLSRPT.xml
Ensure that the file placed in the FTP should have the same naming convension of the filename.
Thanks,

Similar Messages

  • XI file sender: filename validation to stop processing a file twice

    Hello folks,
    I have a file sender adapter for a text file with name convention that includes a date - e.g. orders_YYYYMMDD.txt. We have a business requirement to ensure that we don't post the same file more than once. The file can be huge, so it's not really an option to pick up the file contents in one message.
    Options I have tried:
    - I do not know of a setting in the file adapter to achieve this.
    - write a perl script to read the filename and translate [hex-encode] this into a Message GUID, then post the file via HTTP adapter
      - - if the file name is not too long (guid is 32 hex chars) this method works well for small files that are in XML format.
      - - Text files need too much perl coding to translate to XML. Large files that need to be split will fail on the 2nd chunk.
    Options I don't want to use:
    - Use BPM to call an RFC/Proxy that validates the filename - this will cause me to read the whole file, or I have to implement a 'pipe' in BPM to ensure EOIO processing. (We have this elsewhere, but it's not good for performance)
    - Actually, I don't want to manage this in ABAP/Ztables at all if possible.
    I am about to start work on a Module Processor to mangle the GIUD in the file adapter, similar to the HTTP method above (don't have any idea of whether this will be possible yet)...
    Can anyone recommend another method to achieve this?

    Hi Derek,
    Intially when the file is picked then archive it to another directory.
    with this the same file will not be processed twice.
    Rgds,
    Kumar

  • File Sender Adapter transformation problem

    Hi everyone,
      I have a problem tha might be quite simple to solve but I'm completely lost And some help would be apreciated
      We have an "File -> RFC -> File" scenario implemented using BPM, in our case the file is already in an XML format and we dont have control on the creation on that file, some old application generates it. The problems is that no matter if we build the data type or if we use an external definition, PI always adds the namespace to the message using the tag xmlns:ns0="namespace...." and in our case the when we test the interface is expecting something like this:
    If we tests with the original file PI triggers an Mapping Error, in fact, if whe load the file in the mapping test section at design time we can reproduce the error. When we change the file format mannualy and we just add the "ns0" and the attribute xmlns:ns0="Some namespace....." it works just fine. The problem is that we cannot change the program that generates the files and I don´t have any clue on how to solve this on PI side. We don't know which should be the approach.. content transformations in the CC, XSLT, or create an VBS at operating system level to change all the files before PI runs, etc...
    Any ideas would be very helpful.
    Gustavo Balboa

    Hi Gouri,
      I was sure that would be a very simple solution jejejeje..... thank you very much. You were right. I just remove the namespace of the data type, and now is working just fine.
      I always use the namespace and I thougth that was mandatory always because in the repository the field is marked as mandatory...
      Again, thank you!
    Best Regards
    Gustavo Balboa

  • File sender content conversion problem.

    Hi,
    I am Working on File to RFC scenario .
    Source file  is zipped and has next structure:
    HEADER1 FIELD1 FIELD2...
    HEADER2 FIELD1 FIELD2...
        DETAIL FIELD1 FIELD2...
        TXT DESCRIPTION1
        TXT DESCRIPTION2
        DETAIL FIELD1 FIELD2...
        TXT DESCRIPTION1
        TXT DESCRIPTION2
    HEADER1 FIELD1 FIELD2...
    HEADER2 FIELD1 FIELD2...
        DETAIL FIELD1 FIELD2...
        TXT DESCRIPTION1
        TXT DESCRIPTION2
        DETAIL FIELD1 FIELD2...
        TXT DESCRIPTION1
        TXT DESCRIPTION2
    I've tryed with
    zip.mode --> unzip
    Transform.Class --> com.sap.aii.messaging.adapter.Conversion
    xml.HEADER1.fieldFixedLengths --> 3,3,17,8,4
    xml.HEADER1.fieldNames --> ID,NODO,REDO,FEDO,HODO
    xml.HEADER2.fieldFixedLengths --> 3,13,17,13
    xml.HEADER2.fieldNames --> ID,QFAC,REDO,AQSP
    xml.DETAIL.fieldFixedLengths --> 3,13,30,5,10,16,3,16,3,16,3,16,5,16,3,1,17,3
    xml.DETAIL.fieldNames --> ID,QFAC,NOMPRO,NUMPLA,TIPRAP,CONIND,TIPCON,RAPPTS,MONRAP,BASERP,MONEDA,CUOTA,TIPIVA,TOTRAP,PERLIQ,NOCOB,NUFA,TIPLIQ
    xml.DETAIL.keyFieldValue --> DETAIL
    xml.TXT.fieldFixedLengths --> 3,70
    xml.TXTfieldNames -->  ID,TEXTO
    xml.TXT.keyFieldValue --> TXT
    xml.conversionType --> StructPlain2XML
    xml.documentName --> MT_I4303_LIQRAP
    xml.keyFieldName --> ID
    xml.recordsetsPerMessage -->1
    But error:
    Exception: ERROR in structure conversion plain->xml configuration: message split not allowed here'; nested exception caused by: java.lang.Exception: ERROR in structure conversion plain->xml configuration: message split not allowed here
    Thanks,
    Carme

    Dear Carme
    I am also trying to use parameter xml.recordsetsPerMessage = 1 of Module MessageTransformBean to get one PI message per document (in my case per line) available in text file.
    like you I am also facing the error
    Attempt to process file failed with com.sap.aii.af.sdk.xi.adapter.trans.TransformException: Error converting Message: 'java.lang.Exception: ERROR in structure conversion plain->xml configuration: message split not allowed here'; nested exception caused by: java.lang.Exception: ERROR in structure conversion plain->xml configuration: message split not allowed here
    but I was not able to solve it by additional parameter xml.recordsetStructureOrder = var
    could you please share more details on your solution?
    Thanks
    best regards
    Jochen

  • Get filename from file sender adapter

    Hi Experts,
    I have a question regarding the file/ftp adapter (sender).
    I have a directory with xml and pdf files. for every xml file there is a pdf file with the same filename. for example:
    file1.xml
    file1.pdf
    file2.xml
    file2.pdf
    file3.xml
    file3.pdf
    Now I want to read the xml file with the file sender adapter. afterwards I want to read the related pdf file. for example: If I read the file file1.xml afterwards I want to read the pdf file file1.pdf with the file sender adapter. For this it is nessessary to get the filename from the xml file so that I can read afterwards the pdf file. How can I realise it?
    Thanks and best regards
    Christopher

    Hi srinivas,
    thanks for your quick answer.
    That the file adapter is not able to read pdf files is clear to me. In this case I only want to transport the pdf. that works fine. I tested it.
    the problem is the following:
    I have a xml file with the name "file1.xml". I read the xml file with the sender file/ftp adapter configured with filename "*.xml". Then I want to import the pdf file with the name "file1.pdf". Therefor I need the filename from the xml file.do you know what I mean? So XI has to know the filename of the xml to import the pdf with the same name ...
    regards

  • File Sender Adapter - Dinamic Source Directory and Filename

    Hi Experts,
    I have to receive in XI a file and depeding of some info, put it in diferent directories with diferent fieldnames.
    In receiver File Adapter we can set the directory and fieldname dinamically by ABAP-CLASS mapping, but not in Sender.
    I've read Michal's blog
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    and sap help
    http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm
    But, I can't find Adapter-Specific Message Attributes in my File Adapter...:-) I've checked SP version is SP16, where are my Adapter-Specific Message Attributes?
    How can I set Directory and Fieldname at runtime for Sender File Adapter?
    Please help...
    Thanks all in advance,
    Regards.
    Urtzi.

    Hi Nilesh,
    Your threath is not about my issue...
    Answering to other friends, what I want is not to write p.e.: '/server/dir/' in each File Sender Adapter Channel, and put it with any other way looking some 'customizing' or checking a condition.
    The problem is that frecuently in the Company changes servers and we have to enter to the Directory and change every Channel one by one...We would like to reduce the maintain of the Channels with a mapping, variable, customizing table...or something similar. Do I explain?
    I don't know if its possible but I had the hope...:-)
    Thanks all.
    Urtzi.

  • Send Filename from j2se FILE Adapter

    Hi,
    I need store filename from local file to xml element. When I use j2ee adapter there is no problem. I sended Filename to Adapter Metadata and through DynamicConfigurationKey in mapping I write it to element.
    My question is: How could i do it in j2se plain adapter? (In our customer there is no way for using j2ee adapter)
    Many thanks,
    Paul.

    hi,
    try this
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    //obtengo la Key del FileName
    DynamicConfigurationKey keyF = DynamicConfigurationKey.getName();
    http://help.sap.com/javadocs/NW04/current/pi/com/sap/aii/mapping/api/DynamicConfigurationKey.html
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516
    /people/mohammed.zabiulla/blog/2008/03/26/have-you-ever-tried-to-determine-mail-cc-dynamically
    Hope it helps
    Thanks
    Rodrigo
    Edited by: Rodrigo Pertierra on Apr 11, 2008 9:31 AM

  • XSLT mapping to retrieve FileName from FILE SENDER adapter

    Hi
    I have an File Sender adapter scenario where I have switched on Adapter-specific message attributes (FileName).
    In my XSLT mapping program I need to RETRIEVE the filename and map it. Can anyone help please?
    Thx in advance

    Hi Bohamo
    Refer the following link.It provides the required solution for you.
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/83/2200cb50d345c793336d9a1683163e/frameset.htm
    Thanks
    Ram

  • How can i access filename from file (sender)

    hi All,
    can anybody tell me
    how can i access filename from file (sender)?
    thank u
    swari

    See:
    "SAP NetWeaver XI: Variable Substitution with Adapter-Specific Message Attributes via DynamicConfigurationBean"
    SAP NetWeaver XI: Variable Substitution with Adapter-Specific Message Attributes via DynamicConfigurationBean
    "Accessing Adapter-Specific Attributes through User Defined Function"
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516

  • UDF to get the filename for File Sender Adapter

    Hi,
    I had an requirement to get the  the Filename and map to the  target payload.
    I had configured the File Sender Adapter settings in the ID
    This is the following UDF i got from SDN.
    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;
    But when iam using this UDF iam getting an error
    RuntimeException in Message-Mapping transformation: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._MM_ORDER_CRS_OB_SAP_PROXY_IB_ method Filename$[com.sap.aii.mappingtool.tf3.rt.Context@54e154e1]
    Please help me in correcting the error.
    Thanks
    Srinivas

    Hi Jayson,
    actually, in the interface mapping, it doesn't give exception.
    The DynamicConfiguration is a constant retrieved from the container object, so it will never be returned as null (given that the container object was instantiated).
    Just the retrieved value will be null (since it was not previously set), but no exception occurs.
    In the message mapping, the container object is never instantiated, and that's the reason for the NullPointerException.
    Regards,
    Henrique.

  • Problem while archiving faulty files in File Sender Adapter

    Hi All,
    I am facing some problem while archiving the faulty files using Sender File adapter.
    I have configured the option in the File Sender Channel to archive the files to some
    other location. I have configured some custom modules inorder to perform conversion.
    My file adapter is not archiving the faulty files. Please help me in this regard asap.
    Best Regards,
    Surya

    I have checked with all the authorization issues. It is still no archiving the faulty file.
    Can you please explain the mechanism behind this concept?
    How File adapter will decide that it is faulty? On what basis?
    How Modules play a role here?
    Regards,
    Surya.

  • Problem in File Sender Adapter in File with quotes

    Hi experts.
    We're having a problem in File Sender Adpapter.
    We've configured the adapter with FCC. We use the fieldSeparator = ; to convert the file to xml.
    The problem arises when between two ; appears a quote. For insantce in this line:
    HUMALVAL MASCOTAS S.L.;"AV/DE EUROPA SN;P.IND.ALCORCO;28922;ALCORCON;40.349968;-3.847452;
    The adapter shows this error:
    More elements in file csv structure than field names specified.
    If the line was (without "):
    HUMALVAL MASCOTAS S.L.;AV/DE EUROPA SN;P.IND.ALCORCO;28922;ALCORCON;40.349968;-3.847452;
    everything would work correctly.
    How could we solve this?
    Thanks in advance.
    Regards.

    Hi,
    Please use  xml.enclosureSign=u201C in your sender FCC.
    Hopes this helps to you.
    Regards,
    P.Rajesh

  • Problem in file sender adapter for newline character

    Hi All,
         I'm trying to read a file of only one record with the following fields.
    Name
    Age
    Place
    <b>Each field is seperated by a new line</b> which is the cause of the problem.
    <b>The problem is the value 'nl' for x.fieldSeperator is not been recognised in file sender adapter.</b>
    The adapter creates a new record (new XML) for each individual field seperated by new line.
    <b>I've tried even with the corresponding hexadecimal values '0x0a' and '0x0d'.</b>
    Looking for some help.
    Thanks,
    Joe.

    Hi Shabarish,
            Thanks for your reply. But I tried that too already... It also didn't work..
    File adapter is successful... But it generates seperate records for each fields that's wat the prob is..
    Thanks,
    Joe.

  • Problem in message mapping due to file sender content conversion

    Hi all
    basically i m using file sender content conversion and couldn't make file in a proper nested structure where weight was the nested field of detail as there is a limitation of content conversion in file adapter:
    My file came out like this:
    <header>
    </header>
    <Detail>
    </Detail>
    <Weight>
    </Weight>
    <Weight>
    </Weight>
    <Detail>
    </Detail>
    <Weight>
    </Weight>
    <Weight>
    </Weight>
    <trailer>
    </trailer>
    and i wanted it like:
    <header>
    </header>
    <Detail>
    <Weight>
    </Weight>
    <Weight>
    </Weight>
    </Detail>
    <Detail>
    <Weight>
    </Weight>
    <Weight>
    </Weight>
    </Detail>
    <trailer>
    </trailer>
    so now the problem is i want to generate an idoc from it....but theres no way out to determine which weight is related to what detail except that the weight related to detail 1 comes after start and end of detail 1 tag and then weights of second detail comes after start and end of detail 2 tag in my source xml file.
    The structure of the target idoc is
    <header>
    </header>
    <Detail>
    <Weight>
    <flag>D1</flag>
    </Weight>
    <Weight>
    <flag>D1</flag>
    </Weight>
    </Detail>
    <Detail>
    <Weight>
    <flag>D2</flag>
    </Weight>
    <Weight>
    <flag>D2</flag>
    </Weight>
    </Detail>
    <trailer>
    </trailer>
    so i was wondering if i can make a user defined function in which i feed detail and weight and result a flag d1/ d2 inside the tag field. My logic is smth like
    while detail is 1 make all the tag weights coming after detail 1 inside <detail1> tag then resultlist.CC for context change  then while detail is 2 make a loop to fill the weight coming after detail 2 inside the <detail2>
    Is this possible by any means. I really need help
    Thnks
    Naina

    Hi
    My sender file content conversion have this setting:
    HEADER,1,DETAIL,*,Weights,*,TRAILER,*
    And plz give me more idea of the adapter module ....is there any blog available which is related to my problem.
    Naina

  • I have to send large files like 5MB or biger via mobile phone, but in that cases phone is telling mi to plug in power. And when I do that, there is no problem to send the file. For smaller files there is no problem. How can I solve the problem? Because wh

    I have to send large files like 5MB or biger via mobile phone, but in that cases phone is telling mi to plug in power. And when I do that, there is no problem to send the file. For smaller files there is no problem. How can I solve the problem? Because when I'm not at home I can't plug in the power.

    hi,
    I am sending file from server to client i.e client will request for a file and service will send it back....... no socket connection is there...I am using JBOSS and apache axis.
    pls help me out.....
    Rashi

Maybe you are looking for