Approval Terms Exceeded

Hi Experts,
I have an Approval Procedure set up to stop users exceeding a BP's Commitment Limit.
When adding a new Sales Order, the approval procedure kicks in if the value of the order takes the BP over its commitment limit.
If I add a zero value Sales Order, the system allows me to Add the order as the commitment limit has not been reached.
The problem is that I can then go back into the Zero Value Sales Order and change it to any value I like.  On hitting Update, the approval procedure is not kicking in.
Therefore, the user can circumnavigate the approval process by adding an SO for a zero value, and then later Updating the SO with a figure that will take the BP over the commitment limit.
Why is the Approval Procedure not called when Updating a document.
Thanks
Greig

Gordon,
The query SELECT 'TRUE' was just a test query.  I wanted something that would always return a TRUE value to test whether the Approval Procedure was being triggered.
I have just tried the below query as well (again just to test whether the Approval Process is fired).
SELECT 'TRUE' FROM DBO.OCRD T0 WHERE T0.CardCode = $[$4.0.0] AND T0.Balance < 10000000
The BP for the Sales Order is C1006 with a balance of 3,156.34.  If I try to add a Sales Order for the BP, the Approval Process is triggered.
If I edit the Sales Order, the Approval Process is not triggered.  This is causing a problem for my customer as the users can circumnavigate the Approval Process by first adding the SO with a false value, and then changing the value later.
Greig
Edit Note - when I save this message some the text http:// is being added to my query!

Similar Messages

  • Approval for exceeding credit limit for particular bussiness partners

    Hi Experts,
    I am trying one approval for the Business partners for credit limit exceed.I have tried through standard Approval process by using the terms deviation from credit value as described but what should be done if  i need to set it for particular business partners.
    Also, in this standard query which i have tried i have defined the terms as :-
    Deviation from credit limit greater than or equal to 50,000 . I have set this terms for A/R Invoice. Now when i have made the invoice for rs.5000 then also it is asking for Approval.Since the Value is defined so system should not ask for approval.
    Regards-
    Mona.

    Hi Mona,
    You may try this. It may help you..
    select true from ocrd where 
    ((balance < 0) or (balance + $[$29.0.NUMBER]) < 0) and cardcode = $[ordr.cardcode]
    use squere brackets near $ sign open and close both brackets insted of round brackets.
    Regards,
    Chintesh Soni
    Edited by: Chintesh Soni on Sep 7, 2009 2:53 PM
    Edited by: Chintesh Soni on Sep 7, 2009 2:54 PM
    Edited by: Chintesh Soni on Sep 7, 2009 2:55 PM
    Edited by: Chintesh Soni on Sep 7, 2009 2:57 PM

  • Showing only Approved Metapedia Terms

    This question is two fold:
    1) Is there a way to only show approved metapedia terms?
    2) How have others managed their metapedia terms in a "multi-tier" environment (dev / qa / prod)? Do you promote your terms / changes through different environments or do you manage your terms in one environment?  What is SAPs suggested best practice here?
    I'm trying to achieve the scenario where metapedia users only see approved terms. Right now we are controlling this through drafting the terms in one environment and then exporting / importing them into another environment as approved.
    Thanks!!
    Tom

    This can be achieved by setting up appropriate user permissions. Note that for Metapedia there are predefined user groups - Metapedia User, Metapedia Author, Metapedia Approver and Metapedia Administrator.
    Among these groups Metapedia Users can only view approved terms. Metapedia Author, Approvers participate in the process of creating the draft definition, refining it and approving it. Once the term is approved, it is visible to Metapedia Users. Also if for some reason author starts revising an approved term - the changes made by the authors are not visible to Metapedia User until the revised term definition is approved.
    Given this context, you should be able to manage all Metapedia activities in the same environment. You do not need to have separate Dev and Prod environment for Metapedia scenarios.

  • Approval for deviation from credit limit

    Hi Guys
    Approval for deviation from credit limit does not work in the following scenario.
    Credit Limit = R20000
    Balance = 0
    Sales order added for R18000, no approval needed as less than credit limit.
    Then user changes the Sales order amount to more than the credit limit and no approval is activated.
    Any ideas? They are on 2007A SP 01 PL 7
    Thanks

    Hi,
    Check below thread:
    Credit limit approval
    Approval for exceeding credit limit for particular bussiness partners
    Hope this will help you.
    Thanks,
    Neetu

  • Sales order and Billing Should be Block as per Customer Payment Terms

    When  credit limit exceeded to limits As per their client requirement in sales order level credit check has done and it will save , when they trying to do Delivery it is not possible to proceed. With out changing the credit master record they want to release the sales order for special permission (VKM3)
    same why i suggested the client when the payment term days exceeds how to block the customer?
    Manual blocking the customer for specific sales area sales order level and billing document level . When the Payment terms exceeded . Infact I have checked with my colloegues Payment terms is transactional specific mainly used for some financial reporting example ageing report  here when you look at the customer is not paid before the payment term days . you can go to VD05 block the customer.
    this i have suggested , is any automically blocking the customer when the payemnt terms days exceeds ?

    Hi
    Open item option in OVA8 will consider all the overdue items (irrespective of payment terms).
    If the particular line item in FBL5N is falling overdue, it will be considered.
    % mentioned there is OD/OS percentage, ie. overdue/outstanding %. ie. if you maintain 50% in the OVA8,  if your overdue value is 1000 USD & total outstanding is 2000 USD, so your od/os % is 50%. The moment your OD value increases from 1000 to eg 1200USd, system will set a credit block.
    Generally noDays open item can be kept blank
    I hope it is clear to you
    thanks

  • Approval Decision Report Error

    Hello to all,
    I have a problem regarding the approval decision report functionality in SBO.
    I have set-up an approval template with 4 originators (say, persons A, B, C and D) and one approving manager. The approval check is applied to A/P Invoices and A/P Credit Memos and the approval terms is set to launch as 'Always'.
    Say person A and B create A/P Invoices. When I run the Approval Decision Report, check all the three decision types:
    [/] No Decision Yet
    [/] Document Production Approved
    [/] Document Production Not Approved
    And indicate person A as Originator From and To, the report shows the documents created by Person A.
    However, when I do the same for Person B, the report does not show the documents created by Person B.
    I receive the error message:
    No matching records found 'Drafts' (ODRF) (ODBC -2028) [Message 131-183]
    However, I check for documents unapproved created by Person B through a query and I see that they exist in ODRF.
    SELECT DocEntry, DocStatus, WddStatus from ODRF
    where UserSign =
    Select USERID from OUSR
    WHERE USER_CODE = 'Person A'
    Am I missing something here?

    Hi Gordon,
    Thanks for replying.
    I am sorry (query should be = 'Person B').
    When I execute the following query, I confirm that person B has existing documents to be approved.
    SELECT DocEntry, DocStatus, WddStatus from ODRF
    where UserSign =
    Select USERID from OUSR
    WHERE USER_CODE = 'Person B'
    But when I run Approval Decision Report and put Person B in the originator, the error occurs.
    In summary, the Approval Decision Report can see Person A's documents but not Person B's documents.

  • Approval Procedure to be sent when changes made in Purchase Order

    Hi Everyone,
    Can anyone help me with query for approval terms as follows:
    I want an approval to be triggered when the changes are made in Purchase Order & Updated. Not when new PO is created but at the time of when once the PO is created & then its edited by purchase employee and again gets updated then approval should be triggered to Accounting Department.
    Regards,
    Jai

    Hi,
    You have to develope an own ABAP report for this, based on the change tables CDHDR and CDPOS
    CDHDR - Header Change
    CDPOS - Item Change
    EREV - Version Change
    Check the link
    Purchase order change log
    Regards
    KK
    Edited by: Kishore Kumar Galla on Apr 5, 2010 1:16 PM

  • Bid Automatic Approval

    Hi there !!
    I am working in SRM 7.0. I am trying to set the system to automatically approve entered bids (BUS2202).
    I have activated in transaction SWE2 the line for WS79000010   Without Approval
    BO BOR Object Type     BUS2202     TOBEACCEPTED     WS79000010   X     0 No errors
    I have checked that this WF WS79000010   is active in transaction PFTC_DIS (Triggering events is active).
    But the status of the bids generated is Awaiting Approval.
    I have activated the Workflow Trace (SWELS) and checked that the workflow is not working. Also checke in BBP_PD and no worklow is there.
    What is missing to configure?
    Many thanks,
    Ezequiel

    Hi Masa,
    After accepting the Bid by the Purchaser, the Bid turns to Awaiting Approval but no automatic decision is made. I have the following customizing settings:
    Event Type Linkage:
    Object Category                Obj Type        Event                                 Receiver Type    Type Link Active       Status
    BO BOR Object Type     BUS2202     TOBEACCEPTED     WS79000002                       0 No errors (not active)
    BO BOR Object Type     BUS2202     TOBEACCEPTED     WS79000010      X                       0 No errors (active)
    Define Process Levels:
    BUS2202     SRM Supplier Quote
    Process Schema Evaluation: 3EV_QT_600_000
    Process Schema Definition: BUS2202     3C_QT_600_000
                                                 Sequence Number: 999
                                                 Level Type: S Automatic
                                                 Task ID 40007988
                                                 Decision Type: Decision for Entire Document
    Generalize Tasks;
    Task 40007988 with status Background Task: No Action Required.
    Check Task Consistency:
    Package:                  /SAPSRM/WF_CFG                 Person responsible        SAP
    Task:       OK     TS40007988     SRM_AUTOAPP  Automatic Approval
    Term.event: OK     /SAPSRM/CL_WF_DSET_SBWF        EXECUTED
    Define Recipient of Notifications:
    Scenario: Approve Bid
    User Role: CR Contact Person (in most cases, the creator of the document)
    (X) Rejection of Application object
    (X) Approval of Application object
    (  ) Changes to Application object
    (  ) Deletion of Application object
    Define Deadlines for Events:
    BUS2202     Supplier Quote     Supplier Quote SRM
    Event Schema: QUOT     RFx Response
    Event Control:
    Event                                                             Event Category                                  Subcategory of Event
    APPROVAL_PROCESS_DOC_APPROVED   NOTIFIC Message (low priority)     APPROVAL_RESULT_NOTIFIC_NEW
    APPROVAL_PROCESS_DOC_REJECTED     NOTIFIC Message (low priority)     APPROVAL_RESULT_NOTIFIC_NEW
    RMS_EVENT                                                      EXTERNAL External
    SUBMITTED                                                      NOTIFIC Message (low priority)
    What could be missing?
    Many thanks
    Ezequiel

  • Credit: Maximum percentage for open items exceeded

    Hi Expert,
      I have configure the credit limit block.but the customer i am checking above error generating every time.pl find the configure detail.
    1.Customer balance in Fbl5n :  11081929546.00
    2.Open sales orders Balance (VA05) :1560000.00
    Total Credit Usage is 11083489546.00
    customer credit limit  (FD32) :11083489546.00
    if i am generating the SO it will pop up the above error .
    Pl help

    Dear JP,
    "if you raise sales doc which is 1500 USD, then system will prompt an error for credit limit exceed for 500 USD"
    As per your above statement  i understood that while performing open orders credit check system considering percentage between customer credit limits( As per your example it is 10000 USD) and Credit Exposure ( As per your example 4000+1500 USD).
    As per my knowledge while performing open orders credit check system considering the percentage between open items(Accounting doc not cleared) and oldest open items ( accounting doc not cleared and payment terms exceeded) if this percentage is exceeds Max Open Items Percentage then system block the document for credit limits,
    JP if i am wrong please correct me,
    Thanking you,
    Sudheer.U

  • Error deploying archive BPM jar to server

    am trying to deploying jar file after make .jpr file , and facing this error
    [11:58:01 AM] Error deploying archive sca_SalesQuoteToContractDemo_rev1.0.jar to partition "default" on server AdminServer [http://localhost:7001]
    [11:58:01 AM] HTTP error code returned [500]
    [11:58:01 AM] Error message from server:
    There was an error deploying the composite on AdminServer: Deployment Failed: Error occurred during deployment of component: SalesQuoteToContractDemo to service engine: implementation.bpmn, for composite: SalesQuoteToContractDemo: ORABPEL-05250
    Error deploying BPMN suitcase.
    error while attempting to deploy the BPMN component file "/home/hassan/Oracle/Middleware/user_projects/domains/SOAOSBS4DevDomain/servers/AdminServer/dc/soa_44e3fd0f-e165-48e4-98ff-c7b853e16460"; the exception reported is: java.lang.NullPointerException
    This error contained an exception thrown by the underlying deployment module.
    Verify the exception trace in the log (with logging level set to debug mode).
    [11:58:01 AM] Check server log for more details.
    [11:58:01 AM] Error deploying archive sca_SalesQuoteToContractDemo_rev1.0.jar to partition "default" on server AdminServer [http://localhost:7001]
    [11:58:01 AM] ####  Deployment incomplete.  ####
    [11:58:01 AM] Error deploying archive file:/home/hassan/jdeveloper/mywork/FusienNXApplication/SalesQuoteToContractDemo/deploy/sca_SalesQuoteToContractDemo_rev1.0.jar
    (oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)
    and this is the stack trace
    Skipping characteristics visitor for -> NONE activity Approve Terms
    <Jul 14, 2013 11:57:52 AM AST> <Error> <oracle.soa.bpel.engine.deployment> <BEA-000000> <
    java.lang.NullPointerException
      at oracle.bpm.bpmn.engine.map.builder.visitors.impl.UserTaskVisitorImpl.createMIVisitor(UserTaskVisitorImpl.java:61)
      at oracle.bpm.bpmn.engine.map.builder.visitors.impl.UserTaskVisitorImpl.createMIVisitor(UserTaskVisitorImpl.java:52)
      at oracle.bpm.bpmn.engine.map.builder.visitors.impl.MIAbstractBPMNActivityVisitor.visitActivity(MIAbstractBPMNActivityVisitor.java:34)
      at oracle.bpm.bpmn.engine.map.builder.visitors.impl.AbstractBPMNActivityVisitor.doVisit(AbstractBPMNActivityVisitor.java:33)
      at oracle.bpm.bpmn.engine.map.builder.visitors.impl.EventsVisitorHelper.visitElement(EventsVisitorHelper.java:84)
      at oracle.bpm.bpmn.engine.map.builder.visitors.impl.AbstractBPMNActivityVisitor.visitElement(AbstractBPMNActivityVisitor.java:43)
      at oracle.bpm.bpmn.engine.map.builder.visitors.impl.AbstractBPMNActivityVisitor.visitElement(AbstractBPMNActivityVisitor.java:22)
      at oracle.bpm.bpmn.engine.map.builder.visitors.impl.AbstractBPMNElementVisitor.visit(AbstractBPMNElementVisitor.java:38)
      at oracle.bpm.bpmn.engine.map.builder.visitors.impl.AbstractBPMNElementVisitor.visit(AbstractBPMNElementVisitor.java:29)
      at oracle.bpm.bpmn.engine.map.builder.visitors.ModelVisitorUtil.visit(ModelVisitorUtil.java:83)
      at oracle.bpm.bpmn.engine.map.builder.visitors.ModelVisitor.compileActivitiesAux(ModelVisitor.java:187)
      at oracle.bpm.bpmn.engine.map.builder.visitors.ModelVisitor.compileActivities(ModelVisitor.java:174)
      at oracle.bpm.bpmn.engine.map.builder.visitors.ModelVisitor.visit(ModelVisitor.java:93)
      at oracle.bpm.bpmn.engine.map.builder.visitors.ProcessModelVisitor.visit(ProcessModelVisitor.java:53)
      at oracle.bpm.bpmn.engine.map.builder.BPMNCubeMapBuilder.buildProcessBlock(BPMNCubeMapBuilder.java:162)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deployComponents(CompositeDeploymentConnection.java:243)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deploy(CompositeDeploymentConnection.java:94)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentManagerImpl.initDeployment(CompositeDeploymentManagerImpl.java:185)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentManagerImpl.load(CompositeDeploymentManagerImpl.java:63)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      at oracle.integration.platform.blocks.deploy.DeploymentEventPublisher.invoke(DeploymentEventPublisher.java:86)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at $Proxy366.load(Unknown Source)
      at oracle.integration.platform.blocks.deploy.StandaloneCompositeDeploymentCoordinatorImpl.coordinateCompositeDeployment(StandaloneCompositeDeploymentCoordinatorImpl.java:67)
      at oracle.integration.platform.blocks.deploy.servlet.BaseDeployProcessor.deployNewComposite(BaseDeployProcessor.java:467)
      at oracle.integration.platform.blocks.deploy.servlet.BaseDeployProcessor.deploySARs(BaseDeployProcessor.java:268)
      at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeployWork(DeployProcessor.java:203)
      at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeployWork(DeployProcessor.java:147)
      at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeploy(DeployProcessor.java:134)
      at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.process(DeployProcessor.java:100)
      at oracle.integration.platform.blocks.deploy.servlet.CompositeDeployerServlet.doPostInsideLoggingSession(CompositeDeployerServlet.java:221)
      at oracle.integration.platform.blocks.deploy.servlet.CompositeDeployerServlet.doPost(CompositeDeployerServlet.java:130)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >
    <Jul 14, 2013 11:57:52 AM AST> <Error> <oracle.soa.bpel.engine.deployment> <BEA-000000> <BPEL Component "default/SalesQuoteToContractDemo!1.0*soa_44e3fd0f-e165-48e4-98ff-c7b853e16460/SalesQuoteToContractDemo" load FAILED!!>
    <Jul 14, 2013 11:57:52 AM AST> <Error> <oracle.soa.bpel.engine.deployment> <BEA-000000> <deployment failed
    java.lang.RuntimeException: java.lang.NullPointerException
      at com.collaxa.cube.engine.deployment.DeploymentManager.deployProcess(DeploymentManager.java:299)
      at com.collaxa.cube.engine.deployment.DeploymentManager.deployComponent(DeploymentManager.java:190)
      at com.collaxa.cube.ejb.impl.CubeServerManagerBean._deployOrLoadComponent(CubeServerManagerBean.java:949)
      at com.collaxa.cube.ejb.impl.CubeServerManagerBean.deployComponent(CubeServerManagerBean.java:128)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
      at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
      at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
      at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
      at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at $Proxy273.deployComponent(Unknown Source)
      at oracle.bpm.bpmn.engine.ejb.impl.BPMNServerManagerBean_6gbx7k_IBPMNCubeServerManagerLocalBeanImpl.__WL_invoke(Unknown Source)
      at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:39)
      at oracle.bpm.bpmn.engine.ejb.impl.BPMNServerManagerBean_6gbx7k_IBPMNCubeServerManagerLocalBeanImpl.deployComponent(Unknown Source)
      at oracle.fabric.CubeServiceEngine.load(CubeServiceEngine.java:923)
      at oracle.bpm.bpmn.engine.service.BPMNServiceEngine.load(BPMNServiceEngine.java:703)
      at oracle.bpm.bpmn.engine.service.BPMNServiceEngine.load(BPMNServiceEngine.java:157)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deployComponents(CompositeDeploymentConnection.java:243)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deploy(CompositeDeploymentConnection.java:94)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentManagerImpl.initDeployment(CompositeDeploymentManagerImpl.java:185)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentManagerImpl.load(CompositeDeploymentManagerImpl.java:63)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      at oracle.integration.platform.blocks.deploy.DeploymentEventPublisher.invoke(DeploymentEventPublisher.java:86)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at $Proxy366.load(Unknown Source)
      at oracle.integration.platform.blocks.deploy.StandaloneCompositeDeploymentCoordinatorImpl.coordinateCompositeDeployment(StandaloneCompositeDeploymentCoordinatorImpl.java:67)
      at oracle.integration.platform.blocks.deploy.servlet.BaseDeployProcessor.deployNewComposite(BaseDeployProcessor.java:467)
      at oracle.integration.platform.blocks.deploy.servlet.BaseDeployProcessor.deploySARs(BaseDeployProcessor.java:268)
      at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeployWork(DeployProcessor.java:203)
      at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeployWork(DeployProcessor.java:147)
      at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeploy(DeployProcessor.java:134)
      at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.process(DeployProcessor.java:100)
      at oracle.integration.platform.blocks.deploy.servlet.CompositeDeployerServlet.doPostInsideLoggingSession(CompositeDeployerServlet.java:221)
      at oracle.integration.platform.blocks.deploy.servlet.CompositeDeployerServlet.doPost(CompositeDeployerServlet.java:130)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >
    <Jul 14, 2013 11:57:52 AM AST> <Error> <oracle.soa.bpel.system> <BEA-000000> <Error while invoking bean "domain manager": Error deploying BPMN suitcase.
    error while attempting to deploy the BPMN component file "/home/hassan/Oracle/Middleware/user_projects/domains/SOAOSBS4DevDomain/servers/AdminServer/dc/soa_44e3fd0f-e165-48e4-98ff-c7b853e16460"; the exception reported is: java.lang.NullPointerException
    This error contained an exception thrown by the underlying deployment module.
    Verify the exception trace in the log (with logging level set to debug mode).
    ORABPEL-05250
    Error deploying BPMN suitcase.
    error while attempting to deploy the BPMN component file "/home/hassan/Oracle/Middleware/user_projects/domains/SOAOSBS4DevDomain/servers/AdminServer/dc/soa_44e3fd0f-e165-48e4-98ff-c7b853e16460"; the exception reported is: java.lang.NullPointerException
    This error contained an exception thrown by the underlying deployment module.
    Verify the exception trace in the log (with logging level set to debug mode).
      at com.collaxa.cube.engine.deployment.DeploymentManager.deployComponent(DeploymentManager.java:202)
      at com.collaxa.cube.ejb.impl.CubeServerManagerBean._deployOrLoadComponent(CubeServerManagerBean.java:949)
      at com.collaxa.cube.ejb.impl.CubeServerManagerBean.deployComponent(CubeServerManagerBean.java:128)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    >
    <Jul 14, 2013 11:57:52 AM AST> <Error> <oracle.soa.bpel.engine> <BEA-000000> <Unable to activate process SalesQuoteToContractDemo
    ORABPEL-05250
    Error deploying BPMN suitcase.
    error while attempting to deploy the BPMN component file "/home/hassan/Oracle/Middleware/user_projects/domains/SOAOSBS4DevDomain/servers/AdminServer/dc/soa_44e3fd0f-e165-48e4-98ff-c7b853e16460"; the exception reported is: java.lang.NullPointerException
    This error contained an exception thrown by the underlying deployment module.
    Verify the exception trace in the log (with logging level set to debug mode).
    <Jul 14, 2013 11:58:01 AM AST> <Error> <ServletContext-/soa-infra> <BEA-000000> <Error during deployment
    oracle.fabric.common.FabricException: Deployment Failed: Error occurred during deployment of component: SalesQuoteToContractDemo to service engine: implementation.bpmn, for composite: SalesQuoteToContractDemo: ORABPEL-05250
    Error deploying BPMN suitcase.
    error while attempting to deploy the BPMN component file "/home/hassan/Oracle/Middleware/user_projects/domains/SOAOSBS4DevDomain/servers/AdminServer/dc/soa_44e3fd0f-e165-48e4-98ff-c7b853e16460"; the exception reported is: java.lang.NullPointerException
    This error contained an exception thrown by the underlying deployment module.
    Verify the exception trace in the log (with logging level set to debug mode).
      at oracle.integration.platform.blocks.deploy.StandaloneCompositeDeploymentCoordinatorImpl.coordinateCompositeDeployment(StandaloneCompositeDeploymentCoordinatorImpl.java:72)
      at oracle.integration.platform.blocks.deploy.servlet.BaseDeployProcessor.deployNewComposite(BaseDeployProcessor.java:467)
      at oracle.integration.platform.blocks.deploy.servlet.BaseDeployProcessor.deploySARs(BaseDeployProcessor.java:268)
      at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeployWork(DeployProcessor.java:203)
      at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeployWork(DeployProcessor.java:147)
      Truncated. see log file for complete stacktrace
    Caused By: oracle.fabric.common.FabricException: Error occurred during deployment of component: SalesQuoteToContractDemo to service engine: implementation.bpmn, for composite: SalesQuoteToContractDemo: ORABPEL-05250
    Error deploying BPMN suitcase.
    error while attempting to deploy the BPMN component file "/home/hassan/Oracle/Middleware/user_projects/domains/SOAOSBS4DevDomain/servers/AdminServer/dc/soa_44e3fd0f-e165-48e4-98ff-c7b853e16460"; the exception reported is: java.lang.NullPointerException
    This error contained an exception thrown by the underlying deployment module.
    Verify the exception trace in the log (with logging level set to debug mode).
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deployComponents(CompositeDeploymentConnection.java:245)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deploy(CompositeDeploymentConnection.java:94)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentManagerImpl.initDeployment(CompositeDeploymentManagerImpl.java:185)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentManagerImpl.load(CompositeDeploymentManagerImpl.java:63)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      Truncated. see log file for complete stacktrace
    Caused By: java.lang.RuntimeException: ORABPEL-05250
    Error deploying BPMN suitcase.
    error while attempting to deploy the BPMN component file "/home/hassan/Oracle/Middleware/user_projects/domains/SOAOSBS4DevDomain/servers/AdminServer/dc/soa_44e3fd0f-e165-48e4-98ff-c7b853e16460"; the exception reported is: java.lang.NullPointerException
    This error contained an exception thrown by the underlying deployment module.
    Verify the exception trace in the log (with logging level set to debug mode).
      at oracle.fabric.CubeServiceEngine.load(CubeServiceEngine.java:934)
      at oracle.bpm.bpmn.engine.service.BPMNServiceEngine.load(BPMNServiceEngine.java:703)
      at oracle.bpm.bpmn.engine.service.BPMNServiceEngine.load(BPMNServiceEngine.java:157)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deployComponents(CompositeDeploymentConnection.java:243)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deploy(CompositeDeploymentConnection.java:94)
      Truncated. see log file for complete stacktrace
    Caused By: ORABPEL-05250
    Error deploying BPMN suitcase.
    error while attempting to deploy the BPMN component file "/home/hassan/Oracle/Middleware/user_projects/domains/SOAOSBS4DevDomain/servers/AdminServer/dc/soa_44e3fd0f-e165-48e4-98ff-c7b853e16460"; the exception reported is: java.lang.NullPointerException
    This error contained an exception thrown by the underlying deployment module.
    Verify the exception trace in the log (with logging level set to debug mode).
      at com.collaxa.cube.engine.deployment.DeploymentManager.deployComponent(DeploymentManager.java:202)
      at com.collaxa.cube.ejb.impl.CubeServerManagerBean._deployOrLoadComponent(CubeServerManagerBean.java:949)
      at com.collaxa.cube.ejb.impl.CubeServerManagerBean.deployComponent(CubeServerManagerBean.java:128)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      Truncated. see log file for complete stacktrace
    >
    <Jul 14, 2013 11:58:01 AM AST> <Error> <oracle.integration.platform.blocks.deploy.servlet> <SOA-21537> <Sending back error message: There was an error deploying the composite on AdminServer: Deployment Failed: Error occurred during deployment of component: SalesQuoteToContractDemo to service engine: implementation.bpmn, for composite: SalesQuoteToContractDemo: ORABPEL-05250
    Error deploying BPMN suitcase.
    error while attempting to deploy the BPMN component file "/home/hassan/Oracle/Middleware/user_projects/domains/SOAOSBS4DevDomain/servers/AdminServer/dc/soa_44e3fd0f-e165-48e4-98ff-c7b853e16460"; the exception reported is: java.lang.NullPointerException
    This error contained an exception thrown by the underlying deployment module.
    Verify the exception trace in the log (with logging level set to debug mode).
    ..>
    ^[[B^[[A

    am trying to deploying jar file after make .jpr file , and facing this error
    [11:58:01 AM] Error deploying archive sca_SalesQuoteToContractDemo_rev1.0.jar to partition "default" on server AdminServer [http://localhost:7001]
    [11:58:01 AM] HTTP error code returned [500]
    [11:58:01 AM] Error message from server:
    There was an error deploying the composite on AdminServer: Deployment Failed: Error occurred during deployment of component: SalesQuoteToContractDemo to service engine: implementation.bpmn, for composite: SalesQuoteToContractDemo: ORABPEL-05250
    Error deploying BPMN suitcase.
    error while attempting to deploy the BPMN component file "/home/hassan/Oracle/Middleware/user_projects/domains/SOAOSBS4DevDomain/servers/AdminServer/dc/soa_44e3fd0f-e165-48e4-98ff-c7b853e16460"; the exception reported is: java.lang.NullPointerException
    This error contained an exception thrown by the underlying deployment module.
    Verify the exception trace in the log (with logging level set to debug mode).
    [11:58:01 AM] Check server log for more details.
    [11:58:01 AM] Error deploying archive sca_SalesQuoteToContractDemo_rev1.0.jar to partition "default" on server AdminServer [http://localhost:7001]
    [11:58:01 AM] ####  Deployment incomplete.  ####
    [11:58:01 AM] Error deploying archive file:/home/hassan/jdeveloper/mywork/FusienNXApplication/SalesQuoteToContractDemo/deploy/sca_SalesQuoteToContractDemo_rev1.0.jar
    (oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)
    and this is the stack trace
    Skipping characteristics visitor for -> NONE activity Approve Terms
    <Jul 14, 2013 11:57:52 AM AST> <Error> <oracle.soa.bpel.engine.deployment> <BEA-000000> <
    java.lang.NullPointerException
      at oracle.bpm.bpmn.engine.map.builder.visitors.impl.UserTaskVisitorImpl.createMIVisitor(UserTaskVisitorImpl.java:61)
      at oracle.bpm.bpmn.engine.map.builder.visitors.impl.UserTaskVisitorImpl.createMIVisitor(UserTaskVisitorImpl.java:52)
      at oracle.bpm.bpmn.engine.map.builder.visitors.impl.MIAbstractBPMNActivityVisitor.visitActivity(MIAbstractBPMNActivityVisitor.java:34)
      at oracle.bpm.bpmn.engine.map.builder.visitors.impl.AbstractBPMNActivityVisitor.doVisit(AbstractBPMNActivityVisitor.java:33)
      at oracle.bpm.bpmn.engine.map.builder.visitors.impl.EventsVisitorHelper.visitElement(EventsVisitorHelper.java:84)
      at oracle.bpm.bpmn.engine.map.builder.visitors.impl.AbstractBPMNActivityVisitor.visitElement(AbstractBPMNActivityVisitor.java:43)
      at oracle.bpm.bpmn.engine.map.builder.visitors.impl.AbstractBPMNActivityVisitor.visitElement(AbstractBPMNActivityVisitor.java:22)
      at oracle.bpm.bpmn.engine.map.builder.visitors.impl.AbstractBPMNElementVisitor.visit(AbstractBPMNElementVisitor.java:38)
      at oracle.bpm.bpmn.engine.map.builder.visitors.impl.AbstractBPMNElementVisitor.visit(AbstractBPMNElementVisitor.java:29)
      at oracle.bpm.bpmn.engine.map.builder.visitors.ModelVisitorUtil.visit(ModelVisitorUtil.java:83)
      at oracle.bpm.bpmn.engine.map.builder.visitors.ModelVisitor.compileActivitiesAux(ModelVisitor.java:187)
      at oracle.bpm.bpmn.engine.map.builder.visitors.ModelVisitor.compileActivities(ModelVisitor.java:174)
      at oracle.bpm.bpmn.engine.map.builder.visitors.ModelVisitor.visit(ModelVisitor.java:93)
      at oracle.bpm.bpmn.engine.map.builder.visitors.ProcessModelVisitor.visit(ProcessModelVisitor.java:53)
      at oracle.bpm.bpmn.engine.map.builder.BPMNCubeMapBuilder.buildProcessBlock(BPMNCubeMapBuilder.java:162)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deployComponents(CompositeDeploymentConnection.java:243)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deploy(CompositeDeploymentConnection.java:94)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentManagerImpl.initDeployment(CompositeDeploymentManagerImpl.java:185)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentManagerImpl.load(CompositeDeploymentManagerImpl.java:63)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      at oracle.integration.platform.blocks.deploy.DeploymentEventPublisher.invoke(DeploymentEventPublisher.java:86)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at $Proxy366.load(Unknown Source)
      at oracle.integration.platform.blocks.deploy.StandaloneCompositeDeploymentCoordinatorImpl.coordinateCompositeDeployment(StandaloneCompositeDeploymentCoordinatorImpl.java:67)
      at oracle.integration.platform.blocks.deploy.servlet.BaseDeployProcessor.deployNewComposite(BaseDeployProcessor.java:467)
      at oracle.integration.platform.blocks.deploy.servlet.BaseDeployProcessor.deploySARs(BaseDeployProcessor.java:268)
      at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeployWork(DeployProcessor.java:203)
      at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeployWork(DeployProcessor.java:147)
      at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeploy(DeployProcessor.java:134)
      at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.process(DeployProcessor.java:100)
      at oracle.integration.platform.blocks.deploy.servlet.CompositeDeployerServlet.doPostInsideLoggingSession(CompositeDeployerServlet.java:221)
      at oracle.integration.platform.blocks.deploy.servlet.CompositeDeployerServlet.doPost(CompositeDeployerServlet.java:130)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >
    <Jul 14, 2013 11:57:52 AM AST> <Error> <oracle.soa.bpel.engine.deployment> <BEA-000000> <BPEL Component "default/SalesQuoteToContractDemo!1.0*soa_44e3fd0f-e165-48e4-98ff-c7b853e16460/SalesQuoteToContractDemo" load FAILED!!>
    <Jul 14, 2013 11:57:52 AM AST> <Error> <oracle.soa.bpel.engine.deployment> <BEA-000000> <deployment failed
    java.lang.RuntimeException: java.lang.NullPointerException
      at com.collaxa.cube.engine.deployment.DeploymentManager.deployProcess(DeploymentManager.java:299)
      at com.collaxa.cube.engine.deployment.DeploymentManager.deployComponent(DeploymentManager.java:190)
      at com.collaxa.cube.ejb.impl.CubeServerManagerBean._deployOrLoadComponent(CubeServerManagerBean.java:949)
      at com.collaxa.cube.ejb.impl.CubeServerManagerBean.deployComponent(CubeServerManagerBean.java:128)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
      at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
      at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
      at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
      at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
      at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at $Proxy273.deployComponent(Unknown Source)
      at oracle.bpm.bpmn.engine.ejb.impl.BPMNServerManagerBean_6gbx7k_IBPMNCubeServerManagerLocalBeanImpl.__WL_invoke(Unknown Source)
      at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:39)
      at oracle.bpm.bpmn.engine.ejb.impl.BPMNServerManagerBean_6gbx7k_IBPMNCubeServerManagerLocalBeanImpl.deployComponent(Unknown Source)
      at oracle.fabric.CubeServiceEngine.load(CubeServiceEngine.java:923)
      at oracle.bpm.bpmn.engine.service.BPMNServiceEngine.load(BPMNServiceEngine.java:703)
      at oracle.bpm.bpmn.engine.service.BPMNServiceEngine.load(BPMNServiceEngine.java:157)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deployComponents(CompositeDeploymentConnection.java:243)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deploy(CompositeDeploymentConnection.java:94)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentManagerImpl.initDeployment(CompositeDeploymentManagerImpl.java:185)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentManagerImpl.load(CompositeDeploymentManagerImpl.java:63)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      at oracle.integration.platform.blocks.deploy.DeploymentEventPublisher.invoke(DeploymentEventPublisher.java:86)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at $Proxy366.load(Unknown Source)
      at oracle.integration.platform.blocks.deploy.StandaloneCompositeDeploymentCoordinatorImpl.coordinateCompositeDeployment(StandaloneCompositeDeploymentCoordinatorImpl.java:67)
      at oracle.integration.platform.blocks.deploy.servlet.BaseDeployProcessor.deployNewComposite(BaseDeployProcessor.java:467)
      at oracle.integration.platform.blocks.deploy.servlet.BaseDeployProcessor.deploySARs(BaseDeployProcessor.java:268)
      at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeployWork(DeployProcessor.java:203)
      at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeployWork(DeployProcessor.java:147)
      at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeploy(DeployProcessor.java:134)
      at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.process(DeployProcessor.java:100)
      at oracle.integration.platform.blocks.deploy.servlet.CompositeDeployerServlet.doPostInsideLoggingSession(CompositeDeployerServlet.java:221)
      at oracle.integration.platform.blocks.deploy.servlet.CompositeDeployerServlet.doPost(CompositeDeployerServlet.java:130)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >
    <Jul 14, 2013 11:57:52 AM AST> <Error> <oracle.soa.bpel.system> <BEA-000000> <Error while invoking bean "domain manager": Error deploying BPMN suitcase.
    error while attempting to deploy the BPMN component file "/home/hassan/Oracle/Middleware/user_projects/domains/SOAOSBS4DevDomain/servers/AdminServer/dc/soa_44e3fd0f-e165-48e4-98ff-c7b853e16460"; the exception reported is: java.lang.NullPointerException
    This error contained an exception thrown by the underlying deployment module.
    Verify the exception trace in the log (with logging level set to debug mode).
    ORABPEL-05250
    Error deploying BPMN suitcase.
    error while attempting to deploy the BPMN component file "/home/hassan/Oracle/Middleware/user_projects/domains/SOAOSBS4DevDomain/servers/AdminServer/dc/soa_44e3fd0f-e165-48e4-98ff-c7b853e16460"; the exception reported is: java.lang.NullPointerException
    This error contained an exception thrown by the underlying deployment module.
    Verify the exception trace in the log (with logging level set to debug mode).
      at com.collaxa.cube.engine.deployment.DeploymentManager.deployComponent(DeploymentManager.java:202)
      at com.collaxa.cube.ejb.impl.CubeServerManagerBean._deployOrLoadComponent(CubeServerManagerBean.java:949)
      at com.collaxa.cube.ejb.impl.CubeServerManagerBean.deployComponent(CubeServerManagerBean.java:128)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    >
    <Jul 14, 2013 11:57:52 AM AST> <Error> <oracle.soa.bpel.engine> <BEA-000000> <Unable to activate process SalesQuoteToContractDemo
    ORABPEL-05250
    Error deploying BPMN suitcase.
    error while attempting to deploy the BPMN component file "/home/hassan/Oracle/Middleware/user_projects/domains/SOAOSBS4DevDomain/servers/AdminServer/dc/soa_44e3fd0f-e165-48e4-98ff-c7b853e16460"; the exception reported is: java.lang.NullPointerException
    This error contained an exception thrown by the underlying deployment module.
    Verify the exception trace in the log (with logging level set to debug mode).
    <Jul 14, 2013 11:58:01 AM AST> <Error> <ServletContext-/soa-infra> <BEA-000000> <Error during deployment
    oracle.fabric.common.FabricException: Deployment Failed: Error occurred during deployment of component: SalesQuoteToContractDemo to service engine: implementation.bpmn, for composite: SalesQuoteToContractDemo: ORABPEL-05250
    Error deploying BPMN suitcase.
    error while attempting to deploy the BPMN component file "/home/hassan/Oracle/Middleware/user_projects/domains/SOAOSBS4DevDomain/servers/AdminServer/dc/soa_44e3fd0f-e165-48e4-98ff-c7b853e16460"; the exception reported is: java.lang.NullPointerException
    This error contained an exception thrown by the underlying deployment module.
    Verify the exception trace in the log (with logging level set to debug mode).
      at oracle.integration.platform.blocks.deploy.StandaloneCompositeDeploymentCoordinatorImpl.coordinateCompositeDeployment(StandaloneCompositeDeploymentCoordinatorImpl.java:72)
      at oracle.integration.platform.blocks.deploy.servlet.BaseDeployProcessor.deployNewComposite(BaseDeployProcessor.java:467)
      at oracle.integration.platform.blocks.deploy.servlet.BaseDeployProcessor.deploySARs(BaseDeployProcessor.java:268)
      at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeployWork(DeployProcessor.java:203)
      at oracle.integration.platform.blocks.deploy.servlet.DeployProcessor.doDeployWork(DeployProcessor.java:147)
      Truncated. see log file for complete stacktrace
    Caused By: oracle.fabric.common.FabricException: Error occurred during deployment of component: SalesQuoteToContractDemo to service engine: implementation.bpmn, for composite: SalesQuoteToContractDemo: ORABPEL-05250
    Error deploying BPMN suitcase.
    error while attempting to deploy the BPMN component file "/home/hassan/Oracle/Middleware/user_projects/domains/SOAOSBS4DevDomain/servers/AdminServer/dc/soa_44e3fd0f-e165-48e4-98ff-c7b853e16460"; the exception reported is: java.lang.NullPointerException
    This error contained an exception thrown by the underlying deployment module.
    Verify the exception trace in the log (with logging level set to debug mode).
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deployComponents(CompositeDeploymentConnection.java:245)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deploy(CompositeDeploymentConnection.java:94)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentManagerImpl.initDeployment(CompositeDeploymentManagerImpl.java:185)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentManagerImpl.load(CompositeDeploymentManagerImpl.java:63)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      Truncated. see log file for complete stacktrace
    Caused By: java.lang.RuntimeException: ORABPEL-05250
    Error deploying BPMN suitcase.
    error while attempting to deploy the BPMN component file "/home/hassan/Oracle/Middleware/user_projects/domains/SOAOSBS4DevDomain/servers/AdminServer/dc/soa_44e3fd0f-e165-48e4-98ff-c7b853e16460"; the exception reported is: java.lang.NullPointerException
    This error contained an exception thrown by the underlying deployment module.
    Verify the exception trace in the log (with logging level set to debug mode).
      at oracle.fabric.CubeServiceEngine.load(CubeServiceEngine.java:934)
      at oracle.bpm.bpmn.engine.service.BPMNServiceEngine.load(BPMNServiceEngine.java:703)
      at oracle.bpm.bpmn.engine.service.BPMNServiceEngine.load(BPMNServiceEngine.java:157)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deployComponents(CompositeDeploymentConnection.java:243)
      at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deploy(CompositeDeploymentConnection.java:94)
      Truncated. see log file for complete stacktrace
    Caused By: ORABPEL-05250
    Error deploying BPMN suitcase.
    error while attempting to deploy the BPMN component file "/home/hassan/Oracle/Middleware/user_projects/domains/SOAOSBS4DevDomain/servers/AdminServer/dc/soa_44e3fd0f-e165-48e4-98ff-c7b853e16460"; the exception reported is: java.lang.NullPointerException
    This error contained an exception thrown by the underlying deployment module.
    Verify the exception trace in the log (with logging level set to debug mode).
      at com.collaxa.cube.engine.deployment.DeploymentManager.deployComponent(DeploymentManager.java:202)
      at com.collaxa.cube.ejb.impl.CubeServerManagerBean._deployOrLoadComponent(CubeServerManagerBean.java:949)
      at com.collaxa.cube.ejb.impl.CubeServerManagerBean.deployComponent(CubeServerManagerBean.java:128)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      Truncated. see log file for complete stacktrace
    >
    <Jul 14, 2013 11:58:01 AM AST> <Error> <oracle.integration.platform.blocks.deploy.servlet> <SOA-21537> <Sending back error message: There was an error deploying the composite on AdminServer: Deployment Failed: Error occurred during deployment of component: SalesQuoteToContractDemo to service engine: implementation.bpmn, for composite: SalesQuoteToContractDemo: ORABPEL-05250
    Error deploying BPMN suitcase.
    error while attempting to deploy the BPMN component file "/home/hassan/Oracle/Middleware/user_projects/domains/SOAOSBS4DevDomain/servers/AdminServer/dc/soa_44e3fd0f-e165-48e4-98ff-c7b853e16460"; the exception reported is: java.lang.NullPointerException
    This error contained an exception thrown by the underlying deployment module.
    Verify the exception trace in the log (with logging level set to debug mode).
    ..>
    ^[[B^[[A

  • 12" Pbook / 12" iBook & Aperture - Experiences?

    Hi all,
    I am wondering about comparative performance using Aperture on either of the 12" Apple portables. One has more video memory but the other has a more modern graphics chip...
    Anybody care to share their own experience of how well either of these works?
    Obviously we know neither is officially supported and that I will have slow performance... but it is possible to run Aperture on these machines. No need to go into the details. Assume we are looking at the latest PPC models with at least 1gig of RAM.
    FWIW I am interested in these models as they are the most portable and I do not wish to wait for possible future 12 or 13" Intel portables. I will be using Aperture as an on the spot proofing and workflow tool in conjunction with Nikon Capture and Photoshop.
    Thanks
    Gaberdine.
    EDIT: If this thread sounds familiar, it is because my earlier one of the same name was deleted by the Mods. I have absolutley no idea why it was taken down - it broke no rules as far as I can tell[> - but it did make an oblique reference to other posts detailing how it is possible to run Aperture on 12" portables which are not officially supported. (Maybe they don't want us to know?)
    So please, if you must reference enabling Aperture on 12" portables, do not use the word h_a ck as it can be misconstrued as something naughty - instead use the Apple-approved term, "workaround". Thanks.
    12" Al Powerbook G4 80GB, 768MB, SD   Mac OS X (10.4.4)   ... and half a bottle of Laphroaig.

    sounds like a malfunction with the adapter...if u unplug adapter does the battery still charge computer and show a high charge ro does it slip as soon as u unplug it?

  • Returning the control out of the procedure

    Gurus,
    Please see my code
    BEGIN
         BEGIN                                    -- To check whether the user(Record) exists in the table
                SELECT a.code, a.code_desc                                     
              INTO L_code, L_code_desc
                FROM CODE_DETAIL a, USER_ROLE_PRIVS b
                WHERE a.code_desc = b.granted_role
                AND a.code_type like '%CATR%'
                AND b.username = I_U_ID;
         EXCEPTION
              WHEN NO_DATA_FOUND THEN
              O_ERR_MSG := 'N';
         END;
      IF L_CODE <> '1' AND L_CODE <> '2' AND L_CODE <> '3' THEN     -- To check whether there is any other role associated other than 1, 2 or 3
         O_ERR_MSG := 'Y';
      END IF;This is a piece of code which is a part of procedure .. Now whenever I have O_ERR_MSG initialized to Y or N .. it should come out of the procedure... What's happenning now is, variable is getting initialized and executing the rest of the code, which shouldnt happen ..
    Can you please tell me how to pass the control back to the procedure without executing the other lines ?
    Regards

    Ok... posting the entire code
    CREATE OR REPLACE PROCEDURE AFE_CHECK_SUBMIT (I_u_id in varchar2, I_ord_num in number, O_rol out VARCHAR2, O_app_check OUT Varchar2, O_v_app_check out number, O_v_otb_check out number, O_AMT OUT NUMBER, O_ERR_MSG OUT VARCHAR2, O_error_message IN OUT varchar2 ) IS
    L_role                  varchar2(30); 
    L_approval_limit        number;         L_otb_limit             number;                
    L_approval_level        varchar2(5);           
    L_tolerance_limit       varchar2(40);            L_program VARCHAR2(60)  := 'AFE_CHECK_SUBMIT';
    L_code                  VARCHAR2(10);
    L_code_desc             VARCHAR2(30);
    L_app_check             NUMBER;
    L_otb_check             NUMBER;
    L_amt                   NUMBER;
    L_otb_amt1              NUMBER;
    L_order_no           NUMBER;
    L_status           VARCHAR2(1);
    CURSOR C_PO_AMT IS SELECT i.dept, i.class, h.order_type, to_CHAR(h.otb_eow_date, 'MONYYYY') po_month, sum(o.qty_ordered * o.unit_cost) po_amt
    FROM ITEM_MASTER i, ORDLOC o, ORDHEAD h
    WHERE i.item = o.item
    AND o.order_no = h.order_no
    AND o.order_no = I_ord_num
    GROUP BY i.dept, i.class, h.order_type, to_CHAR(h.otb_eow_date, 'MONYYYY');
    CURSOR C_OTB_CALCULATE(order_type VARCHAR2, order_eow_date date, dep number, clas number ) IS
    SELECT sum(decode(order_type, 'ARB', a_budget_amt-a_approved_amt,
                                             'BRB', b_budget_amt-b_approved_amt,
                                             'N/B', n_budget_amt-n_approved_amt,
                                                 0)) otb_amt1
      FROM OTB
      WHERE to_char(EOW_DATE,'MONYYYY') = to_char(order_eow_date,'MONYYYY')
      AND DEPT = dep
      AND CLASS = clas
          GROUP BY to_CHAR(ORDER_EOW_DATE,'MONYYYY'),DEPT,CLASS;
          C2 C_OTB_CALCULATE%rowtype;
          c3 C_PO_AMT%rowtype;
    CURSOR C_ROLE_CHECK IS
      SELECT a.code, a.code_desc                                      -- checking the role of the user who has logged in
      FROM CODE_DETAIL a, USER_ROLE_PRIVS b
      WHERE a.code_desc = b.granted_role
      AND a.code_type like '%CATR%'
      AND b.username = I_U_ID;
      L_ROLE_CHECK C_ROLE_CHECK%ROWTYPE;
    BEGIN
       dbms_output.put_line('User id is :' || I_u_id);
       dbms_output.put_line('Selecting the role');
       BEGIN     
         OPEN C_ROLE_CHECK;
         LOOP
              FETCH C_ROLE_CHECK INTO L_ROLE_CHECK;
              EXIT WHEN C_ROLE_CHECK%NOTFOUND;
              L_code := L_ROLE_CHECK.code;
         END LOOP;
       EXCEPTION
              WHEN NO_DATA_FOUND THEN
                 dbms_output.put_line('No Record in table');
              O_ERR_MSG := 'N';  
    END;
      dbms_output.put_line('Role is :' || L_code);
      IF L_CODE <> '1' OR L_CODE <> '2' OR L_CODE <> '3' THEN
         O_ERR_MSG := 'Y';
         dbms_output.put_line('Unidentified user');
      END IF;
      IF L_code = '1' THEN                                       -- If user id is planner
           O_rol := '1';
         dbms_output.put_line('User is PLANNER (ROLE 1)');
            SELECT r.ORD_APPR_AMT                                   -- will be checking the approval limit of that role
            INTO L_approval_limit          
            FROM  RTK_ROLE_PRIVS r, CODE_DETAIL c
            WHERE r.ROLE = c.CODE_DESC
            AND c.CODE = L_code;
         dbms_output.put_line('Approval limit is :' || L_approval_limit);
            OPEN C_PO_AMT;                                          -- OTB check based on dept,class
            LOOP
              FETCH C_PO_AMT into c3;
                    EXIT when c_PO_AMT%notfound;
              dbms_output.put_line('Entered 1st loop');
                    OPEN C_OTB_CALCULATE(c3.order_type, TO_DATE(c3.po_month,'MONYYYY'), c3.dept, c3.class);
                    LOOP
                   dbms_output.put_line('Entered 2nd loop');
                         FETCH C_OTB_CALCULATE into c2;
                            EXIT WHEN C_OTB_CALCULATE%notfound;
                            L_amt := c3.PO_AMT;
                   dbms_output.put_line('PO AMT IS:' || L_amt);
                   IF c3.PO_AMT > L_approval_limit THEN    -- Checking whether amount greater than approval lim
                        dbms_output.put_line('Approval limit exceeded');
                                 L_app_check := 1;
                                    O_app_check := 'T';
                                    O_v_app_check := 1;
                        O_amt := L_amt;
                        dbms_output.put_line('Approval check is:' || L_app_check);
                        dbms_output.put_line('Approval check exceeded? :' || O_app_check);
                        dbms_output.put_line('Parameter for Approval check is:' || O_v_app_check);
                            ELSIF C3.PO_AMT <= L_approval_limit then
                        dbms_output.put_line('Approval limit not exceeded');
                        dbms_output.put_line('Approval check is:' || L_app_check);
                        dbms_output.put_line('Parameter for Approval check is:' || O_v_app_check);
                                    L_app_check := 0;
                                    O_v_app_check := 0;
                            END IF;
                   IF c3.PO_AMT > c2.OTB_AMT1 THEN         -- Checking whether amount greater than OTB amount
                        dbms_output.put_line('OTB AMT is :' || c2.otb_amt1);
                        dbms_output.put_line('OTB limit Exceeded');
                                 L_otb_check := 1;
                                    O_app_check := 'T';
                                    O_v_otb_check := 1;
                        O_amt := L_amt;
                        dbms_output.put_line('OTB check is:' || L_otb_check);
                        dbms_output.put_line('OTB check exceeded? :' || O_app_check);
                        dbms_output.put_line('Parameter for OTB check is:' || O_v_otb_check);
                            ELSIF C3.PO_AMT <= C2.OTB_AMT1 THEN
                        dbms_output.put_line('OTB limit not exceeded');
                                    L_otb_check := 0;
                                    O_v_otb_check := 0;
                        dbms_output.put_line('OTB check is:' || L_otb_check);
                        dbms_output.put_line('Parameter for OTB check is:' || O_v_otb_check);
                            END IF;
                    END LOOP;
                    CLOSE C_OTB_CALCULATE;
            END LOOP;
            CLOSE c_PO_AMT;
         IF L_app_check = 0 and L_otb_check = 0 then            
              SELECT ORDER_NO, STATUS                     -- Checking whether there is a duplicate order number
              INTO L_order_no, L_status                    
              FROM AFE_POAPPROVAL
              WHERE ORDER_NO = I_ord_num;
              IF L_status = 'O' then                         -- If found and its stauts is open, update the record by changing the status column to "C"
                   UPDATE AFE_POAPPROVAL
                   SET STATUS = 'C'
                   WHERE ORDER_NO = I_ord_num;
                   COMMIT;
              END IF;
              INSERT INTO AFE_POAPPROVAL                    -- Inserting the record into AFE_POAPPROVAL when OTB and approval limit is below the PO amt
                    VALUES (I_ord_num, 1,'O',I_u_id,'ROLE1','N','N', SYSDATE,'S', L_amt);
              dbms_output.put_line('Inserted Record into AFE_POAPPROVAL');
                    COMMIT;                
            END IF;
          ELSIF L_code = '2' THEN                            -- If user id is category manager
         dbms_output.put_line('User is Category manager (ROLE 2)');          
               O_rol := '2';
                  SELECT r.ORD_APPR_AMT                                        -- will be checking the approval limit of that role
                  INTO L_approval_limit          
                  FROM  RTK_ROLE_PRIVS r, CODE_DETAIL c
                  WHERE r.role = c.CODE_DESC
                  AND c.CODE = L_code;
               dbms_output.put_line('Approval limit is :' || L_approval_limit);
                  OPEN c_PO_AMT;                                          -- OTB check based on dept,class
                  LOOP
                       FETCH c_PO_AMT into c3;
                    EXIT when c_PO_AMT%notfound;
              dbms_output.put_line('Entered 1st loop');
                    OPEN C_otb_CALCULATE(c3.order_type, TO_DATE(c3.po_month,'MONYYYY'), c3.dept, c3.class);
                    LOOP
                         FETCH C_OTB_CALCULATE into c2;
                            EXIT WHEN C_OTB_CALCULATE%notfound;
                   dbms_output.put_line('Entered 2nd loop');
                            L_amt := c3.PO_AMT;
                   dbms_output.put_line('PO AMT is:' || L_amt);
                            IF c3.PO_AMT > L_approval_limit THEN    -- Checking whether amount greater than approval limit
                        dbms_output.put_line('Approval limit exceeded');
                                 L_app_check := 1;
                                    O_app_check := 'T';
                                    O_v_app_check := 1;
                        O_amt := L_amt;
                        dbms_output.put_line('Approval check is:' || L_app_check);
                        dbms_output.put_line('Approval check exceeded? :' || O_app_check);
                        dbms_output.put_line('Parameter for Approval check is:' || O_v_app_check);
                            ELSE
                        dbms_output.put_line('Approval limit not exceeded');
                                    L_app_check := 0;
                                    O_v_app_check := 0;
                        dbms_output.put_line('Approval check is:' || L_app_check);
                        dbms_output.put_line('Parameter for Approval check is:' || O_v_app_check);
                            END IF;
                            L_otb_amt1 := c2.OTB_AMT1;
                   dbms_output.put_line('Selecting tolerance limit');
                            SELECT cd.code_desc                                     -- will be chekcing the tolerance limit
                            INTO L_tolerance_limit
                            FROM CODE_DETAIL cd, CODE_HEAD ch
                            WHERE ch.CODE_TYPE = cd.code_type
                            AND ch.CODE_TYPE = 'OTBT';
                            L_tolerance_limit := to_number(L_tolerance_limit);
                   dbms_output.put_line('Tolerance limit is:' || L_tolerance_limit);
                            L_otb_limit := c2.OTB_AMT1-(c2.OTB_AMT1 * (1- (L_tolerance_limit/100))); -- Will be calculating the tolerance limit
                   dbms_output.put_line('OTB AMT is :' || L_otb_amt);
                            IF c3.PO_AMT > L_otb_limit THEN         -- Checking whether amount greater than OTB amount
                        dbms_output.put_line('OTB limit exceeded');
                                 L_otb_check := 1;
                                    O_app_check := 'T';
                                    O_v_otb_check := 1;
                        O_amt := L_amt;
                        dbms_output.put_line('OTB check is:' || L_otb_check);
                        dbms_output.put_line('OTB check exceeded? :' || O_app_check);
                        dbms_output.put_line('Parameter for OTB check is:' || O_v_otb_check);
                            ELSE
                        dbms_out.put_line('OTB Limit not exceeded');
                                    L_otb_check := 0;
                                    O_v_otb_check := 0;
                        dbms_output.put_line('OTB check is:' || L_otb_check);
                        dbms_output.put_line('Parameter for OTB check is:' || O_v_otb_check);
                            END IF;
                    END LOOP;
                    CLOSE C_OTB_CALCULATE;
                  END LOOP;
                  CLOSE c_PO_AMT;
                  IF L_app_check = 0 and L_otb_check = 0 THEN            
                    SELECT ORDER_NO, STATUS                     -- Checking whether there is a duplicate order number
              INTO L_order_no, L_status
              FROM AFE_POAPPROVAL
              WHERE ORDER_NO = I_ord_num;
              IF L_status = 'O' then                         -- If found and its stauts is open, update the record by changing the status column to C
                   UPDATE AFE_POAPPROVAL
                   SET STATUS = 'C'
                   WHERE ORDER_NO = I_ord_num;
                   COMMIT;
              END IF;
                    INSERT INTO AFE_POAPPROVAL                    -- Inserting the record into AFE_POAPPROVAL when OTB and approval limit is below the PO amt
                    VALUES (I_ord_num, 1,'O',I_u_id,'ROLE2','N','N', SYSDATE, 'S', L_amt);                 
                    COMMIT;
              dbms_output.put_line('Inserted Record into AFE_POAPPROVAL');
                  END IF;
           ELSIF L_code = '3' THEN                                         -- If user id is category head
         dbms_output.put_line('User is Category Head (ROLE3)');
                O_rol := 3;
            OPEN c_PO_AMT;                                          -- OTB check based on dept,class
            LOOP
                 FETCH c_PO_AMT into c3;
                    EXIT when c_PO_AMT%notfound;
              dbms_output.put_line('Entered 1st loop');
                    OPEN C_OTB_CALCULATE(c3.order_type, to_date(c3.po_month,'MONYYYY'), c3.dept, c3.class);
                    LOOP
                         FETCH C_OTB_CALCULATE into c2;
                            EXIT WHEN C_OTB_CALCULATE%notfound;
                   dbms_output.put_line('Entered 2nd loop');     
                            L_amt := c3.PO_AMT;
                   dbms_output.put_line('PO AMT is :' || L_amt);     
                            IF c3.PO_AMT > c2.OTB_AMT1 THEN         -- Checking whether amount greater than OTB amount
                        dbms_output.put_line('OTB AMT is :' || c2.otb_amt1);
                        dbms_output.put_line('OTB Limit exceeded');
                                 L_otb_check := 1;
                                    O_app_check := 'T';
                                    O_v_otb_check := 1;                                        
                        O_amt := L_amt;
                        dbms_output.put_line('OTB check is:' || L_otb_check);
                        dbms_output.put_line('OTB check exceeded? :' || O_otb_check);
                        dbms_output.put_line('Parameter for OTB check is:' || O_v_otb_check);
                            ELSE
                        dbms_output.put_line('OTB limit not exceeded');
                                    L_otb_check := 0;
                                    O_v_otb_check := 0;
                        dbms_output.put_line('OTB check is:' || L_otb_check);
                        dbms_output.put_line('Parameter for OTB check is:' || O_v_otb_check);
                            END IF;
                    END LOOP;
                    CLOSE C_OTB_CALCULATE;
            END LOOP;
            CLOSE c_PO_AMT;
            IF L_otb_check = 0 THEN                                
    IF L_otb_check = 0 THEN                                
              OPEN C_RECORD_CHECK;
              LOOP
                   FETCH C_RECORD_CHECK INTO L_RECORD_CHECK;
                   EXIT WHEN C_RECORD_CHECK%notfound;
                   IF C_RECORD_CHECK%FOUND THEN
                        UPDATE AFE_POAPPROVAL
                        SET STATUS = 'C'
                        WHERE ORDER_NO = I_ord_num;
                        COMMIT;
                   END IF;
              END LOOP;
              INSERT INTO AFE_POAPPROVAL                    -- Inserting the record into AFE_POAPPROVAL when otb and approval limit is below the po amount
                     VALUES (I_ord_num, 1,'O',I_u_id,'ROLE3','Y','N', SYSDATE,'S', L_amt);
                     COMMIT;
              dbms_output.put_line('Inserted Record into AFE_POAPPROVAL');
            END IF;
         END IF;
      EXCEPTION
         WHEN OTHERS THEN
            O_error_message := SQL_LIB.CREATE_MSG('PACKAGE_ERROR',
                                                   SQLERRM,
                                                   L_program,
                                                   TO_CHAR(SQLCODE));
      END AFE_CHECK_SUBMIT;
    /Now i am executing the procedure ...
    SQL>SQL> @OUT_SUBMIT;
    Enter value for user: RMS12DEV
    old 12: o_user :='&user';
    new 12: o_user :='RMS12DEV';
    Enter value for order: 6139
    old 13: o_order :=&order;
    new 13: o_order :=6139;
    User id is :RMS12DEV
    Selecting the role
    No Record in table
    Role is :
    o_rol:
    O_app_check:
    O_v_app_check:
    O_v_otb_check:
    O_amt:
    O_ERR_MSG: N
    O_error_message:
    PL/SQL procedure successfully completed.
    If you have looked at the output .. after the variable is intialized to 'N', still I am getting msgs displayed .. Hope this is clear .. Now can you suggest the solution...
    Regards
    Message was edited by:
    Seshu
    Message was edited by:
    Seshu

  • Approval Procedure not triggered when Credit Limit Exceeded

    Hi,
    I've defined an approval procedure which I would like to launch when a clients Credit Limit has been exceeded. I've checked the required fields on Administration > General Settings > BP tab (credit Limit, Commitment Limit, AR Invoice, Delivery, SO). I've also checked the Activate Approval Procedures on the same tab.
    I know the approval procedure has been set up the correct way, since it is launched when I change the Terms to for instance 'Total document'. 
    There is a system-message when I am creating a Delivery Note for a customer indicating that the credit limit for this customer has been exceeded. But still, the system allows the user to add the document without triggering the approval procedure....
    What am I doing wrong?
    Btw: The credit limit exceeded is in negative numbers, but I've tried both the condition 'Deviation from Credit Limit greater than 1' and Deviation from Credit Limit Less than 1...

    Could you clarify what you mean by "The credit limit exceeded is in negative numbers"
    Negative number: the system message I get when I create a delivery note for a customer, exceeding the credit limit is the following:
    Customer has exceeded credit limit - 95.479 EUR
    Customer has exceeded commitment limit - 95.479 EUR
    Continue (Y/N)
    Make sure the Credit Limits are set in the BP Master. --> OK, credit limit is set to 100 EUR, Commitment limit to 100 EUR
    Also use Great than in Ratio and try to use a small number like 10 in the value  --> I am using 1 EUR
    Also, check in System Initialization > General Settings..BP Tab Activate approval procedure is checked. --> it is checked.
    Using the range option does not solve the problem, in fact even if I use 'Deviation from Credit Limit does not equal 1 EUR' the approval is not triggered. When I use the same Approval template, but I alter the terms to Total document greater than 1 or Discount% greater than 1 the approval is triggered.
    Edited by: Rui Pereira on Apr 29, 2009 1:19 PM

  • Payment term in the sales order & credit limit exceed.

    Dear Guru,
    Problem 1:
    1. In the sales order, there are 3 lines items. As per there requirement each line item they want enter diffrent payment term.
    for example
            Material code                                              Payment terms
    1.      Fixed                                                               z045
    2.     Variable                                                           z030
    3.    Pipes                                                                 z015
    how you can archive this goal. In customer master payment term is maintained only one. Please suggest me.
    Problem 2:
    1. Credit managment, If the credit  block is there in the sales order(Due to credit limit exceed) order confirmation is no goes to customer.
    how we can archive this goal  by using the standard functionality.

    Hi,
    1. You can achieve it through manual entries
    If you have 3 line item then at item level >> Billing document maintain payment terms
    2. If credit limit exceed then confirmation should not go to customer
    Can you tell me currently how you sending confirmation to customers
    If it is through simple mail then go to
    IMG >> SD >> Basic functions >> Output control >> Output determination using condition techniques >> maintain out put determination for sales document >> maintain out put determination procedure
    Select procedure V10000 >> go to control data
    for condition type MAIL maintain requirement 9/11
    (If this is not work then create new routine and add your logic that if credit limit exceeds then do not(trigger) send confirmation)
    kapil

  • Trigger approval process when deadline had exceeded

    Hi all,
    In the workflow  WS10400002 (One-step approval) , when the deadline had exceeded the approval should happen automatically.
    While checking in the latest end tab, an alert mail can be triggered. but how do we make sure that the approval process happens automatically if the deadline is missed.
    Thanks and regards
    Kishan

    Kishan
    As such there is no system functionality to achieve what is required..
    Please create a program to check for deadline and use a workflow approve FM to explicitly approve your cart.. And run this program as a batch job..
    Hope this helps.. Please let me know if you have more questions (or need the FM to approve)..
    Regards
    Rakesh
    Ps. Please close the thread if your question is answered..

Maybe you are looking for

  • Reg : Crystal Report Exporting to Excel , Border not Found in Excel.

    Dear Expert , As we are Working in a project , where we are using the crystal report as reporting Tool. after importing the report into enterprise. we are plan to export to the excel sheet. where we are facing the issue with , the borders and line ar

  • Some problems with ESB

    Hi all. I have three issues here I have an ESB project that includes the following items: a) A routing service based on a WSDL that I created manually. First I created the WSDL with four operations (getSiadInfo, getSiafiInfo, getSisapInfo, getRaioXIn

  • One step idvd was was connecting with camera and it has stopped connecting

    i had camera Canon Elura 100 connected to firewire to computer.  I was using one step IDVD and it was working.  Starting using I movie on another camera downloading from a camera card.    Went back hook up firewire to Cannon camera and it will not re

  • Print Picking list for late operation in WO

    Hello Experts, I am not an expert in PP module, however i have a requirement to be able to generate a picking list automatically in a Work order for the components which are assigned to an operation that will happen in futur. Let say we have a WO wit

  • Web Service Authentication Question

    Hello, I'm trying to integrate ApEx with my company's ticketing system. The ticketing system provides web services that are defined in the http://server/folders/webservices.asmx file. When I try to add a web service reference to that file I get the f