Help : commit processing

Hello,
I want to change the commit precosess, so
when forms will save items into database,
I want it to skip one item and do not save it even if it has receive a value!!!!!!
I think that I have to use a key-commit trigger,
but how can I prevent the comit of the item!!!
Thanks for help

Ino, Steve
I agree with both of you.
Jina
(1) Your first question was
I want forms to commit this item when it's value is :X
and do not when it's != X!!!This means you didn’t want forms to commit only this particular item. There was no mention about the database trigger there !!! Meaning you had issue only with commit of that particular item.
(2) Your second statement was
I don't want want forms to take consideration of this item
when commit processing is done because I have a database trigger that I don't want it to >execute when the value of this item ='X'When you say "you don’t want forms to take consideration of this item when commit processing is done" it means that you want form to ignore the item and not commit it but at the same time commit others.
Is your issue the firing of trigger or the commit of that particular item or BOTH ??
(3) Anyway this is my understanding of your issue :
(a) If you are accessing the table from your forms application and the value of a particular item is 'X' then you don’t want the database trigger on that table to fire at all.
(b) If you are accessing the table from your forms application and the value is !='X' then the normal processing should continue and the database trigger should fire as usual.
(c) If you are accessing the table from any other applications, irrespective of value of that item, the normal processing should continue and the database trigger should fire as usual.
Assuming your database trigger fires before insert or update on that table, and above conditions (a),(b),(c) are true, then you could create an extra column in the base table which acts like a flag. You could set the flag column value to lets say 1 from your forms application. Set it to lets say 2 from other applications.
In the trigger solution given by Ino you could make following changes
IF :new.flag = 1 AND :new.item = 'X' THEN
-- no changes. The trigger shall still be fired, but whatever code in the trigger shall not execute.
NULL;
ELSE
-- do something ... Whatever you want the trigger to do
END IF;
REMEMBER here that if that item is a database table item then it shall still be committed, with whatever value it holds, like the other items. If you don’t want the item to commit, Ino gave you the solution. Make it a non-database item. Then if the value is correct and you want to commit the item, in pre-insert trigger assign the value to a non-display item that represents the database column. If the column is non mandatory and the application does not supply any value for it, then
(1) The column's default value as specified when the table was created is inserted or updated
(2) If no default value was specified, then a null value.
If your database trigger is different, then the solution might differ. In that case post a reply along with the database trigger.
Regards
Poorvi Solanki

Similar Messages

  • Transaction BEA1-2CC7F743D067E50C6CCB cannot complete commit processing because resource [SOADataSource_soa_domain] is unavailable

    Hi All,
    When I started admin server I was told the SOAdatasource (one of the datasources usual for SOA), global transaction protocol should be modified from 'one-phase Commit' to either 'Logging Last Resource'' or 'Emulate Two-Phase Commit'.SO I just went to below screen and changed (Supports Global Transactions checkbioc is already checked when I went there) radio box option from 'one-phase commit' to 'Logging Last Resource'
    After I changed ,I clicked on save button on the same page.I got the message like 'your property got changed,but one item restart is neccessary' .I thought I need to restart the server.
    So I again restarted the admin server and After that when I am started the SOA server, I am getting below  error:
    Jan 20, 2014 1:27:16 PM BRST> <Warning> <JTA> <BEA-110486> <Transaction BEA1-2CC7F743D067E50C6CCB cannot complete commit processing because resource [SOADataSource_soa_domain] is unavailabl
    e. The transaction will be abandoned after 78,780 seconds unless all resources acknowledge the commit decision.>
    <Jan 20, 2014 1:28:16 PM BRST> <Warning> <JTA> <BEA-110486> <Transaction BEA1-2CC7F743D067E50C6CCB cannot complete commit processing because resource [SOADataSource_soa_domain] is unavailabl
    e. The transaction will be abandoned after 78,720 seconds unless all resources acknowledge the commit decision.>
    I also tried to change that option to Emulate Two-Phase Commit.It is the same error I am geting for that option also.
    I don't have any idea why it is happening.I think that error indiactes that the saved property info is not reached to other components in the same server.
    In this same oracle forums, somebody told the below process :
    1_ Stop your server.
    2. Go to [your domain]\servers\AdminServer\data\store\default.
    3. WLSADMINSERVER_[random number].DAT
    4. Restart server
    I did the samething ,but it is still showing same error.
    Please guide me how to resolve this issue.I think there is some problem with what to restart after I change the option of transaction protocol.
    Please help me out in this issue

    Hi:
    try placing the jars that represent ur driver, here
    For both Windows and Linux, you must perform the following steps:
    Drop the vendor-specific driver JAR files to the user_projects/domains/soainfra/lib directory.
    Drop the vendor-specific driver JAR files to the <Weblogic_Home>/server/lib.
    Edit the classpath to include the vendor-specific jar file in <Weblogic_HOME>/common/bin/commEnv.sh
    This info was copied, from here: http://docs.oracle.com/cd/E21764_01/integration.1111/e10231/adptr_db.htm#CHDBEJDC
    Hope this helps
    best

  • Timeout during commit processing

    Hi All,
    I am facing time out exception on test environment. It is clustered environment with 2 nodes. I have set trust domain between the two weblogic domains.
    In one of my EJB method having tranaction attrbiute set as Required. In this method I also make a remote ejb call to different system for which I have set Trust.
    When i execute this method , I see all my debug statement entering the method and exiting the method, after it exits my method , my client still waiting on response from this method and finally he get the java.rmi.RemoteException.
    Detailed exception as below....
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
         com.bea.control.ServiceControlException: <xml-fragment xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> <faultcode> SOAP-ENV:Client </faultcode> <faultstring> Exception while commiting Tx : Name=[EJB com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(com.bea.wlw.runtime.core.request.Request)],Xid=BEA1-0074571ED882A67DA1E5(11375621),Status=Committing,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=118,seconds left=2,XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(ServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=committed,assigned=NodeOne),xar=weblogic.jdbc.wrapper.JTSXAResourceImpl@190af6,re-Registered = false),SCInfo[p2pDomain+NodeOne]=(state=committed),SCInfo[mycompany+NodeOne]=(state=committing),properties=({weblogic.transaction.name=[EJB com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(com.bea.wlw.runtime.core.request.Request)], weblogic.jdbc=t3://192.168.86.61:7001}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=NodeOne+192.168.86.61:7001+p2pDomain+t3+, XAResources={},NonXAResources={})],CoordinatorURL=NodeOne+192.168.86.61:7001+p2pDomain+t3+); nested exception is:
         javax.transaction.SystemException: Timeout during commit processing </faultstring> <detail>
    Exception while commiting Tx : Name=[EJB com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(com.bea.wlw.runtime.core.request.Request)],Xid=BEA1-0074571ED882A67DA1E5(11375621),Status=Committing,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=118,seconds left=2,XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(ServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=committed,assigned=NodeOne),xar=weblogic.jdbc.wrapper.JTSXAResourceImpl@190af6,re-Registered = false),SCInfo[p2pDomain+NodeOne]=(state=committed),SCInfo[mycompany+NodeOne]=(state=committing),properties=({weblogic.transaction.name=[EJB com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(com.bea.wlw.runtime.core.request.Request)], weblogic.jdbc=t3://192.168.86.61:7001}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=NodeOne+192.168.86.61:7001+p2pDomain+t3+, XAResources={},NonXAResources={})],CoordinatorURL=NodeOne+192.168.86.61:7001+p2pDomain+t3+); nested exception is:
         javax.transaction.SystemException: Timeout during commit processing </detail></xml-fragment>
         at weblogic.ejb20.internal.EJBRuntimeUtils.throwRemoteException(EJBRuntimeUtils.java:102)
         at weblogic.ejb20.internal.BaseEJBHome.handleSystemException(BaseEJBHome.java:307)
         at weblogic.ejb20.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:263)
         at weblogic.ejb20.internal.StatelessEJBObject.postInvoke(StatelessEJBObject.java:140)
         at com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl.invoke(SyncDispatcher_k1mrl8_EOImpl.java:56)
         at com.bea.wlw.runtime.core.dispatcher.Dispatcher.remoteDispatch(Dispatcher.java:161)
         at com.bea.wlw.runtime.core.dispatcher.ServiceHandleImpl.invoke(ServiceHandleImpl.java:436)
         at com.bea.wlw.runtime.core.dispatcher.WlwProxyImpl._invoke(WlwProxyImpl.java:326)
         at com.bea.wlw.runtime.core.dispatcher.WlwProxyImpl.invoke(WlwProxyImpl.java:315)
         at $Proxy17.updatePurchaseOrder(Unknown Source)
         at newpageflow1.Newpageflow1Controller.begin(Newpageflow1Controller.jpf:75)
         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:324)
         at com.bea.wlw.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:1519)
         at com.bea.wlw.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:1445)
         at com.bea.wlw.netui.pageflow.FlowController.internalExecute(FlowController.java:776)
         at com.bea.wlw.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java:211)
         at com.bea.wlw.netui.pageflow.FlowController.execute(FlowController.java:606)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.processActionPerform(PageFlowRequestProcessor.java:1354)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:650)
         at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:527)
         at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:152)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:326)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.superForward(PageFlowRequestProcessor.java:1301)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor$DefaultHttpRedirector.forward(PageFlowRequestProcessor.java:1317)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlowRequestProcessor.java:1199)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:637)
         at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:527)
         at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:152)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: com.bea.control.ServiceControlException: <xml-fragment xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> <faultcode> SOAP-ENV:Client </faultcode> <faultstring> Exception while commiting Tx : Name=[EJB com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(com.bea.wlw.runtime.core.request.Request)],Xid=BEA1-0074571ED882A67DA1E5(11375621),Status=Committing,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=118,seconds left=2,XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(ServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=committed,assigned=NodeOne),xar=weblogic.jdbc.wrapper.JTSXAResourceImpl@190af6,re-Registered = false),SCInfo[p2pDomain+NodeOne]=(state=committed),SCInfo[mycompany+NodeOne]=(state=committing),properties=({weblogic.transaction.name=[EJB com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(com.bea.wlw.runtime.core.request.Request)], weblogic.jdbc=t3://192.168.86.61:7001}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=NodeOne+192.168.86.61:7001+p2pDomain+t3+, XAResources={},NonXAResources={})],CoordinatorURL=NodeOne+192.168.86.61:7001+p2pDomain+t3+); nested exception is:
         javax.transaction.SystemException: Timeout during commit processing </faultstring> <detail>
    Exception while commiting Tx : Name=[EJB com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(com.bea.wlw.runtime.core.request.Request)],Xid=BEA1-0074571ED882A67DA1E5(11375621),Status=Committing,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=118,seconds left=2,XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(ServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=committed,assigned=NodeOne),xar=weblogic.jdbc.wrapper.JTSXAResourceImpl@190af6,re-Registered = false),SCInfo[p2pDomain+NodeOne]=(state=committed),SCInfo[mycompany+NodeOne]=(state=committing),properties=({weblogic.transaction.name=[EJB com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(com.bea.wlw.runtime.core.request.Request)], weblogic.jdbc=t3://192.168.86.61:7001}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=NodeOne+192.168.86.61:7001+p2pDomain+t3+, XAResources={},NonXAResources={})],CoordinatorURL=NodeOne+192.168.86.61:7001+p2pDomain+t3+); nested exception is:
         javax.transaction.SystemException: Timeout during commit processing </detail></xml-fragment>
         at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:1233)
         at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:377)
         at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423)
         at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:396)
         at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:248)
         at com.bea.wlw.runtime.jcs.container.JcsContainer.invoke(JcsContainer.java:85)
         at com.bea.wlw.runtime.core.bean.BaseContainerBean.invokeBase(BaseContainerBean.java:224)
         at com.bea.wlw.runtime.core.bean.SLSBContainerBean.invoke(SLSBContainerBean.java:103)
         at com.bea.wlwgen.StatelessContainer_ly05hg_ELOImpl.invoke(StatelessContainer_ly05hg_ELOImpl.java:99)
         at com.bea.wlwgen.GenericStatelessSLSBContAdpt.invokeOnBean(GenericStatelessSLSBContAdpt.java:62)
         at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.runAsInvoke(BaseDispatcherBean.java:153)
         at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.invoke(BaseDispatcherBean.java:54)
         at com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(SyncDispatcherBean.java:168)
         at com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl.invoke(SyncDispatcher_k1mrl8_EOImpl.java:46)
         ... 53 more
    appreciated any help on this .....
    hitesh

    Hi skrai,
              From the moment the begin call is made, the timer starts ticking independently of the flow of your processing. When the timeout expires, the Transaction Manager will roll the transaction back. The first you hear of that happening may be when calls you make in the thread associated with the transaction start to throw exceptions, since it is not possible to propagate a rolled-back transaction (what would be the point, the results of the call will not persist under any circumstances?).
              Therefore suspending a transaction has no impact whatsoever on its timeout; it simply breaks the association between transaction and thread. If your code suspends a transaction and then goes to sleep for a week, it should expect to find that the transaction has timed out while it slept.
              So when U invoke an EJB with "NotSupported" tx attribute, the clock with the tx manager is still ticking.
              Hope my explanation helped to resolve your issue.
              Thanks
              -Rais

  • Transactional triggers and commit processing

    I have only been an active member of this thread for a couple of weeks and have tried to contribute to a few postings. But I have also noticed lots of postings relating to the use of DML statements inside what I would call non commit time triggers.
    What I mean here is, for example, a WHEN-BUTTON-PRESSED trigger that does inserts, updates, deletes, followed by the COMMIT_FORM procedure.
    I thought it might be useful to draw attention to the possible pitfalls of this approach. I'm not saying that this approach is wrong - far from it, but sometimes it means that people aren't leveraging the functionality that you get "for free" from Forms.
    By coding some DML followed by a Commit_Form, you are not getting any rollback functionality from Forms. For example:
    INSERT INTO A
    INSERT INTO B
    COMMIT_FORM;
    Let's imagine that the insert into A worked but the insert into B failed for some reason. The user gets an unhandled exception. Now imagine that the cause of the error is cleared up, and the user presses the button (or whatever the invokation action was) again, and the commit works. You will have 2 records in A and 1 in B. You may not have expected that, and without coding your own rollback/savepoint that's what you would get.
    You also (1) don't get a Working... message without coding it yourself, and (2) get the "No changes to commit" message; removing this is the subject of many threads on this site.
    If you have a block which is based over a table which you need to update, then all of the DML statements ought to be coded inside PRE/POST/ON INSERT/UDPATE/DELETE statements, or other Forms transactional triggers (pre-database-commit etc..). If you need to change other tables then put the DML for them inside those triggers. Then you don’t have to worry about which records the user changed – if the user didn’t touch them then Forms won’t fire the triggers. And when you call the COMMIT_FORM procedure, Forms will fire the triggers for you and if any of them fail, it will rollback back to where the COMMIT_FORM started.
    An example in 1 thread I saw this morning, was a Delete button, which was to delete the current record in a multi-record block. This button performed the “DELETE FROM <table> WHERE <key=:block.key>” followed by a Commit. Then of course the block needed to be re-queried to reflect the fact that the record had gone. Using the power of Forms to simply call the DELETE_RECORD procedure would have achieved the same result without needing to requery the block. And Forms would do the delete by ROWID, the fastest way of doing it.
    If you don’t have a block based over a table, then you can consider creating a dummy block which uses Transactional Triggers. Code an ON-INSERT on that block which includes the DML you want to execute. Then in the trigger initiating the commit processing you would do something like:
    :DUMMY_BLOCK.ITEM1 := ‘X’;
    COMMIT_FORM;
    IF (NOT FORM_SUCCESS) OR :SYSTEM.FORM_STATUS != ‘QUERY’ THEN
    -- the commit failed
    END IF;
    Then you’ll get a nice Working.. message and full rollback control.
    I think the moral of what I’m trying to get across is to use the power of Forms in the way it handles the transactions. Whilst we moan about it, it is actually quite good at that!
    I hope this posting is taken in a positive light, I am certainly not trying to teach anyone to “suck eggs”.
    PS. I find it ironic that you were prevented from coding DML statements outside of commit time triggers, in Forms 2.3!

    Thank you, Kevin. Very informative.

  • Commit processing in Forms 10g, what triggers fire etc.

    In the oracle documentation there used to be a commit processing flowchart that said exactly what triggers fire on commit. Don’t seem to be able to find such a thing online.
    This started by trying to work out if when-validate-item always fired on commit, even if it had been fired when the value was changes. It has turned into a more general question about the above and if it is any different in forms 10g and is it any different to 6i, 9i...?
    I.e. how do you answer the standard oracle job interview question 'what triggers are fired when you commit in forms?'.
    Oracle seems to of hidden the information, anyone know the answer?
    Regards,
    Ben

    Hello,
    Something like this:
    POST-TEXT-ITEM
    POST-RECORD
    POST-BLOCK
    PRE-COMMIT
    PRE-UPDATE
    ON-UPDATE
    POST-UPDATE
    PRE-INSERT
    ON-INSERT
    POST-INSERT
    POST-FORM-COMMIT
    ON-COMMIT
    POST-DATABASE-COMMIT
    PRE-BLOCK
    PRE-RECORD
    PRE-TEXT-ITEM
    WHEN-NEW-ITEM-INSTANCE
    Francois

  • SALESPERSONS COMMISSIONS PROCESS

    Hai Friends
    I would request to provide information on  SALESPERSONS COMMISSIONS PROCESS  in SAP SD .
    1. What are the IMG Settings needed.
    2. What are the master data , I have to create .
    3. Without implementing HR module , Can I configure  SALESPERSONS COMMISSIONS PROCESS in SD .
    Regards
    Jayapala S.H

    Dear,
           In our company we have develop the report for salesperson commision in SAP. So contact your ABAP developer...
    Regards,
    Sandip Shaktavat

  • Javax.transaction.SystemException: Timeout during commit processing

              In my Workshop 8.1 SP2 project I have a Custom Java Control whose methods I call
              from my JPF. From that custom control I create a remote connection to a Weblogic
              6.1 Application server. I execute remote methods and get the expected objects
              back with no problem. The problem is that I cannot return that object from my
              custom control back to my jpf. As soon as the method's return statement is executed,
              the process hangs for a considerable period of time and then throws the following
              Exception:
              An error has occurred:
              Exception while commiting Tx : Name=[EJB com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(com.bea.wlw.runtime.core.request.Request)],Xid=BEA1-0005BF0F3E6E72419698(655489),Status=Unknown,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds
              since begin=217,seconds left=42983,XAServerResourceInfo[BMResourceManager]=(ServerResourceInfo[BMResourceManager]=(state=new,assigned=none),xar=null),SCInfo[midway+cgServer]=(state=active),SCInfo[prdsdomain+prdsserver]=(state=active),properties=({weblogic.transaction.name=[EJB
              com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(com.bea.wlw.runtime.core.request.Request)]}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=cgServer+172.23.83.174:7001+midway+t3+,
              XAResources={},NonXAResources={})],CoordinatorURL=prdsserver+172.23.4.109:7041+prdsdomain+t3+);
              nested exception is:
              javax.transaction.SystemException: Timeout during commit processing
              Start server side stack trace:
              javax.transaction.SystemException: Timeout during commit processing
              at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:243)
              at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:189)
              at weblogic.transaction.internal.CoordinatorImpl.commit(CoordinatorImpl.java:68)
              at weblogic.transaction.internal.CoordinatorImpl_WLSkel.invoke(Unknown Source)
              at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
              at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:274)
              at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              End server side stack trace
              caused by: : javax.transaction.SystemException: Timeout during commit processing
              Start server side stack trace:
              javax.transaction.SystemException: Timeout during commit processing
              at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:243)
              at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:189)
              at weblogic.transaction.internal.CoordinatorImpl.commit(CoordinatorImpl.java:68)
              at weblogic.transaction.internal.CoordinatorImpl_WLSkel.invoke(Unknown Source)
              at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
              at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:274)
              at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              End server side stack trace
              As soon as I take out RMI calls from my custom control's code, I can return any
              object I want back to my JPF. Here is the what I am thinking is happenning.
              The system that runs on Weblogic 6.1 manages its own transactions and begins a
              new transaction every time a session bean residing on that server is invoked.
              In addition, Weblogic 8.1 starts an internal transaction when the Custom Java
              Control makes a call. Could there be some kind conflict? If yes, is it possible
              to disable transactions from the Java Control?
              Thank you very much
              Alex Mayzlin
              

    Horst,
              "aa aa" <[email protected]> wrote in message news:20701457.1093414960276.JavaMail.root@jserv5...
              > we are getting the same Exception. As nobody replied to your question, it would be interesting, if you found any solution
              yourself?
              >
              > Additional info:
              > We are also getting these error messages from BEA when testing connections in pool before and after the exception:
              >
              > <20.08.2004 19.32 Uhr CEST> <Error> <JDBC> <BEA-001112> <Test "SELECT count(*) FROM invoice" set up for pool "ABCConnection Pool"
              failed with exception: "java.sql.SQLException: ORA-01591: lock held by in-doubt distributed transaction 4.47.141655".>
              Generally it's a good idea to use Oracle's system DUAL table
              for testing connections on reserve. Try to change your ABCConnection
              connection pool configuration to use DUAL as the test table
              instead of "invoice".
              Regards,
              Slava Imeshev
              

  • Err:Help- Parellel processing of delivery generation  is active*

    Hi
    I got this while creating a delivery in VL10. 
    "Wait for next parellel processing , wait for all 1 parell processing session or return to the list by selecting cancel "
    in another  pop box, Help- Parellel processing of delivery generation  is active
    If any one familiar with this error , pls help me to understand what could be the reason and what I need to do for fixing it pls .....
    Thanks In Advance

    Jaya,
    On your User Role Tab, try setting the Max number of tasks to zero.  Depending on your config, this field may not be locked.  Otherwise, try finding a Role/Scenario combination which presets this field to zero.
    Try setting 'List of blocked documents' to blank.
    Try setting 'list type' to '2'
    Try deselecting 'Selected items' checkbox.
    This is not goof-proof, VL10 sometimes likes to fire off in parallel on its own.  There are a host of OSS notes about this transaction, some of which talk about parallel processing.  Check [OSS 399068|https://service.sap.com/sap/support/notes/399068] and related notes.
    Also, check for any jobs running program RVV50R10S (this is VL10) in the background.  If these are running parallel tasks, you may have to wait for them to finish before you can begin new parallel tasks.
    Regards,
    DB49

  • Needs help to process data from a form in php

    Hello there,
    Under "About us", is the contact us page where I would like
    to collect data. But I could not get it processed.
    I used but am very new to php. Anyhow, what I want to process
    is to send all the data collected to my email address, and at the
    same time, to display a simple Thank You page. I am attaching my
    code.
    I certainly HOPE someone can help me out as I have been
    trying for quite a while now and need to get it done ASAP...
    Many Thanks,
    matt
    Text

    Hi Sayaf
    It sounds like you need to use "Array Subset.vi" to split the 2000000 into 250000 element blocks.
    Set the index on Array Subset to 0 and then increment by 250000 after processing and displaying each block.
    Good luck
    Neil

  • Urgent help regarding process chain error

    hi experts ,,
    one of the process chain is not running properly for last 5 days ....
    now current status of process chain is red ...and msg is last delta isrunning/has errors ..couldnt process request
    msg of yester days chain ........
    Errors have been reported in Business Information Warehouse during IDoc update:
    Could not find code page for receiving system
    error msg in bd87 (with idoc status 02 )
    tried to process idoc manually but it didnt happen ...throughing same error....
    one more thing here is same process chain status on 16th is in yellow status .....
    its in yellow status at dtp load step ....on right click on dtp_load variant --->in batch montior --->job overview
    dtp_laod job was is ready status ....
    i thought this status effecting others so tried to schedule the job couldnt ....
    so deleted job in confession....
    now and process which is bfr dtp_load is in yellow and whole chain is in yellow ....
    what shall i do now ??how to correct this ??
    shall run dtp manually and dso activation manually ???and shall i make process into green  status ???
    or shall retrive deleted job wit basis ppl help???
    please help me...
    whoever helps me to fix this issue will rewarded wit full points and i will be greatful to them ...
    Regars, \
    Harry...

    Yes, as rightly said you need to run the previous delta before updating new records in the latest request. If possible de-schedule the chains for a while, delete the old deltas (assuming you are using flexible updates?) and try to repeat the loads manually & proceed to activate & schedule once the delta has finished processing. If you still think this is an issue related to idocs processing, you can do the re-processing, provided they do not create fresh batch of idocs in the source system. You can re-process the idocs both inbound & out bound using reports like RBDAGAIN (But again, use extreme caution on these!). Please refer the #scn wiki on http://goo.gl/njVLS for more information on the idocs. For reprocessing please check this http://goo.gl/8aAcz. Thanks.

  • Urgent help for processing XML stream read from a JAR file

    Hi, everyone,
         Urgently need your help!
         I am reading an XML config file from a jar file. It can print out the result well when I use the following code:
    ===============================================
    InputStream is = getClass().getResourceAsStream("conf/config.xml");
    BufferedReader br = new BufferedReader(new InputStreamReader(is));
    String line;
    while ((line = br.readLine()) != null) {
    System.out.println(line); // It works fine here, which means that the inputstream is correct
    // process the XML stream I read from above
    NodeIterator ni = processXPath("//grid/gridinfo", is);
    Below is the processXPath() function I have written:
    public static NodeIterator processXPath(String xpath, InputStream byteStream) throws Exception {
    // Set up a DOM tree to query.
    InputSource in = new InputSource(byteStream);
    DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance();
    dfactory.setNamespaceAware(true);
    Document doc = dfactory.newDocumentBuilder().parse(in);
    // Use the simple XPath API to select a nodeIterator.
    System.out.println("Querying DOM using " + xpath);
    NodeIterator ni = XPathAPI.selectNodeIterator(doc, xpath);
    return ni;
    It gives me so much errors:
    org.xml.sax.SAXParseException: The root element is required in a well-formed doc
    ument.
    at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213
    at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XM
    LDocumentScanner.java:570)
    at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.endO
    fInput(XMLDocumentScanner.java:790)
    at org.apache.xerces.framework.XMLDocumentScanner.endOfInput(XMLDocument
    Scanner.java:418)
    at org.apache.xerces.validators.common.XMLValidator.sendEndOfInputNotifi
    cations(XMLValidator.java:712)
    at org.apache.xerces.readers.DefaultEntityHandler.changeReaders(DefaultE
    ntityHandler.java:1031)
    at org.apache.xerces.readers.XMLEntityReader.changeReaders(XMLEntityRead
    er.java:168)
    at org.apache.xerces.readers.UTF8Reader.changeReaders(UTF8Reader.java:18
    2)
    at org.apache.xerces.readers.UTF8Reader.lookingAtChar(UTF8Reader.java:19
    7)
    at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.disp
    atch(XMLDocumentScanner.java:686)
    at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
    canner.java:381)
    at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.
    java:195)
    at processXPath(Unknown Source)
    Thank you very much!
    Sincerely Yours
    David

    org.xml.sax.SAXParseException: The root element is required in a well-formed document.This often means that the parser can't find the document. You think it should be able to find the document because your test code could. However if your test code was not in the same package as your real (failing) code, your test is no good because getResourceAsStream("conf/config.xml") is looking for that file name relative to the package of the class that contains that line of code.
    If your test code wasn't in any package, put a slash before the filename and see if that works.

  • Help with processing groups of records in database

    Ok i'm at work right now trying to finish up a project for my class and what it is is a basic class to process an inner join sql statement generated table from access and order it by the student id in order to group each student together. I have written the sql statement and logic to access the database and return the array of row objects to the command line so i know it is grouping and returning info properly. I have written the conditional if statement to get the gradePoints for A = 4, B = 3, C = 2, D = 1, and F = 0 in a class method (KEEP IN MIND THE GENERATED TABLE CONSISTS OF SID, NAME, COURSE#, COURSETITLE, AND LETTERGRADE) now I just need to process each group of students individually and calculate their overall gpa's. Here in lies the problem. I imagine i need to define current student variables as like
    currentID = s[0].getStudentID();
    currentName = s[0].getStudentName();
    then loop through the values of the array with something like
    for(int j = 0; j < s; ++j)
    if(s[j].getStudentID != currentID)
    Process the grade records for the group Then reset the
    current student to the next in line with another variable
    assignment like
    currentID = s[j].getStudentID();
    currentName = s[j].getStudentName();
    }(end of if)
    Process the row object for the student created by this loop and then add it to the output string
    } (end of for loop)
    Ok so where i need help is the logic to process the grade records for the individual groups and then processing the row object. We haven't gone over anything like this in class and it is the last thing on my list to to do so any help would be appreciated. Also, if you think i'm an idiot keep it to yourself please it's not fun for people who really need help and really would like to know for future reference how to do something to be belittled. Thanks again
    Matt
    Message was edited by:
    djmd02

    sorry i guess is hopuld explain this better...I know
    sql relatively well and the sql statement for my
    query string is rediculously long with two inner
    joins and what it returns is the sid, name,
    coursenumber, coursename, and lettergrade So if you know SQL so well, why haven't you created a ViEW using this "ridiculously long" query and made your life easier?
    Two inner joins? Nothing extraordinary about that.
    this query
    generated table is then used to populate an array of
    objects for each entry in the table. They are already
    put in order depending on sid by the sql statement
    (for example)
    11111 matt deClercq 3380 intro to java A
    11111 matt deClercq 3382 database management A
    11112 john doe 3380 intro to java A>
    and so on. The problem i am having is within the for
    loop to detect the end of each student and process
    their grades for each class and calculate the gpa for
    the whole group of grades that that student has.SQL is a declarative language, not procedural. If you're "looping", it suggests to me that you're pulling all that data into the middle tier and doing the calculation in Java.
    I'm suggesting that there's a perfectly good way to do this calculation in SQL without using your ridiculous query. You might be better served if you try and figure out what that is.
    Hope this makes things a little more clear and makes
    me look a little bit more intelligent than i seemStop worrying about what people think and concentrate on your problem. You're a student. It's unlikely that you're going to appear to be on the level of Bill Joy at this point in your career. I'd be a lot more impressed if you'd stop whining about how people perceive you.
    %

  • Help in Process Chains?

    Hi Guru's,
    I am new to Process chain topic.we have almost 60 PC's , My question is ,chain steps are START ->LOAD(clentnumber)->ACR->Abend program,this is flow of data in chain ,alternatively the chain was failes only on load step?As per my knowledge due to duplicats recordes loading .but i want permanent solution for this resason ,why it fails only on load step?
    so plz could any body help on this.
    Thanks&Regards,
    Goodyear,

    Hi Good year,
       You are having problem with your data(duplicate records) thats why it is failing at loaing. Some times PC's fails at ACR(attribute change run), bcoz of ACR locking.
    For more info..see the below links.. similar posts
    Re: Master data load: Duplicate Records
    Hope this Helps
    Srini

  • Need help to process attachment data

    Dear all,
    I have the following use case.
    1. I have one BPEL process which takes multipart MIME attachment with others parameters.
    2. i have to save the attachment to the database through DBAdpter and do some business process.
    My BPEL process taking attachment from standalone client and another BPEL process requester, All workings fine when the content-Id of the mime part is the physical address of the attachment file and the client and BPEL process in the same machine. By readFile() function i can get the file.
    But if i will send file with content-id:<[email protected]> - certainly it's not working.
    I would like to get any information how the Mime attachment works in BPEL process also how to retrieve the mime attachment from the SOAP message in BPEL.
    I examine the samples and demos supplied with SOA suit but can't figured. My SOA suit is 10.1.3.1
    Any help or suggestion will be welcome. Thank'x in advance.
    Best Regards
    Shamim

    Is there also a way to set up the new Hard Drive so that my old programs will work again (GarageBand, iTunes' DRM-encoded mp4's that require the "original" signal, etc.) And how do I take off the second copy of OS X from my old hard drive before I get the disc image for a new hard drive?? Essentially, how do I set up the new drive so that it's like my original setup?

  • Need help in process monitoring

    hi,
    i wanna do a java program for displying all the current running processes in the system and for displaying the performance graph. jus like the task manager..so i need to use some unix commands to get all the processes i guess...can anyone help me in this??
    thanks in advance..

    We could help you, but you'd have to ask a specific question.
    First of all I'd like to point out that Java is not the perfect tool for that job. You've already noticed that you will require resources (applications) that are not provided by Java to do that work, but if you want to, you can probably do it in Java.
    What exactly do you have a problem with?

Maybe you are looking for