Get partners from Equipment

Hi Experts,
In IE03, I want the partners. I have the equipment number. How do I get the partners list.
Regards,
Abdullah

Hi,
Select OBJNR from EQUI where EQUNR = your equipment number.
Use that OBJNR to IHPA table.
IHPA --> Partner table.
Hope it helps,
Victor.

Similar Messages

  • To get data from an equipment to SAP

    Hi,
    Is there any ways to get data from an external equipment to the SAP (say)  to a  MIGO screen as we have some COM port programming..
    I am aware that SAP can get data from a telnet server (in case of BARCODES and RFID)
    Is there any way to obtain from a Equipment (electronic weigh Bridge) TO SAP..
    Thanx in Advance..
    Arjun.G

    Hi,
    have a look at this threads:
    Re: Interface with Weigh Bridge
    Re: how to interface the Weigh Bridge System with ABAP thru' RS232 PORT
    Another one:
    http://66.102.9.104/translate_c?hl=en&sl=ru&u=http://www.sapnet.ru/viewtopic.php%3Ft%3D578%26start%3D0%26postdays%3D0%26postorder%3Dasc%26highlight%3D%26sid%3D0a8ec74af5df8dee55092ce47c36831d&usg=ALkJrhhBux0cndNF5aZVdnurkbtLUm0dcw
    Best regards.
    Edited by: Pablo Casamayor on Aug 8, 2008 10:42 AM

  • Can't get sound from Insignia BT headphones w/ BT-equipped dv3t

    Both are brand-new, I charged the headphones and downloaded the updated drivers from www.broadcom.com (actually Vista seemed to do it automatically) and the device is paired but I can't get any sound out of it (it's turned on:-)).
    Under the Playback tab in the Sound control panel there are three items:
    Speakers: Bluetooth Hands-free Audio
    Speakers and Headphones: IDT High Definition Audio CODEC
    Independent Headphones: IDT High Definition Audio CODEC
    All say they are working, but when I test the sound of each one I only get sound from the notebook speakers using the second option. The only weird thing I can think of is that I had the USB adapter plugged in when I downloaded the drivers, so maybe it downloaded drivers designed to work through USB? (I can't get sound with the adapter plugged in, though, either).
    Any suggestions welcome, I really want to get this to work and not have to send the headphones back to seller (which is what Insignia tech support told me to do).
    P.S. I know I have BT turned on because I'm also connected to a wireless home network, they go together.

    Hello again,
    oops, I must have missed your last message... sorry for that!
    I have to say, that I don t have my digital sound system that long, that I can answer this question for sure. However...
    You re right, that it should be possible, although I wasn t able to find a way to do that... yet... Somewhere (don t know if it was this forum or another place) I ve read, that the SPDIF support for Windows Vista isn t that nice at this time... perhaps a new driver will solve this
    Furthermore... I don t use the Media Center that much. So I don t even know if there is any option to set the output device (within the application Media Center). That would be important to realize "the best of both worlds". Explanation: If you want headphones support, you (always) have to leave the Speakers device as default. Other applications (such as Winamp,...) allow us to set the output device (in Winamp for example you can set it under the preferences Output -> Directsound device) to the SPDIF device, although we have selected "Speakers" as default in the control panel... nice, isn t it's For sure... if it would work...
    That way you don t get a(n) AC3/DTS signal via SPDIF... so, if you use Windows Vista (I can't answer your question related to other operating systems, because of my newly purchased system -> I haven t used it on XP) the only way that I know ( til now) is to select the SPDIF device as default...

  • Is there any way to get the latest equipment? ( The Verizon anti-loyalty program.)

    My DVR is the old 80GB model. The new 500GB model has been available to "new" customers for some time now. Current customers can only get on a "someday" waiting list. Full story below. Incidentally, this is the worst treatment I get from any service I pay for from any vendor. If I could get fiber from anyone else, I'd dump Verizon.
    I am extremely unhappy with my FIOS service and the general treatment I have received in the last month. I have been a loyal customer of Verizon FIOS for a long time, years, I was an early adopter. I called in December (my contract was up again) and in order to renew I asked for an equipment upgrade (my DVR is too small). I was promised an upgrade and renewed my contract. I was sent to different boxes containing the same equipment I already have (which I returned). After many hours online and on the phone sorting this out of 2 weekends we finally sorted out the problem. The requested DVR model I was promised and have asked for since early December is only being given to NEW customers. As a loyal customer who has given Verizon thousands of dollars, I am punished by being denied access to modern equipment. I was told as a current customer I could sign up on a waiting list and someday the equipment will be offered to older customers (I can only assume after every new customer in the world signs up). I was alternately told by a customer service rep that the only way to get what I asked for is to rip out all my current equipment, send it in, make and wait for new installation appointments, and become a new customer. THIS IS UTTERLY REPUGNANT. I have been with Verizon for years.  I believe I am not less important that anyone off the street that wants to sign up. Is Verizon willing to do anything at all about this? Is this my reward for years of paying Verizon, to be treated like a second class customer and offered untenable options??? I feel after all my loyalty and lots and lots of cash over the years I deserve the same thing as any other customer.

    transon wrote:
    not sure I understand. You're spending your own money to buy a Tivo to use a service Verizon provides? Like instead of expecting them to keep your equipment up to date? (or at least allow you options equal to all other Verizon customers)
    I have one TiVO HD now, and adding another would be great. Have you ever used a TiVO guide and actually got what you wanted to record? I pay TiVO $9.99 a month because my commitment is up, and Verizon $3.99 a month and get everything but Widgets I don't want. VOD they charge to much for, Remote DVR programming that only works when you don't need it. I have a 1TB internal drive I installed. Get my point?
    Under $15 a month and does everything I want. I thought I missed the VOD untill I got it back for 2 months and decided I didn't need it. Multi Room, don't need it. Tried it once and canceled it. The only reason I have MRDVR now was to get the discounted HD boxes which they do now anyway. Shame they started that a month after I picked up the VZ DVR.
    I did sugest that Verizon partner with TiVO and cut their development cost, and that was given a not likely response. Yea if Verizon offered a TiVO with the guide TiVO provides, TiVO VOD options, Verizon VOD options, Verizon Widgets, I would give Verizon $20 a month no problem.
    I had a Verizon 6216 DVR for 4 years, a TiVO still for over a year, and now a 7216 for about 2 months. I like TiVO. Sorry Verizon.

  • Harrassing phone calls from equipment recovery services when I have no equipment

    I cancelled my services with Comcast and returned all equipment. I have a reciept for the returned equipment and Comcast owes me a credit of more than $100. Yet, every day, several times a day, including saturday and sunda I get a phone call from "Equipment Recovery Services on behalf of Comcast" telling me i must return my equipment or be charged, then directs me to a website to  get help. I went to the website and Equipment Recovery Services shows that all equipment has been returned. I called Comcast to tell them to please stop this company whom they have hired from harrassing me, again confirming there is no equipment. Comcast told me to register for the do not call list. I am already on the do not call list. This issue is one caused by Comcast by hiring a contractor and not keeping them informed, it is NOT an issue with do not call. If I get another call I will be contacting local authorities and seeking charges for phone harrassmennt. What is with you comcast?

    Hello bpenyak,
    As you mentioned, Equipment Recovery Services is a vendor group that's hired by Comcast. The equipment could be returned to either them or Comcast. I can confirm that there is no more outstanding equipment. Since you returned it to us, we then send Equipment Recovery a report that all equipment has been returned and to no longer call you. What we cannot control is how fast those calls stop. It is up to them to close your file and stop the calls. Only thing we have control of is sending them a report that everything is recovered and to stop calling you. 

  • Partners from function Customs agent cannot be processed online

    hello everyone
    When I try to add a partner role TZ customs agent in the shipment document (VT02N)
    i get the following message:
    Partners from function Customs agent cannot be processed online
    Message no. VPD032
    Diagnosis
    Partners in the specified partner function cannot be processed online. The program generates them and completes the data automatically.
    however when i try to add a 'TF' partner - its working...
    thanks ahead
    Eyal

    Hello Eyal,
    Goto transaction "VOPA". For Customer master, Click on Partner Procedure
    Double click on your partner procedure [Example WE: Ship-to Party].
    In the next screen, check if the partner function 'TZ' is defined or not.
    If the same is not present there, insert the partner function. Also, note that the partner function 'TF' would be present there.
    These steps would resolve your issue.
    Regards,
    Gauravjit.
    Reward points if the resolution is helpful.

  • LIKP - KUNNR and getting KUNNR from VBPA

    whats the difference between getting KUNNR and KUNAG from likp ( and getting adrnr from kna1) instead of getting KUNNR ( AG,WE) and ADRNR from VBPA ? . I found that both entries are same.

    Hello Sujitha,
    Whenever you need to fetch Address details for any partners. It is advisable to fetch ADRNR from VBPA. and then go to KNA1 to get the Address details.
    Please refer below example which will indicate why you need to fetch data from Customer Master(KNA1).
    If i have created a sales order or delivery for a particular customer.
    And change the address details for that customer in partners tab for VA02(sales order) or delivery(VL02). that will not be reflected in the customer master tables.
    So you should always get the entries for customer address from master tables to avoid data inconsistencies..
    Also in some case you might notice the for particular partners you dont have adrnr maintained in VBPA. So the approach should be as follows.
    For a partner take the kunnr and go to KNA1 to get the Address number adrnr. And then fetch address details from ADRC.
    Hope this answers your query.
    Thanks

  • Does Iphone 4s have its serial no./IMIE no. or any other unique no. written on its hardware parts apart from sim tray. I mean somwhere inside? I know I can get it from settings, or on Box or from Sim tray.

    Does Iphone 4s have its serial no./IMIE no. or any other unique no. written on its hardware parts apart from sim tray. I mean somwhere inside? I know I can get it from settings, or on Box or from Sim tray.

    Ask in iFixit forum, they are the people that dismantle all apple equipment.

  • HT1349 How do you get help from apple if you don't know where to find the serial number of my "product."  I don't know if they mean my itunes program, my iphone, my computer, which one, the number on the computer (is there one), or something in Windows or

    How are you supposed to get help from Apple if you don't know what your serial number is?  They say to input the serial number of the "product" that you are asking about.  Since my problem is how to deauthorize/authorize computers, and they are saying I have more than 5 (which I have never owned more than 5 computers in my life), I can't imagine what serial number they mean.  Does it mean your desktop computer?  If so, which one?  Do they mean your device?  LIke your iPhone, iPod or whatever?  Do they mean the software ON one of your computers and/or devices?  If so, which program, and on which computer/device?
    We have three operational computers, one does not have iTunes on it.  Since Apple is saying I have more than 5 authorized computers, and I can't imagine what they are, I am afraid to deauthorize all my computers.  See what I mean?  I just wanted to ask the question about how I can find out WHICH computers Apple thinks I have authorized, so I can decide if it's safe to deauthorize them all or not.  I only know of 2 computers that have iTunes on them, so how can there be 5?  We also have 2 iPhones and 2 iPods in this family, but one of the iPhones has his own apple id.  He may have been using mine, since his computer died.  I read that those don't count as "computers" to the 5.  Do they, then?
    Help!  I can't contact apple because I have no idea what they mean about serial number.  I doubt they would help me anyway.  In order to get the serial number off my desktop computer (that has iTunes on it already), I will have to move furniture, so I don't want to if that's not it.  Is there some way to find the serial number in the software, either on my desktop or my iPhone?

    sunshinecowgill wrote:
    We have three operational computers, one does not have iTunes on it.  Since Apple is saying I have more than 5 authorized computers, and I can't imagine what they are, I am afraid to deauthorize all my computers.  See what I mean?  I just wanted to ask the question about how I can find out WHICH computers Apple thinks I have authorized, so I can decide if it's safe to deauthorize them all or not. 
    You could have more 5 computers authorized if you ever, for example, reformatted a hard drive or replaced a hard drive without deauthorizing the computer first. Apple's system would see that as a different computer, even though you don't. There's nothing to be afraid of in deauthorizing everything and the reauthorizing what you actually have. You won't lose any data. Mistimp is correct, they can't tell you which computers are authorized.

  • Is there another way of getting apps from the appstore without putting your credit card number in, ive heard about the itunes gift card thing can anybody just give me more info about that and how i can buy free things free things from the appstorepls help

    Is there another way of getting apps from the appstore without putting your credit card number in, ive heard about the itunes gift card thing can anybody just give me more info about that and how i can buy free things free things from the appstore...pls help as im only a teenager and have no credit credit and my parents dont trust me with theres and they dont care about the fact that you can set up a password/.... PLEASE SOMEONE HELP I WILL BE SO GRATEFUL... And i would really like to get the iphone 4 but if there is no way of etting apps without your credit number then i would have to get a samsung galaxy s3 maybe ...

    You can set up an Apple ID without a credit card.
    Create iTunes Store account without credit card - Support - Apple - http://support.apple.com/kb/ht2534

  • Creating Variable with Replacement Path to get value from ANOTHER Variable

    Hi all,
        Is anyone has created the Variable with Replacement Path to get the value from another User Entry Variable, PLEASE ? 
    First created the User Entry Variable (ZV_X) and it accepts the date range like '01/01/2009 - 01/31/2009'. Next created the Characteristic variable (ZV_Y) of Replacement Path for which source variable will be ZV_X and we should get the 'FROM Date' (01/01/2009) from the selection (ZV_X) into it (ZV_Y).
    While creating the Characteristic variable (ZV_Y) of Replacement Path, I didn't find my newly created ZV_X variable in the list of available variables under 'Variable' header in 'Replacement Path' tab and it is causing the error 'Source to replace variable ZV_Y is not defined'. How could I create the Characteristic variable of Replacement Path for my requirement, PLEASE ?
    The following is from help.sap..com:
    Replace with Characteristic Value
    Text and formula variables with the processing type Replacement Path can be replaced with a corresponding characteristic value. In the variable editor, on the General tab page, you specify under Reference Characteristic the characteristic that is to be referenced by the replacement. On the Replacement Path tab page, you can choose whether the variable is replaced with the From or the To Value and with the Key or the Name of the characteristic value. You can also specify the Offset Start and Offset Length for the output.
    Replace with Variable
    Characteristic value variables, hierarchy variables, text variables, and formula variables with the Replacement Path processing type can take their values from a different variable.
    The following prerequisites need to be fulfilled:
    Variable
    ●      The variable must not be input-ready
    ●      The variable must represent a single value
    Source Variable
    ●      The source variable must not be a hierarchy node variable
    ●      The source variable must be input-ready
    ●      The source variable must be available in the query
    ●      The source variable must represent a single value or an interval
    In the variable editor, on the Replacement Path tab page, you specify the source variable from which the value is to be determined. The value is either determined from the key, the external attribute of the key, the description, or the attribute value. You can specify an Offset Start and an Offset Length for the output here. The variable is replaced on the variable screen upon each data release.
    Thanks,
    Venkat.

    Hi Eve,
    It is possible to connect the 2 queries using a Replacement Path characteristic variable. You would need to create the variable on the char whose values you want to pass from Q1 to Q2. The variable will be of type replacement path and you will need to enter the name of Q1 from which it will get the values. Make sure that you include this char in the query definition of Q1 and Q2. In Q2 you will restrict the characteristic using this variable. DO not use this variable (replacement path) in Q1.
    In your query properties check if you have turned on the checkmark for Release for OLE DB for OLAP (3rd tab). If the check mark is there, then remove it.
    We are using the scenario in a couple of places, and it works very well.
    Hope this helps...

  • In ADOBE BRIDGE CS6 "folder can not be created" appears when getting photos from camera

    Has anyone seen this when getting photos from camera in ADOBE BRIDGE CS6?
    "Folder cannot be created"

    I solved the problem myself.
    jwerth2

  • Can we get data from business views  in CR 2008/XI?

    Hi All,
    Can we get data from business views  in CR 2008/XI?
    If its possible, pls let us know how to get connect with Business View in both of these versions and what is the tool that we have to use to create Business Views.
    Thank you,
    Krishna Pingali

    Hi Krishna,
    Crystal Reports/BusinessObjects Enterprise ( BOE ) Business Views can only be created using the BV build which comes with BOE and installed using the Work Station installer for BOE. for both XI and 2008.
    You cannot mix these two versions on the same PC not can one talk to the other, the BV designer must match the same version as BOE. XI ( version 11.0 ) is no longer available but if you mean XI R2 ( version 11.5 ) then it still is.
    It's not completely clear which Business View you are referring to? BOE has a Business View Designer so not sure if this is just a naming problem or not? If you are referring to the BOE Business View Designer then the above is true. If your reference is about some other BV designer or data source then you need to clarify.
    Contact our Sales department for pricing and availability.
    Thank you
    Don

  • Can not get data from mySql

    I prepared a GUI user connection application in NebBeans 5.5 accessing mySql database in the company server. The application run very well in desktop.
    However, when I post it to the company server web, it gets nothing from the database.
    Can any one give advice???
    Thank you in advance.
    The following is my application
    import java.util.Vector;
    import java.awt.event.*;
    import java.awt.*;
    import java.awt.event.*;
    public class UserConnection extends javax.swing.JFrame {
    //constants for database
    private final String userName = "labmanage";
    private final String password = "labmanage";
    private final String server = "jdbc:mysql://svr.corp.com/labmanage";
    private final String driver = "com.mysql.jdbc.Driver";
    private JDBCAdapter data = new JDBCAdapter(server, driver, userName, password);
    //variables
    private String user, pwd;
    private Vector<Vector<String>> userTable = new Vector<Vector<String>>();
    private Vector<String>colUserNames = new Vector<String>();
    * Creates new form UserConnection
    public UserConnection() {
    initComponents();
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
    private void initComponents() {
    userLabel = new javax.swing.JLabel();
    pwdLabel = new javax.swing.JLabel();
    userTextField = new javax.swing.JTextField();
    passwordField = new javax.swing.JPasswordField();
    submitButton = new javax.swing.JButton();
    statusLabel = new javax.swing.JLabel();
    jScrollPane1 = new javax.swing.JScrollPane();
    statusTextArea = new javax.swing.JTextArea();
    changePwdButton = new javax.swing.JButton();
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("User's Connection");
    setBackground(new java.awt.Color(153, 204, 255));
    setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
    setFont(new java.awt.Font("aakar", 1, 12));
    userLabel.setText("User Name:");
    pwdLabel.setText("Password:");
    submitButton.setText("Submit");
    submitButton.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    submitButtonMouseClicked(evt);
    submitButton.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    submitButtonActionPerformed(evt);
    submitButton.addKeyListener(new java.awt.event.KeyAdapter() {
    public void keyTyped(java.awt.event.KeyEvent evt) {
    submitButtonKeyTyped(evt);
    statusLabel.setText("Status:");
    statusTextArea.setColumns(20);
    statusTextArea.setEditable(false);
    statusTextArea.setLineWrap(true);
    statusTextArea.setRows(3);
    statusTextArea.setText("Initial assigned password is \"dime\".");
    statusTextArea.setWrapStyleWord(true);
    jScrollPane1.setViewportView(statusTextArea);
    changePwdButton.setText("Change password");
    changePwdButton.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    changePwdButtonActionPerformed(evt);
    org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(layout.createSequentialGroup()
    .addContainerGap()
    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(userLabel)
    .add(pwdLabel)
    .add(statusLabel))
    .add(35, 35, 35)
    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(layout.createSequentialGroup()
    .add(submitButton)
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
    .add(changePwdButton))
    .add(passwordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE)
    .add(userTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE)
    .add(org.jdesktop.layout.GroupLayout.TRAILING, jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE))
    .addContainerGap())
    layout.setVerticalGroup(
    layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(layout.createSequentialGroup()
    .addContainerGap()
    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
    .add(userLabel)
    .add(userTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
    .add(pwdLabel)
    .add(passwordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
    .add(statusLabel)
    .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
    .add(15, 15, 15)
    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
    .add(submitButton)
    .add(changePwdButton))
    .addContainerGap(27, Short.MAX_VALUE))
    pack();
    }// </editor-fold>
    private void submitButtonKeyTyped(java.awt.event.KeyEvent evt) {                                     
    if(evt.getKeyCode() == KeyEvent.VK_ENTER) {
    submitButton.doClick();
    submitButton.requestFocus();
    changePwdButton.requestFocus();
    private void changePwdButtonActionPerformed(java.awt.event.ActionEvent evt) {                                               
    String command = evt.getActionCommand();
    if(command.equals("Change password")) {
    passwordField.setText("");
    //Get connection to the changing password panel
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new ChangePassword().setVisible(true);
    private void submitButtonActionPerformed(java.awt.event.ActionEvent evt) {                                            
    // TODO add your handling code here:
    String command = evt.getActionCommand();
    if(command.equals("Submit")) {
    user = getUser();
    pwd = getPwd();
    data = new JDBCAdapter(server, driver, userName, password);
    data.executeQuery("SELECT * FROM USERTABLE");
    colUserNames = data.getColumnNames();
    userTable = data.getDataTable();
    if(colUserNames.elementAt(0).equals("")) {
    statusTextArea.setText("Can not connect to database");
    boolean checkUser = false;
    int i = 0;
    while(!checkUser && i<userTable.size()) {
    if(user.equalsIgnoreCase((String) userTable.elementAt(i).elementAt(0))) {
    //Find the user in database
    checkUser = true;
    //Check user's password
    if(pwd.equals((String)userTable.elementAt(i).elementAt(1))) {
    //Check for initial default password. The user is requested
    //to change his password
    if(pwd.equals((String) "dime")) {
    statusTextArea.setText("You are requested to change your " +
    "initial assigned password. Click 'Change password' please.");
    else {
    //Set UserConnection Panel to invisible
    setVisible(false);
    dispose();
    //Get connection to the table
    if(userTable.elementAt(i).elementAt(2).equals("0")) {
    //Get connection to non-editable table
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    PVRackReportNonEdit rackReport = new PVRackReportNonEdit();
    rackReport.createAndShowDialog();
    else {
    if(userTable.elementAt(i).elementAt(2).equals("1")) {
    //Get connection to editable table
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    PVRackReport rackReport = new PVRackReport(user);
    rackReport.createAndShowDialog();
    //PVRackReport rackReport = new PVRackReport();
    else statusTextArea.setText("You do not get approval for viewing data. " +
    "Please contact the administrator for details.");
    else {
    passwordField.setText("");
    statusTextArea.setText("Please enter corrected password or" +
    "the administrator for details.");
    i++;
    if(!checkUser) {
    passwordField.setText("");
    statusTextArea.setText("Not find such user's name." +
    "contact the admistrator for details.");
    private void submitButtonMouseClicked(java.awt.event.MouseEvent evt) {                                         
    // TODO add your handling code here:
    * @param args the command line arguments
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new UserConnection().setVisible(true);
    public String getUser() {
    return userTextField.getText();
    public String getPwd() {
    return passwordField.getText();
    // Variables declaration - do not modify
    private javax.swing.JButton changePwdButton;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JPasswordField passwordField;
    private javax.swing.JLabel pwdLabel;
    private javax.swing.JLabel statusLabel;
    private javax.swing.JTextArea statusTextArea;
    private javax.swing.JButton submitButton;
    private javax.swing.JLabel userLabel;
    private javax.swing.JTextField userTextField;
    // End of variables declaration
    Here is my JDBCAdapter
    package rackdemo2;
    * This is an adaptor which transforms the JDBC interface
    * to the PVRackTableDialogue
    import java.util.Vector;
    import java.sql.*;
    import javax.swing.table.AbstractTableModel;
    import javax.swing.event.TableModelEvent;
    public class JDBCAdapter {
    Connection connection;
    Statement statement;
    ResultSet resultSet;
    Vector<String> columnNames = new Vector<String>();
    Vector<Vector<String>> rows = new Vector<Vector<String>>();
    ResultSetMetaData metaData;
    public JDBCAdapter(String url, String driverName,
    String user, String passwd) {
    try {
    Class.forName(driverName);
    connection = DriverManager.getConnection(url, user, passwd);
    statement = connection.createStatement();
    catch (ClassNotFoundException ex) {
    System.err.println("Cannot find the database driver classes.");
    System.err.println(ex);
    catch (SQLException ex) {
    System.err.println("Cannot connect to this database.");
    System.err.println(ex);
    public void executeQuery(String query) {
    if (connection == null || statement == null) {
    System.err.println("There is no database to execute the query.");
    return;
    try {
    resultSet = statement.executeQuery(query);
    metaData = resultSet.getMetaData();
    int numberOfColumns = metaData.getColumnCount();
    // Get the column names and cache them.
    // Then we can close the connection.
    for(int column = 0; column < numberOfColumns; column++) {
    columnNames.addElement(metaData.getColumnLabel(column+1));
    // Get all rows.
    while (resultSet.next()) {
    Vector<String> newRow = new Vector<String>();
    for (int i = 1; i <= columnNames.size(); i++) {
    String tempString = resultSet.getString(i);
    if(!tempString.equals("null")) {
    newRow.addElement(tempString);
    else {
    newRow.addElement("");
    rows.addElement(newRow);
    //Modify dataTable to add empty row to separate chassis
    if(numberOfColumns>1) {
    int nRow = rows.size();
    Vector<String> row = new Vector<String>();
    for(int i=0; i<numberOfColumns; i++){
    row.add("");
    if(nRow>0 || numberOfColumns>0) {
    //Adding blank row to separate chassis
    int i = 0;
    while(i<nRow) {
    if(!rows.elementAt(i).elementAt(0).equals("")) {
    if(i>0) {
    rows.add(i, row);
    i++;
    nRow = rows.size();
    i++;
    close();
    catch (SQLException ex) {
    System.err.println(ex);
    public void close() throws SQLException {
    resultSet.close();
    statement.close();
    connection.close();
    // MetaData
    public Vector<String> getColumnNames() {
    return columnNames;
    public Vector<Vector<String>> getDataTable() {
    return rows;
    public int getColumnCount() {
    return columnNames.size();
    // Data methods
    public int getRowCount() {
    return rows.size();
    }

    Thank you for your answer.
    I'm very new to mySql as server. When I was assigned
    to write the application, the administrator has set
    up mySql database in the company web server for my
    application. My program runs very when using my
    workplace desktop with java web start or with java
    web start in netbeans (all paths should be link to my
    desktop hard disk, i.e. users/application/). I can
    not run the application at home because I can not
    access to the company intranet server (for security
    purpose). The problem happens when I post the
    application in the company web page (I have to modify
    all paths in jnlp file to the company web address).
    The program then runs without exception except it
    seems that it gets no data from the database (for
    example, when I type my username, it returns that
    "There is no such user name. contact.." as what I
    code in the application for not correcting user name)
    It happens for not only using my company desktop but
    also for others.
    Please help me.
    Thank you in advance.And all this could have been answered yesterday, in your other thread, when I asked you "Is the DB configured to allow that user to connect to the DB from where that user is attempting to connect from?"
    Seeing as how you get that error, the obvious answer was, "No." At which point we could have continued.
    Configure the needed users into the DB, without forgetting to allow them access from the machines from which they are going to access from.
    Although, I agree with Rene, that you should set up a server of some sort, located on the same machine as the DB, for communicating with the DB.

  • No matter what acct I send an email from it gets sent from my gmail

    I only have 2 accts set up on my iPhone: gmail (personal) and bethelmaine.org I can receive email into both accts with no problem, but when I try to reply from my bethelmaine acct the recipient gets it from my gmail acct. I know for a fact the Cc/Bcc, From: line is bethelmaine.org and I also know that the recepient gets it as gmail because I tested it several times by sending to my wife's yahoo acct. This happens when the primary server (under settings: mail, contacts, calendars: accounts) is turned off.
    The bethelmaine acct outgoing server is set up in Outlook as smtp.megalink.net. When that is set up as the primary server and turned on I get a message that says "the recipient was rejected by the server" no matter who I try to send to.
    Not sure what to do!

    It seems pretty clear to me.
    When you turn off your primary account the only active account the phone can send via is your Gmail account, and that's what you're seeing.
    The question is why do you need to turn off the primary account.. which you answer:
    When that is set up as the primary server and turned on I get a message that says "the recipient was rejected by the server
    That's because your ISP (megalink) is using access controls to manage who sends mail through their mail server. The first thing they're probably doing is using IP address restrictions - essentially saying they'll only relay mail from any machine on their network (including dialup/DSL/etc. customers), but you're not on their network, you're on an AT&T (or Verizon) 3G connection which isn't in their IP address range, and therefore not valid as far as their mail server is concerned.
    The typical solution to this is authentication - by authenticating to their server (via username and password) you identify yourself as a customer and they should relay your messages. So check your phone to ensure that you have authentication enabled for your primary mail account.
    If that fails (e.g. they don't support authenticated SMTP) the next option would be to relay the message through your cell provider's mail server - as an AT&T wireless customer you should be able to relay through AT&T's mail server... likewise for Verizon (or whatever national carrier your iPhone is on). You'll need to check with your carrier's site for the specifics of the mail server address to use.

Maybe you are looking for