3146: Commit happened in activity/function 'MAIN_REQAPPRV_PROCESS

I am currently getting this error within requisition approval for our test environment. What is happenning is that the requsition is getting approved anf when it goes to be created into a PO it errors with the 3146 error above. I have checked the code and only found one commit statement, which may be something that causes the error, but even after it has been commennted out it still errors. THe wf is eactly the same in our dev environment and we have no problems there.
Any ideas greatfully accepted.
3146: Commit happened in activity/function 'MAIN_REQAPPRV_PROCESS:LAUNCH_CREATE_PO_WF/PO_REQAPPROVAL_LAUNCH.LAUNCH_CREATEPO_WF'

There could be one more commit causing this issue. :)
Whenver workflow engine executes a function activity, it sets a savepoint before calling the function activity procedure so that if there is an exception within the called procedure, the transaction is rolled back till the point of entry for that current activity alone and the rest of the trasanction committed to the database.
If there is a commit inside the called procedure, the savepoint is erased and then if the procedure throws an exception, the workflow engine attempts to rollback and causes no_savepoint exception that results in this error.
Rollback to a savepoint causes no_savepoint exception only if the savepoint is erased. Only a commit inside the procedure could have erased the savepoint. Please check again.
Thanks

Similar Messages

  • 3146: Commit happened in activity/function - Workflow Bug?????

    Here is my problem:
    I get a 3146: Commit happened in activity/function error in my workflow.
    Yes many state that I should remove all commits from my code and let the workflow do it for me BUT... there are no commits in my code, I removed them all.
    Anybody has an idea? Is this some sort of workflow bug? Is there a workaround?
    --Dmitry                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    This is not a workflow bug. There is a commit inside the code being called for that activity. :) May be somewhere inside the downstream APIs called from within your code.
    Try a simple function activity code with simple statements. You will not see this error.
    The reason for this error is, the workflow engine sets a savepoint just before executing a function activity so that in case of an error, it can rollback to that savepoint. If it does not find the savepoint after the function activity completes, engine assumes only a commit could have removed it after it was set. So check what could have erased the commit.
    Thanks

  • Commit happened in activity/function Exception When Launching CREATEPO WF

    <p>
    Hi all,
    </p>
    <p>
    Got a good one here. Client is receiving the error above in the standard eBusiness Suite Req Approval Workflow. The problem has been narrowed down to the responsibility level. When the final approver is logged is as one Responsibility, the error does not occur. When the final approval is done through logging in as another Responsibility, the error halts the workflow.
    </p>
    <p>
    All profile options are the same for both responsibilities. Both responsibilities use the same function 'Advanced Worklist' to display the Workflow Notifications. This started happening after an upgrade to 11.5.10.2.
    </p>
    <p>
    There is one hit on Metalink but this didn't work (note: 603475.1).
    </p>
    <p>
    I have been through the PL/SQL code and found that there is infact a commit statement in there. The PO Requisition Approval Workflow is calling the Create PO workflow and the error occurs when the wf_engine.StartProcess call is hit. Code flow below.
    </p>
    <p>
    I was always under the impression that commit statements were a big 'no no' in Workflow? I could always take it out but this is standard 11.5.10.2 code so I assume it is there for a reason. Ultimately there must be something wrong with the Responsibility but I cannot for the life of me see it. I suspect that this is tied in with the way Workflow uses the responsibility.
    </p>
    <p>
    <u>Code Flow</u>
    <sup>PO_REQAPPROVAL_LAUNCH.LAUNCH_CREATEPO_WF - called from Workflow function.
    PO_REQAPPROVAL_LAUNCH.LaunchCreatePOWF
    PO_REQAPPROVAL_LAUNCH.CreateWFInstance
    PO_AUTOCREATE_DOC.start_WF_process
    commit;
    wf_engine.CreateProcess - (item type - CREATEPO)
    wf_engine.StartProcess - exception!
    </sup>
    </p>
    <p>
    Any help or comments appreciated.
    </p>
    <p>
    Cheers,
    </p>
    <p>
    Jon.
    </p>

    Not that I think that it will make any difference, BUT - have you seen MetaLink note 465827.1?
    I can't see why that would make any difference - but I also disagree with the "solution" proposed in 603475.1. That particular "fix" seems to be to workaround the problem rather than actually address the fundamental flaw in the process, i.e. an activity invoked by a Workflow should NEVER issue a commit or a rollback. I'd guess that the PO team need to revisit this completely - the commit was introduced to fix a bug (which I don't have visibility of), but seems to have intoduced more problems further down the line.
    My gut feeling says that the initial response from Oracle will be to determine why one responsibility is causing problems - which again is a fudge of the real problem. If you can, avoid going down this route :)
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Where is the activity function gone? in version 6 Safari

    Where is the activity function gone? in version 6 Safari. I may have updated from a previous version around the beginning of August 2012.
    I came to use this function only to find it missing??

    Safari 6
    Apple removed Activity Window in Safari 6.
    Best.

  • Window Activity function Disappeared in Mountain Lion.

    I often used the Window>Activity function to identify and download videos from web sites.  That option is no longer available in Mountain Lion. Does anyone have an alternate method to download web site videos without using a third party software package?

    I'm sorry for my bad english, my problem is that I want the program I open in a new window to be avilable in full screen mode. Before I uppdated my os to Montaine Lion I could choose wide under screen in settings. I'll take an ex for you. When I play poker online I want to see the tabel in full screen but I don't manage to fix that. Do you Sir have any idea???

  • Commit work in RFC function module

    hi all.
    What will happend if i give commit in the RFC function module .
    why we need to use BAPI_Commit after updating through BAPI function module.
    regards,
    Madhavi

    First read some documentation like [SAP LUW|http://help.sap.com/saphelp_bw/helpdata/en/41/7af4bfa79e11d1950f0000e82de14a/frameset.htm], [Transactional RFC (tRFC)|http://help.sap.com/saphelp_nwpi71/helpdata/en/22/042578488911d189490000e829fbbd/frameset.htm] or [Transaction Model for Developing BAPIs|http://help.sap.com/saphelp_46c/helpdata/en/a5/3ec8654ac011d1894e0000e829fbbd/frameset.htm]
    Regards,
    Raymond

  • Could not turn on auto-commit in an active global transaction

    Why and when does toplink throw this exception
    09/09/28 17:50:58 Caused by: java.sql.SQLException: could not turn on auto-commit in an active global transaction
    09/09/28 17:50:58 at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    09/09/28 17:50:58 at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    09/09/28 17:50:58 at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
    09/09/28 17:50:58 at oracle.jdbc.driver.PhysicalConnection.disallowGlobalTxnMode(PhysicalConnection.java:4045)
    09/09/28 17:50:58 at oracle.jdbc.driver.PhysicalConnection.setAutoCommit(PhysicalConnection.java:1343)
    09/09/28 17:50:58 at oracle.jdbc.OracleConnectionWrapper.setAutoCommit(OracleConnectionWrapper.java:107)
    09/09/28 17:50:58 at oracle.oc4j.sql.spi.ManagedConnectionImpl.setAutoCommit(ManagedConnectionImpl.java:572)
    09/09/28 17:50:58 at oracle.oc4j.sql.spi.ManagedConnectionImpl.initForUse(ManagedConnectionImpl.java:167)
    09/09/28 17:50:58 at oracle.oc4j.sql.spi.ManagedConnectionImpl.<init>(ManagedConnectionImpl.java:106)
    09/09/28 17:50:58 at oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:171)
    09/09/28 17:50:58 at com.evermind.server.connector.ApplicationConnectionManager.createManagedConnection(ApplicationConnectionManager.java:1398)
    09/09/28 17:50:58 at oracle.j2ee.connector.ConnectionPoolImpl.createManagedConnectionFromFactory(ConnectionPoolImpl.java:327)
    09/09/28 17:50:58 at oracle.j2ee.connector.ConnectionPoolImpl.access$800(ConnectionPoolImpl.java:98)
    09/09/28 17:50:58 at oracle.j2ee.connector.ConnectionPoolImpl$NonePoolingScheme.getManagedConnection(ConnectionPoolImpl.java:1211)
    09/09/28 17:50:58 at oracle.j2ee.connector.ConnectionPoolImpl.getManagedConnection(ConnectionPoolImpl.java:785)
    09/09/28 17:50:58 at oracle.oc4j.sql.ConnectionPoolImpl.getManagedConnection(ConnectionPoolImpl.java:45)
    09/09/28 17:50:58 at com.evermind.server.connector.ApplicationConnectionManager.getConnectionFromPool(ApplicationConnectionManager.java:1596)
    09/09/28 17:50:58 at com.evermind.server.connector.ApplicationConnectionManager.acquireConnectionContext(ApplicationConnectionManager.java:1541)
    09/09/28 17:50:58 at com.evermind.server.connector.ApplicationConnectionManager.allocateConnection(ApplicationConnectionManager.java:1486)
    09/09/28 17:50:58 at oracle.j2ee.connector.OracleConnectionManager.unprivileged_allocateConnection(OracleConnectionManager.java:238)
    09/09/28 17:50:58 at oracle.j2ee.connector.OracleConnectionManager.allocateConnection(OracleConnectionManager.java:192)
    09/09/28 17:50:58 at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:272)
    09/09/28 17:50:58 at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:200)
    09/09/28 17:50:58 at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:142)
    09/09/28 17:50:58 at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:127)
    09/09/28 17:50:58 at oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:145)
    Thanks,
    ND

    Hello,
    As you can tell from the stack trace, TopLink is not throwing the exception, the connection is when TopLink is attempting to get a connection from the datasource. getConnection should not be throwing this exception, so it is likely a datasource configuration issue or a problem in the driver you are using. How is the datasource configured, what is the version of Oc4J and the driver you are using, and can you try using a different driver version?
    Best Regards,
    Chris

  • Qty update not active, function not possible error in MIGO

    Dear all,
    User faces , u201Cqty update not active, function not possibleu201D error in MIGO.
    The receipt is for an STO and the material is split valuated. Qty and value updation is active and already similar receipt has been done for many qty.
    Throw some light on this
    Regards,
    Antony

    Hi Antony,
    Was the material type for the material changed recently? Pls. check the same.
    If the qty update is active for the receiving plant & material type, then there should not be any issue.
    Regards
    Prabhu S

  • EHP4 installed but "DSD is not active - function not possible"

    Dear Gurus,
            In IDES ERP6 EHP4, it have "SAP Menu -> Logistics -> Logistics Execution -> Direct Store Delivery" menu.
            But DEV ERP6 EHP4, it don't have above menu.
            When I run t-code "/n/DSD/VC_VP", it error "DSD is not active - function not possible"
                       Note Message no. /DSD/VC_MESSAGE001
            How to activate DSD on ERP6 EHP4?
            Please advice.
    Best regards,
    Choosak B.

    Hi,
           Thank you for your response.
           Now, I can activate DSD with SPRO -> Activate Business Functions -> ENTERPRISE_BUSINESS_FUNCTIONS -> /DSD/BF
    Best regards,
    Choosak B.

  • What happened to activity window ?

    My heading says it all.  What happened to activity window in Safari ?  I used it frequently and now it has gone...

    It was discontinued in Safari 7 but there is a workaround here.

  • What happens to the function keys when i unplug the extended keyboard?

    i use my laptop (12 function keys) with a wired apple aluminum extended keyboard (19 function keys). i assigned a few functions (screen shots mostly) to the upper function keys on the keyboard... f16-f19. but when i unplug the keyboard i'm not sure how to get those functions on the laptop keyboard.
    what happens to those functions when the keyboard is unplugged? is there a way to map those functions to the keyboard so that they are re-assigned when it's unplugged?

    wilyliang wrote:
    question still remains: do f16, etc., exist or can they be re-invented once the USB keyboard is removed (besides having to re-map the shortcuts each time)?
    I haven't found a way, though there might be.
    or even: is it possible to assign two different key combos/function keys to a single command/shortcut?
    Now that depends on the application that's assigning the shortcuts. Some Microsoft and Adobe apps allow multiple shortcuts per function, I've taken advantage of those a few times myself. But cheaper apps often cut you off at one shortcut.

  • Where has my motion activity function gone on my 5C?

    Whilst using IOS 7 on my 5C I had a motion activity function which I used a step tracker App (Withings)
    Following update this motion activity function has gone from my 5C but still remains on my 5S. Why?

    Sorry, you lost me on that last post.
    Let's start over again.
    Open AirPort Utility on your Mac
    Are you asked for a password at this point?  If yes, enter the base station or device password that you used when you originally set up the AirPort router. Depending when you did this originally, you might have been given an option to use the same password as the wireless network. If you were not, then you have a separate password for the base station.
    You need that password to be able to access the settings for the AirPort router in AirPort Utility.
    If you see a window listing basic information, click Edit in the upper right corner of the window.
    If you are asked for a password, you must enter the device password or base station password that you established when you first set up the AirPort router as explained above.
    If you forgot the password, a Soft Reset will allow you to go in and reset the base station password.  Might be a good idea to write down that password.
    If you are still stuck, then the only option that you have at this point is to perform a Hard Reset to return the settings to factory defaults and then set up the AirPort router again.
    If you prefer, you can also do a Factory Default Reset. It's the same as a Hard Reset except for the timing of holding in the reset button.

  • Error while activating function module

    Hi,
    I copied a standard SAP function module L_TO_CREATE_DN.
    When i activated the function group it throws an error saying that " Field "I_COMMIT_WORK" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement".
    All the global data has been copied properly in the TOP include but still while activating the function group we are getting the above said error.
    If anyone has encountered same kind of issue.......Please guide.
    Thanks and regards,
    Ramesh

    I was also facing the same issue, when I tried copying just 1 or 2 FM's from that FG L03B.
    Finally, I copied the whole function group, including all FM's into Z FG, and FM's, and it got activated w/o any hitches. Looks like there is lot of dependency between the includes and FM's code.
    Regards
    Deepthi

  • Can we disable implicit DB commit in JCO RFC function call?

    I called RFC function provided by ABAP from JCo connection, found that each RFC function is a db LUW itself. All the db access sql in RFC function is implicit commited.
    Till now, to wrap the db access sql in seperate "Update function module" or "Perform on commit" seems to be a choice for me (like most BAPI doing so). But is it the only choice?
    The point is, can we disable(or bypass) the implicit DB commit while calling a RFC function from JCo connection?

    Hi Guru,
    Yes you approach is correct, make sure commit/rollback is possible only when a change is/was made in database.
    Go through these links will be helpful,
    BAPI_TRANSACTION_COMMIT with Web AS/SOAP Interface
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/d352a790-0201-0010-5082-b1a608d22b6c
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/d352a790-0201-0010-5082-b1a608d22b6c
    Hope that solves your problem.
    Thanks & Regards,
    Kathirvel

  • Commit changes after CALL FUNCTION ... IN UPDATE TASK

    Hi ABAPers,
    I'm a bit confused about the behaviour of Update Function Modules.
    Following scenario:
    In our transaction (Modulpool with dynpros) the user clicks a butto to change some data:
    1. PAI-Modul performs FORM_A
    2. FORM_A calls FM_A several times in a LOOP
    3. FM_A does some business logic and calls FM_B IN UPDATE TASK
    4. FM_B modifies database tables
    5. After the LOOP FORM_A does COMMIT WORK AND WAIT
    Then the changes are not in the db immediately, the user will see the old data for a short time.
    Why does the COMMIT-statement not start the Update-process?
    Thanks,
    Markus

    Hi,
    This executes all high-priority update function modules registered using CALL FUNCTION ... IN UPDATE TASK in the order of their registration and in a common database LUW. If you do not specify the addition AND WAIT, the program does not wait until the update work process has executed it (asynchronous updating). If you specify the addition AND WAIT, however, program processing after COMMIT WORK will not continue until the update work process has executed the high-priority update function modules (synchronous updating).
    If all high-priority update function modules are completed successfully, the statement executes the low-priority update function modules together in a common database LUW.
    here high priority function moudles are function module with V1 task.
    Regards,
    Siva chalasani.

Maybe you are looking for

  • Dialog Instances Java are not up after System Copy NW2004s SR2 ABAP+JAVA

    Hello guys, I have just  performed a system copy of our BW system (douple stack NW2004s) wich consists from CI and 2 DIs. First I  made an export using SAPINST (Software from SAP_BUSINESS_SUITE_2005_SR2 for sparc solaris), where I choosed in SAP Inst

  • Language change cs6 master collection mac (cc application manager)

    hello there, in order to follow some tutorials on the web i want to change the language of my (german) master collection (mac) - at least for after effects. for that it usually used to work by just renaming the de_DE file to en_US in package content/

  • Conversion from Char to Packed Number

    Hi, How do we convert a 18 byte char field(Which contains all numerics) in to a 8 byte field ? Regards, Hari

  • Error 2063 everytime...

    Es ist ein unerwarteter Fehler aufgetreten. Adobe Muse wird beendet. IME$/set enabled-Error: Error #2063: Error attempting to execute IME command. The error occurs continuously, with insert of text or draw a box. You Can not work because Muse permane

  • MySQL, and PHPMYADMIN with WAMP on port 81

    I installed WAMP at port 81 because SQL Server is running on the default port 80 (non-networked, home-office, XP system.) I created a MySQL database using PHPMYADMIN. Now I need to connect to it using Dreamweaver (CS3): Connection name: connMinding M