ME_PROCESS_PO_CUST - Need Help on Methods POST, PROCESS_HEADER

Hi,
I will explain the requirement and my approach and the problem i am facing.
During save of Purchase order, a confirm popup should be shown and according to the user confirmation, it will hit a Z Field in CI_EKKODB.
For this, i implemented the solution in BADI ME_PROCESS_PO_CUST and Method POST. Even though i use SET_DATA to set the data, it never updates the database table.
For testing purpose, i put the code in Method PROCESS_HEADER, the SET_DATA worked fine and it finally updated the database table. So, I thought of implementing the solution here by checking sy-ucomm and executing only during SAVE of PO. But here my problem is, Not always all the time this PROCESS_HEADER method executes. For example, If you change any header data and Press "Enter", then the "PROCESS_HEADER" is called. and then immediately without changing any data and you Press "SAVE", the Method PROCESS_HEADER will not be called.
Could you please anyone suggest me either how to forcefully call the PROCESS_HEADER method everytime or is there any other way to set the Z Data into the database table.
Thank you in advance.
Karthik

I have the same issue. Do you know how you solved ths issue? if so can you please post the reply. Thanks

Similar Messages

  • Need Help on HTTP Post ?

    Hi @,
    I need to perform HTTP Post from webdypro application some XML data. How can I do this , I tried searching forums and blogs but couldn't find a suitable solution or Help.
    Is it possible or will have to go for any external apis to achieve the same?
    Regards

    Hi,
    This is possible - though not directly with Exit Plug of Interface View Controller.
    You need to use Suspend plug to pass parameters with http POST. See this thread and this document for further directions.
    From thread above, Replace
    Map postParams = new HashMap();
    postParams.put("Key1", "Value 1");
    postParams.put("Key2", "Value2");
    postParams.put("Key3", "Value 3");
    wdThis.wdGetWDSuspendResumeWindowController().wdFirePlugTestSupend("http://www.sap.com", postParams);
    with
    WDDeployableObjectPart deployableObjectPart = WDDeployableObject.getDeployableObjectPart(deployableObjectName, "TargetApp", DDeployableObjectPartType.APPLICATION);
    String urlToTargetApp = WDURLGenerator.getApplicationURL(deployableObjectPart);
    Map postParams = new HashMap();
    postParams.put("Key1", "Value1");
    postParams.put("Key2", "Value2");
    postParams.put("Key3", "Value 3");
    wdThis.wdGetStartWindowController().wdFirePlugStartAppSuspend(urlToTargetApp, postParams);
    In target application, onPlugDefault, use this code to get the values for parameters.
    String val1 = WDProtocolAdapter.getProtocolAdapter().getRequestParameter("Key1");
    String val2 = WDProtocolAdapter.getProtocolAdapter().getRequestParameter("Key2");
    String val3 = WDProtocolAdapter.getProtocolAdapter().getRequestParameter("Key3");
    wdComponentAPI.getMessageManager().reportSuccess(val1 + "   -   " + val2+ "   -   " + val3);
    I've used this and it works.
    Hope it helps.
    Regards,
    Sunaina Reddy T

  • Need help with method... wrote an addition program... have most of it

    Writing an addition program... have most of it below. Need help in getting the program to work.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Ch10program2 extends JFrame implements ActionListener
    private static final int FRAME_WIDTH = 750;
    private static final int FRAME_HEIGHT = 150;
    private static final int BUTTON_HEIGHT = 50;
    private static final int BUTTON_WIDTH = 50;
    private static final int BUTTON_Y_POSITION = 50;
    private static final String EMPTY_STRING = "";
    private int XbuttonPosition = 15;
    private JButton[] button;
    private String[] buttonLabels = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "=", "c"};
    private JTextField mytextfield;
    private int[] numberOne;
    private int[] numberTwo;
    private int[] sum;
    private int numberCounter = 0;
    private boolean adding = false;
    public static void main (String[] args)
    Ch10program2 frame = new Ch10program2 ();
    frame.setVisible (true);
    public Ch10program2 ()
    Container contentPane = getContentPane ();
    // set the frame properties
    setSize (FRAME_WIDTH, FRAME_HEIGHT);
    setLocation (200, 200);
    setTitle ("Big Integer Adder");
    setResizable (false);
    //set the content pane properties
    contentPane.setLayout (null);
    //creating each button
    button = new JButton [13];
    for (int i = 0 ; i < button.length ; i++)
    button = new JButton (buttonLabels [i]);
    button [i].setBounds (XbuttonPosition, BUTTON_Y_POSITION, BUTTON_WIDTH, BUTTON_HEIGHT);
    XbuttonPosition += 55;
    button [i].setForeground (Color.blue);
    if (i > 9)
    button [i].setForeground (Color.red);
    contentPane.add (button [i]);
    button [i].addActionListener (this);
    //set the arrays
    numberOne = new int [50];
    numberTwo = new int [50];
    //set the needed textfield
    mytextfield = new JTextField ("");
    mytextfield.setBounds (10, 10, 720, 25);
    mytextfield.setBorder (BorderFactory.createLoweredBevelBorder ());
    mytextfield.setHorizontalAlignment (JTextField.RIGHT);
    contentPane.add (mytextfield);
    setDefaultCloseOperation (EXIT_ON_CLOSE);
    public void actionPerformed (ActionEvent event)
    JButton clickedButton = (JButton) event.getSource ();
    String oldText = mytextfield.getText ();
    if ((event.getActionCommand ()).equals ("+"))
    mytextfield.setText (oldText + " + ");
    adding = true;
    numberCounter = 0;
    else if ((event.getActionCommand ()).equals ("="))
    mytextfield.setText (oldText + " = ");
    addArrays ();
    displayArray ();
    else if ((event.getActionCommand ()).equals ("c"))
    clearText ();
    else if (adding == false)
    mytextfield.setText (oldText + event.getActionCommand ());
    if (numberCounter == 0)
    numberOne [numberCounter] = Integer.parseInt (event.getActionCommand ());
    else
    for (int i = numberOne.length - 1 ; i > 0 ; i--)
    numberOne [i] = numberOne [i - 1];
    numberOne [0] = Integer.parseInt (event.getActionCommand ());
    numberCounter++;
    else
    mytextfield.setText (oldText + event.getActionCommand ());
    if (numberCounter == 0)
    numberTwo [numberCounter] = Integer.parseInt (event.getActionCommand ());
    else
    for (int i = numberTwo.length - 1 ; i > 0 ; i--)
    numberTwo [i] = numberTwo [i - 1];
    numberTwo [0] = Integer.parseInt (event.getActionCommand ());
    numberCounter++;
    oldText = mytextfield.getText ();
    public void addArrays ()
    int temp = 0;
    int carriedDigit = 0;
    for (int i = 0 ; i < 50 ; i++)
    temp = carriedDigit + numberOne [i] + numberTwo [i];
    if (temp > 10)
    sum [i] = (temp - 10);
    carriedDigit = 1;
    else
    sum [i] = temp;
    public void displayArray ()
    private void clearText ()
    mytextfield.setText (EMPTY_STRING);

    I don't know what you want to do
    but i have taken your program to get the GUI then the logic is your's
    You try solving it.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Ch10program2 extends JFrame implements ActionListener
    private static final int FRAME_WIDTH = 750;
    private static final int FRAME_HEIGHT = 150;
    private static final int BUTTON_HEIGHT = 50;
    private static final int BUTTON_WIDTH = 50;
    private static final int BUTTON_Y_POSITION = 50;
    private static final String EMPTY_STRING = "";
    private int XbuttonPosition = 15;
    private JButton[] button;
    private String[] buttonLabels = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "=", "c"};
    private JTextField mytextfield;
    private int[] numberOne;
    private int[] numberTwo;
    private int[] sum;
    private int numberCounter = 0;
    private boolean adding = false;
    public static void main (String[] args)
    Ch10program2 frame = new Ch10program2 ();
    frame.setVisible (true);
    public Ch10program2 ()
    Container contentPane = getContentPane ();
    // set the frame properties
    setSize (FRAME_WIDTH, FRAME_HEIGHT);
    setLocation (200, 200);
    setTitle ("Big Integer Adder");
    setResizable (false);
    //set the content pane properties
    contentPane.setLayout (null);
    //creating each button
    button = new JButton [13];
    for (int i = 0 ; i < button.length ; i++)
    button[i] = new JButton (buttonLabels);
    button[i].setBounds (XbuttonPosition, BUTTON_Y_POSITION, BUTTON_WIDTH, BUTTON_HEIGHT);
    XbuttonPosition += 55;
    button[i].setForeground (Color.blue);
    if (i > 9)
    button[i].setForeground (Color.red);
    contentPane.add (button[i]);
    button[i].addActionListener (this);
    //set the arrays
    numberOne = new int [50];
    numberTwo = new int [50];
    //set the needed textfield
    mytextfield = new JTextField ("");
    mytextfield.setBounds (10, 10, 720, 25);
    mytextfield.setBorder (BorderFactory.createLoweredBevelBorder ());
    mytextfield.setHorizontalAlignment (JTextField.RIGHT);
    contentPane.add (mytextfield);
    setDefaultCloseOperation (EXIT_ON_CLOSE);
    public void actionPerformed (ActionEvent event)
    JButton clickedButton = (JButton) event.getSource ();
    String oldText = mytextfield.getText ();
    if ((event.getActionCommand ()).equals ("+"))
    mytextfield.setText (oldText + " + ");
    adding = true;
    numberCounter = 0;
    else if ((event.getActionCommand ()).equals ("="))
    mytextfield.setText (oldText + " = ");
    addArrays ();
    displayArray ();
    else if ((event.getActionCommand ()).equals ("c"))
    clearText ();
    else if (adding == false)
    mytextfield.setText (oldText + event.getActionCommand ());
    if (numberCounter == 0)
    numberOne [numberCounter] = Integer.parseInt (event.getActionCommand ());
    else
    for (int i = numberOne.length - 1 ; i > 0 ; i--)
    numberOne[i] = numberOne [i - 1];
    numberOne [0] = Integer.parseInt (event.getActionCommand ());
    numberCounter++;
    else
    mytextfield.setText (oldText + event.getActionCommand ());
    if (numberCounter == 0)
    numberTwo [numberCounter] = Integer.parseInt (event.getActionCommand ());
    else
    for (int i = numberTwo.length - 1 ; i > 0 ; i--)
    numberTwo[i] = numberTwo [i - 1];
    numberTwo [0] = Integer.parseInt (event.getActionCommand ());
    numberCounter++;
    oldText = mytextfield.getText ();
    public void addArrays ()
    int temp = 0;
    int carriedDigit = 0;
    for (int i = 0 ; i < 50 ; i++)
    temp = carriedDigit + numberOne[i] + numberTwo[i] ;
    if (temp > 10)
    sum[i] = (temp - 10);
    carriedDigit = 1;
    else
    sum[i] = temp;
    public void displayArray ()
    private void clearText ()
    mytextfield.setText (EMPTY_STRING);
    All The Best

  • Need help for a post-processing "trigger"

    Dear all,
    Without getting into much detail, I have a system that is simultaneously introducing a sinusoidal Force (F) and measuring the sinusoidal response (X) of a structure under resonance. I need to acquire the whole time signal, including the free decay response in the end (please find attached a sample picture of the time signal and the corresponding data file), so I cannot use a trigger during the measurement. During the stationary response it may be seen that the signal has a slight negative slope: that is due to a phenomenon of dilatation of my structure that is dissipating heat at the same time. 
    My problem is how to know exactly when my NI-USB 6216 DAQ has stopped the excitation force, which, in my sample waveform would be around 0.025s (I require an automatic process of identifying it).
    Is there any VI, filter or trigger function that might provide me that information?
    Thank you in advance for your help.
    Kind regards,
    Diogo Montalvão
    Attachments:
    R50_18um_controlo_40_60_temp_24_1_12_v0_time_16.txt ‏373 KB

    The brute force method:
    Can't you use another analog input channel and capture the excitation voltage?
    Or if you have a shaker with an amplifier that provide a current monitor output you can capture the excitation current and might find that due to the voltage control some amount of force is still introduced after setting the control voltage to zero   and you might have to implement a system model that include the shaker and the output impedance of your amplifier :0
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • Need help with method calling

    I have a problem with method calling as it does the method but doesn't send the values to the main program. The Need section in the main should take in the Max and Allocation arrays from the setMax and setAllocation but it doesn't. I figure I'm missing a return call or something. Could you help me out.
        public class Project4
           public static void main (String[] args)
             int[] Available=new int[4];
             int[][]Max=new int[5][4];
             int[][]Allocation=new int[5][4];
             int[][] Need=new int[5][4];
             setMax();
             setAllocated();
             setAvailable();
           //Creates the need.
             int numMax, numAlloc, numNeed;
             for(int row=0; row<5; row++)
                for (int col=0; col<4; col++)
                   numMax=Max[row][col];
                   numAlloc=Allocation[row][col];
                   numNeed=numMax-numAlloc;
                   Need[row][col]=numNeed;
             for(int row=0; row<Need.length; row++)
                for (int col=0; col<Need[row].length; col++)
                   System.out.print (Need[row][col]);
                System.out.println();
             System.out.println();
            //From here on checks to see if available.     
             int[] processLeft=new int[5];
             int numChecker, numAvail, counter, check, num, stop, processCounter;
             int i=0; 
             num=0;
             stop=3;
             processCounter=0;
             for(int row=num; row<Need.length; row++)
                int col=0;
                counter=Need[row].length; 
                numChecker=Need[row][col];
                numAvail=Available[col];
                do
                   check=0;
                   numChecker= Need[row][col];
                   numAvail=Available[col];
                   col++;
                   if (numChecker<=numAvail)
                      check=1;
                   while(numChecker<=numAvail && col<counter);
                if(col==counter && check==1)
                   System.out.println("Process P"+row+" executes");
                   for(col=0; col<Allocation.length-1; col++)
                      numChecker=Allocation[row][col];
                      numAvail=Available[col];
                      numAvail=numChecker+numAvail;
                      Available[col]=numAvail;
                   num++; 
                   processCounter=processCounter+1;
                else
                   processLeft=row;
    i++;
    // Checks the processes left over
    int j=0;
    int row=0;
    int col=0;
    counter=Need[row].length;
    while(processLeft[j]!=5 && processCounter!=5)
    row=processLeft[j];
    do
    check=0;
    numChecker= Need[row][col];
    numAvail=Available[col];
    col++;
    if (numChecker<=numAvail)
    check=1;
    while(numChecker<=numAvail && col<counter);
    if(col==counter && check==1)
    System.out.println("Process P"+row+" executes");
    for(col=0; col<Allocation.length-1; col++)
    numChecker=Allocation[row][col];
    numAvail=Available[col];
    numAvail=numChecker+numAvail;
    Available[col]=numAvail;
    processCounter=processCounter+1;
    j++;
    safe(processCounter);
    public static void setAllocated()
         // Creates the Allocation
    int[][] Allocation= {{3,0,0,2},{1,0,0,0},{1,3,5,4},{0,6,3,2},{0,0,1,4}};
    for(int row=0; row<Allocation.length; row++)
    for (int col=0; col<Allocation[row].length; col++)
    System.out.print (Allocation[row][col]);
    System.out.println();
    System.out.println();
    public static void setMax()
         // Creates the max
    int[][] Max= {{3,0,1,2},{1,5,5,0},{2,3,5,6},{0,6,5,2},{0,6,5,6}};
    for(int row=0; row<Max.length; row++)
    for (int col=0; col<Max[row].length; col++)
    System.out.print (Max[row][col]);
    System.out.println();
    System.out.println();
    public static void setAvailable()
    // Creates the Available.
    int[] Available={3,5,2,0};
    public static void safe(int processCounter)
         // Prints if it is safe or not     
    if(processCounter!=5)
    System.out.println("\n The system is not safe");     
    else
    System.out.println("\n The system is safe");

    those methods declare and initialize variables that exist only within that specific method, so no other method can see them
    move the 4 arrays you declare in main() out of the method into the class body, then in the other methods, don't declare new arrays, simply initialize the ones you just moved into the class body
    or alternatively, you could make the methods return the arrays they create, and instead of your main method creating arrays, it simply works with whatever those methods return
    btw 20 minutes is a bit early to be getting impatient

  • Need Help w/ Method

    Im supposed to write a method that takes an integer as a parameter and return the number with its digits reversed. like reverseDigit(987654321) outputs 123456789. an also need to write a program to test the method. help me please i am having difficulty with this. thanks

    ok this is what i got so far
    import java.io.*;
    public class ReverseDigit
    static BufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in));
    public static void main (String[] args) throws IOException
    IntClass integers = new IntClass();
    reverseDigit(integers);
    public static void reverseDigit(IntClass digit) throws IOException
         int d;
         System.out.print("Enter integer numbers:");
         System.out.flush();
         d = Integer.parseInteger(keyboard.readLine());
         digit.setNum(d);
         System.out.println("\nThe number entered is " + d);
         int digRev = 0;
         while (d != 0)
              digRev = digRev * 10 + d % 10;
         d = d / 10;
         System.out.println("\nThe number reversed is " + digRev);
    errors i got are:
    C:\misc\jav prog\ReverseDigit.java:22: cannot resolve symbol
    symbol : class IntClass
    location: class ReverseDigit
    public static void reverseDigit(IntClass digit) throws IOException
    ^
    C:\misc\jav prog\ReverseDigit.java:17: cannot resolve symbol
    symbol : class IntClass
    location: class ReverseDigit
    IntClass integers = new IntClass();
    ^
    C:\misc\jav prog\ReverseDigit.java:17: cannot resolve symbol
    symbol : class IntClass
    location: class ReverseDigit
    IntClass integers = new IntClass();
    ^
    C:\misc\jav prog\ReverseDigit.java:29: cannot resolve symbol
    symbol : method parseInteger (java.lang.String)
    location: class java.lang.Integer
         d = Integer.parseInteger(keyboard.readLine());
    ^
    4 errors
    Tool completed with exit code 1
    Please help.

  • Need help about method close() in BufferedWriter Class

    Hi All,
    I'm a newbie in Java programming and I have problem regarding BufferedWriter class. I put the code snippet below.
    Sometimes I found wr.close() need a long time to be executed, around 9 seconds. For the normal case, it only needs 1 second. The transaction is same with the normal case and I found no errors in the log.
    Do you guys have any idea about this problem? What cases that can cause this problem?
    Thanks
    // Create a socket to the host
    InetAddress addr = InetAddress.getByName(shost);
    Socket socket = new Socket(shost, sport);
    // Send header
    BufferedWriter wr = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream(), "UTF8"));
    data = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?><request><contentcode>" + content_code +"</contentcode><msisdn>"+ orig_num +"</msisdn></request>";
    System.out.println("------------POST----------");
    wr.write("POST /" + surlname +" HTTP/1.1\r\n");
    wr.write("Host: " + shost + "\r\n");
    wr.write("Connection: close \r\n");
    wr.write("Content-type: text/xml \r\n");
    wr.write("Content-length: " + data.length() + "\r\n");
    wr.write("\r\n");
    wr.write(data);
    System.out.println("POST /" + surlname +" HTTP/1.1\r\n");
    System.out.println("Host: " + shost);
    System.out.println("Connection: close");
    System.out.println("Content-type: text/xml");
    System.out.println("Content-length: " + data.length());
    System.out.println("-------------------------");
    System.out.println("data = " + "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?><request><contentcode>" + content_code +"</contentcode><msisdn>"+ orig_num +"</msisdn></request>");
    wr.flush();
    // Get response
    BufferedReader rd = new BufferedReader(new InputStreamReader(socket.getInputStream()));
    while ((linelength = rd.read(charline)) >0) {
    reply += new String(charline, 0, linelength);
    wr.close();
    rd.close();
    System.out.println("reply = " + reply);
    log.info("(New Log) reply = " + reply);

    sabre150 wrote:
    So what makes you think that not using StringBuffer is the cause of the OP's problem?Just by experience. The main cause of resource hogs in Java is large string concatenation enclosed in a loop.
    I've just made the following experience :
    public class Test {
        public static void main(String[] args) {
            new Test().execute();
        private void execute() {
            long a, b, c;
            String value = "A123456789B123456789C123456789D123456789";
            String reply = "";
            StringBuffer buffer = new StringBuffer();
            a = System.currentTimeMillis();
            for (int i = 0; i < 5000; i++) { reply += value; }
            b = System.currentTimeMillis();
            for (int i = 0; i < 5000; i++) { buffer.append(value); }
            reply = buffer.toString();
            c = System.currentTimeMillis();
            System.out.println("Duration - concatenation = " + (b-a) + " / string buffer = " + (c-b));
    }Output :
    Duration - concatenation = 21295 / string buffer = 7

  • Need help using method check_changed_data correctly

    I'm using method check_changed_data in my ALV program to update the grid with changes the user makes. The method works fine for this purpose. But I also want to know if any data actually changed. Can anyone give me an example?
    FORM update_vendor .
    do I need to call a different method before check_changed_data ?
      call method gridhead->check_changed_data.
    is there a parameter available here to see if anything actually
             changed?
      loop at gt_head into wa_head.
        clear wa_head-lifnam.
        select single name1 into wa_head-lifnam
          from LFA1 where lifnr eq wa_head-lifnr.
        if sy-subrc eq 0.
          modify gt_head from wa_head.
        endif.
      endloop.
    ENDFORM.                    " update_vendor

    Hello Beth
    If data have been changed then method <b>go_grid->CHECK_CHANGED_DATA</b> will raise event <b>DATA_CHANGED</b>. If you have an event handler method like HANDLE_DATA_CHANGED then you can, for example, validate the changes.
    If no data were changed event DATA_CHANGED will not be raised and your event handler method will not be called.
    Regards
      Uwe

  • Need help in getting posts deleted

    HI,
    I was trying to post a query problem whcih has been answered by Hugo earlier, but ran into  "Unexpected error" and am unable to delte the post now, or even access it.
    All post are in t-sql forum.
    Can you please help delete them. These are the 2 recent ones.
    Regards
    Akhil

    HI,
    I was trying to post a query problem whcih has been answered by Hugo earlier, but ran into  "Unexpected error" and am unable to delte the post now, or even access it.
    All post are in t-sql forum.
    Can you please help delete them. These are the 2 recent ones.
    Regards
    Akhil
    hi ,
    sign in , click delete and thats it  if it does not go report it , left below of a post and state in the windows that opens that you want it deleted , a mod can then do it when he or she has the time
    have a nice day and happy new yearhttp://www.microsoft.com/security + http://www.microsoft-hohm.com/default.aspx + http://www.getpivot.com/ + http://photosynth.net/ + http://seadragon.com/ + http://blogs.technet.com/mmpc + http://windowsteamblog.com/blogs/genuinewindows/default.aspx + http://technet.microsoft.com/en-us/sysinternals/default.aspx + https://www.microsoft.com/security/portal/Shared/Resources.aspx#rss + http://www.microsoft.com/security_essentials/ + http://onecare.live.com/site/en-us/center/whatsnew.htm + Plagued by the Privacy Center? Learn how to remove it > http://blogs.msdn.com/securitytipstalk/ + http://blogs.technet.com/ecostrat/ + http://memory.dataram.com/products-and-services/software/ramdisk + 50 Windows Tips > http://windowsvj.com/wpblog/2009/12/windowsvj-xclusive-release-windows-7-tips-tricks-ebook/ + http://windowsteamblog.com/

  • Need help with method development

    I want to stop the takeInput method when the user enters -1. But the way it is currently written, it just continues to repeat, and I can't figure out why. What needs to be changed?
    import java.util.*;
    public class Appt
         public static Scanner kb = new Scanner(System.in).useDelimiter("\n");
         public static String start,end,event;
         public static void main(String args[])
              while(takeInput() == true)
              takeInput();
         public static void enterAppt(String start, String end, String event)
         public static boolean takeInput()
              String stopVar = "-1";
              System.out.println("To finish entering appointments, type -1");
              System.out.println("Enter a start time:");
              start = kb.next();
              if(start == stopVar) return false;
              System.out.println("Enter an end time:");
              end = kb.next();
              if(end == stopVar) return false;
              System.out.println("Enter an event:");
              event = kb.next();
              if(event == stopVar) return false;
              return true;
    }Edited by: Jago6060 on Apr 20, 2008 11:46 PM

    Use equals, not == to compare objects' states, including Strings' contents.
    Also, you're getting user input twice for every pass through the loop. Also, you don't need "== true". Also, why is takeInput public?
    while(takeInput() == true) // once
              takeInput(); // twice
              }You could just do
    while (takeInput());However, that's not the normal way to do it. Rather, takeInput would be something like
    private static void takeInput() {
      boolean done = false;
      while (!done) {
        get the input
        if it's -1, done = true;
    }Also, if you go through the loop 5 times, you'll still only have one appointment. You'll just change it 5 times. If you want to create appointments, you need to make start, end, and event non-static, and create a new Appt object each time through the loop.
    [http://java.sun.com/docs/books/tutorial/java/concepts/index.html]
    [http://java.sun.com/docs/books/tutorial/java/javaOO/index.html]

  • [SOLVED, Thanks]Need help with pacman post install

    Hi
    It took me a bit of time to install arch but i finally did it, turns out i just needed to disable ipv6. Anyway yesterday everything worked fine and now that i try to complete the install by downloading a wm suddenly pacman refuse to download anything, it says it can't synchronise.  Can anybody help pls ?
    http://www.hostingpics.net/viewer.php?i … roblem.png
    Last edited by oozernem (2015-05-09 08:15:51)

    Head_on_a_Stick wrote:
    Have you tried:
    # systemctl start dhcpcd.service
    If that brings your connection up, use:
    # systemctl enable dhcpcd.service
    https://wiki.archlinux.org/index.php/Be … uide#Wired
    Thanks m8, it fixed it
    Thanks to everybody else who replied in the thread.

  • Need help ASAP methods.

    Hi,
    As i know we have 5 methods in ASAP.like project preparation,bbp,realization,final praparation,golive. for these do we have any navigation in SAP from SPRO or in
    IMGor any transaction code. or just we have to follow these methods as therotically.
    thanks for your help...

    Hi,
    These metods are the best practice way from SAP from the perspective of SAP Project Management.
    Any project (implementaion/upgrade) can be categorized into these five stages.
    SAP recommends adhering to the guidelines laid for these stages to ensure smooth project execution.
    There arent any navigation in SAP for these.
    Regards,
    Ashish

  • Need help with http POST concept

    hi i just started learning about HTTP..im trying to pass a value from a thin java client from command prompt through POST method directly to a destination (another java bean) without any HTML/jsp (no pages) .
    i've created a caller.java which is used on command prompt :
    java caller param1 param2
    then, this caller will actually point to a struts path on my server, (which i think is a servlet) and do proper processing.
    caller.java :
    public static void main(String[] args) {...
    String url = str + "/do_something/prog0001_getAnswer?" +
         "param1=" + args[0] +
    "&param2=" + args[1];
    URL server = new URL(url);
    HttpURLConnection connection =
    (HttpURLConnection) server.openConnection();
    connection.setRequestMethod("POST");
    connection.connect();
    System.out.println("connecting to server..... " + connection.getResponseMessage());
    then on servlet :
    httprequest's .getParameter("param1");
    httprequest's .getParameter("param2");
    to obtain the values.
    even if set my URL's instance (server) 's RequestMethod to POST, i'm still able to obtain the parameter values in the servlet? I thought POST method requires different way to pass the values to a servlet? i've been searching..the most i could get are examples with HTML's FORM's name attribute

    What method have you written in Servlet?
    service, doGet or doPost.
    If you have written service, then it does not matter what mthod you specified.

  • Need help on no post screen/ all outboard gadgets work

     1st-time building from scratch. when i power up, all the right fans and devices run that are supposed to, but no signal to monitor and d-bracket does  not light up, cpu fan going, vga fan right, both opticals going. had thought 480w would have been enough to power everything.   

    thanks, c things are better and wierder, posted and started to make my bios adjust.  only had cpu, psu, dvd's, vga, and hdds hooked up,
    sata 1& 2 hdds were reported as IDE 3 & 4.  2nd (slave) dvd not reported. couldn't unlock the raid menu to configure so I partitioned hdd 1 and loaded
    windows for the heck of it.  power readings were:  Vcore 1.34-1.37,   +3.3v  3.42,     +12v   12.09,   +5.0   5.13,    batt   3.25,   +5vsb   5.21
    Do I need a new psu to power the other cards and fans/mods?  good call there, now more chipper about the beast.

  • Need help on Tuxedo11g post installation

    Hi,
    I've installed Tuxedo 11g in Linux 5.3. Can anybody please tell what is the post installation steps to complete the configuration.

    Hi,
    I'm assuming you are using the workstation protocol. If so, after installing the client, you need to set the "standard" Tuxedo environment variables. There should be a script installed in the TUXDIR (where Tuxedo was installed) called $TUXDIR/tux.env that will set all necessary environment variables except WSNADDR. WSNADDR needs to be set to point to the host and port that the WSL is listening on. Also, your client application needs to be built using the -w switch to the buildclient command in order to use the workstation protocol.
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

Maybe you are looking for

  • Database performance tuning

    i have a very large database consisting of around 300,000,000 records with 38 columns in each record. i need help in tuning the database so that query results don't take more than a few seconds. the data is the log of events occuring in the SMSC serv

  • Why is Firefox 12 using 2 000 000 KB memory?

    Hey guys! I have no clue as to why this is, but since I installed Firefox 12 it has been hogging memory like crazy! I admit that I am one of those people who like to have over a lot of tabs open at once. More often than not I have about 110 tabs open

  • VC vs Database

    Hi all, When i was trying to install visual composer it asking SQL server..can't i go ahead with Oracle? or SQL is must? Suggest me Thx PRadeep

  • Airport Extreme and ADSL?

    Sorry if this is a no-brainer, but I purchased an Airport Extreme 802.11n (with a MacBook Pro, so won't get the box til the laptop comes in) and am now worried I won't be able to use it. On my current setup, I use a Windows box with a USB ADSL modem

  • ConnectionNotFoundException when connecting via serial port

    Hi all I have got a HttpConnection that looks like this HttpConnection connection = (HttpConnection)Connector.open( "http://localhost:80/test/read.txt" ); InputStream inputstream = connection.openInputStream(); ...The above codes work fine on the emu