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");

Similar Messages

  • 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

  • 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

  • Send and receive messages between threads

    Hi All,
    I am new to Java programming, I am planning to implement a simple chat server (Clients will connect from Android phones). My idea is to listen on the server on a specific port, and as soon as a connection is received on that port a new thread would be created. So far so good.
    The confusion is, I want threads to send messages to each other, for example user1 wants to send a text message to user2. How can I send the messages between threads?
    I am thinking of creating a hashtable which will hold username(key) and the queue object (value). For each connection(thread) I will store a new queue object in the hashtable - Each thread will continuously listen to its own queue. If any thread wants to send message to other, it can fetch the relative queue object and push the message in it. (Each thread knows which thread to call).
    Please advice if there is a better approach to this problem, or if I there is best practice for such problems.
    Thanks,
    Rahil

    sja wrote:
    There may be some reason to pass messages between threads, but so far I can't see it in the spec. Threads are for making several things happen at the same time. If you want to send a message from one user to another, that's one thing happening, and, unless there is some technical reason for it, no need to hand the message between threads.
    If you have a bunch of threads listening to sockets, those are not users, they are socket listening threads. The thread is not the user."Passing messages between threads" is a rather broad and ill-defined concept. However, for some valid interpretations, it's a very common and useful thing to do. The most obvious is the producer/consumer example that the OP is talking about.
    The "message" here could be the unit of work that's enqueued by one thread and dequeued by another. This message is passed simply by the enqueue/dequeue acts.
    Or the "message" could be the producer informing the consumer of the fact that there is a unit of work for him to do. This is accomplished by the underlying queue's blocking mechanism, e.g. notifyAll().

  • 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

  • Problem with Send and Receive Emal In SAP System

    Hi gurus!
    I have a following quote:
    Dear !
    I have a problem with send and receive email in SAP system following :
    I want to test send and receive email in local network at my company. I
    had two server
    Server 1 : I setup Exchange Mail Server 2007 with domain controller is
    fes.com
    Server 2 : I setup SAP ERP ECC 6.0
    On Server 1 : I created 2 account ( u1Afes.com and u2Afes.com ) and then I tested send and receive email between u1 and u2 in local network through Microsoft Outlook 2007 -> OK
    and then
    On Server 2: I had configured send and receive email on SAP system
    through tcode SBWP, SCOT and SOST as Note 455140 - "Configuration of
    e-mail, fax, paging or SMS using SMTP"
    for example :
    I logged in SAP system with user Basis01 (with email u1Afes.com ) -> then,using tcode SBWP -> new message -> send to u2Afes.com with Internet Mail type and then status message with green light -> sending ok
    and then I have used Microsoft Outlook 2007, I logged with account u2 ->check email -> Ok. I saw message which send from u1
    Finally, My problem is how can receive mail in SAP system without using Microsoft Outlook
    For example:
    Login system SAP with Basis01 account (with  u1Afes.com ) -> tcode SBWP ->New Message -> send to u2Afes.com
    and then
    Login system SAP with Basis02 account (with u2Afes.com ) -> tcode ??? ->
    To receive email from Basis01 (with u1Afes.com )
    Please help me now
    Thanks
    I replace "@" with "A" because of banning email of this forum.
    This quote is about sending email in local network. And we can't receive any email from the outside email address. Addition if I wanna send email to internal email in Internet (we've just tried with email address in local network) What should I config in SAP and Exchange ?
    By the way, Is SAP Server IP added to Relay Agent for sending or receiving mail ?
    Regards
    An NLP
    Edited by: An NLP on Apr 6, 2010 7:03 PM

    Hi,
    This problem is a classic problem of mail routing via Exchange. Exchange like most mail servers use the domain part of the email address as a means to route mails. So I will make an assumption that your main company mail addrss is "User @ fes.com".
    So when you send a mail to the "User @ fes.com mail" address the mail is delivered to your Outlook mail address as this is the default route for company.
    (Q) So how do you get your Exchange server to relay the mail into the sending SAP system?
    (A) The easiest way would be to setup and unique mail domain for your SAP system. I always recommend "user @ client.sid.company.com" which in your case would be "u1 @ 100.PRD.fes.com". You can then instruct Exchange to send any emails addressed to 100.PRD.fes.com domain to your SAP system. Also using this format of address you can configure multiple mail connections into multiple SAP systems.
    (A) Another answer would be to enter the "Full" email address (LOcal and Domain part of address) into the routing rule for Exchange e.g. "U1 @ fes.com" so that all emails addressed to this user will be delivered into SAP. However this method requires a lot of Admin as you will have to update Exchange with ALL email address that need to receive emails. Also if your corporate mail address is "U1 @ fes.com" then all mails will be forwarded to SAP.
    I would definitely NOT recommend this method but the decision is up to you.
    P.S. The IP address of the SAP system is entered into the mail header of the email. This is standard practice in SMTP relay. You can suppress this header in Exchange
    Hope this helps
    Michael

  • 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 ???????

  • Send and receive MMS

    hi
    I am a final year student. I want to send and receive MMS between two clients. This for my final year project can anyone help me, if possible immediately.
    bye
    ss.

    The antennae or radios in the Prime are configured differently than most flagship type smartphones and even different still from basic phones.  It comes down to difference of hardware.

  • How send and receive XML file from PI 7.0 via SSL

    Hello experts,
    Can you point to some documentation , examples , links where I can get some information on how to send and receive XML files using PI 7.0 via SSL ?
    Thanks in advance.

    Hi,
      refer to the following links.
    Enabling SSL
    http://help.sap.com/saphelp_nwpi71/helpdata/en/14/ef2940cbf2195de10000000a1550b0/content.htm
    Adapter specific security
    http://help.sap.com/saphelp_nwpi71/helpdata/en/f5/799add57aeee4f889265094a04695c/frameset.htm
    regards,
         MIlan Thaker.

  • FAX machine with Manual function & option to connect PC for Send and receive

    Nearly every MFD out there has these capabilities.  I know the Ricoh, Konicaminolta, and the Kyocera can do this.  The larger machines the fax needs to be installed as an option.  Once installed you have walk up fax, scan to PC, Scan to e-mail, Fax forwarding to PC, or e-mail and if the driver is installed you can fax from your PC through the copier.

    Hi to the Community
    We have a requirement of FAX machine which should fulfill
    our below requirements
    Manual mode for sending and receiving Fax as Traditional
    Second option required is it can be connected to PC so that
    fax can be sent and receive directly from computer as well
    I know to set up windows fax option to fulfill the second
    requirement, but we need both options
    If anyone knows a specific model, kindly let me know
    This topic first appeared in the Spiceworks Community

  • Prerequisites for Sender and Receiver FTP adapter

    Hi Experts,
    I am new to PI and configuring simple file to file scenario. I need to know the prerequsites for sender and receiver FTP adapter. Scenario is System A -> XI -> System B .
    What I want to know is:
    1> What ports need to be opened?
    2> Any service that I need to activate?
    3> Do I need to install FTP server in any of the machine?
    If I have missed something, please add.
    Br,
    Nilz

    Hi,
    1> What ports need to be opened?
    mentioned in below link as said its 21.
    2> Any service that I need to activate?
    No
    3> Do I need to install FTP server in any of the machine?
    THere are two ways by which u can pick ur file.
    1) NFS by which u can put the file on XI appplication directory and pick up ur file.
    2) FTP u have to put ur file on FYP server and XI will pick up the file from there. U can use freeware FTP and install it on ur Desktop search on goolge u will get ti FTP installtion.
    refer the below configuration requirement for FIle adapter.
    http://help.sap.com/saphelp_nw04/helpdata/en/69/a6fb3fea9df028e10000000a1550b0/frameset.htm
    ALso refer the end to end file to file scenario.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/flatFILETOFLATFILE&
    chirag

  • Sender and Receiver Idoc

    Hi All,
    what are the settings need to be done on  both XI system and SAP R/3 system while XI system is communicating to any SAP R/3 system through an IDOC on any side sender or receiver.
    Will there be any difference in the settings for sender and receiver SAP R/3 systems.
    Could any body please suggest me some blogs or documents.
    Thanks in advance..
    Regards,
    Radhika.

    Hi Radhika,
    Hi
    http://help.sap.com/saphelp_nw04/helpdata/en/18/22b800773211d396b20004ac96334b/content.htm
    http://www.erpgenie.com/index.php?option=com_content&task=view&id=346&Itemid=57
    http://searchsap.techtarget.com/loginMembersOnly/1,289498,sid21_gci994575,00.html?NextURL=http%3A//searchsap.techtarget.com/expert/KnowledgebaseAnswer/0%2C289625%2Csid21_gci994575%2C00.html
    http://www.thespot4sap.com/Articles/SAP_ALE_Other_Concepts_Conclusion.asp
    Refer this material..
    Data Creation in Idoc
    IDocs are text encoded documents with a rigid structure that are used to exchange data between R/3 and a foreign system. Instead of calling a program in the destination system directly, the data is first packed into an IDoc and then sent to the receiving system, where it is analyzed and properly processed. Therefore an IDoc data exchange is always an
    asynchronous process. The significant difference between simple RFC-calls and IDoc data exchange is the fact, that every action performed on IDocs are protocolled by R/3 and IDocs can be reprocessed if an error occurred in one of the message steps.
    While IDocs have to be understood as a data exchange protocol, EDI and ALE are typical use cases for IDocs. R/3 uses IDocs for both EDI and ALE to deliver data to the receiving system. ALE is basically the scheduling mechanism that defines when and between which partners and what kind of data will be exchanged on a regular or event triggered basis. Such a set-up is called an ALE-scenario.
    IDoc is a intermediate document to exchange data between two SAP Systems.
    *IDocs are structured ASCII files (or a virtual equivalent).
    *Electronic Interchange Document
    *They are the file format used by SAP R/3 to exchange data with foreign systems.
    *Data Is transmitted in ASCII format, i.e. human readable form
    *IDocs exchange messages
    *IDocs are used like classical interface files
    IDOC types are templates for specific message types depending on what is the business document, you want to exchange.
    WE30 - you can create a IDOC type.
    An IDOC with data, will have to be triggered by the application that is trying to send out the data.
    FOr testing you can use WE19.
    How to create idoc?
    *WE30 - you can create a IDOC type
    For more information in details on the same along with the examples can be viewed on:
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm#_Toc8400404
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a6620507d11d18ee90000e8366fc2/frameset.htm
    http://www.sappoint.com/presentation.html
    http://www.allsaplinks.com/idoc_search.html
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://www.erpgenie.com/sapedi/idoc_abap.htm
    To Create Idoc we need to follow these steps:
    Create Segment ( WE31)
    Create Idoc Type ( WE30 )
    Create Message Type ( WE81 )
    Assign Idoc Type to Message Type ( WE82 )
    Creating a Segment
    Go to transaction code WE31
    Enter the name for your segment type and click on the Create icon
    Type the short text
    Enter the variable names and data elements
    Save it and go back
    Go to Edit -> Set Release
    Follow steps to create more number of segments
    Create IDOC Type
    Go to transaction code WE30
    Enter the Object Name, select Basic type and click Create icon
    Select the create new option and enter a description for your basic IDOC type and press enter
    Select the IDOC Name and click Create icon
    The system prompts us to enter a segment type and its attributes
    Choose the appropriate values and press Enter
    The system transfers the name of the segment type to the IDOC editor.
    Follow these steps to add more number of segments to Parent or as Parent-child relation
    Save it and go back
    Go to Edit -> Set release
    Create Message Type
    Go to transaction code WE81
    Change the details from Display mode to Change mode
    After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter
    Click New Entries to create new Message Type
    Fill details
    Save it and go back
    Assign Message Type to IDoc Type
    Go to transaction code WE82
    Change the details from Display mode to Change mode
    After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter.
    Click New Entries to create new Message Type.
    Fill details
    Save it and go back
    Check these out..
    Re: How to create IDOC
    Check below link. It will give the step by step procedure for IDOC creation.
    http://www.supinfo-projects.com/cn/2005/idocs_en/2/
    ALE/ IDOC
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sappoint.com/abap.html
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.docs
    go trough these links.
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sappoint.com/abap.html
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    An IDoc is simply a data container that is used to exchange information between any two processes that can understand the syntax and semantics of the data...
    1.IDOCs are stored in the database. In the SAP system, IDOCs are stored in database tables.
    2.IDOCs are independent of the sending and receiving systems.
    3.IDOCs are independent of the direction of data exchange.
    The two available process for IDOCs are
    Outbound Process
    Inbound Process
    AND There are basically two types of IDOCs.
    Basic IDOCs
    Basic IDOC type defines the structure and format of the business document that is to be exchanged between two systems.
    Extended IDOCs
    Extending the functionality by adding more segments to existing Basic IDOCs.
    To Create Idoc we need to follow these steps:
    Create Segment ( WE31)
    Create Idoc Type ( WE30)
    Create Message Type ( WE81)
    Assign Idoc Type to Message Type ( WE82)
    imp links
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    www.sappoint.com
    --here u can find the ppts and basic seetings for ALE
    http://sappoint.com/presentation.html
    www.sapgenie.com
    http://www.sapgenie.com/ale/index.htm
    WE30 - you can create a IDOC type.
    An IDOC with data, will have to be triggered by the application that is trying to send out the data.
    Try this..Hope this will help.
    Steps to configuration(Basis) >>
    1. Create Logical System (LS) for each applicable ALE-enabled client
    2. Link client to Logical System on the respective servers
    3. Create background user, to be used by ALE(with authorizaton for ALE postings)
    4. Create RFC Destinations(SM59)
    5. Ports in Idoc processing(WE21)
    6. Generate partner profiles for sending system
    The functional configuration(Tcode: SALE)
    • Create a Customer Distribution Model (CDM);
    • Add appropriate message types and filters to the CDM;
    • Generate outbound partner profiles;
    • Distribute the CDM to the receiving systems; and
    • Generate inbound partner profiles on each of the clients.
    Steps to customize a new IDoc >>>
    1. Define IDoc Segment (WE31)
    2. Convert Segments into an IDoc type (WE30)
    3. Create a Message Type (WE81)
    4. Create valid Combination of Message & IDoc type(WE82)
    5. Define Processing Code(WE41 for OUT / WE42 for IN)
    6. Define Partner Profile(WE20)
    Important Transaction Codes:
    SALE - IMG ALE Configuration root
    WE20 - Manually maintain partner profiles
    BD64 - Maintain customer distribution model
    BD71 - Distribute customer distribution model
    SM59 - Create RFC Destinations
    BDM5 - Consistency check (Transaction scenarios)
    BD82 - Generate Partner Profiles
    BD61 - Activate Change Pointers - Globally
    BD50 - Activate Change Pointer for Msg Type
    BD52 - Activate change pointer per change.doc object
    BD59 - Allocation object type -> IDOC type
    BD56 - Maintain IDOC Segment Filters
    BD53 - Reduction of Message Types
    BD21 - Select Change Pointer
    BD87 - Status Monitor for ALE Messages
    BDM5 - Consistency check (Transaction scenarios)
    BD62 - Define rules
    BD79 - Maintain rules
    BD55 - Defining settings for IDoc conversion
    WEDI - ALE IDoc Administration
    WE21 - Ports in Idoc processing
    WE60 - IDoc documentation
    SARA - IDoc archiving (Object type IDOC)
    WE47 - IDoc status maintenance
    WE07 - IDoc statistics
    BALE - ALE Distribution Administration
    WE05 - IDoc overview
    BD87 - Inbound IDoc reprocessing
    BD88 - Outbound IDoc reprocessing
    BDM2 - IDoc Trace
    BDM7 - IDoc Audit Analysis
    BD21 - Create IDocs from change pointers
    SM58 - Schedule RFC Failures
    Basic config for Distributed data:
    BD64: Maintain a Distributed Model
    BD82: Generate Partner Profile
    BD64: Distribute the distribution Model
    Programs
    RBDMIDOC – Creating IDoc Type from Change Pointers
    RSEOUT00 – Process all selected IDocs (EDI)
    RBDAPP01 - Inbound Processing of IDocs Ready for Transfer
    RSARFCEX - Execute Calls Not Yet Executed
    RBDMOIND - Status Conversion with Successful tRFC Execution
    RBDMANIN - Start error handling for non-posted IDocs
    RBDSTATE - Send Audit Confirmations
    FOr testing you can use WE19.
    You can directly create an iDoc using some transaction like...
    Use TCODE bd10 - to Send Data
    and TCODE bd11 - to Get Data
    and you can check the IDoc List using TCODE we02.
    As you want step by step procedure.
    1. Define Logical System and Assign Logical System
    TCODE sale
    2. Define RFC
    TCODE sm59
    3. Define Port
    TCODE we21
    4. Define Partner Profile
    TCODE we20
    5. Define Distribution Model
    TCODE bd64
    6. Send Data
    TCODE bd10
    7. Get Data
    TCODE bd11
    8. IDoc List
    TCODE we02
    There are basically two types of IDOCs.
    Basic IDOCs
    Extended IDOCs
    Idoc Components
    Basic Idoc
    Basic IDOC type defines the structure and format of the business document that is to be exchanged between two systems.
    Extension Idoc
    Extending the functionality by adding more segments to existing Basic IDOCs.
    Creation of IDoc
    To Create Idoc we need to follow these steps:
    Create Segment ( WE31)
    Create Idoc Type ( WE30)
    Create Message Type ( WE81)
    Assign Idoc Type to Message Type ( WE82)
    Creating a Segment
    Go to transaction code WE31
    Enter the name for your segment type and click on the Create icon
    Type the short text
    Enter the variable names and data elements
    Save it and go back
    Go to Edit -> Set Release
    Follow steps to create more number of segments
    Create IDOC Type
    Go to transaction code WE30
    Enter the Object Name, select Basic type and click Create icon
    Select the create new option and enter a description for your basic IDOC type and press enter
    Select the IDOC Name and click Create icon
    The system prompts us to enter a segment type and its attributes
    Choose the appropriate values and press Enter
    The system transfers the name of the segment type to the IDOC editor.
    Create IDOC Type
    Follow these steps to add more number of segments to Parent or as Parent-child relation
    Save it and go back
    Go to Edit -> Set release
    Create Message Type
    Go to transaction code WE81
    Change the details from Display mode to Change mode
    After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter
    Click New Entries to create new Message Type
    Fill details
    Save it and go back
    Assign Message Type to IDoc Type
    Go to transaction code WE82
    Change the details from Display mode to Change mode
    After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter.
    Click New Entries to create new Message Type.
    Fill details
    Save it and go back
    u can also check all these links related to idocs
    http://www.allsaplinks.com/idoc_sample.html
    http://www.allsaplinks.com/
    http://www.sap-img.com/
    http://www.sappoint.com/abap.html
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEIO/BCMIDALEIO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEPRO/BCMIDALEPRO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAALEQS/CABFAALEQS.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDISC/CAEDISCAP_STC.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDI/CAEDI.pdf
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseCategory/0,295197,sid63_tax296858_idx0_off50,00.html
    http://sap.ittoolbox.com/documents/popular-q-and-a/extending-a-basic-idoc-type-2358
    http://help.sap.com/saphelp_47x200/helpdata/en/dc/6b7eee43d711d1893e0000e8323c4f/frameset.htm
    Reward points if this helps
    Regards
    Vani.

  • IChat cannot send or receive files (images, etc...), crashes.

    One particular machine (10.4.11, G5) cannot use iChat to send or receive files. If she attempts to send an image, for example (jpg, just dragged into the text field and sent) she gets an error that reads "AIM error: Could not send instant message to xxx" followed by "The iChat Agent process has unexpectedly quit, disconnecting you from all services. Logging in again will restart it."
    This happens to every user account on the machine, .Mac users, AIM users, etc... testing with Adium works fine with the same accounts.
    Performed an archive and install, trashed all iChat prefs, ran Onyx, AppleJack, etc... nothing has worked.
    Console reports:
    Date/Time: 2008-09-15 11:24:55.002 -0500
    OS Version: 10.4.11 (Build 8S165)
    Report Version: 4
    Command: iChatAgent
    Path: /System/Library/Frameworks/InstantMessage.framework/iChatAgent.app/Contents/Mac OS/iChatAgent
    Parent: iChat [553]
    Version: 3.1.8 (445)
    Build Version: 2
    Project Name: iChat
    Source Version: 4450000
    PID: 563
    Thread: 0
    Exception: EXC_BREAKPOINT (0x0006)
    Code[0]: 0x00000001
    Code[1]: 0x92c0f0d0
    Thread 0 Crashed:
    0 com.apple.Foundation 0x92c0f0d0 _NSRaiseError + 264
    1 com.apple.Foundation 0x92c0ee0c +[NSException raise:format:] + 40
    2 com.apple.Foundation 0x92be7ed0 -[NSObject(NSForwardInvocation) forward::] + 176
    3 libobjc.A.dylib 0x90a460b0 objcmsgForward + 176
    4 com.apple.iChatAgent 0x0008f930 0x1000 + 583984
    5 com.apple.iChatAgent 0x00082b08 0x1000 + 531208
    6 com.apple.iChatAgent 0x000790a4 0x1000 + 491684
    7 com.apple.iChatAgent 0x0007962c 0x1000 + 493100
    8 com.apple.iChatAgent 0x0004a3f0 0x1000 + 300016
    9 com.apple.iChatAgent 0x0004a25c 0x1000 + 299612
    10 com.apple.iChatAgent 0x00049644 0x1000 + 296516
    11 com.apple.iChatAgent 0x0004923c 0x1000 + 295484
    12 com.apple.iChatAgent 0x00046e34 0x1000 + 286260
    13 com.apple.iChatAgent 0x000276ac 0x1000 + 157356
    14 com.apple.iChatAgent 0x000216f0 0x1000 + 132848
    15 com.apple.iChatAgent 0x00020fd4 0x1000 + 131028
    16 com.apple.iChatAgent 0x0001afcc 0x1000 + 106444
    17 com.apple.iChatAgent 0x0001a798 0x1000 + 104344
    18 com.apple.iChatAgent 0x0001a4b4 0x1000 + 103604
    19 com.apple.iChatAgent 0x0001a444 0x1000 + 103492
    20 com.apple.iChatAgent 0x0001a3e0 0x1000 + 103392
    21 com.apple.iChatAgent 0x00019f1c 0x1000 + 102172
    22 com.apple.iChatAgent 0x00018878 0x1000 + 96376
    23 com.apple.iChatAgent 0x0001850c 0x1000 + 95500
    24 com.apple.CoreFoundation 0x907df300 __CFRunLoopDoSources0 + 384
    25 com.apple.CoreFoundation 0x907de830 __CFRunLoopRun + 452
    26 com.apple.CoreFoundation 0x907de2b0 CFRunLoopRunSpecific + 268
    27 com.apple.Foundation 0x92c030e4 -[NSRunLoop runMode:beforeDate:] + 172
    28 com.apple.Foundation 0x92c0301c -[NSRunLoop run] + 76
    29 com.apple.iChatAgent 0x00002e04 0x1000 + 7684
    30 com.apple.iChatAgent 0x0000294c 0x1000 + 6476
    31 com.apple.iChatAgent 0x000724c8 0x1000 + 464072
    Thread 1:
    0 libSystem.B.dylib 0x9002c3c8 semaphorewait_signaltrap + 8
    1 libSystem.B.dylib 0x90030eac pthreadcondwait + 480
    2 com.apple.Foundation 0x92bfb284 -[NSConditionLock lockWhenCondition:] + 68
    3 com.apple.iChatAgent 0x00003fc8 0x1000 + 12232
    4 com.apple.iChatAgent 0x00003d60 0x1000 + 11616
    5 com.apple.Foundation 0x92bf4118 forkThreadForFunction + 108
    6 libSystem.B.dylib 0x9002bd08 pthreadbody + 96
    Thread 2:
    0 libSystem.B.dylib 0x9001f88c select + 12
    1 com.apple.iChatAgent 0x00019a68 0x1000 + 100968
    2 com.apple.iChatAgent 0x00018250 0x1000 + 94800
    3 com.apple.iChatAgent 0x00018184 0x1000 + 94596
    4 libSystem.B.dylib 0x9002bd08 pthreadbody + 96
    Thread 3:
    0 libSystem.B.dylib 0x90054388 semaphoretimedwait_signaltrap + 8
    1 libSystem.B.dylib 0x900541e4 pthreadcondtimedwait + 676
    2 com.apple.iChatAgent 0x0001fdc4 0x1000 + 126404
    3 com.apple.iChatAgent 0x0001fc50 0x1000 + 126032
    4 com.apple.iChatAgent 0x00018250 0x1000 + 94800
    5 com.apple.iChatAgent 0x00018184 0x1000 + 94596
    6 libSystem.B.dylib 0x9002bd08 pthreadbody + 96
    Thread 0 crashed with PPC Thread State 64:
    srr0: 0x0000000092c0f0d0 srr1: 0x100000000202f030 vrsave: 0x0000000000000000
    cr: 0x28028442 xer: 0x0000000000000000 lr: 0x0000000092c0f0a8 ctr: 0x0000000092bd0e5c
    r0: 0x0000000000000000 r1: 0x00000000bfffe8c0 r2: 0x00000000a2bce508 r3: 0x00000000bfffe470
    r4: 0x0000000000000000 r5: 0x0000000092bd0784 r6: 0x00000000bfffe4f4 r7: 0x00000000000000ff
    r8: 0x00000000bfffe4e0 r9: 0x0000000000507800 r10: 0x0000000090a3f628 r11: 0x0000000028028442
    r12: 0x0000000092bd0e5c r13: 0x0000000000000000 r14: 0x0000000000000001 r15: 0x0000000000000001
    r16: 0x0000000000000000 r17: 0x0000000000000000 r18: 0x0000000000003fc7 r19: 0x0000000000000000
    r20: 0x000000001d1539ce r21: 0x00000000ad54b716 r22: 0x0000000000000001 r23: 0x000000000050e630
    r24: 0x0000000000544930 r25: 0x00000000bfffea38 r26: 0x0000000000544930 r27: 0x00000000a2be7b04
    r28: 0x0000000000565700 r29: 0x00000000a2bd380c r30: 0x0000000000558ae0 r31: 0x0000000092c0efd8
    Binary Images Description:
    0x1000 - 0x1ecfff com.apple.iChatAgent 3.1.8 (445) /System/Library/Frameworks/InstantMessage.framework/iChatAgent.app/Contents/Mac OS/iChatAgent
    etc, etc, etc...
    So it seems to be a system issue (fails in multiple users), and yet it must be something that isn't replaced by an Archive and Install. Has anyone seen this before, or have any idea on how to fix?
    Thank you VERY much.

    Hi
    Try logging on to AIM on port 443 rather than port 5190.
    Go to IChat in the menu bar > Preferences > Accounts.
    Log out of AIM and then use the Server Settings tab
    Set the port to 443.
    Log back in again.

  • Help!!! My text application on Blackberry Torch 9800 disappeared!!! I can't send and receive texts :-(

    Hi everyone,
    I need your help!!!
    The application to send and receive text does not appear on my phone Blackberry 9800 anymore... So, I can't send and receive texts...
    I tried lots of things but the problem is still existing.
    I have one error message everytime I turn on and reset the phone: "Uncaught exception: Index 14 >= 14" !!!
    Any idea of what to do???
    Thanks
    Rachel

    Hi and Welcome to the Community!!
    There's pretty much no diagnosing those -- they are the equivalent of the random errors in Windows for which tracing the root cause is fruitless. Basically, these are the last out in the programming code -- some event occurred for which there is no handler in the code. The fix is a code update that handles the event...but, again, knowing what the event is is pretty much impossible. So, there are a few things to try:
    Sometimes, the code simply becomes corrupt and needs to be refreshed -- just like a reboot:
    Anytime random strange behavior or sluggishness creeps in, the first thing to do is a battery pop reboot. With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes. See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
    If it won't boot up cleanly, then you may need to try Safe Mode:
    KB17877 How to start a BlackBerry smartphone in safe mode
    There might be an updated code set from the carrier -- check them via this portal:
     http://na.blackberry.com/eng/support/downloads/download_sites.jsp
    The toughest possible cause is a badly behaving app. To find it, there are a couple of options. One is to see if you can read the log file:
    Go to the home screen. Hold down the "alt" key and type 'lglg'. (You will not see anything while you type).This will bring up the log file. Scroll down (probably many pages) untill you see a line that says 'uncaught execption'. Click on this line. The name of the app will be in the info. Alternative methods for bringing up the logs are in this KB:
    KB05349How to enable, access, and extract the event logs on a BlackBerry smartphone
    The other method is to remove apps one at a time, waiting a while in between (I usually recommend a week), until the problem ceases...thereby discovering the offending app. Still another method is to reload the BB OS cleanly, leaving some time between adding other apps onto the BB so as to be able to determine exactly which one is the cause.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

Maybe you are looking for

  • How to create client stub while deployign EAR on Oracle Application Server

    Hi, I have deployed an EJB on Oracle Application Server 10g 10.1.2.0.2. And i want to call this ejb from other app server using ejb client. For that i need client stub. Is there any way I can create client stub while deploying EJB on the OC4J? I am s

  • "Automatically retrieve CD track names from internet" not working

    I'm about to begin re-ripping all my CDs (400+) which I haven't done since at least 14yrs ago in order to take advantage on newer/better formats. I was excited to see that iTunes can automate a lot of this process with the following two options: - Wh

  • Cannot change user name to access iCloud

    keep receiving the following message ....... That Apple ID is already in use.If this Apple ID was created by you, simply sign in with your Apple ID and password.If it does not belong to you, try again using a different name........ the apple id is mi

  • Robohelp 7 Webhelp will not compile

    I have Windows XP Pro SP3 with latest patches. I started with RoboHelp 7 fully patched. MS Office 2007 fully patched. I have full security rights to my login. I get errors whether generating webhelp via the GUI or the commandline. Until I tried to ge

  • Uploading PDF to Website

    Is there any options to insert a Pdf into a website without it being download?