HR_SIT_API.update_sit

Dears
I Tried To Update SIT Using API But He Sends The Same Value Every Time , i susbct in the loop but he get the loop correct by changeing the employee
here is the code i use
DECLARE
l_EMPLOYEE_NUMBER VARCHAR2 (40);
ln_segment5 number;
ln_analysis_criteria_id NUMBER;
ln_person_analysis_id NUMBER;
ln_pea_object_version_number NUMBER;
CURSOR c_user
IS
SELECT employee_number,segment5
FROM apps.XXNBE_HR_SIT_INT where batch_id != 0 and employee_number in ('63364','101115');
rec_user c_user%ROWTYPE;
BEGIN
FOR rec_user IN c_user
LOOP
l_EMPLOYEE_NUMBER := rec_user.employee_number;
ln_segment5 := rec_user.segment5;
select
ppa.person_analysis_id,
PpA.object_version_number
into
ln_person_analysis_id,
ln_pea_object_version_number
from Hr.PER_ALL_PEOPLE_F PEO,
apps.PER_PERSON_ANALYSES PPA ,
Apps.Per_Analysis_Criteria Pac,
apps.fnd_id_flex_structures_vl ffs
where
sysdate between peo.effective_start_date and peo.effective_end_date
and ppa.date_from = (select max(ppaa.date_from)
from apps.PER_PERSON_ANALYSES PPAa
where ppaa.person_id=peo.person_id)
and ppa.person_id=peo.person_id
and peo.employee_number= l_EMPLOYEE_NUMBER
--and peo.person_id=l_person_ID
And Ppa.Id_Flex_Num = Ffs.Id_Flex_Num
And Ppa.Analysis_Criteria_Id = Pac.Analysis_Criteria_Id
And Ffs.Id_Flex_Structure_Code = 'NBE_MILITARY';
BEGIN
apps.HR_SIT_API.update_sit
(p_validate => FALSE
,p_person_analysis_id => ln_person_analysis_id
,p_pea_object_version_number => ln_pea_object_version_number
,p_analysis_criteria_id => ln_analysis_criteria_id
,p_segment5 => ln_segment5 -- Here Is The Problem He Send The Same Value Every Time With All The Employee
commit;
EXCEPTION
WHEN OTHERS
THEN
dbms_output.put_line (SQLERRM);
END;
END LOOP;
END;

Hi
You need to set ln_analysis_criteria_id to null prior to each call to the api. If you supply a non-null value, the api will set the segment values according to that specified combination. Also, you might want to apply a trunc() function to that sysdate reference.
Clive

Similar Messages

  • How to apply a Trigger on a Transcation Table

    Hi Friends,
    I have one requirement from my client.
    let me explain u the scenario..
    if a person is apply for a loan . when he clicks on the submit button it goes to the approvers.. it means it will go tho the transacation tables.
    my requirement is if a person applies for the same loan two times before any action taken place for the previous applied loan .. then it should stop the user moving forward.saying your previous loan is pending for approval.
    Technical:-
    i wrote one package for it.. and called it in a trigger for validation
    create or replace package body xx_transcation_pkg is
    function get_trans(p_person_id in number)
    return varchar2
    is
    cursor c1 is
    SELECT htr.transaction_id
    FROM per_analysis_criteria pac,
    hr_api_transactions htr,
    hr_api_transaction_steps hts,
    hr_api_transaction_values htrv
    WHERE htr.transaction_id = hts.transaction_id
    AND hts.transaction_step_id = htrv.transaction_step_id
    AND htrv.NAME LIKE 'P_ANALYSIS_CRITERIA_ID%'
    AND htr.process_name = 'VEHICLE_LOAN'
    AND htr.selected_person_id = TO_NUMBER (p_person_id)
    AND pac.analysis_criteria_id = htrv.number_value
    AND htr.status = 'Y'
    AND hts.transaction_step_id =
    (SELECT hts.transaction_step_id
    FROM hr_api_transaction_values htv,
    hr_api_transaction_steps hts
    WHERE htv.transaction_step_id = hts.transaction_step_id
    AND hts.transaction_id = htr.transaction_id
    AND htv.varchar2_value IN ('INSERT', 'UPDATE'))
    GROUP BY htr.transaction_id;
    --variable declaration
    l_value number;
    begin
    for i in c1
    loop
    l_value:=i.transaction_id;
    if
    l_value is not null
    then
    return('Flag1');
    else
    return('Flag2');
    end if;
    end loop;
    end;
    end xx_transcation_pkg;
    and my trigger is
    CREATE OR REPLACE TRIGGER TEST_RL
    BEFORE DELETE OR INSERT OR UPDATE
    ON PER_ANALYSIS_CRITERIA REFERENCING NEW AS N OLD AS O
    FOR EACH ROW
    declare
    p_person_id number;
    v_id_flex_num number;
    l_flag varchar2(100);
    begin
    v_id_flex_num := (:n.ID_FLEX_NUM);
    if
    v_id_flex_num=50430
    then
    p_person_id:=(:n.segment30);
    begin
    select xx_transcation_pkg.GET_TRANS(p_person_id) into
    l_flag from dual ;
    end;
    if
    l_flag='Flag1' then
    raise_application_error(-20002,'Your Previous Loan Application is pending for Approval');
    end if;
    end if;
    end TEST_RL;
    Now my problem is
    This Trigger is not working in the scenarios
    i) suppose person applies for a loan today and once again applies the same loan without changing anydata in the fileds then trigger is not validating.. transacation is taking place..
    eg:- person:- xx
    loan amount:-200
    click on submit it goes to approver
    second time person:- xx
    loan amount:- 200
    click on submit it goes to approver
    Trigger is working in the scenarios
    eg :- person:- xx
    loan amount :- 200
    click on submt it goes to approver
    second time person:- xx
    loan amount :- 210
    click on submit ( error message :- Your Previous Loan Application is pending for approval).
    Can anyone help me out, how to handle this
    Thanks in advnace

    Okay let me give some recommendations.
    I would suggest you don't use a database trigger. Triggers can mask unhandled exceptions (making it difficult to debug), aren't aware of p_validate architecture in HRMS APIs, can be easily accidentally disabled, and function at a level much lower than the 'business process' layer that you're interested in.
    The recommended (and supported) way to add custom validation in Oracle HRMS is to use API User Hooks. Your use-case is perfect for API User Hooks. The hr_sit_api package has an API for both create_sit and update_sit. Both of these APIs have 'before' and 'after' user hooks.
    If I've understood your requirements (and I'm still not sure I do completely), the following approach could work:
    a) Implement a 'before' hook on hr_sit_api.update_sit.
    b) In this hook add a check to see if the current p_person_analysis_id is being updated in hr_api_transactions. You'll also need to check the timing of what happens when the final approver approves: if the hr_api_transactions row still exists at the time the API is called to commit the update your hook will raise the same error. I have a feeling the hr_api_transaction data is already removed at this point but just one for you to check.
    c) If it is currently being updated, raise the error (use fnd_message.set_name and fnd_message.raise_error)
    This will prevent the user from updating the SIT if an update is already pending.

  • SIT API for Arabic Data

    Dear All,
    i am facing problam in uploading the arabic data to SIT throw API. when i import the data from excel to staging table. the arabic text is showing as question marks. if i upload throw SIT API the same question marks are showing in SIT front end screen.
    Can you help me how to solve this issue.
    Regards
    Sai
    Edited by: `sai on Nov 10, 2011 10:05 AM

    Hi Hussein,
    Applicaiton: 12.0.6
    Database: 10.2.0.4.0
    Character Set: UTF8
    I am using hr_sit_api.update_sit.
    In excel i have arabic Data. i have imported to the staging table. In Staging table the arabic text is showing as question markts.
    I have uploaded the same Data form staging table to Oracle tables. It is uploaded successfully. After that i went and see the data from front end in SIT screen.
    The data is showing as same question marks.
    I want to see the arabic text in Staging tables. if arabic text is came in staging tables. then the same data will move to oracle tables.
    Regards
    Sai

  • Format char to decimal

    Hello,
    I can't find a way to add a decimal format to a varchar obtaining again a varchar, for example I have 100 (varchar) and I need 100.00 (varchar). I can' do
    trim(TO_CHAR(TO_NUMBER(p_segment7),'9999999990D99'))
    beacuse my procedure refuses it whit char to number error. Can anyone help me?
    Thanks in advance
    Diego

    Here the code of the procedure:
    PROCEDURE UPDATE_BS_SIT (
    p_segment1 IN per_analysis_criteria.segment1%TYPE DEFAULT Hr_Api.g_varchar2,
    p_segment2 IN per_analysis_criteria.segment2%TYPE DEFAULT Hr_Api.g_varchar2,
    p_segment3 IN per_analysis_criteria.segment3%TYPE DEFAULT Hr_Api.g_varchar2,
    p_segment4 IN per_analysis_criteria.segment4%TYPE DEFAULT Hr_Api.g_varchar2,
    p_segment5 IN per_analysis_criteria.segment5%TYPE DEFAULT Hr_Api.g_varchar2,
    p_segment6 IN per_analysis_criteria.segment6%TYPE DEFAULT Hr_Api.g_varchar2,
    p_segment7 IN per_analysis_criteria.segment7%TYPE DEFAULT Hr_Api.g_varchar2,
    p_segment8 IN per_analysis_criteria.segment8%TYPE DEFAULT Hr_Api.g_varchar2,
    p_segment9 IN per_analysis_criteria.segment9%TYPE DEFAULT Hr_Api.g_varchar2,
    p_segment10 IN per_analysis_criteria.segment10%TYPE DEFAULT Hr_Api.g_varchar2,
    p_segment11 IN per_analysis_criteria.segment11%TYPE DEFAULT Hr_Api.g_varchar2,
    p_segment12 IN per_analysis_criteria.segment12%TYPE DEFAULT Hr_Api.g_varchar2,
    p_segment13 IN per_analysis_criteria.segment13%TYPE DEFAULT Hr_Api.g_varchar2,
    p_segment14 IN per_analysis_criteria.segment14%TYPE DEFAULT Hr_Api.g_varchar2,
    p_segment15 IN per_analysis_criteria.segment15%TYPE DEFAULT Hr_Api.g_varchar2,
    p_segment16 IN per_analysis_criteria.segment16%TYPE DEFAULT Hr_Api.g_varchar2,
    p_segment17 IN per_analysis_criteria.segment17%TYPE DEFAULT Hr_Api.g_varchar2,
    p_person_analysis_id IN per_person_analyses.person_analysis_id%TYPE,
    p_date_from IN per_person_analyses.date_from%TYPE,
    p_date_to IN per_person_analyses.date_to%TYPE,
    po_ret_code OUT VARCHAR2) IS
    v_analysis_criteria_id per_analysis_criteria.analysis_criteria_id%TYPE;
    v_object_version_number per_person_analyses.object_version_number%TYPE;
    ret_code VARCHAR2(250);
    e_general_error EXCEPTION;
    BEGIN
    -- recupero OVN dalla sit
    BEGIN
    SELECT object_version_number
    INTO v_object_version_number
    FROM per_person_analyses
    WHERE person_analysis_id = p_person_analysis_id;
    EXCEPTION
    WHEN OTHERS THEN
    htp.p('error in UPDATE_BS_SIT while retrieving OVN');
    RETURN;
    END;
    BEGIN
    Hr_Sit_Api.update_sit
    ( p_person_analysis_id => p_person_analysis_id
    , p_pea_object_version_number => v_object_version_number
    , p_date_from => p_date_from
    , p_date_to => p_date_to
    , p_segment1 => p_segment1
    , p_segment2 => p_segment2
    , p_segment3 => p_segment3
    , p_segment4 => p_segment4
    ---,p_segment5 => p_segment5
    , p_segment5 => LTRIM(TO_CHAR(TO_NUMBER(p_segment5),'9999999990D99'))
    ---, p_segment6 => p_segment6
              ,p_segment6 => LTRIM(TO_CHAR(TO_NUMBER(p_segment6),'9999999990D99'))
    ---- , p_segment7 => p_segment7
         ,p_segment7 => LTRIM(TO_CHAR(TO_NUMBER(p_segment7),'9999999990D99'))
    , p_segment8 => p_segment8
    , p_segment9 => p_segment9
    , p_segment10 => p_segment10
    , p_segment11 => p_segment11
    , p_segment12 => p_segment12
    , p_segment13 => p_segment13
    , p_segment14 => p_segment14
    , p_segment15 => p_segment15
    , p_segment16 => p_segment16
    , p_segment17 => p_segment17
    , p_analysis_criteria_id => v_analysis_criteria_id
    EXCEPTION
    WHEN OTHERS THEN
    po_ret_code := 'API Error: Update SIT BS ' || po_ret_code || CHR(10)
    ||TO_CHAR(SQLCODE)||' - '||SUBSTR(SQLERRM,1,200)
    ||' - p_person_analysis_id ='|| p_person_analysis_id
    ||' - V_ANALYSIS_CRITERIA_ID = '||v_analysis_criteria_id
    ||' - V_OVN = '|| v_object_version_number;
    RETURN; -- RAISE e_general_error;
    END;
    po_ret_code := 'OK';
    RETURN;
    EXCEPTION
    WHEN e_general_error THEN
    po_ret_code := 'Error (UPDATE_BS_SIT): ' || ret_code;
    RETURN;
    WHEN OTHERS THEN
    po_ret_code := 'ERROR (UPDATE_BS_SIT): '||TO_CHAR(SQLCODE)||' - '||SUBSTR(SQLERRM,1,200);
    RETURN;
    END UPDATE_BS_SIT;
    Thanks

  • Error while running hr_sit_api.create_sit API - FLEX-INVALID NUMBER

    I am writing an Inbound interface code to import the SIT info. When I tested the  hr_sit_api.create_sit API, it gave me an error ORA-20001: FLEX-INVALID NUMBER. I made sure that the flex id number and id_flex_structure_code are correct. But, I am unable to create a record. Please help me if you have any idea.
    Here is my code:
    DECLARE
      v_count                     INTEGER := 0;
      n_object_version_number     INTEGER;
      n_analysis_criteria_id      INTEGER;
      n_person_analysis_id        INTEGER;
      n_pea_object_version_number INTEGER;
      n_id_flex_num               INTEGER;
    BEGIN
      SELECT fi.id_flex_num
      INTO n_id_flex_num
      FROM fnd_id_flex_structures_vl fi
      WHERE (fi.id_flex_structure_code = 'US_TAX_INFO')
      AND (application_id = 800)
      AND (id_flex_code = 'PEA');
      LOOP
        BEGIN
          ---reset the variables here
          n_object_version_number     := NULL;
          n_analysis_criteria_id      := NULL;
          n_person_analysis_id        := NULL;
          n_pea_object_version_number := NULL;
          hr_sit_api.create_sit(p_person_id        => 33881
                               ,p_business_group_id    => fnd_profile.VALUE('PER_BUSINESS_GROUP_ID')
                               ,p_id_flex_num               => n_id_flex_num
                               ,p_effective_date           => SYSDATE
                               ,p_date_from                 => SYSDATE
                               ,p_date_to                     => NULL
                               ,p_segment1                  => 'X'
                               ,p_segment2                  => 'OH'
                               ,p_segment3                  => 2000
                               ,p_analysis_criteria_id    => n_analysis_criteria_id
                               ,p_person_analysis_id    => n_person_analysis_id
                               ,p_pea_object_version_number => n_pea_object_version_number);
          dbms_output.put_line('Migrated SIT with n_analysis_criteria_id=>' ||
                               n_analysis_criteria_id);
        EXCEPTION
          WHEN OTHERS THEN
            --need to log error here
            dbms_output.put_line('Exception ' || SQLERRM);
        END;
        EXIT; --in this case just one record
      END LOOP;
      COMMIT;
    END;

    Are you sure you're passing the correct segment values ?
    Please make sure the datatypes of the segments match with the values you're passing.
    Also make sure you've initialised your session before running the API.

  • SSHR : Notification Shows Multi Records For The Same SIT (2 Problems)

    Dear All ,
    I created SIT Approval Cycle , the employee is applying for SIT record and the manager is approving , the problem 1 is : the manager is opening the notification , he will find the applied data and the previous data as Multi Records in the same page for the same SIT ,, the problem 2 is when the manager press Update action link , the next page will appear (Continue or Revert) if he will press continue ,error page will appear for him and the exception details is :
    Exception Details.
    oracle.apps.fnd.framework.OAException: java.sql.SQLException: ORA-01086: savepoint 'VALIDATE_TRANSACTION' never established
    ORA-06512: at "APPS.HR_TRANSACTION_SS", line 1595
    ORA-20001:
    ORA-06512: at line 1
         at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:975)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:211)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:133)
         at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:784)
         at oracle.apps.pqh.selfservice.concurrenttxn.webui.ConcTxnWebUtils.redirectToEditUrl(ConcTxnWebUtils.java:450)
         at oracle.apps.pqh.selfservice.common.webui.EffectiveDateCO.processRequest(EffectiveDateCO.java:266)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2335)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1734)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
         at oa_html._OA._jspService(_OA.java:85)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:479)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01086: savepoint 'VALIDATE_TRANSACTION' never established
    ORA-06512: at "APPS.HR_TRANSACTION_SS", line 1595
    ORA-20001:
    ORA-06512: at line 1
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:589)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1972)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1119)
         at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2185)
         at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2059)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2976)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:656)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:734)
         at oracle.apps.pqh.selfservice.common.server.CommonServerUtils.validateTransaction(CommonServerUtils.java:486)
         at oracle.apps.pqh.selfservice.common.server.CommonServerUtils.validateTransaction(CommonServerUtils.java:453)
         at oracle.apps.per.selfservice.common.server.CommonAMImpl.validateTransaction(CommonAMImpl.java:3011)
         at java.lang.reflect.Method.invoke(Native Method)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:190)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:133)
         at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:784)
         at oracle.apps.pqh.selfservice.concurrenttxn.webui.ConcTxnWebUtils.redirectToEditUrl(ConcTxnWebUtils.java:450)
         at oracle.apps.pqh.selfservice.common.webui.EffectiveDateCO.processRequest(EffectiveDateCO.java:266)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2335)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1734)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
         at oa_html._OA._jspService(_OA.java:85)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:479)
    java.sql.SQLException: ORA-01086: savepoint 'VALIDATE_TRANSACTION' never established
    ORA-06512: at "APPS.HR_TRANSACTION_SS", line 1595
    ORA-20001:
    ORA-06512: at line 1
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:589)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1972)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1119)
         at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2185)
         at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2059)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2976)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:656)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:734)
         at oracle.apps.pqh.selfservice.common.server.CommonServerUtils.validateTransaction(CommonServerUtils.java:486)
         at oracle.apps.pqh.selfservice.common.server.CommonServerUtils.validateTransaction(CommonServerUtils.java:453)
         at oracle.apps.per.selfservice.common.server.CommonAMImpl.validateTransaction(CommonAMImpl.java:3011)
         at java.lang.reflect.Method.invoke(Native Method)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:190)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:133)
         at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:784)
         at oracle.apps.pqh.selfservice.concurrenttxn.webui.ConcTxnWebUtils.redirectToEditUrl(ConcTxnWebUtils.java:450)
         at oracle.apps.pqh.selfservice.common.webui.EffectiveDateCO.processRequest(EffectiveDateCO.java:266)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2335)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1734)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
         at oa_html._OA._jspService(_OA.java:85)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:479)
    Thanks for your urgent help :)
    Edited by: user6781803 on 30/12/2009 07:12 م

    There's a few bugs in this area. I'm not sure what release you're on but have you looked at:
    After We Fill And Submit SIT's An Error Occurs - ORA-01086: savepoint 'WF_SAVEPOINT' (Doc ID 735231.1)
    Errors ORA-20001 And ORA-06512 Using HR_SIT_API (Doc ID 111263.1)
    (this one shows you can get savepoint errors if there are problems with the DFF setup)

  • FLEX-NO DYNAMIC INSERTS:

    Friends,
    While executing the create_sit api with 4 segments this error is coming
    'FLEX-NO DYNAMIC INSERTS:' Allow Dynamic Insert Checkbox also checked only... any clarifications?
    Hr_Sit_Api.create_sit ( p_validate => FALSE
    ,p_person_id => v_person_id
    ,p_business_group_id => 82
    ,p_id_flex_num => v_id_flex_num
    ,p_effective_date => TRUNC(SYSDATE)
    ,p_date_from => TRUNC(SYSDATE)
    ,p_segment1 => P_CASH_ADVANCE
    ,p_segment2     => P_SALARY_ADVANCE
              ,p_segment3     => P_CASH_IMPREST
              ,p_segment4     => P_TOTAL_AMOUNT
    ,p_analysis_criteria_id => v_analysis_criteria_id
    ,p_person_analysis_id => v_person_analysis_id
    ,p_pea_object_version_number => p_pea_object_version_number
    Regards
    Mano

    Post in e-Business Suite Forum
    http://forums.oracle.com/forums/category.jspa?categoryID=3

  • FELX-SSV EXCEPTION Error while creating SIT through concurrent program

    I am trying to create an SIT through concurrent program using API with all hard coded values for all API parameters, I am getting FLEX-SSV Exception error but the same code is working fine in TOAD.
    Procedure :-
    CREATEORREPLACEPROCEDURE XX_ABSENCE_TEST
    P_ERR_BUF OUTVARCHAR2,
    P_RETCODE OUTNUMBER
    IS
    L_ANALYSIS_CRITERIA_ID        NUMBER;
    L_OUT_PERSON_ANALYSIS_ID      NUMBER;
    L_PEA_OBJECT_VERSION_NUMBER   NUMBER;
    L_ERR_MESG varchar2(3000);
    BEGIN
    INSERTINTOXX_DEBUGVALUES('Starting',0,0);
    HR_SIT_API.CREATE_SIT
    (P_VALIDATE                       =>FALSE,
    P_PERSON_ID                      =>59021,
    P_BUSINESS_GROUP_ID              =>3036,
    P_ID_FLEX_NUM                    =>50320,
    P_EFFECTIVE_DATE                 =>'02-APR-15',
    P_DATE_FROM                      =>'02-APR-15',
    P_SEGMENT1                       =>'Annual Leave',
    P_SEGMENT3                       =>'02-APR-15',
    P_SEGMENT5                       =>'05-APR-15',
    P_SEGMENT10                      =>59021,--I.PERSON_ID,
    P_SEGMENT15                      =>'02-APR-15',
    P_ANALYSIS_CRITERIA_ID           => L_ANALYSIS_CRITERIA_ID,
    P_PERSON_ANALYSIS_ID             => L_OUT_PERSON_ANALYSIS_ID,
    P_PEA_OBJECT_VERSION_NUMBER      => L_PEA_OBJECT_VERSION_NUMBER
    INSERTINTOXX_DEBUGVALUES('Created',NULL,NULL);
    COMMIT;
    EXCEPTION
    WHENOTHERSTHEN
    L_ERR_MESG :=
                                 L_ERR_MESG || SUBSTR(SQLERRM,1,250)
                                 || CHR(10);
    INSERTINTOXX_DEBUGVALUES('Exception',L_ERR_MESG,NULL);
    commit;
    END;
    Regards,
    Pradeep

    It looks like more of an issue with connecting to essbase, usually "java.lang.UnsatisfiedLinkError: no HspEssbaseEnv in java.library.path" means planning has not been installed or deployed correctly, what OS is it running on?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Creating SIT from web AID

    I am using the following package by using web adi but i am getting the following error
    ORA-20001: The Person ID that you have entered does not exist.
    while this person exist as a employee, and from query it work fine
    CREATE OR REPLACE PACKAGE BODY APPS.XX_DOCUMENT_INSERT
    IS
    PROCEDURE XXPRODOC(P_EMPNUMBER IN NUMBER
    ,P_DOC_REF IN VARCHAR2
    ,P_DOC_TYPE IN VARCHAR2
    ,P_DOCREQ_DATE IN VARCHAR2
    ,P_DOCTRA_DATE IN VARCHAR2
    ,P_OUTDOC_REF IN NUMBER
    ,P_ADDRESSTO IN NUMBER
    ,P_APPROVBY IN NUMBER
    ,P_EMP_INTNOTE IN VARCHAR2
    ,P_ADDIT_COMM IN VARCHAR2)
    IS
    BEGIN
    DECLARE
    v_count NUMBER := 0;
    n_object_version_number NUMBER;
    n_analysis_criteria_id NUMBER;
    n_person_analysis_id NUMBER;
    n_pea_object_version_number NUMBER;
    n_id_flex_num NUMBER;
    P_PERSONID NUMBER;
    p_business_group NUMBER;
    err_num NUMBER;
    err_msg VARCHAR2(500);
    BEGIN
    SELECT fi.id_flex_num
    INTO n_id_flex_num
    FROM fnd_id_flex_structures_vl fi
    WHERE fi.id_flex_structure_code = 'XX_DOCUMENT_REQUEST'
    AND application_id = 800
    AND id_flex_code = 'PEA';
    SELECT PERSON_ID
    INTO P_PERSONID
    FROM PER_ALL_PEOPLE_F
    WHERE TRUNC(SYSDATE) BETWEEN EFFECTIVE_START_DATE AND EFFECTIVE_END_DATE
    AND EMPLOYEE_NUMBER=P_EMPNUMBER;
    insert into xx_message VALUES(1,P_EMPNUMBER);
    insert into xx_message VALUES(2,P_PERSONID);
    insert into xx_message values(3,P_DOC_TYPE);
    insert into xx_message values(4,n_id_flex_num);
    p_business_group :=81;
    -- LOOP
    -- BEGIN
    ---reset the variables here
    n_object_version_number := NULL;
    n_analysis_criteria_id := NULL;
    n_person_analysis_id := NULL;
    n_pea_object_version_number := NULL;
    hr_sit_api.create_sit
    p_validate => false
    ,p_person_id => P_PERSONID
    ,p_business_group_id => 81
    ,p_id_flex_num => n_id_flex_num
    ,p_effective_date => sysdate
    ,p_date_from => sysdate
    ,p_date_to => NULL
    ,p_segment1 => P_DOC_REF
    ,p_segment2 => P_DOC_TYPE
    ,p_segment3 => to_char(to_date(P_DOCREQ_DATE,'mm/dd/yyyy'))
    ,p_segment4 => to_char(to_date(P_DOCTRA_DATE,'mm/dd/yyyy'))
    ,p_segment5 => P_OUTDOC_REF
    ,p_segment6 => P_ADDRESSTO
    ,p_segment7 => P_APPROVBY
    ,p_segment8 => P_EMP_INTNOTE
    ,p_segment9 => P_ADDIT_COMM
    ,p_analysis_criteria_id => n_analysis_criteria_id
    ,p_person_analysis_id => n_person_analysis_id
    ,p_pea_object_version_number => n_pea_object_version_number
    --dbms_output.put_line ('Migrated SIT with n_analysis_criteria_id=>'||n_analysis_criteria_id);
    -- v_count := v_count + 1;
    -- IF MOD(v_count,50) = 0
    -- THEN
    --do a commit for each 50 records during migration
    -- COMMIT;
    -- END IF;
    EXCEPTION
    WHEN OTHERS THEN
    err_num := SQLCODE;
    err_msg := SUBSTR(SQLERRM, 1, 100);
    INSERT INTO XX_MESSAGE VALUES (err_num, err_msg);
    --END;
    EXIT; in this case just one record
    -- END LOOP;
    --COMMIT;
    END;
    END XXPRODOC;
    END XX_DOCUMENT_INSERT;

    Tour code seems fine, so I would investigate on security issue.
    Try yo attach the Web ADI to Global Super HRMS Manager (or any unrestricted responsibility) and check if it's working from there.

Maybe you are looking for

  • How to populate query multiple data returned as arrraylist?

    I am new to JSP and likes to know as mentioned in the subject. There are total 3 files. createUser.jsp -> Here I have to pupulate TITLE form field drop-down. TitleDAO.jsp -> Business logic has written to get DB records of titles. TitleBean.jsp -> get

  • HT1430 Need to reset Ipad but don't want to loose data

    Nedd help with the above

  • SQL Developer 3.0.04 Trace Errors

    I'm trying to use SQL Developer to format a .trc file that was generated on the DB server but it doesn't appear to be able to parse the file correctly and it's causing a large number of errors to be written to the 'Logging Page' tab. Some examples ar

  • Using a slider to change line thickness

    Hi, This is a continuation of a project I have been posting over the last week. My latest problem is trying to make a slider that changes the line thickness in a drawing app that I would to share with my students. When moved from left to right a circ

  • ALV report for Read_text

    hi all, I am developing a ALV report which 2 fields and 1 long text. so the output is 3 column in ALV report ( VBELN ,   MATNR   TEXT type SO_TEXT255 ) say the 2 fields are taken from table VBRP and the long text  taken from the FM READ_TEXT. CALL FU