Distributed system concept, how 2 server link up and serve a client

here are my code...
import java.io.*;
import java.net.*;
import java.awt.*;
import javax.swing.*;
import java.util.*;
public class Server extends JFrame{
     private JTextArea jta=new JTextArea();
     public static void main (String[] args){
          new Server(); //launch server
     public Server(){//construct a server class
     getContentPane().setLayout (new BorderLayout());
     getContentPane().add(new JScrollPane(jta), BorderLayout.CENTER);
     setTitle("Server");
     setSize(500,300);
     setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
     setVisible(true);
     try{
     //create a server socket
          ServerSocket serverSocket=new ServerSocket(8000); //server scoket
          jta.append("Server started" +"........"+'\n');
          //listen for a connection request
          Socket socket=serverSocket.accept(); //connect client
          //create data input and output stream
     DataInputStream inputFromClient=new DataInputStream(socket.getInputStream());//input from client
     DataOutputStream outputToClient=new DataOutputStream(socket.getOutputStream());//output to client
     while(true){ // while true, server wait user input
          jta.append("Server waiting input from client" +"........"+'\n');
          Calendar calendar = Calendar.getInstance();
         int GMT = calendar.get(Calendar.HOUR_OF_DAY); //time
         long totalMilliseconds=System.currentTimeMillis();
         long totalSeconds=totalMilliseconds/1000;
         int currentSecond=(int)(totalSeconds%60); //GMT seconds
          long totalMinutes=totalSeconds/60;
          int currentMinute=(int)(totalMinutes%60);     //GMT minutes
          long totalHours=(totalMinutes/60);
          int currentHour=(int)(totalHours%24);
          int Hour=(currentHour+8)%24; // GMT HOUR
         String c=""; // c for country
          int option = inputFromClient.read();//getinput perform country selection
          if(option==1){
               c="Africa";
          if(option==2){
               c="Australia";
          if(option==3){
               c="Adelaide";
          if(option==4){
               c="Chaina";
          if(option==5){
               c="Korea";
          if(option==6){
               c="Chicago";
          if(option==7){
               c="New York";
          if(option==8){
               c="Caracas";
          if(option==9){
               c="Rio De Janeira";
          if(option==10){
               c="Racife";
          if(option==11){
               c="Azores";
          if(option==12){
               c="London";
          if(option==13){
               c="Paris";
          if(option==14){
               c="Cairo";
          if(option==15){
               c="Moscow";
          if(option==16){
               c="Baku";
          if(option==17){
               c="Karachi";
          if(option==8){
               c="Dhaka";
          if(option==19){
               c="Bangkok";
          if(option==20){
               c="Tokyo";
          jta.append("Client select: " + c +'\n');
switch(option)//read desire destination, and perform calculation, GMT time base on LONDON
         case 1:
         GMT=currentHour+1;
         jta.append("Africa time now is " + GMT+ ":" + currentMinute + ":" + currentSecond +"\n");
         outputToClient.writeInt(GMT);     
             break;
             case 2:
         GMT=currentHour+8;
         outputToClient.writeInt(GMT);
             jta.append("Australia time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
         break;
         case 3:
         GMT=currentHour+9;
         outputToClient.writeInt(GMT);
         jta.append("Adelaide time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
         break;
         case 4:
         GMT=currentHour+8;
         outputToClient.writeInt(GMT);
         jta.append("Chaina time now is " + GMT + ":" +currentMinute + ":" + currentSecond +"\n");
         break;
         case 5:
         GMT=currentHour+9;
         outputToClient.writeInt(GMT);
         jta.append("Korea time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");     
          break;
         case 6:
         GMT=currentHour-6;
         outputToClient.writeInt(GMT);
         jta.append("Chicago time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");        
          break;
         case 7:
          GMT=currentHour-5;
         jta.append("New York time now is " + GMT + ":" +currentMinute + ":"+currentSecond +"\n");
         outputToClient.writeInt(GMT);
          break;
         case 8:
         GMT=currentHour-4;
         outputToClient.writeInt(GMT);
         jta.append("Caracas time now is " + GMT + ":"+ currentMinute + ":"+currentSecond +"\n");
            break; 
         case 9:
         GMT=currentHour-3;
         outputToClient.writeInt(GMT);
         jta.append("Rio De Janeiro time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");        
          break;
         case 10:
         GMT=currentHour-2;
         outputToClient.writeInt(GMT);
         jta.append("Recife time now is " + GMT + ":"  + currentMinute + ":" + currentSecond +"\n");
          break;
         case 11:        
         GMT=currentHour-1;
         outputToClient.writeInt(GMT);
         jta.append("Azores time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
            break;
         case 12:
         GMT=currentHour;
         outputToClient.writeInt(GMT);
             jta.append("London time now is " + GMT + ":"+ currentMinute + ":" + currentSecond +"\n");
          break;
         case 13:
         GMT=currentHour+1;
         outputToClient.writeInt(GMT);
         jta.append("Paris time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
          break;
         case 14:        
         GMT=currentHour+2;
         outputToClient.writeInt(GMT);
         jta.append("Cairo time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");        
          break; 
         case 15:       
         GMT=currentHour+3;
         outputToClient.writeInt(GMT);
         jta.append("Moscow time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");        
             break;
         case 16:       
         GMT=currentHour+4;
         jta.append("Baku time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
         outputToClient.writeInt(GMT);        
             break;
         case 17:
             GMT=(currentHour+5)%24;
         jta.append("Karachi time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
         outputToClient.writeInt(GMT);
             break;
         case 18:
         GMT=(currentHour+6)%24;
         jta.append("Dhaka time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
         outputToClient.writeInt(GMT);
          break;
         case 19:
         GMT=(currentHour+8)%24;
         jta.append("Hong Kong time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
          outputToClient.writeInt(GMT);
          break;
         case 20:
         GMT=(currentHour+9)%24;
         jta.append("Tokyo time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
         outputToClient.writeInt(GMT);
             break;
         }//end switch
            //export HOUR, minute,second to client side
         outputToClient.writeInt(GMT);
         outputToClient.writeInt(currentMinute);  
         outputToClient.writeInt(currentSecond);
          jta.append("Option Found "+ c +'\n');
          catch(IOException ex){
          System.err.println(ex);
  }//end constructor
}//end server class
//server 2
import java.io.*;
import java.net.*;
import java.awt.*;
import javax.swing.*;
import java.util.*;
public class Server2 extends JFrame{
     private JTextArea jta=new JTextArea();
     public static void main (String[] args){
          new Server(); //launch server
     public Server2(){//construct a server class
     getContentPane().setLayout (new BorderLayout());
     getContentPane().add(new JScrollPane(jta), BorderLayout.CENTER);
     setTitle("Server");
     setSize(500,300);
     setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
     setVisible(true);
     try{
     //create a server socket
          ServerSocket serverSocket1=new ServerSocket("127.0.0.2",8001); //server scoket
          jta.append("Server2 started" +"........"+'\n');
          //listen for a connection request
          Socket socket=serverSocket1.accept(); //connect client
     //     Socket socket1=serverSocket.accept();
          //create data input and output stream
     DataInputStream inputFromClient=new DataInputStream(socket.getInputStream());//input from client
     DataOutputStream outputToClient=new DataOutputStream(socket.getOutputStream());//output to client
     while(true){ // while true, server wait user input
          jta.append("Server waiting input from client" +"........"+'\n');
          Calendar calendar = Calendar.getInstance();
         int GMT = calendar.get(Calendar.HOUR_OF_DAY); //time
         long totalMilliseconds=System.currentTimeMillis();
         long totalSeconds=totalMilliseconds/1000;
         int currentSecond=(int)(totalSeconds%60); //GMT seconds
          long totalMinutes=totalSeconds/60;
          int currentMinute=(int)(totalMinutes%60);     //GMT minutes
          long totalHours=(totalMinutes/60);
          int currentHour=(int)(totalHours%24);
          int Hour=(currentHour+8)%24; // GMT HOUR
         String c=""; // c for country
          int option = inputFromClient.read();//getinput perform country selection
          if(option==1){
               c="Africa";
          if(option==2){
               c="Australia";
          if(option==3){
               c="Adelaide";
          if(option==4){
               c="Chaina";
          if(option==5){
               c="Korea";
          if(option==6){
               c="Chicago";
          if(option==7){
               c="New York";
          if(option==8){
               c="Caracas";
          if(option==9){
               c="Rio De Janeira";
          if(option==10){
               c="Racife";
          if(option==11){
               c="Azores";
          if(option==12){
               c="London";
          if(option==13){
               c="Paris";
          if(option==14){
               c="Cairo";
          if(option==15){
               c="Moscow";
          if(option==16){
               c="Baku";
          if(option==17){
               c="Karachi";
          if(option==8){
               c="Dhaka";
          if(option==19){
               c="Bangkok";
          if(option==20){
               c="Tokyo";
          jta.append("Client select: " + c +'\n');
switch(option)//read desire destination, and perform calculation, GMT time base on LONDON
         case 1:
         GMT=currentHour+1;
         jta.append("Africa time now is " + GMT+ ":" + currentMinute + ":" + currentSecond +"\n");
         outputToClient.writeInt(GMT);     
             break;
             case 2:
         GMT=currentHour+8;
         outputToClient.writeInt(GMT);
             jta.append("Australia time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
         break;
         case 3:
         GMT=currentHour+9;
         outputToClient.writeInt(GMT);
         jta.append("Adelaide time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
         break;
         case 4:
         GMT=currentHour+8;
         outputToClient.writeInt(GMT);
         jta.append("Chaina time now is " + GMT + ":" +currentMinute + ":" + currentSecond +"\n");
         break;
         case 5:
         GMT=currentHour+9;
         outputToClient.writeInt(GMT);
         jta.append("Korea time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");     
          break;
         case 6:
         GMT=currentHour-6;
         outputToClient.writeInt(GMT);
         jta.append("Chicago time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");        
          break;
         case 7:
          GMT=currentHour-5;
         jta.append("New York time now is " + GMT + ":" +currentMinute + ":"+currentSecond +"\n");
         outputToClient.writeInt(GMT);
          break;
         case 8:
         GMT=currentHour-4;
         outputToClient.writeInt(GMT);
         jta.append("Caracas time now is " + GMT + ":"+ currentMinute + ":"+currentSecond +"\n");
            break; 
         case 9:
         GMT=currentHour-3;
         outputToClient.writeInt(GMT);
         jta.append("Rio De Janeiro time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");        
          break;
         case 10:
         GMT=currentHour-2;
         outputToClient.writeInt(GMT);
         jta.append("Recife time now is " + GMT + ":"  + currentMinute + ":" + currentSecond +"\n");
          break;
         case 11:        
         GMT=currentHour-1;
         outputToClient.writeInt(GMT);
         jta.append("Azores time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
            break;
         case 12:
         GMT=currentHour;
         outputToClient.writeInt(GMT);
             jta.append("London time now is " + GMT + ":"+ currentMinute + ":" + currentSecond +"\n");
          break;
         case 13:
         GMT=currentHour+1;
         outputToClient.writeInt(GMT);
         jta.append("Paris time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
          break;
         case 14:        
         GMT=currentHour+2;
         outputToClient.writeInt(GMT);
         jta.append("Cairo time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");        
          break; 
         case 15:       
         GMT=currentHour+3;
         outputToClient.writeInt(GMT);
         jta.append("Moscow time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");        
             break;
         case 16:       
         GMT=currentHour+4;
         jta.append("Baku time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
         outputToClient.writeInt(GMT);        
             break;
         case 17:
             GMT=(currentHour+5)%24;
         jta.append("Karachi time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
         outputToClient.writeInt(GMT);
             break;
         case 18:
         GMT=(currentHour+6)%24;
         jta.append("Dhaka time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
         outputToClient.writeInt(GMT);
          break;
         case 19:
         GMT=(currentHour+8)%24;
         jta.append("Hong Kong time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
          outputToClient.writeInt(GMT);
          break;
         case 20:
         GMT=(currentHour+9)%24;
         jta.append("Tokyo time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
         outputToClient.writeInt(GMT);
             break;
         }//end switch
            //export HOUR, minute,second to client side
         outputToClient.writeInt(GMT);
         outputToClient.writeInt(currentMinute);  
         outputToClient.writeInt(currentSecond);
          jta.append("Option Found "+ c +'\n');
          catch(IOException ex){
          System.err.println(ex);
  }//end constructor
}//end server2 class
//client class
import java.io.*;
import java.net.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.*;
public class Client extends JFrame implements ActionListener{
     private JTextField jtf =new JTextField();//text feild for receiving option
     private JTextArea jta=new JTextArea();//text area display contents
     private JButton btnDownload=new JButton("Download");
     //IO stream
     private DataOutputStream toServer;
     private DataInputStream fromServer;
     public static void main(String [] args){
          new Client();        //launch client
     public Client(){//construct a client class
         //display layout
          JPanel p=new JPanel();
          p.setLayout(new GridLayout(1,3));
         p.add(new JLabel("Select file name:"));
         p.add(jtf, BorderLayout.NORTH);
         p.add (btnDownload);
          p.add (new JButton("RESUME"));
          p.add(new JButton("STOP"));
         jtf.setHorizontalAlignment(JTextField.LEFT);
         getContentPane().setLayout(new BorderLayout()); //set borderlayout
        getContentPane().add(p, BorderLayout.NORTH);
         getContentPane().add(new JScrollPane(jta), BorderLayout.CENTER);
         //     btnDownload.addActionListener(this);
         jtf.addActionListener(this); //perform action
         setTitle("Client"); //interface title
         setSize(600,300); //interface size
         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         setVisible(true);
         try{
          //create a client socket
          Socket socket=new Socket("localhost",8000);
    //      Socket socket1=new Socket("127.0.0.2",8001);
          jta.append("Client started.....\n" +"your locale time is " + new Date()+ '\n');
          fromServer=new DataInputStream(socket.getInputStream()); //initialize get from server
          toServer=new DataOutputStream(socket.getOutputStream()); //initialize to server
          catch(IOException ex){ //error if server timeout
               jta.append(ex.toString()+'\n');
     public void actionPerformed(ActionEvent e){ //action perform when user hit enter
          String actionCommand=e.getActionCommand();
          if(e.getSource() instanceof JTextField){
               try{
                    int option=Integer.parseInt(jtf.getText().trim());//convert text to integer
                    String c=""; //c for country list
                    toServer.write(option);//write selection and sent to server
                    toServer.flush(); //server refresh
                    int inputFromServer = fromServer.readInt();//initilize read data from server, integer format
          //if ...selection to determine the country user desire     
          if(option==1){
               c="Africa";
          if(option==2){
               c="Australia";
          if(option==3){
               c="Adelaide";
          if(option==4){
               c="Chaina";
          if(option==5){
               c="Korea";
          if(option==6){
               c="Chicago";
          if(option==7){
               c="New York";
          if(option==8){
               c="Caracas";
          if(option==9){
               c="Rio De Janeira";
          if(option==10){
               c="Racife";
          if(option==11){
               c="Azores";
          if(option==12){
               c="London";
          if(option==13){
               c="Paris";
          if(option==14){
               c="Cairo";
          if(option==15){
               c="Moscow";
          if(option==16){
               c="Baku";
          if(option==17){
               c="Karachi";
          if(option==8){
               c="Dhaka";
          if(option==19){
               c="Bangkok";
          if(option==20){
               c="Tokyo";
          jta.append("Selected: "+ c +'\n');     
                    int GMT = fromServer.readInt();     //hour import from server     
                  int currentMinute = fromServer.readInt();//minute import from server
                    int currentSecond = fromServer.readInt();// second from server
                    //print full time format in JtextArea
                    jta.append("Time is >>"+GMT+ ":" +currentMinute+ ":" +currentSecond+'\n');
               catch (IOException ex){
                    System.err.println(ex);
          }// end if ..true
     }// end actiond
}//end client class

here i attach my similar code again, which can compile..
problem is, how to let this server to communicate with each other, if i duplicate my server code. Which mean 2 server.
import java.io.*;
import java.net.*;
import java.awt.*;
import javax.swing.*;
import java.util.*;
public class Server extends JFrame{
     private JTextArea jta=new JTextArea();
     public static void main (String[] args){
          new Server(); //launch server
     public Server()
     {//construct a server class
     getContentPane().setLayout (new BorderLayout());
     getContentPane().add(new JScrollPane(jta), BorderLayout.CENTER);
     setTitle("Server");
     setSize(500,300);
     setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
     setVisible(true);
     try{
     //create a server socket
          ServerSocket serverSocket=new ServerSocket(8000); //server scoket
          jta.append("Server started" +"........"+'\n');
          //listen for a connection request
          Socket socket=serverSocket.accept(); //connect client
     DataInputStream inputFromClient=new DataInputStream(socket.getInputStream());//input from client
     DataOutputStream outputToClient=new DataOutputStream(socket.getOutputStream());//output to client
     while(true){ // while true, server wait user input
          jta.append("Server waiting input from client" +"........"+'\n');
                     jta.append("Option Found "+ '\n');     
          catch(IOException ex){
          System.err.println(ex);
}

Similar Messages

  • HT1338 I am trying to update a Brother MFC-J5910DW firmware and driver software for OS X Mountain Lion. The instructions say I need to have JavaVM (Virtual Machine) on my system. How do I load it and wasn't there a "fix" apple sent out for Java?

    I am trying to update a Brother MFC-J5910DW firmware and driver software for OS X Mountain Lion. The instructions say I need to have JavaVM (Virtual Machine) on my system. How do I load it and wasn't there a "fix" apple sent out for Java?

    Java for OS X 2013-002

  • How to create links to and from Facebook

    There is a need to provide links to and  from Facebook
    How does one go about this?

    Create a text or image hyperlink on your web page or use one of the buttons...
    http://www.iwebformusicians.com/Search-Engine-Optimization/Facebook-Button.html
    Copy a text hyperlink to your site and paste it into Facebook.

  • How to deploy Forms, Reports and Menu from Client to Server machine

    Dear Experts,
    I have one requirement to deploy the Forms, Reports and Menu from client machine to server machine.
    Deployment involves the following steps :
    1. Firstly we have to search the selected file in a folder where the .fmx is present ( in Server machine) and take the back up of the the existing file in the server (Source and destination paths will be available).
         Ex. If the existing FMB name is TEST.fmx then the backup file should be TEST_sysdate.fmx.
    2. Secondly we have to transfer the file from the client folder (or from another folder of the same server) to the server folder where the back up exists.
    Please help me to search/rename/copy/replace the _.fmx/.rdf/.rep/.mmx_ files from client to server.
    We are using
    9i Database.
    10g Forms and reports.
    SQL Developer tool.
    OS is Windows (Client and Server).
    Help me out to attach a file of front end screen which we are planning to develop. It will give a clear picture on this requirement.
    Thanks :)
    Edited by: 941175 on Jun 17, 2012 9:09 AM
    Edited by: 941175 on Jun 17, 2012 9:12 AM
    Edited by: 941175 on Jun 17, 2012 9:14 AM

    941175
    Welcome to the forum. Please take a while to go through the FAQ to be found to the top right of the page.
    Your issue is more to do with batch files rather than Forms. The only relation with Forms, as I see it, is that you will be using HOST/CLIENT_HOST to start a batch file with the file name to be deployed as a parameter passed to it.
    You need to rewrite either a CMD batch file or a Powershell script to achieve what have set out to do.
    For CMD batch files look up http://www.robvanderwoude.com/battech.php , or any of the other excellent resources available on the internet.
    Regards,

  • Jdev 10.1.2 [UIX]: How do you link tabs and its globalheader options?

    Hello guys, I've been reading the documentation about tab/globalheader/sidebar. But I haven't found the way to "filter" the links in globalheader as a tab is selected in a page. All the examples are statically defined.
    How is it done?, dynamically keeping some state in memory for the selected indexes?
    or is it easier to have many different pages for each state of selection?
    I also want to conditionally render the shown options based on the user's jazn roles.
    So, I was thinking the next solution and I write it here hoping that someone could tell me if I'm on the right track:
    Use statically defined pages for each state of selection (and so content) instead of trying to dynamically call content (in a target frame) and keeping selection state somewhere in memory. And conditionally display the options in each page (using switcher) based on the user's jazn roles.
    Well, thank you all.
    Greetings.
    Fer.

    repost
    Just asking for guidelines on how to design the menuing system for an application using UIX and Jazn (not JSP, but if JSP is better I could go for it).
    Thanks,
    Fer

  • How do I link mine and my wifes iphones, and our shared ipad together?

    I have an iphone for work, and my wife and I have a shared ipad at home.  Both currently run imessage and icloud under my apple id.  I had to turn my iphone imessaging off though to prevent seeing her conversations with family from out ipad while I was at work.  I previously had her email loaded as a secondary email to mine and I think this is how it worked.  Now, she has her own iphone.  We had to create her own apple id for this, and I no longer seem to be able to link her email to my ipads icloud and imessaging, I guess as it is used with her phone.  Now I'm stuck with what I need to do for the three devices to communicate, but for her to not get my work messages and me to not get her family messages.  Does the ipad need it's own id?  Do I need to tick or untick certain things in my "Reached by email at" or "Start new conversations from" menus?

    I just know how to keep separeted: create different accounts, or turn "contacts" off, on iCloud settings in one of the iPhones.

  • How to create links (previous and view more)

    I'm trying to develop a site which will show different
    products.
    Instead of scrolling down to see each product, I made each
    one its own page.
    If I put them in a folder within the site can I have
    "previous" and "view additional" products buttons? How do I set
    those links up?
    thanks for the help.

    thank you very much for responding.
    what this sounds like is, you only have two pages.
    how does the "view additional" continue to work on the
    additional pages?
    How does the "previous" work on additional pages?
    I started reading about a recordset. Is this the wrong
    direction to go in?

  • I have learned to love PAGES, but I can't figure out how "sections" get linked together and how to unlink them so I can move pages or delete pages with a whole bunch of pages (a section) going away.

    I have learned to love the PAGES program but I will add a new "section" or page to it and then when I look at thumbnails and try to move pages around or delete pages, it treats them as a section of many pages and will only delete several of them together or will add extra blank pages that I don't need. It is very frustrating but must be something I am doing to cause this.

    Burghmom wrote:
    It is the '09 version. I went on the boards and found out that by inserting a page break after each page as I go, I can make each page act individually instead of as a group. Then I can move pages around or delete them through thumbnails. The online manual didn't really help with how to avoid having them act as a group.
    A Page Break pushes the next text to the next page, it is still part of the same section.
    You need to insert a Section Break.
    Peter

  • Can any one tell me how we are linking BF and UM

    Dear all,
    I have a question regarding the linkage between the 2LIS_03_BF and 2LIS_03_UM ( revaluations).
    Both the data sources data is there in the PSA but from PSA to infocube how the data will flow through update rules...can any one give me with one example so that all my doubts wil be cleared..
    can u pleas take an example with the help of a document nubers of MM ans FI....
    Regards
    venu
    Edited by: venu on Apr 8, 2008 6:47 AM

    Hi,
    Bf is useful to get the material movements. the movements are determined by the movement type field. based on the movement type the material quantity will be treated as debit or credit. this will help us in getting the invetory positions at a particular point.
    um data is picked from fi tables to get Map i.e is moving average price and prices determined or reflected in  the fi tables.this is to valuate tha stocks.
    Regards,
    sekhar reddy

  • How to save user name and password on client tool

    Hi,
       In our landscape, few users are using webi rich client tool to work offline. They are entering login credentials manually everytime. Is there any way to save the user id and password, so that user can login without manually entering the login credentials everytime. Please find below my system details. Please anyone help is highly appreciated.
    System Details:
    Server: BOBI 4.1 SP2
    Client tool : BOBI 4.1 SP2
    Authentication type : Windows AD
    Thanking you in anticipation
    Obinna.

    Hello,
    oh yes it is!
    The Question is for which Front- Ends?
    For the WRC you dont have to do anything as long as the Information under "System" is correct and "Windows AD" is selected under "Authentication. Leave "Username" and "Password" blank.
    Just hit "OK" and you are logged in.
    Regards
    -Seb.

  • How can deploy the application and data to client?

    As I know, I can burn a CD with http://mobileserver/setup/webtogo/setup.exe and distribute this CD to client to install web-to-go Client.
    But how can I create a package for client to install my application and data?
    What tools should I use? Where can I get the information?
    Can you give/show me a simple example to make a package and install the package?
    Thanks a lot.

    Only the carrier to whom the device is locked can unlock it.
    StraightTalk is not a supported carrier... not all features may work.

  • DB 13 error in distributed system (brconnect)

    hi expert,
    I installed distributed system .
    DB instance is Unix (hp) and Central instance is NT.
    I install standalone gateway in DB host for DB13 and then configured TCP/IP detination SAPXPG_DBDEST_<DBhost> .
    I checked SAPXPG_DBDEST_<DBhost> connection is OK.
    but check db error in DB13
    =================================================================
    Job started
    Step 001 started (program RSDBAJOB, variant &0000000000020, user ID ADMIN)
    No application server found on database host - rsh/gateway will be used
    Execute logical command BRCONNECT On host stwdbdev
    Parameters: -u / -jid CHECK20100624162600 -c -f check
    BR0801I BRCONNECT 7.10 (19)
    BR0152E Environment variable ORACLE_SID is not set
    BR0806I End of BRCONNECT processing: cedngqgn.log2010-06-24 16.26.01
    BR0280I BRCONNECT time stamp: 2010-06-24 16.26.01
    BR0804I BRCONNECT terminated with errors
    External program terminated with exit code 3
    BRCONNECT returned error status E
    Job finished
    ==================================================================
    previous this error, `brconnect not found error` is corrected by copy br* kernels to gateway kerenl directory.
    I thought brconnect is started by gateway`s <sid>adm user so I gave environment value "ORACLE_SID,ORACLE_HOME,SAPDATA_HOME" to gateway`s <sid>adm .
    but error is same.
    finally, I want to know who execute brconnect in DB instance and how can I correct this problem.
    thanks and regards
    jun

    hi,
    I log on SAPServicePID but db13 error is same
    ===========================================
    Job started
    Step 001 started (program RSDBAJOB, variant &0000000000024, user ID ADMIN)
    No application server found on database host - rsh/gateway will be used
    Execute logical command BRCONNECT On host stwdbdev
    Parameters: -u / -jid CHECK20100625125243 -c -f check
    BR0801I BRCONNECT 7.10 (19)
    BR0152E Environment variable ORACLE_SID is not set
    BR0806I End of BRCONNECT processing: cednkvdj.log2010-06-25 12.52.43
    BR0280I BRCONNECT time stamp: 2010-06-25 12.52.43
    BR0804I BRCONNECT terminated with errors
    External program terminated with exit code 3
    BRCONNECT returned error status E
    Job finished
    ===============================================
    and SAPServicePID environment variant
    ==============================================
    C:\Documents and Settings\SAPServiceDPI>set
    ALLUSERSPROFILE=C:\Documents and Settings\All Users
    APPDATA=C:\Documents and Settings\SAPServiceDPI\Application Data
    CLIENTNAME=MYCOM
    ClusterLog=C:\WINDOWS\Cluster\cluster.log
    CommonProgramFiles=C:\Program Files\Common Files
    CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
    COMPUTERNAME=STWDMDDEV
    ComSpec=C:\WINDOWS\system32\cmd.exe
    FP_NO_HOST_CHECK=NO
    HOMEDRIVE=C:
    HOMEPATH=\Documents and Settings\SAPServiceDPI
    LOGONSERVER=
    STWDMDDEV
    NUMBER_OF_PROCESSORS=2
    ORACLE_HOME=/oracle/DPI/102_64
    ORACLE_SID=DPI
    OS=Windows_NT
    Path=C:\Program Files (x86)\Windows Resource Kits\Tools\;C:\WINDOWS\system32;C:\
    WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft Network Monitor 3\;C
    :\Admin\bin;C:\Program Files\OmniBack\bin\
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PROCESSOR_ARCHITECTURE=AMD64
    PROCESSOR_IDENTIFIER=EM64T Family 6 Model 26 Stepping 5, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=1a05
    ProgramFiles=C:\Program Files
    ProgramFiles(x86)=C:\Program Files (x86)
    PROMPT=$P$G
    SAPDATA_HOME=/oracle/DPI
    SAP_DIR_PERF=D:\usr\sap\PRFCLOG
    SESSIONNAME=RDP-Tcp#24
    SystemDrive=C:
    SystemRoot=C:\WINDOWS
    TEMP=C:\DOCUME1\SAPSER2\LOCALS~1\Temp\1
    TMP=C:\DOCUME1\SAPSER2\LOCALS~1\Temp\1
    USERDOMAIN=STWDMDDEV
    USERNAME=SAPServiceDPI
    USERPROFILE=C:\Documents and Settings\SAPServiceDPI
    windir=C:\WINDOWS
    ==========================================================================
    brconnect working is sure by SAPServiceSID??
    why error is still??
    regards
    jun

  • I lost Adobe Acrobat X Standard when I restored my system. How can I reinstall it?

    I lost Adobe Acrobat X Standard when I restored my system. How can I reinstall it and activate it? It came already installed (OEM) with my new DELL PC. I do have a serial-number.

    Direct Download Links for Adobe Software
    Mylenium

  • RFC: SAPXPG_DBDEST_ SAPDBHOST giving error: Distributed system

    Hi All,
    We have distributed system (database & SAP application server running on different machines).
    Database: 10g
    OS: Sun solaris: 10 (for both App & DB servers)
    SAP version: ECC6
    SAPXPG_DBDEST_<SAPDBHOST> giving error as follows
    Connection Error
    Error when opening an RFC connection
    ERROR: timeout during allocate
    LOCATION: SAP-Gateway on host <SAPAPP server> / sapgw00
    DETAIL: no connect of TP sapxpg from host <DB Host> after 20 sec
    COMPONENT: SAP-Gateway
    COUNTER: 7911
    MODULE: gwr3cpic.c
    LINE: 1973
    RETURN CODE: 242
    SUBRC: 0
    RELEASE: 700
    TIME: Fri Sep 26 18:33:56 2008
    VERSION: 2
    Any ony faced this prob, earlier. . . .
    Rgds

    Dear Juan,
    Thanks!!!
    Here are the setting of RFC in SM59:-
    Activation Type:
    Start on Explicit host
    Start On Explicit Host:
    Program: sapxpg
    Target Host: <Application Server>
    Save to Datbase as:
    IP: <IP of Database server>
    Start Type of External Program:
    Default Gateway Value
    CPI-C Timeout:
    Specify: 20 seconds
    Gateway Options: Here I didn't give any value
    Any clue please. . . . .
    rgds

  • How can I link 2 skype accounts

    I have 2 skype accounts. How can I link it and have only 1 skype account?

    You are right. Linking two different Skype accounts is not possible.

Maybe you are looking for

  • Problem in PS

    In PS please explain what is the significance and relation between Budget, Actual, Commitment, Remord Plan, Assigned and Available. Suppose I have a budget of amount 10000, and My Open PR (Not converted to PO amount is 1000 My PO amount is 4000 My ac

  • Dynamic query configuration in sender jdbc adapter

    Hi, According my undertsnading in XI.3.0 dynamic query in sender JDBC adapter is not possible. could any one confirms the possibility of this feature in XI 7.0 . Thanks, venu

  • Formula variables & Exits in Report painter

    I have to create a report with YTD values where I have to check - If company code =1 then from period = 003 else from period = 001 Can I do by creating a formula variable for the Period ? If yes, then how? Thanks

  • How to create a secondary tile like OneNote with small footer and big title?

    OneNote seems to create a secondary tile that has a big title (Welcome to OneNote) and a small footnote. Which tile template is it using? Or is the title "text" actually an image?

  • Autofill on SMS is very annoying. How can I shut it off?

    I have to send a lot of text to my work partner through short code/etc, but the autofill predicts the wrong words and makes me either have to go back and delete, or sends 'interpreted' gibberish. Is there a simple way to switch this unnecessary fucti