File to File Scenario. Help required

Hi All,
I have to make file to file scenario.
XI will pick file from File Sender System and put file at
File Receiver System. From there file will go to printer.
File name has to be constant at receiveing system like "ABC.txt"
There is one condition:
Now suppose there is file at Receiver system and Printer gets jammed so file will not be picked from Receiver system.
At that time XI should not send 2nd file and should wait till the
receiving file directory is empty again.
How to implement the above condition.
Pls suggest.

Hi ,
I think in this case, you should not depend on retrial feature of File adapter. if we use it there will lot of uncertainities and sometime we might have to manual go and start the adapter if maximum retry no..is achieved. hence to tackle the situation in better way , I think on receiver side we should have two directory
lets call it working directory and final directory.
When we are send file from source, Xi should keep on putting created file on receiver side in working directory. I believe we should not disturb normal flow of XI here. Once files are created in working directory, there should be a scheduled program/code which should first check whether final directory ( from where printer reads the file) is empty or not. if the directory is emptry , it should copy files from working directory to final directory. In this way we won't interface with XI normal flow and we don't have to restart the adapter any time.
Scheduled program can be in ABAP/or Java. This will be provide us more flexibility in implementing business logic on receiver as we can manipulate the files flow we want in the code.
This is genreral mechanism has  the followed in different project. I hope this mechanis looks proper .
Ranjeet Singh.

Similar Messages

  • File Content Conversion. Help required

    Hi All,
    My scenario
    I have source text file. I need to do Receiver Determination based on some value.
    I need to send again text file at target side.
    My source txt file is:
    Condition:
    If :59:/1000001642 comes then send to Receiver A
    If :58:/9000001642 comes at that position then send to Receiver B
    Can you please tell me how to apply FCC at sender and receiver side as I am not able to
    do it.
    Regards

    Hi Rick,
    Can there be any way I can avoid FCC and do Rec Determination because I am required to
    do complex FCC at both source and target side.
    If you want XI to route a flat file (without FCC in file adapter), then I think you will need to do enhanced
    receiver determination.   It will have to be a java map since the input is still a flat file.
    http://help.sap.com/saphelp_nw04/helpdata/en/43/a5f2066340332de10000000a11466f/content.htm
    https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3343
    There are many ways to handle this in java, but hereu2019s a simple example that should get you started.
    import java.io.BufferedReader;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStream;
    import java.io.PrintWriter;
    import java.io.StringWriter;
    import java.util.Map;
    import com.sap.aii.mapping.api.MappingTrace;
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.StreamTransformationConstants;
    import com.sap.aii.mapping.api.StreamTransformationException;
    public final class AdvancedReceiverJava implements StreamTransformation {
         private Map _param;  
         public void setParameter(Map param) {
              _param = param;
         public void execute(InputStream in, OutputStream out) throws StreamTransformationException {
              //MappingTrace trace =  (MappingTrace)_param.get(StreamTransformationConstants.MAPPING_TRACE);
              BufferedReader reader = null;
              try {
                   reader = new BufferedReader(new InputStreamReader(in));
                   StringBuffer sb = new StringBuffer();
                   String line = null;
                   while ((line = reader.readLine()) != null) {
                        sb.append(line).append("\n");
                   String fileString = sb.toString();
                   //replace this with a call to value mapping for more configurable solution
                   String receiver = null;
                   if (fileString.indexOf("59:/100000164") > -1)
                        receiver = "receiverService1";
                   else if (fileString.indexOf("58:/9000001642") > -1)
                        receiver = "receiverService2";
                   else
                        throw new Exception("No receiver found in source file.");
                   StringBuffer xml = new StringBuffer();
                   xml.append("<?xml version='1.0' encoding='UTF-8'?>");
                   xml.append("<ns0:Receivers xmlns:ns0='http://sap.com/xi/XI/System'>");
                   xml.append("<Receiver><Service>").append(receiver).append("</Service></Receiver>");
                   xml.append("</ns0:Receivers>");
                   out.write(xml.toString().getBytes());
                   out.flush();
              } catch (Exception e) {             
                   StringWriter sw = new StringWriter();
                   PrintWriter pw = new PrintWriter(sw);
                   e.printStackTrace(pw);
                   throw new StreamTransformationException(sw.toString()); 
              } finally {
                   if (reader!= null) try { reader.close(); } catch (Exception e) {}
    -Russ

  • PI 7.1 : File to JMS Scenario Help.

    Hello Experts,
    We are trying to implement a scenario where in we want to send the data in the file as it is to the JMS adapter in 7.1 because the data is already in expected format. The file is generated by SAP.
    The format of the data is:
    EDI_DC40  2000000000001044736700 0312  ZFDPFCI2                                                    ZDPFCOUT2                                  ZDPFCOSAPSD0    LS  SD0_200                                                                                PI        LS  DPFC                                                                                20100913041404                                                                                20100429062757      Z2FDPFCI2000                  200000000000104473600000100000001I000                            000000000                                                                                12345566677                                     12345566677                                                                                W                                                              JD]D[y
    How can i achieve this? I have tried to put everything in a single field type string element and that doesn't work (parser error).
    I don't want to go for FCC.
    Thanks!
    Harpreet

    Following William's blog,  you can achieve it,  you can send any unstructured data through XI,
    You don't have to create interface in ESR or IR.
    How to send any data (even binary) through XI, without using the Integration Repository
    /people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
    Regards
    Liang
    Edited by: Liang Ji on Sep 23, 2010 10:54 PM

  • Help Required on File to Mail Adapter scenario

    Hi all,
    Can someone give me some links or material regarding the step by step procedure to configure a file to mail adapter scenario (including the design and configuration). I have already gone through help.sap.com, but I need more clarification. So please guide me accordingly
    Regards
    V.Kartik

    Hi Karthik,
         Also check these links on File to Mail adapter scenario:
        Blogs:
        /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
        /people/sap.user72/blog/2005/06/08/sending-attachments-in-mails
        Sap File on Mail Adapter:
        https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05
        Also check these similar threads:
        How to implement file to mail scenario
        What is the process for sending file thru email using Mail Adapter ???
    Regards,
    Subhasha Ranjan

  • How to explain the business requirement of a file to rfc scenario

    Hello Experts,
                       How do i explain the business requirement of
        1. FILE TO IDOC.
        2. FILE TO RFC.
        3. FILE TO JDBC scenarios?
            Cud anybody explain me how to explain the requirement of these scenarios in an interview?Cud u pls send me the example for these and the systems involved and the documents involved...helpful answers will be rewarded...
                                                                                    cheers
                                                                                    Jay.
    my mail :  [email protected]

    <b>1. FILE TO IDOC</b>.
    When u have ur master data stored in a file thru a legacy system say in some xml format then u may need to have this scenario configured.
    <b>2. FILE TO RFC.</b>
    Consider pt1 but here for example consider delete scenario. when u have deleted the mater/transaction u may need to update another file...so in this case u will need to config this scenario...y we cannot use idoc is becoz sync scneario is not possible with idoc but yes with rfc
    <b>3. FILE TO JDBC scenarios?</b>
    u have some business data extracted from a file and before u update a r3 transaction u may need to refer a datbase table to read some data baed on keyfield...so u will take a jdbc response and based on that u may validate with the data for r3 updation.
    the scenario keeps varying in real life and the above are very few examples of the kind of scenario that would exists in the business world

  • File to Mail Scenario - Need help

    Hi all,
    I am trying a simple file to mail scenario in which i am using following data types .
    Source datatype -
    Scr_File_DT
    -- Root
    Material_no
    Plant
    Target datatype -
    Tgt_Mail_DT
    --Content
    In the message mapping i am concatenating material_no and plant and mapping it to content.
    The receiver mail adapter parameters are as follows -
    Transport protocol - SMTP
    Message Protocol - XIPAYLOAD
    URL: smtp://gmail.com
    Configure User Authentication: X (Check box is selected)
    Authentication Method: Plain (from drop-down box)
    User: [email protected]
    Password: ****
    from: mail address
    to: mail address
    subject : test mail.
    Just wanted to confirm whether these settings are correct or not? Because i am not getting the mail in my mailbox.
    Can anyone please help me on this.
    Also are there any other settings required for using mail adapter ?
    Thanks.

    Hi,
    you should add your email address to your user,add specific users list add you r user in alrtcatdef.
    generally you should maitain the email data type format like
    subject,from,to,content-type..
    se below link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm
    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/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    Regards
    Chilla..

  • File to File Scenario with Secure Connection. Pls help urgent

    Hello All,
    I tried a lot to get a link/blog that expalin full scenario
    for File to File Scenario with Secure Connection
    Kindly let me know if somebody have link/doc for it
    that describe all the steps to do configuring this scenario.
    What is difference in simple words between
    FTPS and SFTP.
    Pls help it is urgent as I require for Project work urgently.
    Regards

    hi rich
    go through these links
    FTPs connection failed - error ".. certificate rejected by ChainVerifier"
    Re: What is SFTP, FTI channels
    http://help.sap.com/saphelp_erp2005/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
    FTPS implementation question.
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/0e16bfd7b021aee10000000a1553f6/frameset.htm
    Server certificate rejected by ChainVerifier:FTPS server(Points Guaranteed)
    /people/krishna.moorthyp/blog/2007/07/31/sftp-vs-ftps-in-sap-pi
    File adapter
    thanks
    Kunaal

  • Help required for file to Multi file Blog

    Hi,
    I'm working with following blog for file to multi file scenario...
    "/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    But in Configuration part, I'm unable to find ..TITLE_IDTYPE option for RB_SPLIT.. Screen, there is only two options are available one is Standard and another one is Extended ???!!!
    Note : we are using SP16
    So,  How can I go ahead to complete this scenario ??!!!
    Can anybody help me out to complete this file to mulfile scenario without BPM.
    Thanks.,
    Esha

    Hi Esha,
    the names seem to have changed since SP14 (the version of this blog entry).
    I did a multi-mapping with SP15 once, using "Extended".
    Kind regards,
    Dennis

  • Help required in File Adapter Module Development

    Hi All,
    I am working out a File to File scenario where my source file is in some different format. Please find the below sample:
    <Root>
    <ID>100</ID>
    <NAME>SAP</NAME>
    <END-Root>
    Before taking this into IS, I need to change the file to a proper XML format. I need to replace "END-" with "/".
    <?xml version="1.0" encoding="UTF-8" >
    <Root>
    <ID>100</ID>
    <NAME>SAP</NAME>
    </Root>
    I think I can achive this by developing Adapter Modules. I am new to Adapter Module development.
    Can you please tell me if there are any inbuilt Adapter Modules for this. If not please suggest me some relevant blogs to solve this issue. Thanks in Advance.

    Hi Phani Kumar
    There are more than one ways to do this. As per your timelines and skill set you can decide
    1. You can use the XMLAnonymizerBean this is an inbuilt module
    Check Stefen's blog
    Remove namespace prefix or change XML encoding with the XMLAnonymizerBean
    2. You can read this complete file in a single field and then you can create XSLT or Java mapping to parse it in a target XML you desire.
    Check these
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3823 [original link is broken] [original link is broken] [original link is broken](XSLT mapping)
    Java Mapping (Part I) (Java Mapping)
    The specified item was not found. (Java Mapping helper DOM)
    The specified item was not found. (XML Node into string)
    3. You can develop Adapter modules for this
    Refer
    Check Guides
    XI 3.0
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3bdc14e1-0901-0010-b5a9-a01e29d75a6a
    PI 7.0
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f013e82c-e56e-2910-c3ae-c602a67b918e
    PI 7.1
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00838345-708c-2a10-1199-9514c0b0a91c

  • "iTunes cannot run because some of its required files are missing."  Help!!

    "iTunes cannot run because some of its required files are missing." Help!!
    Hello everyone, I have looked throughout this forum but couldn’t find anything similar so I am posting this in the hope of someone helping me out.
    I have encountered some problems with iTunes (most recent edition) after doing a Dell update which seems to have knocked something out with iTunes.
    Whenever I hit the iTunes icon it refuses to run and iTunes displays the following message:-
    "iTunes cannot run because some of its required files are missing. Please reinstall iTunes."
    I don’t want to reinstall itunes from fresh as this will mean losing all the records and playlists that I have spent the last 3 years using.
    I first want to try by getting my old one back by any means neccessary.
    Like I said this problem first happened after a standard Dell update.
    I do have the option of doing a restore with the Dell or using Windows Vista restore itself but I fear I do not have enough disk space.
    On the Dell update I can restore to settings of a previous date which might bring iTunes back but when attempt to do
    that I keep getting the following message,
    "Not enough free disk space to back up"
    Around this time I am given a lists of what will be backed up and this readsas follows:-
    Pics 2.87gb
    Music 71.72gb
    Videos 330.57mb
    Documents 219.11mb
    Email etc 203.64mb
    How do I free up disk space to do the back up? An external hard drive?? If I baIs there anyway of getting a previous version of iTunes back?
    My drive information is as follows:-
    C Drive: Very little room - red warning - 5.67gb of 138gb
    D Drive: 6.34gb of 9.99 free
    Do I have too much music?
    Ideally don't want to reinstall itunes as is a ball ache, and it has all the playlists etc so if there is
    a way of restoring and getting back iTunes either via restoring system to the prior date when iTunes was ok.
    C drive is really full now. How can I clean this up and make more room? Do I need to add memory? Are all the songs
    causing the problem? What advise can you give me? Please help.
    Thanks!

    Nodders:
    I've recently had exactly the same message as you, after iTunes updated to 10.1.1.4. First of all, I checked the *My Music* folder to make sure it was still there - it was. (I do have a back up of that folder anyway!)
    I then chose the re-install iTunes option and a pop-up box asked if I wanted to uninstall iTunes or repair it. I (obviously) chose repair and I'm pretty sure what happened was that the install process simply re-installed a damaged (or missing) file. It far too quick to be a fresh install. My library was intact.
    So my advice(for what it's worth) is take the re-install option and then repair option. I can't guarantee anything, but ...
    By the way, after I experienced a recent hard drive failure, I decided to invest in a 1TB external drive to back up my iTunes library and personal files because it's a much easier way of backing up than my previous method. Luckily, I only lost a small recent part of my library, but it taught me a lesson. Back up regurlarly, using a larger hard drive than you are using on your computer (which allows you to keep the most recent and +next most recent+ back-ups, and don't rely on Windows to do the backing up. Find a suitable backup piece of software. (My hard drive came with s/w built in.)
    Phil

  • Help in file to RFC scenario

    hey guys i m doing a File to RFC scenario using BPM and taking help from the following blog /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit i m a bit confused about the services being used in figure 19 and figure 20,for a File to RFC(sync) scenario,do i need to have 2 business systems,one of WEB as ABAP and one of third party?
    why is he using two different services in figure 19 and 20.
    thanx
    ahmad

    Dear Bhavesh,
                          Someone earlier told me via SDN that, it is mandatory to create a WEB AS ABAP business system for any SAP system running on ABAP stack participating in the integration scenario. If the above is true than Ahmad needs to create one WEBAS ABAP business system for the R/3 end
    also a third party business system or a business service for file system.
    Pls advice.
    Regards,
    Ashish

  • File to file scenario. Pls help

    Hi All,
    I have to make file to file scenario.
    XI will pick file from File Sender System and put file at
    File Receiver System. From there file will go to printer.
    File name has to be constant at receiveing system like "ABC.txt"
    There is one condition:
    Now suppose there is file at Receiver system and Printer gets jammed so file will not be picked from Receiver system.
    At that time XI should not send 2nd file and should wait till the
    receiving file directory is empty again.
    How to implement the above condition.
    Pls suggest.

    Rich,
    Seriously I couldn't understand why u are opening multiple threads. It's not like you open new thread the solutions gonna be different, always the solution will be same. It will be easy for u to track as well as easy for us to suggest. Plz co-operate with this, we know that u are in urgent situation, but opening multiple threads doesn't solve ur issue for sure, it makes the participants to be frustrated and left your question unanswered, plz understand this.
    I hope u can undestand!
    I know ur scenario is only File 2 File, I don't what could be the frequency of the Sender File or how often the File will be triggered. I will try to explain the best possible way I can.
    I'm going to explain with example , IS_RETRY_LIMIT - 2
    See,
    First trigger , File picked by XI and sent to Receiving folder , Printer picked the file - XI Job is done.
    Second trigger, File picked by XI and sent to Receing folder, Printer is jammed - XI Job is done.
    Third trigger, File picked by XI , it couldn't able to deliver to the Receiving folder ,coz file ABC.txt is already there. So please understand the concept of IS_RETRY_LIMIT, XI retries once again after some interval, it couldn't able to deliver,file is there. - XI Job is not done- in process
    Fourth trigger, File picked by XI , it couldn't able to deliver to the Receiving folder ,coz file ABC.txt is already there,(Printer is not resolved yet, Second trigger file is already there). XI will retry to send file again after some interval it couldn't able to deliver,file is there. - XI Job is not done- in process
    XI retries the file for Third trigger process, it couldn't able to deliver, XI set the message to FAILED status.
    Fifth Trigger,  File picked by XI , it couldn't able to deliver to the Receiving folder ,coz file ABC.txt is already there,(Printer is not resolved yet, Second trigger file is already there)  XI will retry to send file again after some interval it couldn't able to deliver,file is there. - XI Job is not done- in process
    Printer Problem Solved
    File Picked by the printer, Second Trigger is done.
    XI retries the file for Fourth trigger process, it successfully delivers the message to the printer - XI Job is done
    XI retries the file for Fifth trigger process, it successfully delivers the message to the printer - XI Job is done
    Sixth Trigger, File picked by XI and sent to Receiving folder , Printer picked the file - XI Job is done.
    So, now the job continues as usual..
    Now your question might be what to do for the FAILED message in the Third trigger, As I mentioned in the other thread, you need to re-deliver it by the link given in the other thread.
    I hope u can understand , how IS_RETRY_LIMIT helps in your scenario!
    raj.

  • Help me please with File-to-RFC scenario

    Hi, I'm a beginner with XI and I have as problem with an interface.
    This interface is a file-to-RFC scenario an it was working correctly a few days ago. Suddenly, the interface doesn´t work and we haven´t error message in sxi_monitor transaction. The queues are fine and we haven´t any sign that why the interface doesn´t work.
    If someone´s had a similar problem and know how to solve it or someone can teld me a clue, please, help me!!
    Thank you

    HI,
    You can monitor the Communication Channel in RWB.
    Go Component Monitoring in Runtimework Bench and click on Adapter Engine and select the Communicaiton Channel and select your channel name.
    You can find any whether it is in active or not?
    Also check the Message monitoring in RWB.
    Regards
    Sridhar Goli

  • Urgent : Help required for logical comparison of two 2GB files.

    Large files need to be compared depending on Business logic. No byte to byte comparison to be done. It would require reference of data written at the start of the file at some other later part of the file too while comparing two files. File needs to be stored in memory while comparison is done. Kindly suggest some way out which would give best performance. Memory limitations are 256 MB RAM.

    File needs to be stored in memory while comparison is done.
    Memory limitations are 256 MB RAM.You have 4 GB of data. You have 256 MB of RAM to put it in. Obviously one of those two assumptions has to be changed. By the way, what is the XML connection for this question?

  • Steps required in File to Idoc Scenario

    Hey guys i m doin a file to Idoc scenario and just wanna make sure my steps r correct.
    steps done on the XI server
    1.Create RFC destination(test the destination by giving the target host as the R/3 server).
    2.Create port for the RFC destination.
    steps on the R/3 side
    1.Create/verify logical system name.
    and finally create business system for this logical system in SLD.
    now do i need to do partner profile as well or not? and if i have to do it how is it accomplished.
    thanx
    ahmad

    Hi,
    The following are needed for idoc to file scenario...
    In R3...
    RFC dest to XI (sm59)
    Logical system (bd54)
    Port to XI (we21)
    Partner profile for the logical system (we20)
    In XI...
    RFC dest to R3 (sm59)
    Port to R3 (idx1)
    create metadata for the idoc (idx2)
    In sld...
    create business system for R3.
    Regards,
    Uma

Maybe you are looking for

  • Icloud with snow leopard

    Hi guys, I would like to sync contacts in my iphone 4S with my laptop running with Snow Leopard via icloud... No way to do that! Can somebody help me??? Thanks a lot

  • Running In Background on Server

    I am with a Sender and Receiver application where the Receiver runs on a Server and the Sender runs on the Client. What I would like to do is have the Receiver run on the server and continue to set and run waiting for files to be transmitted. I attem

  • Usb superdrive just ejects disks on retina yosemite

    Would appreciate some advice and help PLEASE Just purchased a USB SUPERDRIVE to go into my Macbook 15" retina with Yosemite, it just clunks a few times and ejects the disk, the disk is an installation disk for the OED Version 3.1 CD ROM. Over 25 mile

  • Using Automator to quit Finder

    Hello, I recently became a user of Pathfinder and it quite effectively replaces the functionality (and then some) of Finder. So I've been trying to build an Automator script to automatically quit Finder at login. I have successfully done this, sort o

  • Multiple E70s not opening attatchments

    I have purchased several Nokia E70s for the company, and have enabled the Blackberry service on them. However whe we do recieve an email via the blackberry service, we can not open the attatchment regardless of the type of attatchment. PDF docs, Exce