Urgent Help need for ABAP Custom Process Types

Hi Gurus,
I have created a Custom Process Type for ABAP program which returns status (Success or Failure).
I followed the below procedure to create a custom ABAP process type.
In RSPC, I went to Settings -> Maintain process types
I selected the ABAP process type and then selected the EDIT -> COPY AS and then in the process chain configuration screen, I gave a new name to the process type, changed the POSSIBLE EVENTS settings to "2 process ends "successful" or "failure" and saved the settings to confirm changes.
Now I can see the new process type for ABAP program which returns the success or failure for the successors.
Now, my question is, where do i write the logic for ABAP program ? how does the ABAP program returns the success or failure. Do I have to change the code in the method IF_RSPC_EXECUTE~EXECUTE to return success or failure.  Please make me clear where I can write the code? For example in my ABAP program, I am searching a table to find a specific value. If the value is not found, then the ABAP process type should return failure, if found should return success. How can I do this?
Thanks in advance,
Regards,
aarthi
[email protected]

Hi,
   We have a similar problem. We have an ABAP program in a process chain that
uses a custom process type with on success and on failure.
    If  the program is successful there is no problem. it will run the next process step.
    The problem is when the ABAP Program fails and even though the message class is E in our ABAP program it has a confirm popup message with a status change and asks "Save Status and Trigger Events if Appropriate".
     Once you enter Yes to continue it then continues to the next step in the program and is fine.I traced in debug where this status message is appearing. It is in CL_RSPC_LOG. There is a popup_to_confirm_step where it checks the e_status that is value J ( Framework Error upon completion). Then it submits the rspc_process_finish program to complete and call the on error process step.
     Has anyone else experienced this and is there any other documents out there to help me?
Apologies if this is not very clear.
Any assistance would be appreciated.
Thanks
Monica Mandia

Similar Messages

  • Urgent:  ABAP Custom Process Types

    Hi Gurus,
    I have created a Custom Process Type for ABAP program which returns status (Success or Failure).
    I followed the below procedure to create a custom ABAP process type.
    In RSPC, I went to Settings -> Maintain process types
    I selected the ABAP process type and then selected the EDIT -> COPY AS and then in the process chain configuration screen, I gave a new name to the process type, changed the POSSIBLE EVENTS settings to "2 process ends "successful" or "failure" and saved the settings to confirm changes.
    Now I can see the new process type for ABAP program which returns the success or failure for the successors.
    Now, my question is, where do i write the logic for ABAP program ? how does the ABAP program returns the success or failure. Do I have to change the code in the method IF_RSPC_EXECUTE~EXECUTE to return success or failure.  Please make me clear where I can write the code? For example in my ABAP program, I am searching a table to find a specific value. If the value is not found, then the ABAP process type should return failure, if found should return success. How can I do this?
    Thanks in advance,
    Regards,
    aarthi
    [email protected]

    To trigger a process chain from an external program you can use the function:
    RSPC_API_CHAIN_START
    you need only to know the Chain ID and pass it in import parameter.
    Here an example:
    select-options v_time for sy-uzeit.
    parameter: chain type RSPC_CHAIN.
    check sy-uzeit in v_time.
    CALL FUNCTION 'RSPC_API_CHAIN_START'
      EXPORTING
        i_chain             = chain
      I_T_VARIABLES       =
      I_SYNCHRONOUS       =
      I_SIMULATE          =
      I_NOPLAN            =
    IMPORTING
      E_LOGID             =
    EXCEPTIONS
      FAILED              = 1
      OTHERS              = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Sergio

  • Urgent help needed for XML Tags using XMLForest()

    Folks
    I need some urgent help regarding getting use defined tag in your
    XML output.
    For this I am using XMLElement and XMLForest which seems to work fine
    when used at the SQL prompt but when used in a procedure throws and error
    SQL> Select SYS_XMLAGG(XMLElement("SDI",
                                       XMLForest(sdi_num)))
         From sdi
         where sdi_num = 22261;- WORKS FINE
    But when used in a procedure,doesnt seem to work
    Declare
        queryCtx  DBMS_XMLQuery.ctxType;
        v_xml     VARCHAR2(32767);
        v_xmlClob CLOB;
        BEGIN
        v_xml:='Select SYS_XMLAGG(XMLElement("SDI",
                                             XMLFOREST(sdi_num)))
        From sdi
        where sdi_num = 22261';
        queryCtx :=DBMS_XMLQuery.newContext(v_xml);
        v_xmlClob :=DBMS_XMLQuery.getXML(queryCtx);
        display_xml(v_xmlClob);
    End;
    CREATE OR REPLACE PROCEDURE  display_xml(result IN OUT NOCOPY CLOB)
    AS
         xmlstr varchar2(32767);
         line varchar2(2000);
    BEGIN
         xmlstr:=dbms_lob.SUBSTR(result,32767);
         LOOP
         EXIT WHEN xmlstr is null;
         line :=substr(xmlstr,1,instr(xmlstr,chr(10))-1);
         dbms_output.put_line('.'||line);
         xmlstr := substr(xmlstr,instr(xmlstr,chr(10))+1);
         END LOOP;
    end;
    SQL> /
    .<?xml version = '1.0'?>
    .<ERROR>oracle.xml.sql.OracleXMLSQLException: Character ')' is not allowed in an
    XML tag name.</ERROR>
    PL/SQL procedure successfully completed.
    SQL>HELP is appreciated as to where I am going wrong?

    Hi,
    if you want to transform something to something else, you should declare, what is your source.
    I would prefer to use plain XSL-Transformations, because you have a lot more options to transform your source and you can even better determine, how your output should looks like.
    Kind regards,
    Hendrik

  • Urgent help needed for hysterical female!

    I need urgent help in editing a pic that has been emailed to me, I do not know which Adobe programme to upload it too.  Currently use Picasso - usually brilliant, but now gets jammed with a pop up box asking me to either accept or deny picnik.  When I googled picnik, it now belongs to Google - don't know how to do a damn thing now!!  Extremely Frustrated, can anybody suggest/help me

    The only Adobe program I know that can edit images is Photoshop.
    If you have troubles with Google software, you need to post in the appropriate Google forum.

  • Check code ( urgent help needed from ABAP guys working on FI/CO)

    hi all,
    check my code & give me solution for getting only offsetting acounts depending on particular HKONT.
    plz i need its solution urgently.
    REPORT zglaccline NO STANDARD PAGE HEADING                              
                       LINE-SIZE 300                                         
                       LINE-COUNT 65(3).                                                                               
    TABLES : bkpf, bseg.                                                                               
    DATA : BEGIN OF it_bkpf OCCURS 0,                                       
            bukrs LIKE bkpf-bukrs,                                           
            belnr LIKE bkpf-belnr,                                           
            gjahr LIKE bkpf-gjahr,                                           
            monat LIKE bkpf-monat,                                           
            budat LIKE bkpf-budat,                                           
            brnch LIKE bkpf-brnch,                                           
            xblnr LIKE bkpf-xblnr,                                           
            waers LIKE bkpf-waers,                                           
            END OF it_bkpf.                                                                               
    DATA : BEGIN OF it_bseg OCCURS 0,                                        
    gsber LIKE bseg-gsber,                                                   
    hkont LIKE bseg-hkont,                                                   
    kunnr LIKE bseg-kunnr,                                                   
    sgtxt LIKE bseg-sgtxt,                                                   
    bschl LIKE bseg-bschl,                                                   
    wrbtr LIKE bseg-wrbtr,                                                   
    dmbtr LIKE bseg-dmbtr,                                                   
    pswsl LIKE bseg-pswsl,                                                   
    kostl LIKE bseg-kostl,                                                   
    prctr LIKE bseg-prctr,                                                   
    aufnr LIKE bseg-aufnr,                                                   
    shkzg LIKE bseg-shkzg,                                                   
    augbl LIKE bseg-augbl,                                                   
    END OF it_bseg.                                                                               
    DATA : BEGIN OF it_res OCCURS 0,                                           
    bukrs LIKE bkpf-bukrs,                                                    
    gjahr LIKE bkpf-gjahr,                                                    
    monat LIKE bkpf-monat,                                                    
    belnr LIKE bkpf-belnr,                                                    
    budat LIKE bkpf-budat,                                                    
    brnch LIKE bkpf-brnch,                                                    
    gsber LIKE bseg-gsber,                                                    
    hkont LIKE bseg-hkont,                                                    
    kunnr LIKE bseg-kunnr,                                                    
    bschl LIKE bseg-bschl,                                                    
    prctr LIKE bseg-prctr,                                                    
    kostl LIKE bseg-kostl,                                                    
    aufnr LIKE bseg-aufnr,                                                    
    pswsl LIKE bseg-pswsl,                                                    
    wrbtr LIKE bseg-wrbtr,                                                                               
    waers LIKE bkpf-waers,                                                 
    dmbtr LIKE bseg-dmbtr,                                                 
    xblnr LIKE bkpf-xblnr,                                                 
    txt50 LIKE skat-txt50,                                                 
    sgtxt LIKE bseg-sgtxt,                                                 
    shkzg LIKE bseg-shkzg,                                                 
    END OF it_res.                                                                               
    DATA : BEGIN OF itab_head OCCURS 0,                                     
           name1(20) TYPE c,                                                
           END OF itab_head.                                                
    SELECTION-SCREEN BEGIN OF BLOCK b_2 WITH FRAME TITLE text-002.          
    PARAMETERS : p_sel1 RADIOBUTTON GROUP sel,                              
                 p_sel2 RADIOBUTTON GROUP sel,                              
                 p_sel3 RADIOBUTTON GROUP sel.                              
    SELECTION-SCREEN END OF BLOCK b_2.                                      
    SELECTION-SCREEN SKIP 1.                                                
    SELECTION-SCREEN BEGIN OF BLOCK b_1 WITH FRAME TITLE text-001.          
    PARAMETER p_bukrs LIKE bkpf-bukrs DEFAULT 'ML' OBLIGATORY.              
    SELECT-OPTIONS : s_belnr FOR bkpf-belnr.                                
    SELECT-OPTIONS : s_gjahr FOR bkpf-gjahr OBLIGATORY.                     
    SELECT-OPTIONS : s_monat FOR bkpf-monat.                                
    SELECT-OPTIONS : s_blart FOR bkpf-blart.                                
    SELECT-OPTIONS : s_budat FOR bkpf-budat.                                
    SELECT-OPTIONS : s_waers FOR bkpf-waers.                                
    SELECT-OPTIONS : s_hkont FOR bseg-hkont.                                
    SELECT-OPTIONS : s_bldat FOR bkpf-bldat.                                
    SELECTION-SCREEN END OF BLOCK b_1.                                                                               
    SELECT bukrs belnr gjahr monat budat brnch xblnr waers                  
       INTO CORRESPONDING FIELDS OF TABLE it_bkpf                           
       FROM bkpf                                                            
       WHERE bukrs = p_bukrs                                                
       AND belnr IN s_belnr                                                 
       AND gjahr IN s_gjahr                                                 
       AND monat IN s_monat                                                 
       AND blart IN s_blart                                                 
       AND budat IN s_budat                                                 
       AND bldat IN s_bldat                                                 
       AND waers IN s_waers.                                                                               
    IF NOT it_bkpf[] IS INITIAL.                                            
      LOOP AT it_bkpf.                                                      
    IF p_sel1 = 'X'.                                                        
        SELECT gsber hkont kunnr sgtxt bschl wrbtr pswsl kostl shkzg        
                            dmbtr prctr aufnr augdt augbl                               
           INTO CORRESPONDING FIELDS OF TABLE it_bseg                       
           FROM bseg                                                        
           WHERE bukrs = it_bkpf-bukrs                                      
           AND belnr   = it_bkpf-belnr                                      
           AND gjahr   = it_bkpf-gjahr                                      
           AND pswsl   = it_bkpf-waers                                      
           AND hkont  IN s_hkont.                                           
    ELSEIF p_sel2 = 'X'.                                                    
        SELECT gsber hkont kunnr sgtxt bschl wrbtr pswsl kostl shkzg        
                dmbtr prctr aufnr augdt augbl                               
           INTO CORRESPONDING FIELDS OF TABLE it_bseg                       
           FROM bseg                                                        
           WHERE bukrs = it_bkpf-bukrs                                      
           AND belnr   = it_bkpf-belnr                                      
           AND gjahr   = it_bkpf-gjahr                                      
           AND pswsl   = it_bkpf-waers.                                    
          AND koart <> 'S'.                                              
    ENDIF.                                                                 
        IF sy-subrc EQ 0.                                                  
          LOOP AT it_bseg.                                                 
            SELECT SINGLE txt50 INTO it_res-txt50                          
                 FROM skat                                                 
                 WHERE spras = 'EN'                                        
                 AND   ktopl = 'PCA'                                       
                 AND   saknr = it_bseg-hkont.                                                                               
    it_res-bukrs = it_bkpf-bukrs.                                  
            it_res-gjahr = it_bkpf-gjahr.                                  
            it_res-monat = it_bkpf-monat.                                  
            it_res-gsber = it_bseg-gsber.                                  
            it_res-belnr = it_bkpf-belnr.                                  
            it_res-budat = it_bkpf-budat.                                  
            it_res-brnch = it_bkpf-brnch.                                  
            it_res-kunnr = it_bseg-kunnr.                                  
            it_res-hkont = it_bseg-hkont.                                  
            it_res-sgtxt = it_bseg-sgtxt.                                  
            it_res-bschl = it_bseg-bschl.                                  
            it_res-wrbtr = it_bseg-wrbtr.                                  
            it_res-pswsl = it_bseg-pswsl.                                  
            it_res-waers = it_bkpf-waers.                                  
            it_res-dmbtr = it_bseg-dmbtr.                                  
            it_res-kostl = it_bseg-kostl.                                  
            it_res-prctr = it_bseg-prctr.                                  
            it_res-aufnr = it_bseg-aufnr.                                  
            it_res-shkzg = it_bseg-shkzg.                                  
           it_res-augbl = it_bseg-augbl.                                 
            it_res-xblnr = it_bkpf-xblnr.                                  
            APPEND it_res.                                                 
            CLEAR it_res.                                                  
          ENDLOOP.                                                         
          CLEAR it_bkpf.                                                   
        ENDIF.                                                             
      ENDLOOP.                                                             
    ENDIF.                                                                 
    LOOP AT it_res.                                                        
      IF it_res-shkzg EQ 'H'.                                              
        it_res-wrbtr = it_res-wrbtr * -1.                                  
        it_res-dmbtr = it_res-dmbtr * -1.                                  
      ENDIF.                                                               
      WRITE : /2(4) it_res-bukrs,                                          
               13(4) it_res-gjahr,                                         
               21(2) it_res-monat,                                         
               31(10) it_res-belnr,                                        
               44(10) it_res-budat,                                        
               55(4) it_res-brnch,                                         
               60(4) it_res-gsber,                                          
               70(10) it_res-hkont,                                         
               82(10) it_res-kunnr,                                         
               94(2) it_res-bschl,                                          
               104(10) it_res-prctr,                                        
              116(10)  it_res-kostl,                                        
              128(12)  it_res-aufnr,                                        
              142(5)  it_res-pswsl,                                         
              148(13)  it_res-wrbtr,                                        
              164(5)  it_res-waers,                                         
              170(13)  it_res-dmbtr,                                        
             187(16)   it_res-xblnr,                                        
              205(50)  it_res-sgtxt.                                        
      MODIFY it_res.                                                        
      CLEAR it_res.                                                         
    ENDLOOP.                                                                
    plz give soltuion i am looking for it.
    i will aslo reward all ur precious effort.
    otherwise if anyone have any code on my reqirement then plz send it to me in my id- [email protected]
    thanks
    Message was edited by: sanjeev singh

    Hi
    You should a selection in BSIS and BSAS table instead of BKPF and BSEG:
    DATA : BEGIN OF it_res OCCURS 0,
    bukrs LIKE bkpf-bukrs,
    gjahr LIKE bkpf-gjahr,
    monat LIKE bkpf-monat,
    belnr LIKE bkpf-belnr,
    budat LIKE bkpf-budat,
    brnch LIKE bkpf-brnch,
    gsber LIKE bseg-gsber,
    hkont LIKE bseg-hkont,
    kunnr LIKE bseg-kunnr,
    bschl LIKE bseg-bschl,
    prctr LIKE bseg-prctr,
    kostl LIKE bseg-kostl,
    aufnr LIKE bseg-aufnr,
    pswsl LIKE bseg-pswsl,
    wrbtr LIKE bseg-wrbtr,
    waers LIKE bkpf-waers,
    dmbtr LIKE bseg-dmbtr,
    xblnr LIKE bkpf-xblnr,
    txt50 LIKE skat-txt50,
    sgtxt LIKE bseg-sgtxt,
    shkzg LIKE bseg-shkzg,
    END OF it_res.
    Open Item
    SELECT *
    INTO CORRESPONDING FIELDS OF TABLE it_res
    FROM <b>BSIS</b>
    WHERE bukrs = p_bukrs
    <b>AND HKONT IN S_HKONT</b>
    AND belnr IN s_belnr
    AND gjahr IN s_gjahr
    AND monat IN s_monat
    AND blart IN s_blart
    AND budat IN s_budat
    AND bldat IN s_bldat
    AND waers IN s_waers.
    Cleared Item
    SELECT *
    APPENDING CORRESPONDING FIELDS OF TABLE it_res
    FROM <b>BSAS</b>
    WHERE bukrs = p_bukrs
    <b>AND HKONT IN S_HKONT</b>
    AND belnr IN s_belnr
    AND gjahr IN s_gjahr
    AND monat IN s_monat
    AND blart IN s_blart
    AND budat IN s_budat
    AND bldat IN s_bldat
    AND waers IN s_waers.
    Max
    Message was edited by: max bianchi

  • URGENT HELP NEEDED FOR GROUP BY

    SELECT curve_date, curve_id, curve_type, curve_name, curve_instance, is_simple,
    comments, curve_currency, curve_generator, curve_interpolator, holidays,
    user_name, rate_index, daycount_code, frequency_code, rate_index_tenor,
    time_zone
    FROM curve a
    WHERE curve_date = (SELECT max(curve_date)
    FROM curve b
    WHERE b.curve_id = a.curve_id
    GROUP BY curve_id)
    I have this query ..This query does the FULL TABLE SCAN .....PLEASE Suggest some easier way to optimize this query.....I need it VERY VERY URGENTLY....

    SELECT curve_date, curve_id, curve_type, curve_name, curve_instance, is_simple,
    comments, curve_currency, curve_generator, curve_interpolator, holidays,
    user_name, rate_index, daycount_code, frequency_code, rate_index_tenor,
    time_zone
    FROM curve
    WHERE (curve_id, curve_date) IN (SELECT curve_id, max(curve_date)
    FROM curve
    GROUP BY curve_id)
    Be sure you have statistics collected on the table. Anyway, I am not sure that Oracle will not do the FTS for this query even if curve_id and curve_date are indexed.

  • Urgent Help Needed for WVC210 camera setup :)

    Please help!  I am trying to set up a Cisco WVC210 surveilance camera at one of the stores owned by the company I work for.  Its a small business and I am the closest they have to an I.T person !! I have plenty of experience with software but not much on networking so need some idiot proof guidance !   The "administrative guide" is not worth the paper it is printed on!!
    The store has a fixed IP address of 212.9.##.### I connected the camera using ethernet cable.  Set the camera up using the software for the camera, with static ip address of 192.168.0.23.  Set the SSID of the camera to that of the router (a Netgear one).  It worked fine.  I went to unplug so I could have it wireless and NOTHING !!  It did work one time (no idea what i did differently!) but it would not work over the internet which is what we need it to do!  I need the whole thing password protected too! 
    Is there ANYONE who can help me please???  I am at the point of running away from my work and never returning !!!! :s
    Thank you

    Hi Jodie,
    Thank you for posting. In order to make the camera connect wirelessly, first set up the wireless settings in the camera to match the router. I usually open the router configuration page and copy and paste the SSID and Security Passphrase to the camera to avoid error. The next step is to unplug the ethernet cable and power cord from the camera. Then plug only the power back in and the camera should connect wirelessly.
    For remote access to the camera you will need to forward port 80 to the LAN IP address of the camera. (192.168.0.23) This is done in the router. If you need help with port forwarding, you can search the web or call Netgear for assistance.
    If you continue to need assistance with the camera, the fastest and easiest way to get assistance is to call Cisco Small Business Support. www.cisco.com/go/sbsc
    Please go to www.cisco.com and click on "Register" in the upper right to create a user ID. This will allow our engineers to create a case for you.

  • URGENT HELP NEEDED FOR TimeStamp

    Urgent Millisecond Question....
    I have the Java Code which used to work well in Oracle 8 and Sybase ..
    When I am using it with Oracle 9.2 it creating a problem...
    The code is
    final public JDatetime getJDatetime(int columnIndex) throws SQLException {
         boolean convertb = Util.needConvertTime();
         Timestamp ts=_rs.getTimestamp(columnIndex);
         if(ts==null) return null;
         Date d= new Date(ts.getTime() + (ts.getNanos()/1000000));
         if(convertb) d = Util.ReferenceTZ2Local(d);
         return new JDatetime(d);
    Now in Oracle 8 Say when I insert a
    JDateTime Value as 2003-06-18 16:51:06.89
    and
    When I retrieve is using above getJDatetime
    it get retrieved as
    2003-06-18 16:51:06.0
    Which is ok since Milliseconds are lost....
    Now in Oracle 9
    When I use the convert
    Date d= new Date(ts.getTime() + (ts.getNanos()/1000000));
    It get converted to
    Original Value While Inserting -->TimeStamp in JResultSet->2003-06-18 18:15:56.42
    Date in JResultSet-->Wed Jun 18 18:15:56 GMT 2003
    Date in JResultSet after converting to ReferenceTZ
    Wed Jun 18 18:15:56 GMT 2003
    DateTime in JResultSet after converting to DateTime6/18/03 6:15:56.840 PM
    GMTGETDatetime 6/18/03 6:15:56.840 PM GMT
    so if you see
    Milliseconnd 42 got converted to 840 NanoSeconds
    WHICH IS WRONG
    Can anybody help me with it ??
    Mahesh

    The only Adobe program I know that can edit images is Photoshop.
    If you have troubles with Google software, you need to post in the appropriate Google forum.

  • Please urgent help needed for the following

    Hi Everybody!
    I desperately need help as soon as possible.
    Following is the partial code for the driver program which will use the Employee class Objects(Employee is declared abstract). If you want to see whole code you can take a look at my last two or three posts in this forum.
    1-     Now data input by the user in the specific field( name, rate ) should be displayed in the �List� at the top of the frame after pressing �Enter� key. Can anyone help me to achieve this functionality. While doing this keep in mind the capacity of Array
    2-     I also need �rate� textfield to enabled initially & become disable when �raise� (for trigerring calculating raise in weekly pay) is checked. On this �increased� textbox will become �enabled� which was disabled initially.
    3-     The stuff which may have the problems is followed by �*******************�.
    // here is how I declared handlers
    ActionEventHandler handler = new ActionEventHandler();
    ItemEventHandler listener = new ItemEventHandler();
    // here is the declaration of awt components which are going to be placed on Frame.
    public class ActionEventHandler implements ActionListener
    public void actionPerformed(ActionEvent event)
    //if(event.getSource() == enterButton)
    for (int i = 0 ; i < empArray.length; i++)
    if(event.getSource() == enterButton)
    empData.add(nameField.getText());
    /*else if(event.getSource() == hoursField)
    calcWeeklyPay();
    if(event.getSource() == clearButton)
    nameField.setText("");
    hoursField.setText("");
    rateField.setText("");
    increaseField.setText("");
    }//else if
    }//ActionEventHandler
    public class ItemEventHandler implements ItemListener
    public void itemStateChanged(ItemEvent event)
    //if(event.getSource() == enterButton)
    if(hEmployee.getState())
    createHourly();
    }//if
    /*else
    sEmployee.setState(true);
    createSalaried();
    }//else*/
    else if(raiseSal.getState())
    increaseField.setEnabled(true);
    rateField.setEnabled(false);
    }//itemStateChanged
    }//ItemEventHandler
    public void createHourly()
    nameField.requestFocus();
    //String name = nameField.getText();
    double payRate = Double.parseDouble(rateField.getText());
    double hours = Double.parseDouble(hoursField.getText());
    empArray[empCreated] = new HourlyEmployee(nameField.getText(), payRate, hours);
    currentEmp = empCreated;
    empCreated++;
    //empData.add(emp.toString());
    enterButton.setLabel("add");
    }//createHourly
    /* public void createSalaried()
    nameField.requestFocus();
    //String name = nameField.getText();
    double payRate = Double.parseDouble(rateField.getText());
    double hours = Double.parseDouble(hoursField.getText());
    empArray[empCreated] = new HourlyEmployee(nameField.getText(), payRate, hours);
    currentEmp = empCreated;
    empCreated++;
    enterButton = new Button("add");
    }//createSalaried*/
    looking forward your kindness

    Visit YAT-Yet Another Thread this is a discussion using the Sun book Core Java 2
    and one part in that book uses an example with Employee class of which I assume you are stealing your class-name from. Anyway, that thread is in the Java forums.

  • Urgent help needed in creating customer ship_to and bill_to site id

    Hi,
    I am using an api to create customer ship_to and bill_to address, in Oracle OM R12 but the api does not return values. I am including the code so any suggestion will be helpful.
    declare
    l_num_billing_site_use NUMBER;
    l_num_cust_site_id NUMBER;
    l_rec_cust_site_use apps.Hz_Cust_Account_Site_V2pub.CUST_SITE_USE_REC_TYPE;
    l_rec_customer_profile apps.Hz_Customer_Profile_V2pub.CUSTOMER_PROFILE_REC_TYPE;
    l_chr_retcode VARCHAR2(20);
    l_chr_errbuf VARCHAR2(200);
    l_num_count NUMBER;
    begin
    -- fnd_global.apps_initialize (1885, 21623, 660); -- user id, --resp_id (OM Super User), appl_id
    -- mo_global.init ('AR');
    -- mo_global.set_policy_context ('S', 511);
    l_rec_cust_site_use.site_use_code := 'BILL_TO';
    l_rec_cust_site_use.cust_acct_site_id := 24919;
    l_rec_cust_site_use.primary_flag := 'N';
    l_rec_cust_site_use.created_by_module := 'CONVERSION'; -- Change
    BEGIN
    apps.Hz_Cust_Account_Site_V2pub.create_cust_site_use( p_init_msg_list => FND_API.G_FALSE
    , p_cust_site_use_rec => l_rec_cust_site_use
    , p_customer_profile_rec => NULL --l_rec_customer_profile
    , p_create_profile => FND_API.G_FALSE
    , p_create_profile_amt => FND_API.G_FALSE
    , x_site_use_id => l_num_billing_site_use
    , x_return_status => l_chr_retcode
    , x_msg_count => l_num_count
    , x_msg_data => l_chr_errbuf);
    EXCEPTION
    WHEN OTHERS THEN
    FND_FILE.PUT_LINE(FND_FILE.LOG,' Unexpected error creating customer site for Cust Site Id ' || l_num_cust_site_id || ' due to: ' || SQLERRM);
    END;
    dbms_output.put_line('cust_site_use:'||l_num_billing_site_use);
    end;
    Thanks,
    Srinivas
    Edited by: user2138419 on Feb 14, 2010 4:46 PM

    It might be a crossdomain.xml problem.
    Please make sure that the server hosting the xml allows the domain where the swf is hosted.
    You can start with:
    <?xml version="1.0" encoding="utf-8" ?>
    <cross-domain-policy>
        <allow-access-from domain="*"/>
        <site-control permitted-cross-domain-policies="master-only"/>
    </cross-domain-policy>

  • URGENT : Help needed for OLAP tools selection

    Hi Gurus,
    Environment :
    Oracle 10g
    .net web application with backend as Oracle 10g server embaded with OLAP server.
    Application - CRM
    Feature requreid - OLAP, OLAP Reporting, Drilldown graphical analysis, US MAP view location specific queries, Ad-hoc analysis.
    I have to take a descision for for the OLAP tool selection with above mention client requirement.
    * Please let me know if anybody have worked on above combination for the required features and held up with any issue (if any) ?
    * Please go thru Oracle options below per feature and let me know is there any issue with .NET and IIS server,Oracle 10g OLAP compatibily ? specially for following points from the below details -
    4. OLAP Reporting Tool :
    6. Web deployment of Cubes :
    8. Graphing :
    9. Geographical Map View based query :
    1.Extraction Transformation and loading (ETL) Tool : Oracle Business Intelligence Warehouse Builder, tightly integrated with Database Server.
    2. Analysis Tool (Multidimensional Data Analysis using cubes) : Oracle Business Intelligence Discoverer·     
    3. Ad-hoc query and analysis by end User :
    Oracle Business Intelligence Spreadsheet Add-in.OLAP DML Regular Sql with OLAP_TABLE Function.
    4. OLAP Reporting Tool :     Oracle Reports 10g.
    5. Multidimensional Data (Cube) Query Language     OLAP DML : Regular Sql with OLAP_TABLE Function
    6.Web deployment of Cubes : Available
    7. Cube data export to xls, html, format : Available
    8.Graphing : Oracle Reports 10g Graph Wizard for Graphical Analysis.
    9. Geographical Map View based query : Oracle Locator: Location-Enabling Every Oracle Database
    Please send me the relevent urls in support / issues for the above featues.
    TIA,
    Sheilesh

    The only Adobe program I know that can edit images is Photoshop.
    If you have troubles with Google software, you need to post in the appropriate Google forum.

  • URGENT HELP NEEDED FOR JTABLE PROBLEM!!!!!!!!!!!!!!!!!

    firstly i made a jtable to adds and deletes rows and passes the the data to the table model from some textfields. then i wanted to add a tablemoselistener method in order to change the value in the columns 1,2,3,4 and set the result of them in the column 5. when i added that portion of code the buttons that added and deleted rows had problems to function correctly..they dont work at all..can somebody have a look in my code and see wot is wrong..thanx in advance..
    below follows the code..sorry for the mesh of the code..you can use and run the code and notice the problem when you press the add button..also if you want delete the TableChanged method to see that the add button works perfect.
    * Created on 03-Aug-2005
    * TODO To change the template for this generated file go to
    * Window - Preferences - Java - Code Style - Code Templates
    * @author Administrator
    * TODO To change the template for this generated type comment go to
    * Window - Preferences - Java - Code Style - Code Templates
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.Vector;
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.event.TableModelEvent;
    import javax.swing.event.TableModelListener;
    import java.io.*;
    public class NodesTable extends JFrame implements TableModelListener, ActionListener {
    JTable jt;
    DefaultTableColumnModel dtcm;
    TableColumn column[] = new TableColumn[100];
    DefaultTableModel dtm;
    JLabel Name,m1,w1,m2,w2;
    JTextField NameTF,m1TF,w1TF,m2TF,w2TF;
    String c [] ={ "Name", "Assessment1", "Weight1" , "Assessment2","Weight2 ","TotalMark"};
    float x=0,y=0,tMark=0,z = 0;
    float j=0;
    int i;
         JButton DelButton;
         JButton AddButton;
         JScrollPane scrollPane;
         JPanel mainPanel,buttonPanel;
         JFrame frame;
         Object[][] data =
              {"tami", new Float(1), new Float(1.11), new Float(1.11),new Float(1),new Float(1)},
              {"tami", new Float(1), new Float(2.22), new Float(2.22),new Float(1),new Float(1)},
              {"petros", new Float(1), new Float(3.33), new Float(3.33),new Float(1),new Float(1)},
              {"petros", new Float(1), new Float(4.44), new Float(4.44),new Float(1),new Float(1)}
    public NodesTable() {
    super("Student Marking Spreadsheet");
    this.AddNodesintoTable();
    setSize(400,250);
    setVisible(true);
    public void AddNodesintoTable(){
    // Create a vector object and load them with the data
    // to be placed on each row of the table
    dtm = new DefaultTableModel(data,c);
    dtm.addTableModelListener( this );
    jt = new JTable(dtm){
         // Returning the Class of each column will allow different
              // renderers to be used based on Class
              public Class getColumnClass(int column)
                   return getValueAt(0, column).getClass();
              // The Cost is not editable
              public boolean isCellEditable(int row, int column)
                   int modelColumn = convertColumnIndexToModel( column );
                   return (modelColumn == 5) ? false : true;
    //****************************User Input**************************
    //Add another node
    //Creating and setting the properties
    //of the panel's component (panels and textfields)
    Name = new JLabel("Name");
    Name.setForeground(Color.black);
    m1 = new JLabel("Mark1");
    m1.setForeground(Color.black);
    w1 = new JLabel("Weigth1");
    w1.setForeground(Color.black);
    m2= new JLabel("Mark2");
    m2.setForeground(Color.black);
    w2 = new JLabel("Weight2");
    w2.setForeground(Color.black);
    NameTF = new JTextField(5);
    NameTF.setText("Node");
    m1TF = new JTextField(5);
    w1TF = new JTextField(5);
    m2TF=new JTextField(5);
    w2TF=new JTextField(5);
    //creating the buttons
    JPanel buttonPanel = new JPanel();
    AddButton=new JButton("Add Row");
    DelButton=new JButton("Delete") ;
    buttonPanel.add(AddButton);
    buttonPanel.add(DelButton);
    //adding the components to the panel
    JPanel inputpanel = new JPanel();
    inputpanel.add(Name);
    inputpanel.add(NameTF);
    inputpanel.add(m1);
    inputpanel.add(m1TF);
    inputpanel.add(w1);
    inputpanel.add(w1TF);
    inputpanel.add(m2);
    inputpanel.add(m2TF);
    inputpanel.add(w2TF);
    inputpanel.add(w2);
    inputpanel.add(AddButton);
    inputpanel.add(DelButton);
    //creating the panel and setting its properties
    JPanel tablepanel = new JPanel();
    tablepanel.add(new JScrollPane(jt, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED
    , JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS));
    getContentPane().add(tablepanel, BorderLayout.CENTER);
    getContentPane().add(inputpanel, BorderLayout.SOUTH);
    //Method to add row for each new entry
    public void addRow()
    Vector r=new Vector();
    r=createBlankElement();
    dtm.addRow(r);
    jt.addNotify();
    public Vector createBlankElement()
    Vector t = new Vector();
    t.addElement((String) " ");
    t.addElement((String) " ");
    t.addElement((String) " ");
    t.addElement((String) " ");
    t.addElement((String) " ");
    return t;
    // Method to delete a row from the spreadsheet
    void deleteRow(int index)
    if(index!=-1) //At least one Row in Table
    dtm.removeRow(index);
    jt.addNotify();
    // Method that adds and deletes rows
    // from the table by pressing the
    //corresponding buttons
    public void actionPerformed(ActionEvent ae){
         Float z=new Float (m2TF.getText());
    String Name= NameTF.getText();
    Float x= new Float(m1TF.getText());
    Float y= new Float(w1TF.getText());
    Float j=new Float (w2TF.getText());
    JFileChooser jfc2 = new JFileChooser();
    String newdata[]= {Name,String.valueOf(x),String.valueOf(y),
    String.valueOf(z),String.valueOf(j)};
    Object source = ae.getSource();
    if(ae.getSource() == (JButton)AddButton)
    addRow();
    if (ae.getSource() ==(JButton) DelButton)
    deleteRow(jt.getSelectedRow());
    //method to calculate the total mark in the TotalMark column
    //that updates the values in every other column
    //It takes the values from the column 1,2,3,4
    //and changes the value in the column 5
    public void tableChanged(TableModelEvent e) {
         System.out.println(e.getSource());
         if (e.getType() == TableModelEvent.UPDATE)
              int row = e.getFirstRow();
              int column = e.getColumn();
              if (column == 1 || column == 2 ||column == 3 ||column == 4)
                   TableModel model = jt.getModel();
              float     q= ((Float)model.getValueAt(row,1)).floatValue();
              float     w= ((Float)model.getValueAt(row,2)).floatValue();
              float     t= ((Float)model.getValueAt(row,3)).floatValue();
              float     r= ((Float)model.getValueAt(row,4)).floatValue();
                   Float tMark = new Float((q*w+t*r)/(w+r) );
                   model.setValueAt(tMark, row, 5);
    // Which cells are editable.
    // It is only necessary to implement this method
    // if the table is editable
    public boolean isCellEditable(int row, int col)
    { return true; //All cells are editable
    public static void main(String[] args) {
         NodesTable t=new NodesTable();
    }

    There are too many mistakes in your program. It looks like you are new to java.
    Your add and delete row buttons are not working because you haven't registered your action listener with these buttons.
    I have modifide your code and now it works fine. Just put some validation code for the textboxes becuase it throws exception when user presses add button without entering anything.
    Here is the updated code: Do the diff and u will know my changes
    * Created on 03-Aug-2005
    * TODO To change the template for this generated file go to
    * Window - Preferences - Java - Code Style - Code Templates
    * @author Administrator
    * TODO To change the template for this generated type comment go to Window -
    * Preferences - Java - Code Style - Code Templates
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.JTextField;
    import javax.swing.event.TableModelEvent;
    import javax.swing.event.TableModelListener;
    import javax.swing.table.DefaultTableColumnModel;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableColumn;
    import javax.swing.table.TableModel;
    public class NodesTable extends JFrame implements TableModelListener,
              ActionListener {
         JTable jt;
         DefaultTableColumnModel dtcm;
         TableColumn column[] = new TableColumn[100];
         DefaultTableModel dtm;
         JLabel Name, m1, w1, m2, w2;
         JTextField NameTF, m1TF, w1TF, m2TF, w2TF;
         String c[] = { "Name", "Assessment1", "Weight1", "Assessment2", "Weight2 ",
                   "TotalMark" };
         float x = 0, y = 0, tMark = 0, z = 0;
         float j = 0;
         int i;
         JButton DelButton;
         JButton AddButton;
         JScrollPane scrollPane;
         JPanel mainPanel, buttonPanel;
         JFrame frame;
         public NodesTable() {
              super("Student Marking Spreadsheet");
              this.AddNodesintoTable();
              setSize(400, 250);
              setVisible(true);
         public void AddNodesintoTable() {
              // Create a vector object and load them with the data
              // to be placed on each row of the table
              dtm = new DefaultTableModel(c,0);
              dtm.addTableModelListener(this);
              jt = new JTable(dtm) {
                   // The Cost is not editable
                   public boolean isCellEditable(int row, int column) {
                        int modelColumn = convertColumnIndexToModel(column);
                        return (modelColumn == 5) ? false : true;
              //****************************User Input**************************
              //Add another node
              //Creating and setting the properties
              //of the panel's component (panels and textfields)
              Name = new JLabel("Name");
              Name.setForeground(Color.black);
              m1 = new JLabel("Mark1");
              m1.setForeground(Color.black);
              w1 = new JLabel("Weigth1");
              w1.setForeground(Color.black);
              m2 = new JLabel("Mark2");
              m2.setForeground(Color.black);
              w2 = new JLabel("Weight2");
              w2.setForeground(Color.black);
              NameTF = new JTextField(5);
              NameTF.setText("Node");
              m1TF = new JTextField(5);
              w1TF = new JTextField(5);
              m2TF = new JTextField(5);
              w2TF = new JTextField(5);
              //creating the buttons
              JPanel buttonPanel = new JPanel();
              AddButton = new JButton("Add Row");
              AddButton.addActionListener(this);
              DelButton = new JButton("Delete");
              DelButton.addActionListener(this);
              buttonPanel.add(AddButton);
              buttonPanel.add(DelButton);
              //adding the components to the panel
              JPanel inputpanel = new JPanel();
              inputpanel.add(Name);
              inputpanel.add(NameTF);
              inputpanel.add(m1);
              inputpanel.add(m1TF);
              inputpanel.add(w1);
              inputpanel.add(w1TF);
              inputpanel.add(m2);
              inputpanel.add(m2TF);
              inputpanel.add(w2TF);
              inputpanel.add(w2);
              inputpanel.add(AddButton);
              inputpanel.add(DelButton);
              //creating the panel and setting its properties
              JPanel tablepanel = new JPanel();
              tablepanel.add(new JScrollPane(jt,
                        JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
                        JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS));
              getContentPane().add(tablepanel, BorderLayout.CENTER);
              getContentPane().add(inputpanel, BorderLayout.SOUTH);
         //Method to add row for each new entry
         public void addRow() {
              Float z = new Float(m2TF.getText());
              String Name = NameTF.getText();
              Float x = new Float(m1TF.getText());
              Float y = new Float(w1TF.getText());
              Float j = new Float(w2TF.getText());
              String newdata[] = { Name, String.valueOf(x), String.valueOf(y),
                        String.valueOf(z), String.valueOf(j) };
              dtm.addRow(newdata);
         // Method to delete a row from the spreadsheet
         void deleteRow(int index) {
              if (index != -1) //At least one Row in Table
                   dtm.removeRow(index);
                   jt.addNotify();
         // Method that adds and deletes rows
         // from the table by pressing the
         //corresponding buttons
         public void actionPerformed(ActionEvent ae) {
              Object source = ae.getSource();
              if (ae.getSource() == (JButton) AddButton) {
                   addRow();
              if (ae.getSource() == (JButton) DelButton) {
                   deleteRow(jt.getSelectedRow());
         //method to calculate the total mark in the TotalMark column
         //that updates the values in every other column
         //It takes the values from the column 1,2,3,4
         //and changes the value in the column 5
         public void tableChanged(TableModelEvent e) {
              System.out.println(e.getSource());
              //if (e.getType() == TableModelEvent.UPDATE) {
                   int row = e.getFirstRow();
                   int column = e.getColumn();
                   if (column == 1 || column == 2 || column == 3 || column == 4) {
                        TableModel model = jt.getModel();
                        float q = (new Float(model.getValueAt(row, 1).toString())).floatValue();
                        float w = (new Float(model.getValueAt(row, 2).toString())).floatValue();
                        float t = (new Float(model.getValueAt(row, 3).toString())).floatValue();
                        float r = (new Float(model.getValueAt(row, 4).toString())).floatValue();
                        Float tMark = new Float((q * w + t * r) / (w + r));
                        model.setValueAt(tMark, row, 5);
         // Which cells are editable.
         // It is only necessary to implement this method
         // if the table is editable
         public boolean isCellEditable(int row, int col) {
              return true; //All cells are editable
         public static void main(String[] args) {
              NodesTable t = new NodesTable();
    }

  • Urgent help need for login problem B310

    Im having a B310, i use veritouch for login purpose. My 4 years kid accidently changed the pass method without my knowledge. After restart, i cant log in. Yet after i try did the forget password in windows 7, it seems cant work. I tried windows password bypass software but shows nopassword set. Unable to get pass via safe mode or f8 as well. Please help me..thanks

    Hi raid5, and welcome to the Lenovo User Community!
    I'm sorry you are locked out of your B310. Unfortunately the Community Rules do not allow discussion of methods to defeat passwords. 
    I don't work for Lenovo. I'm a crazy volunteer!

  • Asset aquisition report (urgent help needed from abap guys working on FI m)

    hi all,
    i have to develop Asset Aquisition report.so i have developed it.
    but in this i am not getting logic for the following---
    if i enter a date like -19.12.2006
    then the output of this report should show all the asset aquisition of the
    company from  01.04.2006 to 19.12.2006 only.
    bcoz in indian scenario fiscal year starts from 1st of april only.
    but in my output it is showing all the asset aquisition from the day comapny was
    started having its asset aquisition.
    so plz if anyone has logic for above sceanario then plz share with me.
    or any one has previously worked on this report can send the code to me
    satisfying the above scenario. its very very urgent guys.
    my id - [email protected]
    i am looking for the reply

    hi srinivas thanks for ur reply but it is not clear to me .
    so if u will send me the code the it will be better for me .
    my id- [email protected]
    i am waiting for ur reply. if u have code for this then plz send me.
    thanks yaar in advance

  • Urgent Help : Need For Buying MSI Motherboard

    Hello , Past week i Ordered "MSI 990FXA-GD65 Motherboard"  after that i heard , that Product was Discontinued . so can i buy it Now .
    Does it Have Warranty ?
    Please Help Me to Buy or decline it .
    thanks

    Quote from: flobelix on 10-August-13, 20:02:20
    You buy it now so of course you have warranty. Besides it is not discontinued
    THANKS YOU

Maybe you are looking for

  • Windows 7 blue screen on startup

    Hello! I've been getting this bluescreen at random intervals whenever I start my computer up. I have a dump file here: https://www.dropbox.com/s/7jet80znrfpqznu/022714-14445-01.dmp and have tried googling the issue, but nothing seems to work.

  • Approval with completion in SRM is not working

    Hi ,        I am not sure this is how standard built for Approval with Completion for Item Level Workflow.. Here is the scenario.. I am implementing custom BRF for Product approval ( Material Group ). My requirement is to activate 'INQUIRE' option in

  • How to change the size  of portal destop title  after user login

    hi,guys got a question,I want to change the title of desktop,but I found out this title been limited by portal.the size length is 20. in pf_desktop_instance table,the instance_title size is 20,so I changed it to 200,but still fail.so...does any guys

  • Photoshop CS5 Bridge not working

    I have windows 7 and cannot get the Bridge from Photoshop CS5 to work this is a real problem as most of my photographs are taken in RAW and I can't see the picture in the folder I have tried most of the answers to this problem from the forum. Launchi

  • Cannot open old Pages documents

    Cannot open old Pages documents after installing Yosemite. "The required index.xml file is missing." What happened?