Same Sender and Receiver File Name. Pls advice urgent

Hi All,
My sender file name is auto generated number so
it is dynamic in nature.
ex. "abc1.txt"
     "abc2.txt"
Now In my Sender File Adapter I cannot give
File Name hard coded as my sender file name is auto generated number.
Also I want same file name received at receving end.
File Sender --   "abc1.txt"
File Receiver -- "abc1.txt"
File Sender --   "abc2.txt"
File Receiver -- "abc2.txt"
Pls advice.
Regards

Hi Rider,
All your sender files have .txt extension but the name is not constant(dynamic in nature).Than in this case to pick ur file u can use the *.txt as ur sender file name.Than all the files with .txt extension in the source folder specified would be picked.
Than u can proceed in the same way given in this blog
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Please let me know if u need any information
Thanks,
Bhargav
Note:Award points if found useful

Similar Messages

  • Send and receive files between unix machines

    Hi friends,
    I have to send and receive files from one unix machine to another unix machine. In my first unix machine I have tomcat webserver. Using a JSP I have to send and receive files from this machine to another machine. The destination machine contain some BAAN implementation, which take the files I send as input .
    Can you send me a java program to solve this problem.

    Hi friends,
    I am getting a problem in my application. I will state the complete problem in detail. I have to transfer 3 files from one NT machine to unix machine some where kept in net work, I used an ftp in 'Process p = getRunTime().exec("ftp -i -s:ftp.txt")'. In ftp.txt file I have given the necessary things for ftp to unix machine. The files are transfering into the unix box. When I to the process for the 2nd time I have to check whether the file are exists in the unix box, then only transfer the files. Now, again I am doing ftp bring the files from the unix box to NT machines using 'Process p = getRunTime().exec("ftp -i -s:ftp1.txt")' where ftp1 contains all the necessary things for ftp to unix machine . Now I am checking for the files available in the NT machine using boolean=(new File(filename)).exists(), Fine out of 3 files, 2 file shows the return type as 'true' and one file is showing 'false', even the same happens if I delete the 3 files after checking, out of 3 files, 2 file shows the return type as 'true' and one file is showing 'false'. I went to the folder where I am bring files from and removing the files manually, one file is showing share violation, one process is using the file . I am unable to resolve this problem, will this code what I write is acceptable if not suggest any other code. I have sending all the snippets of the programs. I am doing this in the development environment like this. My production environment is totally both are unix machines.
    1. ftp to transfer files.(tranfer.txt)called in java code down
    open 172.16.30.6
    informix
    informix
    bin
    has
    cd /tmp
    put d:/dathu/CSV/bssfa932.txt
    put d:/dathu/CSV/bssfa933.txt
    put d:/dathu/CSV/bssfa936.txt
    bye
    2. ftp to get the files(get.txt)used in java code down
    open 172.16.30.6
    informix
    informix
    bin
    has
    cd /tmp
    lcd d:/dathu/hold
    get bssfa932.txt
    get bssfa933.txt
    get bssfa936.txt
    bye
    3. java code snippet to getfiles
    Process p = Runtime.getRuntime().exec("ftp -i -s:get.txt");
    4. java code to check the files exist
    boolean filestatus=moCreatFlatFilerobj.isFileExists();
    public boolean isFileExists(){
    boolean isfileexisting=false;
    boolean blnordhead = (new File(file1 with path)).exists();
    boolean blnordlines = (new File(file2 with path)).exists();
    boolean blnaccount = (new File(file3 with path)).exists();
    if(blnordhead && blnordlines && blnaccount){
    isfileexisting=true;
    return isfileexisting;
    5. java code to delete files
    public void deleteFiles(){
    boolean header= (new File(file1 with path)).delete();
    boolean line =(new File(file2 with path)).delete();
    boolean account=(new File(file3 with path)).delete();
    6. java code to tranfer files.
    p = Runtime.getRuntime().exec("ftp -i -s:transfer.txt");

  • Code to retrive the sender and receiver interface names using custome adapter module

    Hello Team,
    I want to develop an custom adapter module which could retrieve the names of the sender and receiver interfaces of the scenario and for that i am trying to use com.sap.aii.af.service.administration.api.monitoring.ProcessContextFactory.ParamSet but i don't know whether this API will support or not and also i don't know how to develop the code using this API so please suggest me some code for it so that i could retrieve the names.
    Thanks you all in advance.
    Regards,
    Avinash.   

    Hi,
    Just ASMA setting will do the needful. Are you planning to rename your target file name. If yes then only you will require UDF.
    Update: Since your directory name will be taken from source file name then you have to use mapping for this, else it will not be possible.
    I don't know if creating a new module for this will help you solve the issue, but in that case rather creating adapter module, mapping will be easier.
    Regards,
    Sarvesh
    Edited by: Sarvesh Singh on Dec 7, 2009 3:04 PM

  • HTTP Sender and HTTP Receiver adapter. Pls advice urgent

    Hi All,
    There is one Third Party that wants to send XML data and receive XML data with XI.
    Please let me know can I use HTTP for that.
    How to use HTTP Sender part?
    How to use HTTP Receiver Adapter?
    Pls send blogs/doc for that
    Thanks and Regards

    hi.,
    Check this thread for the code for a HTTP Client,
    /message/266750#266750 [original link is broken]
    Also, check these blogs. They use HTTP adapters for their configuration,
    /people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
    /people/sriram.vasudevan3/blog/2005/02/14/calling-stored-procs-in-maxdb-using-sap-xi
    http://help.sap.com/saphelp_nw04/helpdata/en/44/79973cc73af456e10000000a114084/content.htm
    Check these links for the configuration part.
    http://help.sap.com/saphelp_nw04/helpdata/en/43/64db4daf9f30b4e10000000a11466f/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/44/79973cc73af456e10000000a114084/content.htm
    Weblog :
    /people/sriram.vasudevan3/blog/2005/01/11/demonstrating-use-of-synchronous-asynchronous-bridge-to-integrate-synchronous-and-asynchronous-systems-using-ccbpm-in-sap-xi - although this weblog is
    aimed at explaining the sync-async bridge.. Sriram has taken http-to-file scenario as the example
    note:reward points if solution found helpfull.....
    regards
    chandrakanth.k

  • Send and receive file through ServerSocket

    Hi all!
    I try to send and then receive file via Server Socket but something goes wrong.
    I can send file from Client to Server, but after that I couldn't receive another file from Server to Client. What might be the problem?
    ex Client:
    public class FileClient{
      public static void main (String [] args ) throws IOException {
        int bytesRead;
        int current = 0;
        Socket sock = new Socket("localhost",13267);
        System.out.println("Connecting...");
        System.out.println("Try to send...");
        //send file
        File myFile = new File ("sourceImg.jpg");
        byte [] mybytearrayTOSend  = new byte [(int)myFile.length()];
        FileInputStream fis = new FileInputStream(myFile);
        BufferedInputStream bis = new BufferedInputStream(fis);
        bis.read(mybytearrayTOSend,0,mybytearrayTOSend.length);
        OutputStream os = sock.getOutputStream();
        System.out.println("Sending...");
        os.write(mybytearrayTOSend,0,mybytearrayTOSend.length);
        os.flush();
        System.out.println("File was sent...");
       System.out.println("Try to receive...");
        // receive file
       byte [] mybytearray  = new byte [filesize];
        InputStream is = sock.getInputStream();
        FileOutputStream fos = new FileOutputStream("source-copyImg2.jpg");
        BufferedOutputStream bos = new BufferedOutputStream(fos);
        bytesRead = is.read(mybytearray,0,mybytearray.length);
        current = bytesRead;
        do {
           bytesRead =
              is.read(mybytearray, current, (mybytearray.length-current));
           if(bytesRead >= 0) current += bytesRead;
        } while(bytesRead > -1);
        bos.write(mybytearray, 0 , current);
        bos.close();
        System.out.println("File was received..");
        sock.close();
    }ex Server
    public class FileServer{
    public static void main (String [] args ) throws IOException {
        ServerSocket servsock = new ServerSocket(13267);
        while (true) {
          System.out.println("Waiting...");
          Socket sock = servsock.accept();
          System.out.println("Accepted connection : " + sock);
          // receive file
          int filesize=6022386;
          int bytesRead;
          int current = 0;
          byte [] mybytearrayIn  = new byte [filesize];
          System.out.println("Try to receive...");
          InputStream is = sock.getInputStream();
          FileOutputStream fos = new FileOutputStream("source-copyImg1.jpg");
          BufferedOutputStream bos = new BufferedOutputStream(fos);
          bytesRead = is.read(mybytearrayIn,0,mybytearrayIn.length);
          current = bytesRead;
          do {
             bytesRead =
                is.read(mybytearrayIn, current, (mybytearrayIn.length-current));
             if(bytesRead >= 0) current += bytesRead;
          } while(bytesRead > -1);
          bos.write(mybytearrayIn, 0 , current);
          long end = System.currentTimeMillis();
          bos.close();
          System.out.println("File was received...");     
          System.out.println("Try to send file...");
          // sendfile
          File myFile = new File ("sourceImg2.jpg");
          byte [] mybytearray  = new byte [(int)myFile.length()];
          FileInputStream fis = new FileInputStream(myFile);
          BufferedInputStream bis = new BufferedInputStream(fis);
          bis.read(mybytearray,0,mybytearray.length);
          OutputStream os = sock.getOutputStream();
          System.out.println("Sending...");
          os.write(mybytearray,0,mybytearray.length);
          os.flush();
          sock.close();
    }

    ex Client:
    public class FileClient{
    current = bytesRead;
    This assignment is pointless. At this line, bytesRead and 'current' are already both zero.
    do {
    bytesRead =
    is.read(mybytearray, current, (mybytearray.length-current));
    if(bytesRead >= 0) current += bytesRead;At this point, if mybytearray.length == current, you are done, and the read will return zero, so you should test for a zero return ...
    } while(bytesRead > -1);... not just a -1 return.
    ex Server
    bis.read(mybytearray,0,mybytearray.length);
    Here you are ignoring the result of the read, which can be anything between 0 and mybytearray.length. Don't do that.

  • Send and Receive Files

    I found that on my desktop computer I cannot send or receive any files (pictures, documents, etc). However if I log into skype on my Android phone i can receive and send files. Why is this happening and how can I fix it?
    I'm on Skype Version 7.2.59.103
    Solved!
    Go to Solution.

    Try to reset all Internet Explorer settings:
    http://support.microsoft.com/kb/923737
    Next reset LAN settings:
    Open Internet Explorer. Go to Tools -> Internet Options -> Connections -> LAN settings. Make sure that the only option selected is “Automatically detect settings”.
    Next clear all Temporary Internet Files:
    Open Internet Explorer -> Tools -> Internet Options -> General. In the section “Browsing history” press the “Settings” button and in the next window the “View files” button. Delete all files from the Temporary Internet Files folder.
    Reboot your computer and test now what happens when you open this link in your Internet Explorer.
    https://api.asm.skype.com/s/i

  • WebService Receiver Problem. Pls advice urgent.

    Hi All,
    I have R/3 (RFC) -- XI -- R/3(WebService) Scenario.
    Now when I test my WebService in R/3 using wsadmin command it works fine.
    But If I import my webservice as wsdl file and use it in Soap Receicer Adapter and use XI I get error:
    <SAP:Category>XIAdapterFramework</SAP:Category>
    <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
    <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: sapd03ci.alkhaliji.bank</SAP:AdditionalText>
    Pls advice very urgent
    regards

    Hi RAC,
    May I know where this R/3 webservice located.
    In your landscape or not?
    Thanks
    Gujjeti

  • Same sender and receiver service but different communication channel

    Hi Exoerts
    I am doing a scenario  Proxy to JMS,HTTP and SOAP Adapter ( everything resides in the same recieiver service )
    Mesage from  SRM System ( proxy ) has to sent to MQ service. But in MQ I have to pass to the same message to three different nodes namely - JMS, HTTP and SOAP Adapter.
    I tried to configure Multiple receivers in the receiver determination. Its doesn't allow add the same service.
    Even if i configured with Multiple services for each nodes - its not allowing to create receiver detemination. It says already exits
    Please tell me fesible solution how to deisgn this
    Thanks
    Faheem

    you need to use only one receiver determination in your case...do not add the receivers
    u can have 3 different interface determinations and in each case the sender / receiver / outbound interface will be the same ..
    only the inbound interface will change ....so u will have 3 inbound interfaces ..
    3 receiver communcation channels for 3 adapters and of course 3 receiver agreements

  • Sender and receiver File Adapter

    Hi ,
    Sender File
    12345566767
    fjwehifh
    09782345sdfgsjghjghhh
    83475 dsf888234  dsfsdf wefrwr
    Question1 : I need to Treat the Complete Message as a Field
    Eg :  MY Source Structure
    Recordset
       record
           Field1 0..1
    I need to read complete file as one field, How can i achive it
    Thanks in advace

    Hi all,
    As my understanding, requirement is that the source file is haphazard and the data type of source has only one field, we should read all the content from the file and convert to the DT which has only one field. and we should map the flat not xml content to target.
    correct if i am wrong,
    anyone has a suggestion for this?
    Regards,
    Kevin Song

  • Queue gets blocked in Receiver System . Pls advice urgent

    Hi All,
    When I send data from CRM --- XI --- DM system
    Whenever data comes at DM system everytime queue gets blocked and gets status "SYSFAIL".
    Pls tell me how to solve this problem.
    Regards

    1.You can use transaction codes SMQR and SXMB_ADM for queue status resetting.
    2.Use transaction codes SMQ1 and SMQ2 for deleting SYSFAIL files, and manually resending messages in the queues.(For activating queues in SMQ1 and SMQ2, you would need to first deregister them in SMQR or SXMB_ADM).
    3.As a pre-requisite, the IS configuration parameter MONITOR QRFC_RESTART_ALLOWED should be set to 1.
    /people/prashanth.azharuddin/blog/2006/11/24/some-errors-in-an-xi-production-environment
    /people/sap.user72/blog/2005/11/29/xi-how-to-re-process-failed-xi-messages-automatically

  • Configure receiver file name as Sender file name

    Hi All,
        In PI7.1.  We have scenario(file to file). Here the sender system send multiple files and In the receiver system we need to populate the same filenames as Sender file Names.
    Could you please let me know is there a configuration to have Receiver file schem name As like sender file names.
    Thanks in Advance,
    Naga.

    Hi Naga,
    This can be achieved using either variable substitution or Dynamic Configuration by enabling Adapter Specific Message Attributes in sender and receiver file channels.
    If the sender file name and receiver file name needs to be exactly same then just check Adapter Specific Message Attributes in advanced tab of both sender and receiver channels. Check on File Name under that.
    Lot of help over this is already available in sdn, kindly serach and you will get lot of helpful blogs and wikis
    Regards,
    Gautam Purohit
    Edited by: Gautam Purohit on Apr 16, 2010 11:26 AM

  • Messages will not send or receive files.

    My messages app picks and chooses when it will send and receive files. Usually they are images or videos but also some Pages documents. Bringing up the file transfer window shows the spiraling download bar for receiving files and sending files will say "sent 0 kb of ____" and not move. Is there anything I can check to

    Same here ???????

  • FTP to FTP scenario. Pls advice urgent

    Hi,
    I have FTP to FTP scenario.
    Do I need to install FTP server on both
    Sender and Receiver File Systems
    Regards

    Hi Aashish,
    Since my Sender File System and Receiver File System are different:
    1. I will install FTP Server A on Sender File System.
    2. I will install FTP Server B on Receiver File System.
    3. I will open the port for FTP request  -- Port 21
    4. I will open the port for FTP response -- Port 21
    5. I will provide all authrozaitions
    Pls let me know if anything missing

  • Same file name from sender to receiver file adapter with out using UDF

    Hi All,
    I am working on FILE TO FILE. My requirement is same file name from sender to receiver file adapter. Is it possible to do using only Adapter Specific message properties?  i mean with out using UDF.
    Thanks
    Karthik

    Hi,
    >>>Is it possible to do using only Adapter Specific message properties?
    yes
    just enable Adapter Specific message properties in sender and receiver channel for file name
    and you're done
    Regards,
    Michal Krawczyk

  • TS2755 Me and my wife r sharing the same Apple ID, with the conversion IOS7 all of a sudden my wife can read all my sended and received iMessages! What t.f is going on? I tried all kind of things, pls help

    Gentlemen,
    Me and my wife r sharing the same Apple ID, with the conversion to IOS7 all of the sended and received iMessages on my phone comes in also on my wife's phone! Tried all kind of things, pls help
    Marco

    Are you both using the same Apple ID?
    What do you have here:
    Settings > Phone > My Number > ?

Maybe you are looking for

  • How can the FFC possibly force Verizon to provide the service I've paid for?

    So it seems that Verizon is quite fond of giving their customers alot of ******** and runaround in order to avoid providing the service they claim to be selling. After spending a TORTUROUS full hour of my time speaking with a customer service rep AND

  • Need help understanding why "1 is always equal to 1" is necessary in my Advanced Action

    I am using Captivate 7 and publishing as a SWF. I have an interaction that works, but there's one script that I use (which I found in a tutorial) that I don't understand the purpose of. The interaction is contained on a single slide where a user clic

  • HT201401 Newbie here...Video Button Unresponsive

    Hi, I hope someone can help me out. I finally saved up enough to get an iphone (although its only a 4). Anyways I have had it about a month and when the new ios7 update came out I updated it with no problems. Now, all of sudden when I am in camera mo

  • Mpeg files exported in FCP aren't readable on PC -PLS HELP!

    Hi - I am new to forums but at the end of my tether - help! My FCP crashed last week and the only option left was to install OS 10 which enabled me to install the latest FCP. The 'update' thing didn't happen for me so I lost everything. After redoing

  • Calling SQL experts to help write a query

    Trying to find some help from some sql experts. I was asked to help write a query showing each Dialed_Number, the associated Call_Type, and Script(s) in an ICM configuration. All the data I'm looking for seems to be in the following tables: Dialed_Nu