Is it possible get special file in file sender adapter?

Hi every SDNer.
I want to get special file. for example like PJ<today>_return.dat
Well, to paraphrase Marx, One folder has too many files. but I want one file in that folder.
The rule is simple. if today is 20/07/2007 then I get the file as "PJ20070720_return.dat".
How can i configuration File Sender Adapter?

Dont have an XI system in front of me, but if I recall correctly, your options are pretty limited. The list of parameters in Advanced Selection for Source File does not include a date Better selection parms with the receiver channels.
As such you may have to resort to writing a script on the OS that will do the following every minute... (basically run it more frequently than your channel)
- look in that directory through all the PJ* files containing date = 'today'
- rename the file to REAL_PJ_..... (for example)
In your channel, pick the file REAL* and archive accordingly so it's not picked again by your script.
If you find alternatives via cchannel - publish your results.
sincerely,
--NM

Similar Messages

  • 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

  • How can i read only .txt file and skip other files in Mail Sender Adapter ?

    Hi Friends ,
                       <b> I am working on scenario like , I have to read an mail attachement and send the data to R3.</b>
                        It is working fine if only the .txt file comes.
                      <b>Some times ,html files also coming along with that .txt files. That time my Mail adapter fails to read the .txt file.</b>
                       I am using PayLoadSwap Bean and MessageTransformBean to swap and send the attachment as payload .
                         <b>Michal as told to write the Adapter module to skip the files .But i am not ware of the adapter moduel . If any blogs is there for this kind of scenarios please give me the link.</b>
                           Otherwise , please tell me how to write adapter module for Mail  Sender Adapter?
                      How to download the following
                        newest patch of XI ADAPTER FRAMEWORK CORE 3.0
    from SAP Service Marketplace. Open the file with WinZip and extract the following
    SDAs:
    &#61589;&#61472;aii_af_lib.sda, aii_af_svc.sda
    &#61589;&#61472;aii_af_cpa_svc.sda
                        I have searche in servive market place .But i couldn't find that . Can you please provide me the link to download the above .
                      If any other suggestions other than this please let me know.
    Regards.,
    V.Rangarajan

    =P
    Dude, netiquette. Messages like "i need this now! Do it!" are really offensive and no one here is being payed to answer anyone's questions. We're here because we like to contribute to the community.
    Anyway, in your case, just perform some search on how you could filter the files that are attached to the message. The sample module is just an example, you'll have to implement your own. Tips would be to query the filename of the attachments (or maybe content type) and for the ones which are not text, remove them.
    Regards,
    Henrique.

  • Getting dynamically a specific file in FTP sender adapter

    Hi all,
    I'm getting an idoc in a BPM and there's a field with a file name, which is the one I have to read in the following step.
    I'm not sure this is possible, but I'd like to hear from the PI community...
    The problem is that in the usual FTP sender comm channel, I have to specify in configuration time the folder and the pattern of the file names to be read. And in my scenario I only know that in execution time (that's possible when the FTP channel is receiver though).
    Thanks

    Oops!! I misunderstood it
    At sender, neither of them would work. In fact, there is no other direct options at sender. You have to specify the filename. As Udo suggested, you have to create multiple channels.
    Still if you could explain your BPM configuration, some solution may turn up. You said you are receiving Idoc in BPM and a file too?
    Regards,
    Prateek

  • Take Source file path in sender adapter from an environment variable .

    Hi,
    Is it possible to take source file path(half file path) dynamically in sender file adapter.
    Please suggest any alternative to this.

    Hi,
    One option, use Dynamic Configuration and set the values in the Mapping.
    By the ways, the File Directory and the Filename are taken runtime in the file adapters after transportation.
    Only if you are using FTP will you need to key in the FTP addess user id password etc.
    Refer -- same way try for File adapter
    Dynamic Configuration of Some Communication Channel Parameters using Message Mapping
    Ps Note : I have personally never tried it to use the Dynamic Configuration for file path. But you can try.
    Thanks
    Swarup

  • Read a FIle using a Sender Adapter

    Hi Experts,
    Is there any way to read a file at the external FTP Server without deleting or archiving it. I would not like to use the "Test Mode" processing Mode in the production System(  ) and also i need to schedule this adapter for 3 hours to read the file whenever it is generated  in every morning. This should be done only once ie.. one message to be created.
    We are not using any content conversion.
    In this case , we are not using any mappings but only retrieving the file from the external system.
    -Reynold

    The scheduling of your channels would always help. Use Planning Availability Times to activate the channel at 3 AM and deactivating at 6 AM.
    With the test mode, if you are sure that one file should be picked only once, then keep the poll interval as more that 180 minutes. This would ensure that between 3-6 AM, the file would be picked only once. After that the channel will get deactivated. Next day, refreshed polling will be started.
    Regards,
    Prateek

  • XI 3.0 File Adapter: Converting File Content in Sender Adapter

    Hi,
    This is probably a basic question but does anyone have an example of the parameters used when you are using the 'Converting File Content' option on the File Adapter ?
    Also, where do the record sets have to be defined ? Are these data types in the Integration Builder ?
    The documentation is to say the least a bit flaky.
    Any help would be appreciated.
    Kind regards
    Colin.

    Hello,
    I'm wondering if someone has experience setting up conversion for different record structures. The example shown (in a greate way) only picture one kind of structure.
    How should it be done if the file would contain
    10Mat1
    20100PCS
    The first record structure has columns
    ID(2),Material(10)
    The second redcord structure has columns
    ID(2),Quantity(3), Unit of messure (3)
    Brgds
    Kalle

  • File content conversion sender adapter

    Hi Friends,
    I am doing File to IDoc scenario.
    I am using File Content Conversion for File Adapter.
    My structure look like this
    MT_File
    HEADER1 1..1
    --header1
    -- header2
    HEADER2 1..1
      --header3
    DETAILS 1..unbounded
    --details1
    --details2
    --details3
    TRAILER1 1..1
      -- trailer1
    TRAILER2 1..1
      -- trailer2
    ----trailer3
    In File Content conversion parameeters..
    Document Name :MT_File
    Document Namespace :urn:test:FileFcctoIdoc
    RecordSet name :
    RecordsetStructure :HEADER1,1,HEADER2,1,DETAILS,*,TRAILER1,1,TRAILER2,1
    RecordSet Structure: Ascending
    RecordSet Per message : *
    Key Field Name :header1,header3,details1,trailer1,trailer3
    ignoreRecordsetName     : true
    HEADER1.fieldNames      :header1,header2
    HEADER1.keyFieldValue      : H1
    HEADER1.fieldFixedLengths  :5,10
    HEADER1.endSeparator   :'nl'
    HEADER2.fieldNames             :header3
    HEADER2.keyFieldValue         : *D
    HEADER2.fieldFixedLengths     :5
    HEADER2.endSeparator         :'nl'
    DETAILS.fieldNames               :details1,details2,details3
    DETAILS.keyFieldValue         : 3
    DETAILS.fieldFixedLengths     :5,5,5
    DETAILS.endSeparator         :'nl'
    TRAILER1.fieldNames               :trailer1
    TRAILER1.keyFieldValue         : *S
    TRAILER1.fieldFixedLengths     :5
    TRAILER1.endSeparator         :'nl'
    TRAILER2.fieldNames               :trailer2,trailer3
    TRAILER2.keyFieldValue         :SE    TRAILER2.fieldFixedLengths    :5,5
    TRAILER2.endSeparator         :'nl'
    File is :
    H1hh1hhhhhhhhh2
    *Ddd*
    Xddd1dddd2dddd3
    Xddd4dddd5dddd6
    Xddd7dddd8dddd9
    *Sss*
    SEKss2
    in RWB, Channel CC_FILE_Sender_FccDemo: Empty document found. Proceed without sending message
    I think the problem is in FCC paramters..
    Could please have a look and correct me
    Regards
    Ram

    Ram,
    The problem which i can see is your key field values in your test file. Remember you should have the key field value in each new line at the same place.
    For example you have given your text file as shown below...
    File Given By You is :
    >H1hh1hhhhhhhhh2
    >*Ddd *
    >Xddd1dddd2dddd3
    >Xddd4dddd5dddd6
    >Xddd7dddd8dddd9
    >*Sss *
    >SEKss2
    Compair the above file with the below one..
    >H1hh1hhhhhhhhh2
    >*Ddd *
    >Xddd1dddd2dddd3
    >Xddd4dddd5dddd3
    >Xddd7dddd8dddd3
    > *Sss *
    >SEKss2
    If you notice, for details I have given key field value 3 in each line & at same place.
    One more thing just use the KeyFieldName only one ( just follow the same blog which I have given, to understand how to use the KeyFieldName )
    e.g.
    Document Name :MT_File
    Document Namespace :urn:test:FileFcctoIdoc
    RecordSet name :
    RecordsetStructure :HEADER1,1,HEADER2,1,DETAILS,*,TRAILER1,1,TRAILER2,1
    RecordSet Structure: Ascending
    RecordSet Per message : *
    Key Field Name : KF
    Regards,
    Sarvesh

  • File content conversion - sender adapter for Header and detail records

    Hi Experts,
                     I am receiving a field of fixed length content format.(Header)The first line of the file will follow the structure X having some fields and (DetailRecord)subsequent lines in the file will follow structure Y having somes fields.There is no record identifier for Header and Detail records.In one file first line is Header records and remaining subsequent line is DetailRecord.What are the parameters we have to set for sender file content conversion parameters as i donot have any key field and key field value.And in one file we have only one header records ( first line) and n number of detail records from 2nd line onwards.
    Thanks
    Deepak

    Hi
    Refer the below fourm link,
    Flat file whitout id
    Regards
    Ramg.

  • Issues with Receive Adapter receiving a file that has not completed uploading while send multiple files on the Send Adapter

    Hello,
    I am only a few weeks old into BizTalk so I am new to this application. 
    The pieces I have for my development environment consists of the following:
    FTP Server ---[SFTP Adapter]---> BizTalk 2013 ---[FILE Adapter]---> Internal Network Share Drive
    I currently configured a simple PassThru, One way Receive/Send in BizTalk where the Receive Port receives a file via SFTP 
    Adapter from our FTP server and the Send Port sends the file via the FILE Adapter to our Internal Network share drive. 
    The setup works great with small files.  However, when I receive a large file on the FTP server, the Send Port sends multiple instances of the file on the FTP server because the Receive Adapter sees that the file is there, but not yet
    fully uploaded.
    Can someone please guide me as to how I can determine when a file is fully uploaded to the FTP server before the Receive Adapter fires?
    Thanks,
    Mitch

    Yap BizTalk does not have control over locking the file during read/write Operation and its the third party which need to take care of this (by rename the file after upload ) .
    If the file size is too large I would suggest to bypass the message box as it has performance bottleneck during peak hours 
    Apart from being repetitive, this is not good advice.  There is no indication that the file is too large or will cause any "performance" issues.
    The concurrency problem can happen with a file of any size.

  • I forgot to save a file in Numbers. Is there any way I can possibly get it back?

    I forgot to save a file in Numbers. Is there any way I can possibly get it back?

    Do a search in Finder for Untitled.Numbers. If you find such a file, or some variation, try to open it and see what's there. That's if you never saved.
    Mavericks is pretty good about autosaving, so you chances are not too bad. In the future though, never write a thing in a new document until you give it a name and a place.
    Jerry

  • Is possible get a psd or ai file on iphone 4 for send an email?

    I work with a pc without internet connection, and i need to know how is possible get my photoshop an illustrator file on iphone and send an email
    thanks

    Goodreader may do this but a great way to get files for the iPhone is use DropBox. You can store files to Dropbox from your computer or any mobile device and access them. Also, you can allow other people to access your files with password protection.
    The app and 2Gig storage is free.
    FOr info on Goodreader's capabilities, check here.
    http://www.goodreader.net/support.php

  • Possible to get length from midi files?

    Is it possible to retrieve the length from a midi file, for example in miliseconds?

    And how is that helping me?So my taking my limited free time to consider your question, do a search on google, and pull up a very appropriate article -- all as a volunteer mind you -- is not helpful?
    A word of advice: you will have a much greater chance of getting more help if you show appreciation for anyone who takes the time out to consider your problem and offer any even remotely useful solution.
    just my 2 Shekel's worth...
    It explains how MIDI format is built...
    I am no pro as you may understand, because I posted
    in "New To Java".And I can magically read your mind and know exactly where you are in your java development? Sorry, I left my mind-reading cap at work. You were not exactly detailed in what you were seeking, what you know, and what you've found so far. Another word of advice: try to put as much effort into asking your question as you'd like someone would to answer it.
    And I know you can get length of .wav files for
    example by using Clip. That's why I am asking if
    there's a way for midi files as well. Like a method
    for AudioStream or whichever.I hope you find your method. But this is all the help you are going to get from me. Geeze...

  • My MacBook Pro came with Lion pre-installed so I can't re-download it from the app store. Is it possible to get the installESD.dmg file and how can I get it if I can't re-download Lion in Apple Store option?

    My MacBook Pro came with Lion pre-installed so I can't re-download it from the app store. Is it possible to get the installESD.dmg file and how can I get it if I can't re-download Lion in Apple Store option?

    FYI Mac OS X is not designed to be installed on additional Macs, unless you purchased it from the App Store, in which case you can make as many copies as you wish and install it on as many Macs as you own.
    From the Recovery Disk Assistant -
    Notes
    If the computer shipped with OS X Lion or Mountain Lion, the external recovery drive may only be used with the system that created it.
    If the system was upgraded to Lion or Mountain Lion purchased from the App Store, the external recovery drive can be used with other similarly-upgraded systems.

  • How to get rid of duplicate files in Windows Media Player 11, I am seeking an answer if at all possible.

    I don't know if this is the appropriate forum to ask this question....if it is not please guide me to the correct support forum. I am just trying to find out if there is an easier way of getting rid of duplicate files in my Windows Media Player 11.
    Also how do I prevent my Media player from obtaining all these duplicate files from other libraries.  I have iTunes installed and my home network has four other computers belonging in the home group that have all their own respective music libraries. 
    I guess I was naïve but I thought that when Windows Media Player is out searching other libraries it would know not to take duplicates of songs that it has already.  Enough said .....if anyone out there can help me that would be great.  I have in
    the past spent many hours manually deleting songs from my music files and it really got old.

    Unfortunately your post is off topic here, in the TechNet Site Feedback forum, because it is not Feedback about the TechNet Website or Subscription.  This is a standard response I’ve written up in advance to help many people (thousands, really.)
    who post their question in this forum in error, but please don’t ignore it.  The links I share below I’ve collected to help you get right where you need to go with your issue.
    For technical issues with Microsoft products that you would run into as an
    end user of those products, one great source of info and help is
    http://answers.microsoft.com, which has sections for Windows, Hotmail, Office, IE, and other products. Office related forums are also here:
    http://office.microsoft.com/en-us/support/contact-us-FX103894077.aspx
    For Technical issues with Microsoft products that you might have as an
    IT professional (like technical installation issues, or other IT issues), you should head to the TechNet Discussion forums at
    http://social.technet.microsoft.com/forums/en-us, and search for your product name.
    For issues with products you might have as a Developer (like how to talk to APIs, what version of software do what, or other developer issues), you should head to the MSDN discussion forums at
    http://social.msdn.microsoft.com/forums/en-us, and search for your product or issue.
    If you’re asking a question particularly about one of the Microsoft Dynamics products, a great place to start is here:
    http://community.dynamics.com/
    If you really think your issue is related to the subscription or the TechNet Website, and I screwed up, I apologize!  Please repost your question to the discussion forum and include much more detail about your problem, that could include screenshots
    of the issue (do not include subscription information or product keys in your screenshots!), and/or links to the problem you’re seeing. 
    If you really had no idea where to post this question but you still posted it here, you still shouldn’t have because we have a forum just for you!  It’s called the Where is the forum for…? forum and it’s here:
    http://social.msdn.microsoft.com/forums/en-us/whatforum/
    Moving to off topic. 
    Thanks, Mike
    MSDN and TechNet Subscriptions Support

Maybe you are looking for

  • Illustrator scripting with datasets & variables

    I have a .ai file with 3 datasets containing 2 variables each. I am new to adobe scripting and am trying to write a script that will loop through the 3 datasets, swap out the variables, and save as 3 different .pdf files. I can loop and export, but d

  • Movies taking forever to load

    This flash movie i try to watch always pauses, http://dv.ouou.com/swf/ouou.swf?id=38d7f45b65c94, anyone know why it takes so long to load even 2 seconds? I have IE 7 and Adobe Flash Player 9.

  • How to open documents no longer supported by Mac

    I have text files that will not open "Np longer supported by Mac etc" How to open and with what program application. Eudora mail Text Edit Word

  • Lov validation is not working, when Lov is column of a table

    Dear All, I am facing a strange issue. I have one column of type Lov(messageLovInput) in one table. If I enter one value that is not exists in list of values Lov have, and click on the tab, it is opening lov pop window to choose one value, in the pop

  • OVM IO Performance Issues

    We are currently testing Oracle Virtual Machine out to see if we can utilize it. We do have a lot of VMWare and HyperV going up in our environment, but Oracle products are not supported on those. Curious if anyone else is having IO Performance issues