Archiving  file in different folder in sender file adapter

Hi,
I have a requirement in witch i have to pick 7 different file from seven different folder.
for this I am using advance selection tab and defining all the other folder path.
but my problem is I have to archive the different file in different folder .
For exm..
/folder1/file1.txt need to be archive in /archive_filder1/file1.txt
/folder2/file2.txt need to be archive in /archive_filder2/file2.txt
/folder3/file3.txt need to be archive in /archive_filder3/file3.txt
can any one tell me that how to  define the dynamic  archive folder path??.
regards,
Navneet

Hi Navneet
In File Access parameters --> Target Directory
Use this type of Directory name
\XIDEV_STORES\%store%\sapoutbound
here %store% will be changed accordingly
e.g. if file will come for store 001 then this %Store% will be replaced by 001 and file will be placed in this 001 folder and if file will come for store 002 then this %Store% will be replaced by 002 and file will be placed in this 002 folder over FTP.
For to achieve this Go to Advanced tab 
For Variable Substitution check mark Enable
Now speciofy the parameter values for Variable Name and Reference
Under Vriable name specify = store
Under Reference specify = payload:WP_PLU02,1,IDOC,1,EDI_DC40,1,RCVPRN,1     -
You have to give full path name here that where this store variable is located into IDOC.
Hope this example will help you
Regards
Dheeraj Kumar

Similar Messages

  • Send multiple files in different directories using Receiver File Adapter

    Hi Experts,
    I have one File to File without ESR scenario where I have to pick multiple files from different directories and to save them in different directories on receiver side.
    Can anyne help me to send multiple files in different directories using receiver file adapter.
    Is it possible??
    Any help will be appreciated.
    Regards,
    Danish

    hi ,
    that is possiable without esr,
    we need to create one sender communication channel , in that  we nend to use "adavnced selection for source file " for sending multiple files from multiple directories.
    we need to create 'n' receiver communication channels and 'n' receiver agreements based on communication channels .
    in receiver determination, provide multiple receivers
    In interface determination , provide * symbol for receiver communication components
    thanks,

  • How to pick files from multiple directories via Sender File Adapter?

    Hi guys,
    I have a scenario File to IDOC. The Sender File Adapter has to take all files: .xml from Source directory E://Current/.
    Actually directories are like
    E:/Plant1/Current/
    E:/Plant1/History/
    E:/Plant2/Current/
    E:/Plant2/History/.
    Can I have one Sender File Adapter to pick all *.xml files
    from
    E:/Plant1/Current/ and
    E:/Plant2/Current/  and how can I write it in Source Directory of Communication Channel?
    Or do I have to have a Sender File Adapter for each Plant?
    Any suggestion please?
    Kind regards,
    Danijela Zivanovic

    Hey
    You might wanna have a look at "Additional selection for source file" parameter in sender file adapter.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/singleSenderFileCC4MultipleDirectories
    XI/PI: how to exclude files in a sender File adapter?
    Even though this method works but there are some constraints,please check help.sap.com for constraints.
    Thanx
    Aamir

  • How to generate & publish  webhelp html files in different folder than default folder

    Hi All,
    I am new to robo help. I have a requirement to generate & publish webhelp html files in a different folder than default folder.
    Could anyone please tell me the steps to change the folder
    Thanks
    Rashmi

    You change the generate folder and filename in the first field on the first page of the wizard. It must be a folder on your hard disk.
    You change the publish folder in the last page of the wizard. Anywhere you like.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Copy file in different folder

    Hello,
    I am trying to save a file in a different folder but I am currently having problems.
    I use new BufferedWriter(new FileWriter(file));
    I tried to instantiate the File file with a URI but it is a known bug when I m giving it a full path, it has a problem with ":" in C:\\
    Also if I give it a string for the pathname it creates it in the same folder as my classes and also if I use only C:\\ there too.
    Any ideas?

    You mean:
    public File(String parent, String child)
    Creates a new File instance from a parent pathname string and a child pathname string.
    To be honest I had seen this one but in the method I m writing the file I wasn't keeping the path of the directory separate and thus the confusion. :)

  • Archiving/zipping to different folder

    Hello
    Normally the Finder Archive function (accessible e.g. from contextual menu in Finder) archives to a .zip archive in the same folder as the original object being archived.
    The Finder Archive function use BOMArchiveHelper, which is in:
    /System/Library/CoreServices/BOMArchiveHelper.app/Contents/MacOS/BOMArchiveHelpe r
    So the same archiving can be achieved in an AppleScript by the following statement:
    do shell script "/System/Library/CoreServices/BOMArchiveHelper.app/Contents/MacOS/BOMArchiveHel per" "theUnixname"
    where theUnixname is the Unix name of the file or folder being zipped. This works.
    My question is the following: Is there any option to BOMArchiveHelper that permits the resulting file to be in a different folder than the original file or folder? This would permit archiving directly to another disk, e.g. an external hard disk, without first copying the uncompressed files or without using disk utility to make a compressed disk image.
    (The reason I would like to use the zip files is that they are more universal than the compressed disk images. And I want to use BOMArchiveHelper rather than another ZIP program such as ZipIT because the Macintosh structure with resource forks is preserved by BOMArchiveHelper in a way that still permits the ZIP archive to be opened on e.g. a Windows or Linux machine, which is not the case for the MacBinary implementation in ZipIt).
    Thanks in advance

    I think you can use a shell-like command in an AppleScript.
    In this command you could use gzip "sourcefile" > "targetfile"

  • Multiple files in different directory using single FILE adaptor

    Hi Guys,
    How can we handle multiple files having different format(PDF,TXT,EXCEL) and in different directory with the single FILE adaptor.
    I know by using "." we ca get mutilple files, but here tthe files are of different format and in different directory.
    Could you please explain as to how we can handle this scenarios?
    Thanks
    Sahil

    Hi,
    The short answer is - "No".
    The Long Question - "Why do you want to use a SINGLE channel".
    If your idea is to reuse the interface then dont worry... Except for the Senderchannel and Sender agreement all your other objects can be reused ...provided your sender apter converts the different files into the same XML format..
    For TXT you can use the simple file adpater..
    For excel see if you can use save the file as .CSV format...then you can use it directlky by the simple FIle adapter..
    For PDF use conversion agent... Here a blog to get u started on that ->
    /people/shabarish.vijayakumar/blog/2009/05/17/trouble-writing-out-a-pdf-in-xipi
    regards
    Arvind R

  • Issue while fetching the file through *.extension by FTP sender file adapte

    Hello Experts,
    I am facing a issue while fetching the data through sender File adapter with  ' *.file extension' .I am illustarting the scenario as below .
    It is a simple scenarion of File to File inboumd scenarion.Here file is getting picked up from a third party system
    through FTP sender chanel and stored in a temp folder of PI through NFS rceiver file adapter .
        The problem is however I am getting, while picking the file with file name as "*.exo"(where exo is the file extension).
    But while fetching the file with particular name like"abcd_10032011*.exo"(file naming has been done by combination of abcd(always same)_currentdate(change according to current date)),file picked successfully .
    So here ,in the prior case file not getting picked up,but in later case it dose .
    Can anyone please let me know what might be the issue?

    Hi Sunit,
    Connect from your PI System to 3rd Party System (where are placed the Source Files)
    FTP <PartySystemHostName>
    eg. FTP 10.2.3.456 (then insert Username & Password to Login)
    Go to source directory
    cd \<SourceDirectory>
    eg. cd \donaldduck\directory\
    Execute a File List command
    ls -la *.<extension>
    eg. ls -la *.exo
    In this way you should be able to view all files with this extension (*.exo), the same action that Sap XI perform to pickup the file.
    Then, try to copy that file to your Local PI System (to check if there're some permissions issue):
    mget <filename>.exo
    eg. mpget File1_01012011.exo

  • File to SOAP,error in sender file adapter

    Hi,
    I am doing a scenario FILE to SOAP where In file adapter I am using Quality od service as Exactly once in order.I am getting the below error.It works fine when I use QOS=Exactly once.Not sure why,can you guys please help me.Can we really use QOS-EOIO for sender file adapter,where exacly do we use it.
    Thanks
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter  -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: invalid content type for SOAP: TEXT/HTML</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Edited by: guest xi on Apr 16, 2008 11:55 AM

    Hi,
    Thanks for your replies guys.I diid give the queue name ,I dont know what is causing the error.Now even QOS=EO which was working fine before is throwing an error.I am using the same file name for both
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter   -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: invalid content type for SOAP: TEXT/HTML</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

  • Bluetooth file exchange cannot activate or send file in mac os 10.4.11

    Hi Can anyone help please?
    I can't send any files from my Mac!
    The bluetooth works, I can receive files but I cannot open the bluetooth file exchange to send files from my Mac!
    I use a Macbook with OS 10.4.11.
    Thank you!

    Hi Can anyone help please?
    I can't send any files from my Mac!
    The bluetooth works, I can receive files but I cannot open the bluetooth file exchange to send files from my Mac!
    I use a Macbook with OS 10.4.11.
    Thank you!

  • Picking file in sequence/Queuing   in  sender SFTP adapter.

    Hi Experts,
    I am using SFTP adapter in sender side, it has no option of quality of service ( EOIO)  and queue name as we have in  FTP adapter configuration .Is there any  predefined  module provided by Sap which i use in the modules Tab in communication channel configuration to get the functionality of queuing ? just like we use  strictXMlto plain bean etc.
    I have 3 files which needs to  proccess in a sequence one after another in order.I CANT USE BPM or Even FTP because of Security reasons.
    please share you ideas.
    Regards,
    Anika

    Hi all,
    I have tried using AF_Modules/DynamicConfigurationBean in module tab present is the sender SFTP adapter with the attribute qualityOfService.
      parameter name                  Parameter value
         key.0                         insert http://sap.com/xi/XI/System/Messaging  qualityOfService
        value.0                        ExactlyOnceInOrder
    But in Moni i dont see the 3 messages didnt go in the same queue.But when i double click and open the dynamic configuration present in the soap header section i can see the values which i given in the module parameter.
    Is there any way i can change the quality of service to EOIO at runtime ? how to change the default EO to EOIO.
    Regards,
    Anika

  • How to process a text file (mail attachment) using the sender mail adapter?

    Hi guys,
    Is it possible to process mail attachments using the sender mail adapter? Let's say I have a structured text file (attachment) which needs to be mapped and sent to target system.
    Post please any thoughts or experience.
    Thanks,
    Olian

    Hi Olian,
    Have a look at these helpful links -
    1. http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05&overridelayout=true
    2. http://www.riyaz.net/blog/xipi-configuring-the-sender-mail-adapter/
    3. http://help.sap.com/saphelp_nw70/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm
    Regards,
    Sunil Chandra

  • Sun server - file not found warning message - send-file reports: HTTP4142

    (File not found)
    [25/Sep/2012:17:37:34] warning ( 9732): for host 127.0.0.1 trying to GET /vt/css/body_ie8.css, send-file reports: HTTP4142: can't find C:/Program Files/Sun/WebServer7/https-AC7440R877W6X.com/web-app/AC7440R877W6X.com/vt/css/body_ie8.css.
    sun server is trying to find file body_ie8.css which is not exist. now i m testing application in ie8 so getting error like this. If i run same application in ie6 i will get body_ie6.css. if i create dummy files with these name i wont get any error message.
    another sample error message
    warning (14280): for host 127.0.0.1 trying to GET /vt/css/icefaces_ie.css, send-file reports: HTTP4142: can't find C:/Program Files/Sun/WebServer7/https-AC7440R877W6X.com/web-app/AC7440R877W6X.com/vt/css/icefaces_ie.css (File not found).
    I m running JSF framework icefaces implememntation

    Hi:
    After some days and several test I discover the solution.
    I'm using Unicodes in the messages text (like \u00e9, \u00e1) and due to a typing mistake, in just a word the sequence \u00es appears instead of \u00e9.
    It seems \u00es is not a valid Unicode code and that was the cause of this particular error.
    I think this kind of message error must change depending which web server is used.
    As i said, i'm using the embedded oc4j server.
    Bye.

  • How to read multiple files of different name using single file adapter

    There are two inbound locations inbound1 and inbound2 , and the files structure present in these two inbound locations are same but the files start with different names example
    (1)files in inbound1 starts with file1,file2...
    (2)files in inbound2 starts with abc1,abc2...
    by using same file adapter with read option how can i read both files....

    Hi K.A.N.N.,
    You can define multiple directories using the above link in 11g and poll for the file as \*.*.
    Alternatively you can use the Synchronous Read and specify the file name at runtime.
    You can also use Pick activity to define multiple branches each with a File Adapter to read from a specified location with specified file name. Although it would contain multiple Adapter Definitions at Development-time, only one of the Adapters will execute at Run-Time.
    Regards,
    Neeraj Sehgal

  • How to process files one by one using sender file adapter

    Hi,
    I have to process file one by one using my file adapter (sender), because while doing the G/R materials get locked, if the same materal exist in other files.
    I have maintained QOS as "Exactly Once in Order" & processing Sequence as "by date".
    Processing sequence come in which tab? What will be the Queue name?
    Thanks,
    krishna

    It will come under Processing tab
    Here you need to select the first parameter QOS  as EOIO
    Then QUEUE name and processing sequence will be enabled.
    NOTE: This will work only for NFS protocol not for FTP.

Maybe you are looking for