Error while approving time - Portal crashes or hangs up

Hello,
We have this one end user who approves time for a lot of people (>150). When trying to approve time as this user, portal crashes or hangs up. This user has approximately 5000 individual items combined that user needs to approve
Steps
1) Click on "Time to be approved" in MSS - PASS
2) A screen pops up and after about 7 minutes or so, user gets time to be approved for each employee by week. - PASS
3) User will then click on "Review" button at the bottom of the pop -up.
4) The individual item screen that shows time for each day where user can approve or reject is not coming up. Browser basically crashes or just hangs up.
Any ideas or suggestions is greatly appreciated.
Thanks.

It seems like this user may be approving time not as a supervisor but more as an HR payroll/personnel type of person. If this is the case and they are not really the supervisor of >150 people, I would recommend having the user run the report for approval in the backend (CAPS or CAT4 transaction).
If they insist on approving through MSS or if they really are a casual user/supervisor, then it seems they will need more PC memory to handle that much processing.
Also, we partitioned the CATSDB table and the approval reports runs in seconds now instead of minutes. We partitioned by year. This may help you also but doubtful since they are trying to approve so many employees at once.
Mark.

Similar Messages

  • Error while approving time sheet "Internal Error Occurred"

    1) Time Sheet entry done for an employee b/w 3rd-5th Oct 2011, while approving it through T code - CATS_APPR_LITE, its giving the error " INTERNAL ERROR OCCURRED" !!!
    When the error is expanded, the below details have come up.
    Internal error occurred
    Message no. LR030
    Diagnosis
    The system has detected an internal program error which should not have occurred in a normal program run.
    Procedure
    To safeguard your data, notify the SAP hotline.
    2) Please let us know, is there any other procedure or way to approve the time sheets ???
    Reg,
    Hrishi - 9945607822

    Note 1315885 - CATS: Internal Error(LR030), in transaction CATS_APPR_LITE
    Refer and apply the mentioned note if applicable.
    Regards
    Sreenivas

  • Error while approving time sheet in ESS using workflow

    Hi Experts,
    We have created a data entry profile for ESS time recording and in that we have used the  standard task id TS20000460 for SAP workflow with auto determination of recipient. Whenever employee enters the time and save it the workflow is trigring and its going for manager's approval. But however when manager trys to approve it's throwing below error.
    Read of object with ID portal_content/com.sap.pct/srvconfig/com.sap.pct.erp.srvconfig.mss/com.sap.pct.erp.srvconfig.CatsApproval/com.sap.pct.erp.srvconfig.fpmapplications/com.sap.pct.erp.srvconfig.ManagerApprove failed.
    Read of object with ID portal_content/com.sap.pct/srvconfig/com.sap.pct.erp.srvconfig.mss/com.sap.pct.erp.srvconfig.CatsApproval/com.sap.pct.erp.srvconfig.fpmapplications/com.sap.pct.erp.srvconfig.ManagerApprove failed.
    I have maintained below mentioned configuration.
    I have created a Approval profile and assigned the same to managers using CATS_APPR_PROF user parameter.
    Please help in rectfying the problem
    Regards,
    Koutilya A.K

    check in the portal if the ID's exist
    Also, check if the manager has authorization's in the portal for the objects

  • Error while approving time through CAPS

    Hi Experts,
    We have an issue where the user is migrating from old (4.6C) system to  new (ECC6.0) system
    The migration is happening in phases.
    There are some employees moved during June 2008. Who have still unapproved hrs left during (old system) March 2008 to May 2008 the hours are non productive hours and are need manual approval of the manager.
    Now the manager wants to approve those records through CAPS transaction in old system. When he executes CAPS system says no data found (but there are unapproved hours when checked in CADO)
    and when click on back arrow gets the following error message
    "Personnel numbers skipped by the database driver"
    "Reason 1: insuffcient authorization, no. skipped personnel nos: 1"
    When we have investigated the same and found that approver has got all the necessary authentrization to approve. He got CATS administrator authorisation.
    But the same when he tries to approve records for September 2008 migrated he can approve the same.
    I herd that there is some grace period for approving the old records. Do any one has idea on grace period.
    Your help in this is highly appreciated.
    Thanks in advance,
    Prakash B.

    Note 1315885 - CATS: Internal Error(LR030), in transaction CATS_APPR_LITE
    Refer and apply the mentioned note if applicable.
    Regards
    Sreenivas

  • Error while approving work item

    Hi All,
    I am getting error while approving a claim request; error is:
    error while inserting claim record xxxxxxx in cluster for employee xxxxxxxx
    This does not happen always, some time I am able to approve and sometime i got the error.
    I am using same set of user ids and same perspnal nos; does this thing matters and causing this issue or this should not cause this problem.
    Please advice!
    Thanks and Regards,
    Honey

    Hi Honey,
    Could you please check note number: 1374072 which is for the PY-IN-PS.  I don't think that this warning message that you are seeing is applicable to the UWL or generated from the UWL component.  Error messages like this are usually generated from the ABAP system and more specifically from the application area.  Another hint would be to check ST22 to see if there is a short dump occuring in the backend system.
    According to the note, this error will be thrown when:
    "Error on Approver Screen stating "Error while inserting claim
    record <Reference Number> in cluster for employee <Employee
    Number>". This happens only when the approver tries approving the
    request almost immediately after the employee has submitted the
    request."
    I hope that this information is helpful to you.
    Regards,
    Beth Maben
    EP - Senior Support Consultant
    AGS Primary Support, Business Suite & Technology
    Please see the UWL Wiki @
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/bpx/uwl+faq  ***

  • Error while loading SAP Portal

    Can anybody help me to resolve the issue of installation of SAP Portal. This is a fresh installation and I got the following error while installing the portal.
    I will appreciate any body who helps me to resolve the issue.
    Info: Begin of log messages of the target system:
    10/10/21 19:52:31 -  ***********************************************************
    10/10/21 19:52:32 -  Start updating EAR file...
    10/10/21 19:52:32 -  start-up mode is lazy
    10/10/21 19:52:32 -  EAR file updated successfully for 109ms.
    10/10/21 19:52:32 -  Start deploying ...
    10/10/21 19:52:32 -  EAR file uploaded to server for 79ms.
    10/10/21 19:52:32 -  ERROR: Not deployed. Deploy Service returned ERROR:
                         java.rmi.RemoteException: Cannot deploy application sap.com/com.sapportals.dqe.beans..
                         Reason: Exception during generation of components of application sap.com/com.sapportals.dqe.beans in container EJBContainer.; nested exception is:
                              com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception during generation of components of application sap.com/com.sapportals.dqe.beans in container EJBContainer.
                              at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:477)
                              at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1555)
                              at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:291)
                              at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
                              at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119)
                              at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
                              at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
                              at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                              at java.security.AccessController.doPrivileged(Native Method)
                              at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                              at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
                         Caused by: com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception during generation of components of application sap.com/com.sapportals.dqe.beans in container EJBContainer.
                              at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:609)
                              at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:365)
                              at com.sap.engine.services.deploy.server.application.DeploymentTransaction.begin(DeploymentTransaction.java:296)
                              at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:290)
                              at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:321)
                              at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3028)
                              at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:462)
                              ... 10 more
                         Caused by: java.lang.NoClassDefFoundError: com/metamatrix/platform/service/api/exception/ServiceException
                              at java.lang.Class.getDeclaredConstructors0(Native Method)
                              at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
                              at java.lang.Class.getConstructors(Class.java:865)
                              at com.sap.engine.services.ejb.deploy.verifier.BeanClassCheck.check(BeanClassCheck.java:33)
                              at com.sap.engine.services.ejb.deploy.verifier.session.SessionBeanCheck.check(SessionBeanCheck.java:51)
                              at com.sap.engine.services.ejb.deploy.verifier.Verifier.checkBean(Verifier.java:82)
                              at com.sap.engine.services.ejb.deploy.verifier.Verifier.check(Verifier.java:46)
                              at com.sap.engine.services.ejb.deploy.DeployAdmin.generate(DeployAdmin.java:258)
                              at com.sap.engine.services.ejb.EJBAdmin.deploy(EJBAdmin.java:2057)
                              at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:594)
                              ... 16 more
                         For detailed information see the log file of the Deploy Service.
    10/10/21 19:52:32 -  ***********************************************************
    Info: End of log messages of the target system.
    Info: ***** End of SAP J2EE Engine Deployment (J2EE Application) *****
    Error: Aborted: development component 'com.sapportals.dqe.beans'/'sap.com'/'SAP AG'/'609.20041012204607.0000':
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application sap.com/com.sapportals.dqe.beans..
    Reason: Exception during generation of components of application sap.com/com.sapportals.dqe.beans in container EJBContainer.; nested exception is:
         com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception during generation of components of application sap.com/com.sapportals.dqe.beans in container EJBContainer.
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Info: SDM configuration: Do not automatically start/stop J2EE Engine. Do not restore state of J2EE Engine now.
    Error: -
    At least one of the Deployments failed -
    Info: Summarizing the deployment results:
    Error: Aborted: G:\SoftWare\netweaver\Identified\SAPNETWEAVER041DVD_ADDON\EP-KMC\DQE\SDA\J2EE\com.sapportals.dqe.beans.ear
    Processing error. Return code: 4
    Error: Processing error. Return code: 4
    ERROR 2010-10-21 19:52:33
    MUT-02041  SDM call of deploySdaList ends with returncode 4. See output of logfile C:\Program Files\sapinst_instdir\NW04SR1\EP\EP\callSdmViaSapinst.log.

    Hi,
    I believe VISTA is not a recomended OS for SAP Portal, I tried for a week to install and finally gave up
    check this
    Adventures with NetWeaver Portal 7 - Vista Installation
    jo
    Edited by: Ravi Joseph on Dec 12, 2008 11:51 AM

  • Error while installing weblogic portal

    I am getting the following error while installing weblogic portal 10.3.2 generic.jar on existing weblogic server 10.3.2 generic.jar installation on RHEL5 with jrockit mission control 3.1.2 as jdk.
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at com.bea.plateng.common.ui.console.DelegateConsoleWidget.invokeWidgetCallback(DelegateConsoleWidget.java:200)
    at com.bea.plateng.wizard.console.tasks.ConsoleInteractTask2.onLeave(ConsoleInteractTask2.java:439)
    at com.bea.plateng.wizard.console.tasks.ConsoleInteractTask2.okNext(ConsoleInteractTask2.java:361)
    at com.bea.plateng.wizard.WizardController.nextTask(WizardController.java:642)
    at com.bea.plateng.wizard.WizardController.run(WizardController.java:519)
    at java.lang.Thread.run(Thread.java:636)
    Caused by: java.lang.NullPointerException
    at java.io.File.<init>(File.java:239)
    at com.bea.plateng.wizard.installer.diskspace.TempDir.<init>(TempDir.java:55)
    at com.bea.plateng.wizard.installer.diskspace.TempDir.getInstance(TempDir.java:41)
    at com.bea.plateng.wizard.installer.helpers.DiskSpaceHelper.checkDiscSpaceForProductInstallation(DiskSpaceHelper.java:255)
    at com.bea.plateng.wizard.installer.helpers.ProductDirHelper.setStoreKeysAndValidateDiskSpace(ProductDirHelper.java:474)
    at com.bea.plateng.wizard.installer.helpers.ProductDirHelper.validateAndSet(ProductDirHelper.java:278)
    at com.bea.plateng.wizard.installer.console.tasks.ProductDirChooserConsoleTask.onLeave(ProductDirChooserConsoleTask.java:235)
    ... 10 more
    anyone please help

    I'm getting this error as well.
    Did you resolve this problem?

  • Error - while deploying to Portal

    Hi,
    I get error while deploying ti portal from Visual Composer. The iView works fine in preview mode. In the log i find error like "com.sapportals.portal.pcd.pl.PlRuntimeException: unexpected SQLException
    Cannot assign a zero-length byte array to host variable 18."
    Please suggest.
    Thanks
    SA

    hi,
    Same problem has been dealt with the solution in this thread
    Portal (EP6) deployment failed
    Regards,
    Ganesh N

  • Error while approving file programmatically

    Hi All,
    I am getting the following error while approving the file(.aspx) programatically which is in the pages library of a subsite in a sitecollection.
    The file pages/abc.aspx has been modified by SHAREPOINT\\system on etc.,
    Please help me regarding this issue.
    Let me know if you have any queries?
    Regards,
    Kumar.

    Hi Hemendra,
    Thanks for your response.
    Plz check the below code and let me know if you need any clarifications?
                      SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite siteColl = new SPSite(strSiteChild)) // connectting to Sub site.
    using (SPWeb Childweb = siteColl.OpenWeb())
    SPList objList = Childweb.Lists["pages"];
    SPDocumentLibrary objLib = null;
    objLib = (SPDocumentLibrary)objList;
    SPFolder rFolder = objLib.RootFolder;
    SPFile objFile = null;
    byte[] byteArr = null;
    String fileName = System.IO.Path.GetFileName(strFile);
    FileStream fileStream = File.OpenRead(strFile);
    // Upload document ROW Research Teams
    SPFile file = objLib.RootFolder.Files[Path.GetFileName(strFile)];
    Childweb.AllowUnsafeUpdates = true;
    file.CheckOut();                                                 
    rFolder.Files.Add(fileName, fileStream, true);                                
    file.CheckIn("Checkin by coding");                                       
    file.Publish("Published");
    System.Threading.Thread.Sleep(1000 * 10);
    file.Approve("Approved");
    file.Update();
    objLib.Update();
    web.Update();
    Childweb.AllowUnsafeUpdates = false;
    Regards,
    Kumar.

  • CFGFWK-60850 Error while installing weblogic portal 10.3.5

    I am getting below error while installing weblogic portal 10.3.5 configuration wizard for creating domain. Please help me resolve this issue.
    OS: Windows 2008 64 bit
    Installable file: portal103_generic.jar
    This is the first weblogic installation.
    Installtion command applied: java -d64 -jar portal103_generic.jar
    Test JDBC data sources.
    Data Source=cgDataSource
    Driver=org.apache.derby.jdbc.ClientDriver
    URL=jdbc:derby://localhost:1527/weblogic_eval;create=true;ServerName=localhost;databaseName=weblogic_eval
    User=WEBLOGIC
    Password=********
    SQL Test=SELECT COUNT(*) FROM SYS.SYSTABLES
    java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect.
    CFGFWK-60850: Test Failed!
    Data Source=cgDataSource-nonXA
    Driver=org.apache.derby.jdbc.ClientDriver
    URL=jdbc:derby://localhost:1527/weblogic_eval;create=true;ServerName=localhost;databaseName=weblogic_eval
    User=WEBLOGIC
    Password=********
    SQL Test=SELECT COUNT(*) FROM SYS.SYSTABLES
    java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect.
    CFGFWK-60850: Test Failed!
    Data Source=p13nDataSource
    Driver=org.apache.derby.jdbc.ClientDriver
    URL=jdbc:derby://localhost:1527/weblogic_eval;create=true;ServerName=localhost;databaseName=weblogic_eval
    User=WEBLOGIC
    Password=********
    SQL Test=SELECT COUNT(*) FROM SYS.SYSTABLES
    java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect.
    CFGFWK-60850: Test Failed!
    Data Source=portalDataSource
    Driver=org.apache.derby.jdbc.ClientDriver
    URL=jdbc:derby://localhost:1527/weblogic_eval;create=true;ServerName=localhost;databaseName=weblogic_eval
    User=WEBLOGIC
    Password=********
    SQL Test=SELECT COUNT(*) FROM SYS.SYSTABLES
    java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect.
    CFGFWK-60850: Test Failed!
    Data Source=portalDataSourceAlwaysXA
    Driver=org.apache.derby.jdbc.ClientDriver
    URL=jdbc:derby://localhost:1527/weblogic_eval;create=true;ServerName=localhost;databaseName=weblogic_eval
    User=WEBLOGIC
    Password=********
    SQL Test=SELECT COUNT(*) FROM SYS.SYSTABLES
    java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect.
    CFGFWK-60850: Test Failed!
    Data Source=portalDataSourceNeverXA
    Driver=org.apache.derby.jdbc.ClientDriver
    URL=jdbc:derby://localhost:1527/weblogic_eval;create=true;ServerName=localhost;databaseName=weblogic_eval
    User=WEBLOGIC
    Password=********
    SQL Test=SELECT COUNT(*) FROM SYS.SYSTABLES
    java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect.
    CFGFWK-60850: Test Failed!
    Why I am getting this error ? How can i resolve this ?
    Edited by: Prajeesh Kumar KM on Feb 25, 2013 12:26 AM

    I'm getting this error as well.
    Did you resolve this problem?

  • Error while running a portal component.

    Hi,
    I am not able to access portal service from an abstract portal component that I created in the same project as the portal service. Here is the error I am getting:
    Portal runtime error.
    "An exception occurred while processing your request. Send the exception ID to your portal administrator.
    Exception ID: 11:45_15/01/09_0068_15350950
    Refer to the log file for details about this exception."
    Here is the portalapp.xml:
    <?xml version="1.0" encoding="utf-8"?>
    <application>
    <application-config/>
    <components>
    <component name="AOSTestComp">
    <component-config>
    <property name="ClassName" value="com.gfc.ume.service.AOSTestComp"/>
    </component-config>
    <component-profile/>
    </component>
    </components>
    <services>
    <service name="OfficeListService">
    <service-config>
    <property name="className" value="com.gfc.ume.service.OfficeListService"/>
    <property name="startup" value="false"/>
    </service-config>
    </service>
    </services>
    </application>
    Here is the code for the service:
    public interface IOfficeListService extends IService
    public static final String KEY = "OfficeListService";
    public String testMyService(String user);
    Here is the code for the component:
    package com.gfc.ume.service;
    import com.sapportals.portal.prt.component.*;
    import com.sapportals.portal.prt.runtime.IPortalRuntimeResources;
    import com.sapportals.portal.prt.runtime.PortalRuntime;
    import com.sapportals.portal.prt.service.IService;
    public class AOSTestComp extends AbstractPortalComponent
    public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
    IPortalRuntimeResources runtimeResources = PortalRuntime.getRuntimeResources();
    IService aService = runtimeResources.getService(IOfficeListService.KEY);
    IOfficeListService myService = (IOfficeListService)aService;
    response.write(myService.testMyService("Longivity"));
    Thanks
    Tony

    Tony,
    this is Java Web Dynpro forum.You already have posted this same question twice in Portal forums. This is third time. please dont do so. We have to keep SDN clean (no redundancy).
    Regards,
    Yogesh Varma

  • Critical error while approving leave

    Hi
    In portal while approving leave i am getting the follwoing error .
    Critical Error
    A critical error has occured. Processing of the service had to be terminated. Unsaved data has been lost.
    Please contact your system administrator.
       The running application consciously caused an abort with short dump., error key: RFC_ERROR_SYSTEM_FAILURE   
    This error is comming only for few employees not for every one.
    Can anybody please let me know the solution for this .
    Thanks and Regards.

    Hi,
    First of all, check the short dump in transaction ST22, you probably find there much more details of the problem.
    secondly, make sure that these users have enough authorisations (do a trace) in backend. They might be missing some RFC call related authoritsation.
    Regards,
    Karri

  • Error while approving Leave request

    Hi,
    I am facing an issue while approving the attendance request of an employee via MSS. The error message comes for the leave request further in the queue.
    Error Message : No read authorization for infotype 2001/5006(Annual Leave) for employee number between 07.06.2010 and 07.06.2010
    Hoping for the early response.
    Thanks!

    I guess there is problem with the managers ID and the authorizations.
    Try to check in SU53 and speak to security team to run the trace and provide the necessary authorizations

  • Error While Run time

    Hi,
    Pls help me to solve my problem. My coding is comple well while run time it showing me the error,
    Fatal Error: The value of attribute "xsi:schemaLocation" associated with an element type "null" must not contain the '<' character.
    The value of attribute "xsi:schemaLocation" associated with an element type "null" must not contain the '<' character.pls help me as soon as possible

    It's not your coding. The XML document which contains that attribute is not well-formed.

  • Error while creating Time Card Using API

    Hello
    I have a requirement to run OTL Interface once day to create/update Time Card in OTL for those datea created on sysdate-1 in Service Module (data will get feeded from Service Module). For example this interface will run on sysdate to create time cards for those data created in the service module on sysdate-1.
    I have some sample data and code I am using but it is erroring out with different errors..Can anybody help me on this
    My Interface should run as expected below and my time card range will be Monday 24-Dec-2012 to Sunday 30-Dec-2012
    Interface Run Date Time Entry to process
    25-Dec-2012 24-Dec-2012 Data
    26-Dec-2012 25-Dec-2012 Data
    CREATE OR REPLACE PROCEDURE main_process (o_errbuf OUT VARCHAR2,
    o_ret_code OUT NUMBER,
    l_chr_from_date IN VARCHAR2,
    l_chr_to_date IN VARCHAR2)
    IS
    l_chr_skip VARCHAR2 (1);
    l_chr_task_exists VARCHAR2 (100);
    l_chr_error_msg VARCHAR2 (4000);
    l_num_tbb_id NUMBER;
    l_num_request_id NUMBER := fnd_global.conc_request_id;
    l_num_login_id NUMBER := fnd_global.login_id;
    l_num_user_id NUMBER := fnd_global.user_id;
    l_num_resp_id NUMBER := fnd_Profile.VALUE ('resp_ID');
    l_num_otl_appl_id CONSTANT NUMBER (3) := 809; -- This is the appl_id for OTL, do not change
    l_chr_proj_attr1 CONSTANT VARCHAR2 (7) := 'Task_Id';
    l_chr_proj_attr2 CONSTANT VARCHAR2 (10) := 'Project_Id';
    l_chr_proj_attr3 CONSTANT VARCHAR2 (16) := 'Expenditure_Type';
    l_chr_proj_attr4 CONSTANT VARCHAR2 (19) := 'Expenditure_Comment';
    l_chr_proj_attr5 CONSTANT VARCHAR2 (23) := 'SYSTEM_LINKAGE_FUNCTION';
    i_num_count NUMBER;
    i_num_rows_inserted NUMBER := NULL;
    l_chr_message fnd_new_messages.MESSAGE_TEXT%TYPE;
    l_chr_hdr_eligible VARCHAR2 (5);
    l_tbl_timecard_info hxc_self_service_time_deposit.timecard_info;
    l_tbl_attributes_info hxc_self_service_time_deposit.app_attributes_info;
    l_tbl_messages hxc_self_service_time_deposit.message_table;
    l_new_timecard_id NUMBER;
    l_new_timecard_ovn NUMBER;
    l_num_time_building_block_id hxc_time_building_blocks.time_building_block_id%TYPE;
    I NUMBER; --PENDING REMOVE
    l_message VARCHAR2 (2000); --PENDING REMOVE
    l_time_building_block_id NUMBER; --PENDING REMOVE
    CURSOR process_line
    IS
    SELECT ROWID ROW_ID, a.*
    FROM xxpowl.xxpowl_hxt_otl_intf a
    WHERE 1 = 1 --a.request_id = l_num_request_id
    AND a.status_flag = 'NEW' -- 'VALID'
    AND a.error_desc IS NULL
    AND a.service_activity_type IS NOT NULL;
    BEGIN
    FND_FILE.PUT_LINE (
    fnd_file.LOG,
    'Entered From Date:'
    || (TO_DATE ( (l_chr_from_date), 'YYYY/MM/DD HH24:MI:SS')));
    FND_FILE.PUT_LINE (
    fnd_file.LOG,
    'Entered To Date:'
    || (TO_DATE ( (l_chr_to_date), 'YYYY/MM/DD HH24:MI:SS')));
    FND_GLOBAL.APPS_INITIALIZE (user_id => l_num_user_id,
    resp_id => l_num_resp_id,
    resp_appl_id => l_num_otl_appl_id);
    BEGIN
    FND_FILE.PUT_LINE (
    fnd_file.LOG,
    'Inserting the data in the custom table XXPOWL_HXT_OTL_INTF');
    INSERT INTO xxpowl.XXPOWL_HXT_OTL_INTF (SR_NUMBER,
    PROJECT_TASK_OWNER,
    PROJECT_TASK_OWNER_PERSON_ID,
    PROJECT_ID,
    PROJECT_TASK_ID,
    ASSIGNEE,
    ASSIGNEE_ID,
    ASSIGNEE_PERSON_ID,
    ASSIGNEE_SUPERVISOR_PERSON_ID,
    TASK_NUMBER,
    PARENT_TASK_NUMBER,
    DEBRIEF_NUMBER,
    DEBRIEF_HEADER_ID,
    DEBRIEF_DATE,
    TASK_ASSIGNMENT_ID,
    DEBRIEF_OBJECT_VERSION_NUMBER,
    DEBRIEF_PER_COMPLETE,
    DEBRIEF_LINE_ID,
    DEBRIEF_PROCESS,
    SERVICE_ACTIVITY,
    SERVICE_ACTIVITY_TYPE,
    INVENTORY_ITEM_ID,
    ITEM,
    BUSINESS_PROCESS_ID,
    DEBRIEF_TRANSACTION_TYPE_ID,
    DEBRIEF_UOM_CODE,
    DEBRIEF_HOURS,
    CONV_DEBRIEF_IN_HOURS,
    DEBRIEF_START_TIME,
    DEBRIEF_END_TIME,
    DEBRIEF_SERVICE_DATE,
    NOTES,
    OTL_ELIGIBLE_FLAG,
    NOTIF_SENT_FLAG,
    NOTIF_ELIGIBLE_FLAG,
    ERROR_DESC,
    STATUS_FLAG,
    INITIAL_NOTIF_SENT_DATE,
    CREATION_DATE,
    CREATED_BY,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    LAST_UPDATE_LOGIN,
    REQUEST_ID,
    INITIAL_REQUEST_ID)
    (SELECT b.incident_number sr_number,
    h.resource_name project_task_owner,
    h.source_id project_task_owner_person_id,
    b.external_attribute_1 project_id,
    b.external_attribute_2 project_task_id,
    jtf_task_utl.get_owner (d.resource_type_code, d.resource_id)
    assignee,
    d.resource_id assignee_id,
    jrre.source_id assignee_person_id,
    paa.supervisor_id assignee_supervisor_person_id,
    c.task_number task_number,
    (SELECT task_number
    FROM jtf_tasks_b z
    WHERE c.parent_task_id = z.task_id)
    parent_task_number,
    a.debrief_number,
    a.debrief_header_id debrief_header_id,
    a.debrief_date debrief_date,
    a.task_assignment_id task_assignment_id,
    a.object_version_number debrief_object_version_number,
    a.attribute1 debrief_per_complete,
    e.debrief_line_id debrief_line_id,
    cbp.name debrief_process,
    cttv.name service_activity,
    DECODE (cttv.attribute1,
    'Y', 'Service-Billable',
    'N', 'Service-Non Billable')
    service_activity_type,
    e.inventory_item_id inventory_item_id, --f.segment1 item,
    (SELECT segment1
    FROM mtl_system_items_b f
    WHERE e.inventory_item_id = f.inventory_item_id
    AND f.organization_id = b.inv_organization_id)
    item, --241 --Mater Org
    e.business_process_id business_process_id,
    e.transaction_type_id debrief_transaction_type_id,
    e.uom_code debrief_uom_code,
    e.quantity debrief_hours,
    (g.conversion_rate * e.quantity) conv_debrief_in_hours,
    e.labor_start_date debrief_start_time,
    e.labor_end_date debrief_end_time,
    e.service_date debrief_service_date,
    (SELECT note_tl.notes
    FROM JTF_NOTES_B NOTE, JTF_NOTES_TL NOTE_TL
    WHERE NOTE.JTF_NOTE_ID = NOTE_TL.JTF_NOTE_ID
    AND NOTE_TL.LANGUAGE = USERENV ('LANG')
    AND NOTE.SOURCE_OBJECT_ID = a.DEBRIEF_HEADER_ID
    AND note.jtf_note_id =
    (SELECT MAX (note1.jtf_note_id)
    FROM JTF_NOTES_B note1
    WHERE NOTE1.SOURCE_OBJECT_ID =
    a.DEBRIEF_HEADER_ID))
    notes,
    'Y',
    'N',
    'X',
    NULL,
    'NEW',
    NULL,
    SYSDATE,
    l_num_user_id,
    SYSDATE,
    l_num_user_id,
    l_num_login_id,
    l_num_request_id,
    l_num_request_id
    FROM csf_debrief_headers a,
    cs_incidents_all_b b,
    jtf_tasks_b c,
    jtf_task_assignments d,
    csf_debrief_lines e, --mtl_system_items_b f,
    mtl_uom_conversions g,
    jtf_rs_resource_extns_vl h,
    cs_business_processes cbp,
    cs_transaction_types_vl cttv --, cs_sr_task_debrief_notes_v notes
    jtf_rs_resource_extns_vl jrre,
    per_all_assignments_f paa
    WHERE a.task_assignment_id = d.task_assignment_id
    AND d.task_id = c.task_id
    AND c.source_object_id = b.incident_id
    AND c.source_object_type_code = 'SR'
    AND a.debrief_header_id = e.debrief_header_id
    AND e.uom_code = g.uom_code
    AND g.uom_class = 'Time'
    AND b.incident_owner_id = h.resource_id(+)
    AND e.business_process_id = cbp.business_process_id
    AND e.transaction_type_id = cttv.transaction_type_id
    AND d.resource_id = jrre.resource_id
    AND jrre.source_id = paa.person_id --= 181
    AND TRUNC (SYSDATE) BETWEEN paa.effective_start_date
    AND paa.effective_end_date
    AND TRUNC (e.last_update_date) BETWEEN TO_DATE (
    (l_chr_from_date),
    'YYYY/MM/DD HH24:MI:SS')
    AND TO_DATE (
    (NVL (
    l_chr_to_date,
    l_chr_from_date)),
    'YYYY/MM/DD HH24:MI:SS')
    AND NOT EXISTS
    (SELECT 1
    FROM xxpowl.XXPOWL_HXT_OTL_INTF old
    WHERE old.debrief_header_id =
    e.debrief_header_id
    AND old.task_number = c.task_number
    AND TRUNC (old.DEBRIEF_SERVICE_DATE) =
    TRUNC (e.SERVICE_DATE)
    AND old.DEBRIEF_TRANSACTION_TYPE_ID =
    e.TRANSACTION_TYPE_ID
    AND old.request_id <> l_num_request_id
    AND old.DEBRIEF_UOM_CODE = e.uom_code
    AND old.DEBRIEF_HOURS = e.quantity));
    i_num_rows_inserted := SQL%ROWCOUNT;
    fnd_file.put_line (fnd_file.LOG,
    'No of rows Inserted:' || i_num_rows_inserted);
    COMMIT;
    EXCEPTION
    WHEN OTHERS
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || 'Error while Inserting debrief lines data into custom table.Error: '
    || SQLERRM
    || '. Exiting the interface without processing further';
    fnd_file.put_line (fnd_file.LOG, l_chr_error_msg);
    ROLLBACK;
    RETURN;
    END;
    FOR process_line_rec IN process_line
    LOOP
    l_chr_error_msg := NULL;
    l_tbl_timecard_info.delete;
    l_tbl_attributes_info.delete;
    l_tbl_messages.delete;
    l_new_timecard_id := NULL;
    l_new_timecard_ovn := NULL;
    l_num_time_building_block_id := NULL;
    l_chr_message := NULL;
    i_num_count := 0;
    l_num_tbb_id := NULL;
    BEGIN
    hxc_timestore_deposit.create_time_entry (
    p_measure => process_line_rec.conv_debrief_in_hours,
    p_day => TO_DATE ( (process_line_rec.debrief_service_date),
    'DD/MM/RRRR'),
    p_resource_id => process_line_rec.assignee_person_id,
    p_comment_text => process_line_rec.notes
    || '....Remove this notes in the code logic....Request Id:'
    || l_num_request_id, --pending lokesh
    p_app_blocks => l_tbl_timecard_info,
    p_app_attributes => l_tbl_attributes_info,
    p_time_building_block_id => l_num_time_building_block_id);
    fnd_file.put_line (
    fnd_file.LOG,
    'Step#1 completed, TIME_BUILDING_BLOCK_ID:'
    || l_num_time_building_block_id);
    EXCEPTION
    WHEN OTHERS
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || '.Error in INSERT API CALL at Step#1 for the debrief line id: '
    || process_line_rec.debrief_line_id
    || '.Error:'
    || SQLERRM;
    END;
    BEGIN
    -- Classify Time
    -- Attribute1
    hxc_timestore_deposit.create_attribute (
    p_building_block_id => l_num_time_building_block_id,
    p_attribute_name => 'Task_Id',
    p_attribute_value => process_line_rec.project_task_id,
    p_app_attributes => l_tbl_attributes_info);
    EXCEPTION
    WHEN OTHERS
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || '.Error in INSERT API CALL at Step#2 for the debrief line id: '
    || process_line_rec.debrief_line_id
    || '.Error:'
    || SQLERRM;
    END;
    BEGIN
    -- Attribute2
    hxc_timestore_deposit.create_attribute (
    p_building_block_id => l_num_time_building_block_id,
    p_attribute_name => 'Project_Id',
    p_attribute_value => process_line_rec.project_id,
    p_app_attributes => l_tbl_attributes_info);
    EXCEPTION
    WHEN OTHERS
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || '.Error in INSERT API CALL at Step#3 for the debrief line id: '
    || process_line_rec.debrief_line_id
    || '.Error:'
    || SQLERRM;
    END;
    BEGIN
    -- Attribute3
    hxc_timestore_deposit.create_attribute (
    p_building_block_id => l_num_time_building_block_id,
    p_attribute_name => 'Expenditure_Type',
    p_attribute_value => 'Service-Billable',
    -- p_attribute_value=> 'Service-Non Billable',
    p_app_attributes => l_tbl_attributes_info);
    EXCEPTION
    WHEN OTHERS
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || '.Error in INSERT API CALL at Step#4 for the debrief line id: '
    || process_line_rec.debrief_line_id
    || '.Error:'
    || SQLERRM;
    END;
    BEGIN
    -- Attribute4
    hxc_timestore_deposit.create_attribute (
    p_building_block_id => l_num_time_building_block_id,
    p_attribute_name => 'Expenditure_Comment',
    p_attribute_value => 'Expenditure Comment created by API',
    p_app_attributes => l_tbl_attributes_info);
    EXCEPTION
    WHEN OTHERS
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || '.Error in INSERT API CALL at Step#5 for the debrief line id: '
    || process_line_rec.debrief_line_id
    || '.Error:'
    || SQLERRM;
    END;
    BEGIN
    -- Attribute5
    hxc_timestore_deposit.create_attribute (
    p_building_block_id => l_num_time_building_block_id,
    p_attribute_name => 'SYSTEM_LINKAGE_FUNCTION',
    p_attribute_value => 'ST',
    p_app_attributes => l_tbl_attributes_info);
    EXCEPTION
    WHEN OTHERS
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || '.Error in INSERT API CALL at Step#6 for the debrief line id: '
    || process_line_rec.debrief_line_id
    || '.Error:'
    || SQLERRM;
    END;
    BEGIN
    hxc_timestore_deposit.execute_deposit_process (
    p_validate => FALSE,
    p_app_blocks => l_tbl_timecard_info,
    p_app_attributes => l_tbl_attributes_info,
    p_messages => l_tbl_messages,
    p_mode => 'SAVE', -- p_mode-> 'SUBMIT', 'SAVE', 'MIGRATION', 'FORCE_SAVE' or 'FORCE_SUBMIT'
    p_deposit_process => 'OTL Deposit Process',
    p_timecard_id => l_new_timecard_id,
    p_timecard_ovn => l_new_timecard_ovn);
    COMMIT;
    hxc_timestore_deposit.log_messages (p_messages => l_tbl_messages);
    IF (l_tbl_messages.COUNT <> 0)
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || '.Error in INSERT API CALL at Step#7 for the debrief line id: '
    || process_line_rec.debrief_line_id
    || '.Error:'
    || SQLERRM
    || '.API Error messages are:';
    i_num_count := l_tbl_messages.FIRST;
    LOOP
    EXIT WHEN (NOT l_tbl_messages.EXISTS (i_num_count));
    l_chr_message :=
    fnd_message.get_string (
    appin => l_tbl_messages (i_num_count).application_short_name,
    namein => l_tbl_messages (i_num_count).message_name);
    fnd_file.put_line (
    fnd_file.LOG,
    (l_tbl_messages (i_num_count).message_name));
    l_chr_error_msg := l_chr_error_msg || l_chr_message || '.';
    i_num_count := l_tbl_messages.NEXT (i_num_count);
    END LOOP;
    END IF;
    EXCEPTION
    WHEN OTHERS
    THEN
    fnd_file.put_line (
    fnd_file.LOG,
    '**** Error.....Inside Exception Block in execute_deposit_process');
    BEGIN
    hxc_timestore_deposit.log_messages (
    p_messages => l_tbl_messages);
    EXCEPTION
    WHEN OTHERS
    THEN
    fnd_file.put_line (
    fnd_file.LOG,
    '*****Error....Inside Exception Block in hxc_timestore_deposit.log_messages.Error:'
    || SQLERRM);
    END;
    l_chr_error_msg :=
    l_chr_error_msg
    || 'Error in INSERT API CALL at Step#7 for the debrief line id: '
    || process_line_rec.debrief_line_id
    || '.Error:'
    || SQLERRM
    || '.API Error messages are:';
    IF (l_tbl_messages.COUNT <> 0)
    THEN
    i_num_count := l_tbl_messages.FIRST;
    LOOP
    EXIT WHEN (NOT l_tbl_messages.EXISTS (i_num_count));
    l_chr_message :=
    fnd_message.get_string (
    appin => l_tbl_messages (i_num_count).application_short_name,
    namein => l_tbl_messages (i_num_count).message_name);
    l_chr_error_msg := l_chr_error_msg || l_chr_message || '.';
    i_num_count := l_tbl_messages.NEXT (i_num_count);
    END LOOP;
    END IF;
    END;
    COMMIT;
    IF l_chr_error_msg IS NOT NULL OR l_new_timecard_id IS NULL
    THEN
    fnd_file.put_line (fnd_file.LOG,
    '***** Error *****' || l_chr_error_msg);
    o_ret_code := 1;
    END IF;
    BEGIN
    fnd_file.put_line (
    fnd_file.LOG,
    'Updating the status of the record in custom table for debrief_line_id:'
    || process_line_rec.debrief_line_id);
    UPDATE xxpowl.XXPOWL_HXT_OTL_INTF
    SET status_flag =
    DECODE (
    l_chr_error_msg,
    NULL, DECODE (
    l_new_timecard_id,
    NULL, 'FAILED',
    DECODE (SIGN (l_new_timecard_id),
    '1', 'SUCESS',
    'FAILED')),
    'FAILED'),
    time_building_block_id = l_new_timecard_id,
    last_update_date = SYSDATE,
    request_id = l_num_request_id,
    last_updated_by = l_num_user_id,
    error_desc = l_chr_error_msg
    WHERE ROWID = process_line_rec.row_id;
    COMMIT;
    EXCEPTION
    WHEN OTHERS
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || '.Error while updating the status to SUCCESS.Error: '
    || SQLERRM;
    END;
    END LOOP; --process_line
    EXCEPTION
    WHEN OTHERS
    THEN
    FND_FILE.PUT_LINE (
    fnd_file.LOG,
    'Unknown/Unhandlled Exception Error......' || SQLERRM);
    o_ret_code := 2;
    END main_process;
    SHOW ERR;
    Error Messages:
    1. Error in INSERT API CALL at Step#7 for the debrief line id: 41011.Error:ORA-00001: unique constraint (HXC.HXC_ROLLBACK_TIMECARDS_PK) violated.
    2. Error in INSERT API CALL at Step#7 for the debrief line id: 41011.Error:ORA-00001: unique constraint (HXC.HXC_LATEST_DETAILS_FK) violated
    Thanks a lot for the help!

    Hello
    We will get this error message when we run this from application other than "Time and Labor Engine". So try to run this concurrent program (if you registered as a conc. program) from Time and Labor Engine application.
    --Lokesh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • How can I buy  an artist lesson without a credit card?

    I want to buy an artist lesson but when I checkout, it requires me to use a credit card. I use a gift card for all my mac purchases but the lesson store won't allow. How can I buy a lesson using an apple gift card instead a creddit card?

  • Need to Merge an Adobe XML file with a normal PDF

    The problem... I have created an order form in Adobe LiveCycle Designer (pre-ES).  The customer's requirements force us to merge their purchase order (a flat standard PDF) with the order form I have created to get the complete PDF to bill with.  Prev

  • HT1689 how to download apps more than 50 MB on my iPad

    how to download apps more than 50 MB on my ipad using cellular network.

  • Users cannot see XServe after an undetermined time

    I have an office with an Xserve G5 with OS X Server 10.5.5 and 10 PowerMac G5 clients with OS X 10.5.5 The Xserve does nothing special except offer and FTP server and share files among the office... each user gets to the server via the left and Finde

  • Unable to install any 3rd party applications

    I have a nokia e61. I have been trying to install 3rd party apps like newsgator, truphone, google maps etc on my phone. It dowloads the applications and immediately thereafter gives me a message 'Unable to install'. Any suggestions anyone.