XI File Adapter: Sender and the use of wildcards in the directory name

Hi,
Quick question for you XI guru's.  I have a requirement to <b>read</b> files from an ftp server that live in separate directories like:
/dir1/subdir1/in/
/dir1/subdir2/in/
/dir1/subdir3/in/
I want to setup the communication channel so that it does something like:
/dir1/*/in
Normally I would specify the other directories in the advanced tab however there could be potentially 1000's of subdir's so I want to use a wildcard.  Is it possible to do this with a directory name?
I have read this link and it seems to only indicate using wildcards in the filename.
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm

Hi,
I think.. try as below
It is better to use OS script to read the said three directories.
bcz you know three directories. so you can use OS script file and that file can be configured in Ftp adapter.
OS Command from FTP
Please see the below links
/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
OS Command on FTP
OS command line script - Need help
FTP - Run OS Command before file processing
/people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi - Call UNIX Shell Script
Chilla

Similar Messages

  • Get File Name in UDF from file adapter sender

    Hi,
    I've looking for this solution, but I couldn't find any usefull information.
    I want to obtain the name of the file, sended by the file adapter.. and later use it in the mapping logic.
    I've readed about sustitution... any help?
    Thanks.

    HI Stortoni,
    Take a look at these blogs:
    http://wiki.sdn.sap.com/wiki/display/XI/CombiningthreedifferentaspectsofPIinoneshot
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    /people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi
    Regards,
    ---Satish

  • Cannot process a Fixed Field Length file using the File Adapter (Sender)

    Hi -
    I have checked throughout these posts and blogs but I still have not been able to find a solution to my issue.  When using the File Adapter (Sender) I get a Conversion initialization failed with "xml.keyfieldName", no value found.  Why would I require a key field when I am using fixed field lenghts?  The file is comprised of 2 structures - 1 header and multiple details (see below).  There are no key fields in the flat file that I would be able to use.  Any suggestions?
    011000390      Customer Americas        20080605164317 000000000000000800000008000000000016000000                              
    12345678          100500       100500       Supplier 1                         0000000000030000002008040400                    
    12345678          100501       100501       Supplier 2                         0000000000052000002008042100 
    The File Adapter is configured as follows:
    Document Name = Rfchke00
    Document Namespace = 'my namespace'
    Recordset Name = Rfchke00
    Recordset Structure = Dtachkh,1,Dtachkp,*
    Recordset Sequence = Ascending
    Recordsets per Message = 1
    Key Field Type = String (Case-Sensitive)
    Dtachkh.fieldFixedLengths = 15,25,8,6,1,8,8,8,15,3,31
    Dtachkh.fieldNames = F1,F2,F3,F4,F5,F6,F7,F8,F9,F10,F11
    Dtachkh.processFieldNames = fromConfiguration
    Dtachkp,fieldFixedLengths = 18,13,13,35,15,3,8,2,21
    Dtachkp,fieldNames = F1,F2,F3,F4,F5,F6,F7,F8,F9
    Dtachkp,processFieldNames = fromConfiguration
    Thanks,
    Dave

    Hi,
    you can use the module from which u can convert your structure to
    H011000390 Customer Americas 20080605164317 000000000000000800000008000000000016000000
    D12345678 100500 100500 Supplier 1 0000000000030000002008040400
    D12345678 100501 100501 Supplier 2 0000000000052000002008042100
    Please note the extra H,D in the struture added by the module.
    You can then use them as your key fieldValues.. The module should be deployed in Visual Admin and then can be used in the Module tab of your adapter CC
    While writing the content conversion after that please dont forget about the added new characters
    Please note also that i can find that the word supplier kept repeating in all the Dtachkp records
    Please use that
    Also if you feel that the field is of 13 characters and that would cause a problem dont worry... create a dummy field eg split tht 13 to two fields and use the common one as key field Value and identifier... as i see in ure case its like 500 Supplier , 502 Supplier . u can split the first 4 char and the remaing 9 char are key field value.
    try this out
    Rgds
    Aditya

  • File Adapter - Reading 2 files from sender and one file to receiver

    All - I am looking for a best solution for reading two files from sender and generating one file to the receiver.
    Here is the scenario
    Sender file s - A is a master file. B is a detail file; B will have a one to many records for each record of File A.. that is the relation ship between 2 files..  I am looking for a better solution to
    Example
    Input:
    File A will have a record like "summary1 ABC 1234"
    File B will have a record like "Detailfor Summary1 CDF 8679"
    Output:
    File C shall have a record "consolidatedofSummary&Detail ABC 1234 8679"
    1) read records of master row and detail row from these 2 files
    2) do the mapping to the receiver output format which it is creating for records with some harcoded values and based on the values from master and detail rows of sender file
    if I can accomblish reading sender files and do the mapping to the receiver , assume that mapping to the receiver format would not be cumbersome.
    please help me...
    Thanks

    Hi Gopal,
    Ur approach to the interface is perfect.... Go ahead.
    For selecting multiple files in source use Advanced Selection for files.. and specify the directory paths and also the file name shema...
    This will fetch the 2 files into the integration engine... then u map the 2 source files to one target file(2:1 mapping).
    Specify accordingly the receiver side FCC and test it end to end...
    If u face any prblm post here... some1 will help u out..
    Babu

  • I tried to import a PDF of a line drawing into Photoshop Elements. The thumbnail looks fine, but when imported the file is empty. This used to work in the past. What is wrong and how do I solve this?

    I tried to import a PDF of a line drawing into Photoshop Elements. The thumbnail looks fine, but when imported the file is empty. This used to work in the past. What is wrong and how do I solve this?

    Hi
    The value of the Channel Strip volume etc is not stored within the C Strip setting, as you have discovered.
    If you really wanted, you could add a Gain plug to the strip, with it set to give the correct output level with the Fader set to 0
    (Or just set the fader manually in MS)
    CCT

  • File Error: The Specified file is open and in use by this or another app...

    I have imported a string of pictures and dragged them into the FCP timeline. I render them and it renders a certain percentage then it stops and says "File Error: The Specified file is open and in use by this or another application."
    After reading this, I quit out of FCP, restarted my computer, opened FCP, nothing other program, tried to render again and same thing happened. It renders part of it then the error message pops up, then I can render again and it will do another percent then it will pop again and so on.
    Suggestions, or does anyone know why this happened? Thank you very much for your time.
    A

    okay - don't know where you've got your scratch disc set but hopefully it's to another drive other than your boot.
    The same drive where your render files should be located, ie some drive other than your boot drive.
    Can you copy the jpegs over to that drive into a folder.
    Delete them from your tl, delete them from your proj. Save your project. Close fcp.
    If they're on your boot drive - delete them.
    Reopen fcp and Reimport them from the new location.
    Sorry for all the steps - but we have no idea how you have configured fcp or your level of experience. Trying to cover all the bases ...

  • FILE ERROR: The Specified file is open and in use...

    FILE ERROR: The Specified file is open and in use by this or another application.
    I get this error when I import a .MOV created by Live Type. All applications, except FCP, are closed. I can reboot the computer and get the same thing. It happens when I try and "render all". Thanks.

    It's probably either spotlight looking at the files, or some anti-virus program thinking your render is a virus.

  • Could not save Preferences because the file is locked, you do not have necessary access permissions, or another program is using the file. Use the 'Get Info' command in the Finder to ensure the file is unlocked and you have permission to access the file.

    I have this massage every time close ps cc
    Could not save Preferences because the file is locked, you do not have necessary access permissions, or another program is using the file. Use the ‘Get Info’ command in the Finder to ensure the file is unlocked and you have permission to access the file. If the problem persists, save the document to a different file or duplicate it in the Finder.

    You may get better help in Photoshop General Discussion
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll
    If FINDER means Mac, read below (and try to give more information when asking a question)
    Mac 10.9.3 workaround https://forums.adobe.com/thread/1489922
    Enable Mac Root User https://forums.adobe.com/thread/1156604
    -more Root User http://forums.adobe.com/thread/879931
    -and more root user http://forums.adobe.com/thread/940869?tstart=0

  • SOMETHING IS WRONG, I SEND A FILE TO TRASH AND DOES NOT APPEAR IN TRASH, THE TRASH IS EMPTY

    SOMETHING IS WRONG, I SEND A FILE TO TRASH AND DOES NOT APPEAR IN TRASH, THE TRASH IS EMPTY

    I had the same problem. It was solved see the discussion at  https://discussions.apple.com/message/19433909#19433909

  • I can not send my Note through email and it used to work. The same problem to send picture from iPhone message

    Can't send Notes through email and it used to work. The same problem of sending picture from iPhone message. Did the reset twice but still not working

    Try a reset:
    Hold the Sleep and Home button down for about 10 second until you see the Apple logo.

  • Just converted word to PDF so that I can save on iPhone and subsequently use. Where is the file??

    Just converted word to PDF so that I can save on iPhone and subsequently use. Where is the file?? I have no idea where it is!! Extremely frustrating and not at all user friendly!! Took my 6.99 British pounds and not a sausage to be had!!

    It sounds like you may have purchased a CreatePDF subscription through safari, using our web interface. If this is the case, the good news is that subscription will also work with the (free) Adobe Reader. Simply install the Reader from the App Store:
    https://itunes.apple.com/us/app/adobe-reader/id469337564?mt=8
    Once installed, you can then use "Open In" from another app like Mail to open the Word document in Adobe Reader. Reader will show the word doc, but it will also show you a message pointing to the "convert" button (A document with an arrow through it in the toolbar). Pressing this button should prompt you to sign into Acrobat.com. Use the same account you used to purchase your subscription and Reader will upload the word document for conversion, placing it in the Acrobat.com and Outbox section of the Reader. Please let me know if you have trouble!

  • Key Field Value for File Adapter Sender Wildcard

    Hello everybody, is there a way to use a wildcard for the property of NamA.keyFieldValue in the cc for a Fils Sender????, here's an example why, I need to take some Files via PI 7.0 and my key filed can change according to the file an example is that in a file can be HF28 and in another file can be HF29, the only character that is going to be constant is the H, I would really appreciate any suggestions, thanks in advance.
    Regards,
    Julio Cesar

    Hi Julio
    File sender adapter will read the file using FCC
    Key Field Value entry is mandatory if the key field name is set. Otherwise, the entry can be ignored
    http://help.sap.com/saphelp_nw70/helpdata/EN/34/393071e9b998438ddb8ce97cd617a1/frameset.htm
    Content Conversion ( The Key Field Problem )
    Thanks
    Gaurav Bhargava

  • File Adapter - Sender/Receiver

    We may have scenario where XI will be using File adapter to deliver messages to Application X  in the landscape.
    As part of Load balancing of Application X, there are multiple servers running. Say, If Iam delivering the  file to one location, If that server is down I should send files to different location.  How can I achive that ?

    Hi ST,
    I guess your 10 receivers are physically different. So they will have different IPs.
    I do not know if you can adress a receiver dynamic. As far as I know it is not possible.
    Maybe one solution is to write your own adapter.
    On the other hand, thinking about a webService that pings the receiver systems and gives a message back to XI, which servers are online.
    Than first call the WebService. In BPM you receive a list/ a message which servers are online. In a fork you could decide with a condition, which branch to use.
    Sorry, that I cant give you a better solution.
    Regards Mario

  • Synchronous file adapter sender side configuration in sap pi

    Hi Experts
    synchronous file adapter sender side configuration in sap pi
    can you explain any one tell me step by step procedure?
    Regards
    Sagar

    Hi,
    You can use RequestResponseBean in the sender file adapter module .
    RequestResponseBean (SAP Library - SAP Exchange Infrastructure)
    Request/Response Bean for IDOC_AAE adapter
    Instead of IDOC_AAE adapter you can use FILE adapter.
    Regards,

  • Hi, when I go to "select files to send" and click on "sent files" I get: "Internal Server Error (500) Your request could not be completed due to an internal server error".  I tried rebooting and that didn't work.  Any help would be appreciated.  Thanks.

    Hi, when I go to "select files to send" and click on "sent files" I get: "Internal Server Error (500) Your request could not be completed due to an internal server error".  This never happened b4.  I tried rebooting and that didn't work.  Any help would be appreciated.  Thanks.

    Hi ,
    Thank you for your question.
    This error was caused by the incorrect site binding, I will give a reference of my test Lab. We add two A records in DNS which the FQDN of CAS and Mailbox could resolve IP address.;
    Default Web Site:
    Exchange Back End:
    Then IIS must be restarted.
    If there are any questions regarding this issue, please be free to let me know. 
    Best Regard,
    Jim

Maybe you are looking for

  • Hi .i cant connect my camera roll to my hp laptop i have a 5s and i think ever since i upgraded to ios 7,1,1 this problem apeared

    why can't i connect my camera roll any more? i have a 5s and recently i cant connect my camera roll to my lap top

  • Using Nested Table in Select Statement

    Hi all , Can i use the PL/SQL nested table or Varray in the select statement as a normal table joined with other database tables. i.e. I have a nested table NT_1 in PL/SQL proc i have to use this NT_1 in the select statement as select xxx from tab_1,

  • Regarding Server Settings

    Hi All, After making changes in BDC in DEV Server, I released the request.But, the problem is Data is coming correctly in our system. But, Data is not coming correctly at customer side.Server and client are same.How can i resolve this problem?Is ther

  • Idoc Error-Price without service not allowed

    Hi Experts, I have a Service PO with Acc.***. P .One service item entered in PO with price.When I go via ME22n & change the Price of Service item under services tab,its fine. When this is done via Idoc generation(Msg.Type PORDCH) using standard FM BA

  • Save form as the form data from three fields

    I'm using Adobe Pro 9.0.0 and LC ES. I am trying to take three fields of data, like: Number, date, and name. Add or merge them together to be placed into a hidden field, then when the user selects the SAVE button I need a script that will get the hid