File to File multiple scenario without mapping

Hi
I am doing one simple file to file scenario without mapping i.e picking file from sender directory and then placing it in receiver directory via FTP.
Now i have to take two files from different directories and place them in to different directories in the receiver side.
On the sender side i have selected Advanced selection for source file and maintained the sceond directory name and filename.
now i am not aware about the reciver side that how to place the two files in to different directories.
I have to make only one interface for this.
Thanks in advance.

u have to follow the code in the link provided above but with some manipulations...
in case u r placing the files in different target dir depending upon the source directory then ur code will be something like this:
Note: i dont have a system as of now..so cant able to check the code for syntax errors..please cross check it
MessagePropertyKey mpk = new MessagePropertyKey("Directory","http://sap.com/xi/XI/System/File");
String SourceDir = msg.getMessageProperty(mpk);
if(SourceDir.equals("/SourceDirectory1"))
String targetDir1 = "/TargetDirectory1"
msg.setMessageProperty("http://sap.com/xi/XI/System/File","Directory",targetDir1);
else if(SourceDir.equals("/SourceDirectory2"))
String targetDir1 = "/TargetDirectory2"
msg.setMessageProperty("http://sap.com/xi/XI/System/File","Directory",targetDir2);
else
http://help.sap.com/javadocs/pi/SP3/xpi/com/sap/engine/interfaces/messaging/api/Message.html#getMessageProperty(com.sap.engine.interfaces.messaging.api.MessagePropertyKey)
lIbraries for adapter module development:
http://wiki.sdn.sap.com/wiki/display/XI/Where%20to%20get%20the%20libraries%20for%20XI%20development
How to develop adapter module:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0b39e65-981e-2b10-1c9c-fc3f8e6747fa?QuickLink=index&overridelayout=true

Similar Messages

  • Is FCC required in File to File scenario without mapping

    Hello,
    I have a scenario where XI is picking up a csv file from a BW server and just pushing the file to some other location as it is .
    i.e csv file will be pushed as it is to another location
    So in this case is FCC required ? . ie do i need to convert the csv file in to XML and then back to csv , or i can just use a dummy interface to pass the csv file through the XI pipeline
    Thanks & Regards,
    Loveena

    You can execute a Unix script running in the XI server from the File communication channel. Ie. if you want to do something which was not part of XI adapter configuation , then you can make use of external unix script and you can execute those from the XI.
    For this, write a unix script and place in the XI OS level provided that path is accessible from PI Channel.
    E.g
    So u can use this in either Sender Channel to modify the data before it reaches into the Integration Server or in Receiver channel it is generally used to transfer the files into different location via Secure FTP
    SAP help: http://help.sap.com/saphelp_nw2004s/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    Blog:/people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi
    ************Reward points if found useful

  • File to File Scenario without Mapping

    Hi Gurus'
    I have a requirement in my current project.
    the source system (mdm) is sending around 7 files and these files have to be picked from the source location path by PI file adapters and these should be sent to BW(receiver) for generating the reports.
    Each file consists of different data such as purchase org data, vendor data,company data etc.
    My doubt here is, how can i approach the development; should i create 7 Snder CC,& Reciver CC,RA,SA,RD,ID.
    In our interface there is no ESR Objects involved.
    Please help me in solving the issue
    Thanking You

    Hi Gurus
    I have devloped the Interafce as suggested.
    In the sender CC, i have checked the Advance selection for source file and also checked the ASMA tab.
    i have given three file names along with their source location paths such as USERS.xml,PROFILE.xml,PROFILEDESCP.xml.
    On the Receiver CC, i am checking the ASMA tab and for the target directory location i am giving the path.
    for the file name scheme i am giving as USERS.TXT, only one file name is given.
    My doubt here is how can i give multiple file anmes as we have given for the source CC.
    I ahev tested by running some files from PI RWB and can see success messages in PI MONI. BUT IN CC monitoring for receiver cc i am getting the following errors
    1)Putting message into receive queue failed, due to: com.sap.engine.interfaces.messaging.api.exception.DuplicateMessageException: Message Id 9e6ade69-4d7b-11e1-9051-000000190a5a(INBOUND) already exists in duplicate check table: com.sap.sql.DuplicateKeyException: ORA-00001: unique constraint  violated
    2)Delivering the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: The Adapter Message Property 'FileName' was configured as mandatory element, but there is no 'DynamicConfiguration' element in the XI Message header.
    The message status was set to WAIT.
    My requirement is MDM will syndicate some files and these files have to be picked from the source location and should be sent to BW.
    PI will pick the *.xml files and shld send to BW as .TXT.
    We have earleir developed the interafce for three file generation by creating 3 Sender CC,ReceoverCC,RD,ID,SA,RA.
    ISo as of now there is requiremnt for 7 files to be sent, so i was looking if this is possible with out the creation of too many ID objects.
    Please help.
    thanking You
    please help
    Edited by: NABHINAV on Feb 2, 2012 10:23 AM
    Edited by: NABHINAV on Feb 2, 2012 10:29 AM

  • File to Mail without Mapping

    Hi Experts,
    I need to pick up text files from a folder using File Adapter and then send them to a mail id directly without any mapping in XI. Please suggest how it can be done.
    Thanks,
    Shobhit

    Hi-
    Check out these links
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816

  • Scenario without mapping

    Hi
    I have a idoc to http scenario where i don´t need any mapping. I have heard that it is possible to do a "gateway" setup where you only need to set up the communication. Is this possible?
    Please help.
    BR
    Claes

    If u dont want the mapping step in File-to-File scenario, then it would be better to bypass whole Integration Repository
    Have a look here
    /people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
    Regards,
    Prateek

  • File to XI scenarion without mapping

    HI All,
    MY REQUIREMENT:
    1. Need to read the data from FILE .
    2. pass the values to a BAPI structure in ECC Without any mapping
    QUESTIONS:
    1. Is it possible to complete the  scenario without mapping in XI.
    2. If possible how.
    Could any one help me how to achieve this
    Than you,
    Harsha P

    My source data structure is same as BAPI.
    We have created data types ,message types and Service interfaces for SENDER in ESR.
    But our Issues.
    1. Do we need to create Receiver Interface Objects.
    If yes How (In our scenario receiver is BAPI)
    import RFC under imported objects in esr
    2. What are the configurations we need to do in ID for SENDER and RECEIVER.
    coming to id:
    create everything like
    communication channels for sender as file and receiver as RFC.
    create Agrrements for sender and receiver.
    create Receiver determination and interface determination.
    Edited by: bhavanisankar.solasu on Feb 21, 2012 4:17 PM

  • Rename a file at the reciver without mapping with date/timestamp_filename

    Hi Friends,
    I have a scenario in which I have to rename the file if its exisiting at the reciever end with date/timestamp_filename in a file to file scenario without mapping.
    Thanks,
    --Sonal

    chk this (using adapter modules)
    http://wiki.sdn.sap.com/wiki/display/Snippets/DynamicfilenameinaFiletoFilepassthroughscenario

  • Message Split -- File to Idoc Scenario  -  ( Without BPM )

    I have multiple records coming to XI in a File and I have to create Multiple Idocs to R/3.
    Due to Complexity of mapping I'm splitting Maaping step into 2 message Mappings.
    A-->B
    B-->C
    In the 2nd Mapping step  I'm doing message Split meaning for each Source record I'm creating multiple Idocs ( To be precise each record on the source becomes 4 idocs in the Target.
    2nd Mapping step is as follows
    Source 1..1
      Sourcerecord 0.. Unbounded
        field1  0..1
        field2  0..1
        filed3  0..1
    Target
    Message 1
        Idoc   1.. Unbounded
          Idoc Structure..
    Message 2
          Idoc   1.. Unbounded
    Message 3
          Idoc   1.. Unbounded
    Message 4
          Idoc   1.. Unbounded
    So based on some criteria each record of Source will be mapped to 4 Messages (  1 each under each Message )
    Is it possible to do this without BPM?. Iam sending all these Idocs to same R/3 System.
    Thanks for any help..RK

    Hi,
    See the blog
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
    <i>Basicly we have 2 ways of handling such scenarios:
    - we can use a block step and send multiple IDOCs from our BPM
    - we can also do a little trick and send multiple IDOCs from the XI without a BPM
    The first approach is a standard XI approach. It involves the use of a BPM
    so the speed of this transfer many not be very good in case you'd like to send
    hundreds or thousands of IDOCs in just one call.
    The second approach uses a little trick that was mentioned several times
    on the XI Froum by a number of XI developers but is still not very clear to the XI newbies.
    It allows us to send multiple IDOCs without the use of a BPM. Most probably this will be your choice
    if you'd like to use such 1:N (IDOCs) scenarios effectively.</i>
    Please see the bwlow threads also..
    IDOC Splitting
    File To IDOC Thru XI
    Multi-Mappings in BPM (XI 3.0)
    Please let me know , your prob..is solcev or not..
    Regards
    Chilla..

  • Multiple files to idoc without bpm

    Hi
    I have gone through the previous threads and came to know that n:1 is not possible without bpm. But in case of idocs you can collect them in r/3 system itself using RSEOUT00 program. But if my scenario is like.......you have 10 files which are coming through ftp and we have  to send the idoc to the target system. Is there any way to do this scenario without bpm ??
    Thanks
    kumar

    Hi palnati !
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible 
    Multiple IDocs without BPM(occurance change)
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
    In case you have multiple IDoc types ref:
    /people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm
    Have a look at this blog.. Might be helps to you..
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2748. [original link is broken] [original link is broken] [original link is broken]
    Pls reward if useful

  • Error handling in File - XI - SOAP scenario without BPM

    Hello!
    We have a File -> XI -> SOAP scenario without BPM. The problem is that if the Web Service sends back an error XI tries to reprocess the same message again and again instead of taking the next one.
    We do not want set the retry interval to NULL because most error cases are temporary connection problems and then also those messages would not automatically be reprocessed any more.
    We also have to use BE instead of EO, otherwise the Web Service will not return a response. But we need the response to be sure that the processing was successful. The message volume in this scenario is quite high and we do not want to use BPM only for the error handling.
    I know that from SP19 some additional adapter modules are available for async - sync scenarios without BPM. I tried to configure it like described in File - RFC - File without a BPM - Possible from SP 19. but it did not solve the problem. Does anybody have any other ideas? Thanks.
    Regards, Tanja

    Hi Tanja,
    >>>The volume is 3000 messages/day on business days and 700 messages/day during weekends but the traffic will increase in the future
    I think, you should check that out. It is assumedly only 2 days work to build a scenario:
    IDoc -> BP
    BP <-> SOAP/HTTP
    BP -> IDoc (Acknowledgement)
    In the process you need a condition branch, where you decide success or not. You need 2 Interface Mappings for filling the ALEAUD.
    Just send 1000 IDocs to the Test-XI and look to performance monitoring at Runtime Workbench, to find out, how many message will be processed in one hour. Assumedly 3000 and more per day should be possible. The advantage would be to reduce number of systems (no file system) and messages (better monitoring) and using the standard (better maintenance).
    >>>So you are suggesting I should use HTTP adapter and then add the SOAP header manually in a mapping?
    Yes, build the SOAP envelop during the mapping. Most easy is to use XSL or, if your mapping is ready, an additionsal XSL. You can put the error into the Acknowledgement to see it in ERP transaction WE02.
    Filling of ALEAUD fields:
    E1ADHDR/MESTYP: original message type
    E1ADHDR/E1STATE/DOCNUM: original IDoc number
    E1ADHDR/E1STATE/STATUS: 68 in case of error, 53 in case of success
    E1ADHDR/E1STATE/STATXT: Short description for R/3 user what has happend
    I ve done such a scenario several times. That works without any problems.
    Regards,
    Udo

  • File-to-file scenario: no mapping, filename from sender file

    Hi all,
    file-to-file without mapping.
    we want to use XI to transport just files from XI file directory to another ftp-server (+ archiving on xi file directory)
    we configered an sender file adapter that picks the file up, but
    we have problems configuring the receiver adapter in that way that the filename or the original file is used
    Is that possible? with which parameter settings
    filename is not content of the XI message content so "message:FileName" doenst work
    Thank you very much
    regards
    Hans

    Hi Hans,
    Check this link:
    How to send any data (even binary) through XI, without using the Integration Repository
    OR
    Copy a file with same filename using XI
    Sachin
    Edited by: Sachin Dhingra on Nov 7, 2008 8:19 PM

  • IDOC to EDI file scenario and EDI file to IDOC scenario without Seeburger

    Hi All,
    IDOC (Invoice) to EDI file scenario without Seeburger
    Pls let me know if anybody have blogs for the same
    EDI file to IDOC (Orders) scenario without Seeburger
    Pls let me know if anybody have blogs for the same
    Regards

    Hi Rachit,
    >>Can anybody send me blogs to convert IDoc structure to EDI or EDI to IDoc structure using Conversion Agent or using JAVA Mappings.
    Using conversion Agent there is no coding, If you have a conversion agent insatlled in your landscape you will have better understanding..
    Also java code for IDoc to EDI have some problems:
    1. The EDI format differs based on requirement so there will always be a customized code for it.. Like we have IDco to EDIFACT and ANSX12...
    2. Because most of these codes are propriety materials I doubt whether anyone be sharing the complete code here in SDN. Better to have a java consultant at your end and put him with your requirement.. From the reply in above threads you should be clear that what you are looking for can be done from java coding..
    All the best
    Regards
    Suraj

  • Problem with File RFC File scenario without using BPM

    Hi all,
      I am trying a File RFC File scenario without using BPM with the help of the following thread:
    File - RFC - File without a BPM - Possible from SP 19.
      The XI system is PI 7.0 sp 12. When I am trying to acheive the above scenario, I am getting wierd results i.e., when I observe in SXI_MONITOR, the message is showing as processed successfully, but when I watch the message status in communication channel monitoring, I am getting the following error:
    "Attempt to process file failed with com.sap.aii.af.service.cpa.CPAException: Couldn't retrieve inbound binding for the given P/S/A values: FP=;TP=;FS=DEV120;TS=Test_Service;AN=MI_Invoice;ANS=urn:sap.com:test;"
    I am not able to understand what the problem is. By the way, one more thing, is, I have kept the File processing mode as "Delete" in the sender file adapter. But the file is not getting deleted. I think the reason could be because of the above error.
    Can any body help me out in getting my problem resolved?
    Thanks,
    Adithya K

    CPA Cache Refresh from the Adapter Engine To trigger a cache refresh from the individual Adapter Framework, open a browser window and enter the following
    URL: http://<host>:<port>/CPACache/refresh?mode=<b>delta|full</b>
    The Monitoring url is like this: http://<host>:<port>/CPACache
    Thanks & Regards,
    Farooq.

  • Anyone know of an app that will merge multiple folders with files inside them without duplicates or losing any files???

    I have two large iTunes folders that have thousands of folders within them and thousands of .mp3 files within those folders.
    I need to merge them without duplicating or replacing files.
    Suggestions?
    Prelude/backstory:
    I just got back one HD (HD1) from a recovery place that recovered close to 45,000 mp3s in addition to the thousands of mp3s that were already there.
    My second HD (HD2) has the same mp3 files that did not need to be recovered, but also has additional mp3s that I added in the time HD1 was away at recovery.
    I want to end up with one iTunes folder that has all the files in it, without duplicating them and without losing any.
    Thanks in advance!
    *I'm running OSX Lion on a brand new MacBook Pro

    You can see if there is anything useful in this thread:
    https://discussions.apple.com/thread/3196617?start=0&tstart=0
    Other possiblities:
    http://www.addictivetips.com/mac-os/macmerger-merge-files-content-of-any-two-fol ders-into-one-mac/
    MacMerger

  • Jdbc to file scenario - base mapping error

    hello all,
    i am facing a similar issue discussed in this thread,
    Re: JDBC to FILE scenatio: How to map the resultSet?
    1. i changed the document name and namespace
    2. i checked for the occurence of the filed elements
    3. i tried using the documentname and namespce both from the MONI and MAPPING TEST TAB...but still the same base mapping runtime exception error.
    Please advice.
    Thanks
    i have been following the

    Aarthi,
    Can you give us the following details,
    1. select query that you are using in your JDBC sender adapter
    2.the Document Name and namespace that you have given in the JDBC adapter
    3. the source datatype that you have created for your JDBC side along with the occurence of each element.
    This will help us nail the causwe for your problem.
    Regards,
    bhavesh

Maybe you are looking for

  • SSO - Authentication for Calendar withe MS Exchange

    Hi, I have configured the calendar iView (com.sap.netweaver.coll.appl.ui.gw.MeetingWith) to work with IIS and CDO (MS Exchange) with user mapping. Do you know the different steps to use it in SSO authentication mode ? What are the modifications neede

  • Installer file damaged Windows 7

    Help! Non - Tech hear.   I get the following message when trying to install an adobe app on Windows 7 OS "The application could not be installed because the installer file is damaged. Try obtaining a new installer file from the application author." I

  • WRE54G v3 I can't get it to work with D-Link DIR-615.

    I just got the WRE54G today and spent all day without any luck trying to get this to work. I keep getting "Site survey fail, please try again". Which is what I've been doing most of the day, besides the reset button , as well as sticking a pin into i

  • IMac does not carry on the system.

    Hi All. I am having a very strange situation with my iMac (IOS updated). When I woke it from sleep, could not type the password on the box. I forced it to turn off (held the button in the back). Next time I turned the machie on, the opening sound was

  • Installation of Database instance on server where database is already exist

    Hi All, We have a separate oracle database team who have copied one of the database using oracel backup restore procedure. This database is in 10g and it is working fine from oracle perspective. Now as a basis admin i need to install database instanc