How to stop transaction

function Trigger_CheckOldPassword(&$tNG) {
return Trigger_UpdatePassword_CheckOldPassword($tNG);
This is check old password function in ADDT, I want to know what it return to break the transaction, because sometimes I want to do some check through custom trigger by myself, and I don't know how to stop the transaction if the result of my check means to stop.

Hi chan,
the function "Trigger_UpdatePassword_CheckOldPassword" sits in the file "includes/tng/triggers/tNG_defTrigg.inc.php".
Excerpt from the function documentation:
Check the old password in the database; In case of error return an error object;
If no error and the old password match the password entered by the user return null
So it seems that this function performs an either/or thing: you either get a variety of error messages returned, or the function just returns "null" aka "false" in case the passwords do match.
to break the transaction
breaking the transaction would actually mean to terminate the execution of the function "Trigger_UpdatePassword_CheckOldPassword", and you could try with using PHP´s native functions "exit" (or "die", what´s actually the same) in place of the original...
return null;
... line.
However, I´m not sure if trying this would have any advantage to you, because the only thing this function does is returning some error messages and otherwise just "die" anyway.
Cheers,
Günter Schenk
Adobe Community Expert, Dreamweaver

Similar Messages

  • How to stop transaction rollback

    Hi,
    i am created a bpel process which will do the db inserting data but i am getting this below error while inserting the data. can any one please solve this:
    Error log:
    faultName: {{http://schemas.oracle.com/bpel/extension}remoteFault} messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage} parts: {{ summary=<summary>Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'insert' failed due to: DBWriteInteractionSpec Execute Failed Exception. insert failed. Descriptor name: [AddMoreBikes.Bikes]. Caused by java.sql.SQLException: Cannot call Connection.commit in distributed transaction. Transaction Manager will commit the resource manager when the distributed transaction is committed.. Please see the logs for the full DBAdapter logging output prior to this exception. This exception is considered retriable, likely due to a communication failure. To classify it as non-retriable instead add property nonRetriableErrorCodes with value "0" to your deployment descriptor (i.e. weblogic-ra.xml). To auto retry a retriable fault set these composite.xml properties for this invoke: jca.retry.interval, jca.retry.count, and jca.retry.backoff. All properties are integers. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. </summary> ,detail=<detail>Cannot call Connection.commit in distributed transaction. Transaction Manager will commit the resource manager when the distributed transaction is committed.</detail> ,code=<code>0</code>}
    Edited by: Ajay8706 on Feb 19, 2013 10:44 PM

    Hi,
    To resolve this, go to Deployments on the weblogic console and open DBAdapter. Go to Connection - Outbound Connection Pool where the jndi is configured to talk to the jdbc data source.
    Expand the javax.resource.cci.ConnectionFactory and select the appropiate Connection.
    There you can see that the data source name is configured in the dataSourceName row while it should be configured in the xaDataSourceName row. This is because the datasource you must have defined as XA( confirm by going to transaction tab in jdbc configuration)
    Thanks,
    Durga
    - It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).

  • Difference between billing and invoice?  How to stop PGI?

    can u please help me in these questions.
    Difference between billing and invoice?  How to stop PGI?

    Invoice is document indicating to delivery goods and Billing is a receipt of payment
    Tables are VBRK & VBRP. For flow, go to transaction VF03, enter document number and hit 'Display Document Flow' button on toolbar
    vbrk and vbrp holds billing/invoice details..
    Billing Document:
    Generic term for invoices, credit memos, debit memos, pro forma invoices and cancellation documents.
    The tables are VBRK and VBRP.
    2)-- once u do PGI the delivery document will be created . there is no way to stop it  .. the thing u can to do go to the list of created deliveries in VL09.. select the delivery doc which u created.there  u have the option of reversing the goods or canceling it.
    let me know if i am wrong...
    thanks,
    madhan
    Message was edited by:
            madhan n

  • How to stop system from doing calculation of pricing in sales order?

    Recently I am working on how to stop consecutive entries of identical condition type in pricing of a sales order. For this I have written a custom routine to track multiple identical condition type. If it gets multiple condition type then system shows error message. But after this while pressing back button of the SAP Screen System is doing the corresponding calculations for all the condition types. I want to stop this.
    Is there any way to do so that I can stop the system form doing the calculation. Or is there any way to disable back button of the SAP Screen. Basically I want to stop a user from posting a sales order if he enters multiple identical condition type in a sales order.

    Transaction VOK0
    If you go to Condition Type -> Access Sequences and highlight the relevant access sequence and navigate to folder "Accesses" there should be a column which indicates "Exclusive". This check box should be active. This will prevent duplicate condition types.

  • How to stop this multiple entry against same condition type in pricing

    My client is using manual condition type for the basic price "ZBPR". Now system allowing multiple entry against this condition type in the pricing screen during order creation i.e in the first line if we put ZBPR 00 , in the second line system allowing to put another value against same ZBPR say for example 2000 & doing all subsequent calculations on the basis of 3000 .which is not at all acceptable by my client .Please suggest how to stop this multiple entry against same condition type

    You have to make the condition type as Mandatory and not manual.
    If you are entering many condition records of the ZPR0 then the latest entry will be taken for further processing for subtotal rebate and total price.
    For all the other entered condition records will have yellow traffic signal which is not active.
    you can assign a routine with the help pf your abaper...
    In the Transaction VOFM  define a requirement such that
    you condition type takes value only one at the time of order entry.
    regards,
    Amlan Sarkar

  • How to stop the internal batch session

    Hi ,
    How to stop the internal batch session, which is triggered from the program.
    When I execute the program, there is an batch session, which starts processing in parallel with the program, and causes an error message for the program, so the further process is affected.
    I tried finding the session through the Transactions - SM35, SM37. However, I could find any session in my name.
    However, when I try thro SM04, I could find an session with the same error message. But I am not able to end the session.
    Pleas advise.
    Thanks,
    cartesian.

    Go through transaction SM50. In case you have more than one application server (transaction SM51 will show) you can also use SM66 which will show all running processes on all application servers.
    With SM50 you will only see the process running if it is running on the same application server you are logged on to.
    Mark the process and use menu 'Program/Session - End Session' or 'Process - End with or without Core'
    Hope that helps,
    Michael

  • How to stop the auto-start of log reader agent (replication) right after my database is restored?

    I have the scenario where the SQL server is restored (after migration).
    This database has transactional replication set-up on one of the databases. When I do a manual delete and restore of the database, I see that the replication starts right after the publisher and subscriber are restored.
    Replication agents should not start and run before the integrity checks are completed. How to stop the replication from auto starting right after the migration?
    Thanks in advance - Jebah

    Thanks Pradyothana, I have disabled the logreader, distribution agents through sp_update_job in Tsql script. I have also verified that there are no pending transactions to be replicated to the subscriber, I see that the job is still being executed. Is there
    any other way to disable the jobs?
    Steps I followed
    Started with a Working publication and subscription
    Disabled the jobs (log reader and distribution agents)
    Backed up publisher, subscriber, distribution and msdb
    Deleted the publication, subscription, publisher and subscriber
    Restored the publisher, subscriber, distribution and msdb
    Enabled the jobs and executed sp_replrestart
    Observations/Issues
    Replication does not work
    Replication monitor does not show any error
    Jobs are shows as enabled but not started in job monitor
    Not able to start/stop the log reader and synchronization manually.
    I am not sure if I have missed something while restoring the db.
    Thanks in advance

  • How to stop the background job "Sap_collector_for_job_statistic"

    Dear All,
    Kindly let me know how to stop the Background job "Sap_collector_for_job_statistic" which is running everyday.
    We want to stop this background job.
    Kindly suggest.
    Regards,
    Mullairaja

    Select the Job using SM37 transaction. In the Menu Choose
    Job ---> Cancel Active Job.
    Before you do this it may be good idea to check the pid using SM50.
    It will be using a Background work process. Check the pid and the status.
    Select the same and in the Menu Choose Process --> Cancel with Core.
    Refresh and check in SM37 for the Active and Cancelled Jobs.

  • How to Stop workflow which is in Progress status.

    Hi ,
    I have started a workflow while testing , now it has reached to the inbox of different agents.
    could you please suggest how to stop the workflow and rollback everything affected because of it .
    best regards
    abhijeet chitale

    You could use the transaction SWIA to manually complete workitems. If you use the the workitem ID of the workflow instance you set the status of the workflow to logically deleted.
    Other option is to use the object FLOWITEM with method statuschange to change the status to completed. Also go in there with the ID of your workflow instance.
    However, my question is why you want to do this? If you're testing you could also just execute the workitem in the inboxes. Undo work which is done has to be executed manually.
    Kind regards,
    Joost van Poppel

  • How to stop ERP Quotation for BP with role Prospect

    Hi,
    We have implemented cross system transactions from CRM opportunity to ERP Quotation. We create prospects with sales area data in CRM UI. Though in GUI unless the role sold- to party is selected the sales area data tab is not activated, however not in the case of UI. We can assign the sales area even for the prospects. At the same time for prospects we select the R3 account grouping.
    The problem is when the account with role prospect with R3 account group and sales area is created I can still create ERP Quotation. How to stop creating the ERP Quotation unless the role Sold-to party is extended to the prospect?
    Please help.
    Rgds,
    Shridhar

    Hi Iswari,
    If you open the Bdoc "classic" data from tcode SMW01 (that's the yellow button next to the "show error" button) you should see a segment named "CRM_DOC_HEADER". Within this segment I would expect the OBJECT_ID field to be empty when you're attaching a document on a business activity (if that's what you mean by "contact").
    If so: you can try to create a simple intelligent publication object with a filter set on OBJECT_ID = ''. Then no Bdoc will be sent when adding an attachment on any business transaction (I suppose), so the Bdoc will probably still be there, but always with a green status and going nowhere.
    Regards,
    Nicolas Busson

  • How to Stop at Source System's Abap Code from BI Infopackage Trigger

    Hi Experts,
    I have enahanced 2 fields to some standard data source, that fields data is comiong fine to RSA3 in Source system.
    i am not getting 2 fields data to BI  PSA, but that 2 fields data  i am getting at in RSA3 Tcode  source system.
    i have tried all the ways to get data to BI PSA, but no luck.
    so, while running infopacke from BI i need to stop  at  Source System's Abap code where i have wriiten the code for those 2 fields.
    so, please any  one can explain, how to stop at source system's Abap Code once i  trigger infopackage from BI.
    Regards,
    Nagaraju K.

    Hi,
    which data source on your working?
    master data or transaction data
    enter the TCODE- CMOD
    choose the project
    select the funciton exit - EXIT_SAPLRSAP_001 - Transaction data
                                        EXIT_SAPLRSAP_002 - master data attr
                                        EXIT_SAPLRSAP_003 - mster data text
                                        EXIT_SAPLRSAP_004 - master data hier.
    choose the include program - ZXRSAU01.
    go to source code tab -> go to change mode -> find the code will start form here
    EX- : when " ZLIS_13_VDITM
    if not required don't put break-point .
    just comment it code.
    Thanks,
    Phani.

  • How to stop the process chain

    Hi Sapients,
    I am loading the data from R/3 to BW through Process chain. Please let me know how to stop execution of  the process chain.
    Thanks
    Mahi.

    Hi Mahendra,
    You have to stop the load in the source system if u r loading from R/3 System, for that use transaction SM50 or SM51 to kill the process.
    Hope it helps. Assign points if helpful
    Cheers
    Raj

  • How to stop the Company Code popup window in MIRO!

    Hi,
    When User logs in the system and enters into the MIRO transaction, he is asked to enter the Company Code first in order to proceed further. I know that once you enter the company code then the system does not ask it to enter again during that login, however, it will asks again whenever User login the system again!
    Can someone tell that how to stop this Company Code popup window in MIRO, so that the system should not ask for the Comp Code whenever User logs in and enters into MIRO? I think there are some entries maintained in the User Master for this!
    Thanks.

    Hi,
    It is Necessary for the user to enter the company code for which he need to process the Invoice.
    First think is if the user knows ,that he is only going to do for one company code.then
    in the T code SU3.
    In the parameter TAB
    you can make the Default value for the parameter ID BUK as your Comany Code value ( Eg 1000)
    so that when ever the user does the MIRO ,it comes with that company code only.
    and if he want to do for another comapany code ,he has to use the option of Switching the comapny code.
    so this is user dependent and has to be made for all users.
    Note .the above setting works only you have entered saved and logged off and log in again.
    also ,this value gets defaulted you all the comapny codes in all screen.
    Hope so it helps.
    Regards
    Anjanna.

  • How to stop Batch Jobs

    Hi Gurus,
             How to stop Batch Jobs
    Thanks
    Dave

    Dave
    You could cancel the Job in SM51 transaction. Choose your PID from SM51 and go to menu-->choose cancel without core. It takes some time to cancel the job completly.
    Please check this link
    how to cancel or change the background job which is scheduled
    Hope this helps
    Thnaks
    Sat

  • How to stop a dead message in MDB

    I have MDB like the below.
    Suppose database fail to insert data but the message still send again again
    How to stop message send again again when db exception occur.
    How about this property: @ActivationConfigProperty(propertyName = "maximumRedeliveries", propertyValue="0")
    Not sure.
    Anybody give a hand for help.
    Thank in advance
    @MessageDriven(mappedName = "jms/aliofiot", activationConfig = {
    @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),
    @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue")
    public class aliofiotjmsBean implements MessageListener {
    @Override
    public void onMessage(Message message) {
    // call session bean to insert database here
    }

    Of course, i have try catch on every single part of code.
    I thing here is the problem of transaction, if if not success insert into database then rollback and try to re-send the msg again again.
    I search on net and see one annotation: @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
    after use it with other one: @ActivationConfigProperty(propertyName = "maximumRedeliveries", propertyValue="1")
    Then now my system it is OK, but i am not sure what happen in future.

Maybe you are looking for

  • HT4623 how can i get an older version of facebook for iphone 3g the new version isnt compatible

    how can i get an older version of facebook for iphone 3g the new version isnt compatible with the current 3g IOS

  • Thread Pool "Null Pointer" exception

    Hello, I have an embarrassingly parallel algorithm. The parallel part is solved by 2 objects called shifters which implement the Runnable interface. However, for reasons I can't figure out, sometimes my code will randomly output this error. Exception

  • ABAP webdynpro concepts

    If i want to work with ABAP webdynpro, what are all main areas or concepts to be covered in ABAP webdynpro?

  • Safari PDF issue

    When I click twice on link to open pdf , I am getting pdf with grabage text. I have tried with the removing AdobePDFViewerNPAPI.plugin and AdobePDFViewer.plugin but no luck. Anybody have any idea, why this is happening? After lot of search I found on

  • Damaged or incomplete iphoto

    When I click on my Iphoto it says that the Iphoto cannot open because it is damaged or incomplete.  How do I fix this?  Will I lose all the pictures that I have on the computer?  When i purchased by Macbook pro, it did not come with a reboot cd.   Pl