Trigger is not working while updating the values of UDF

Dear Freind,
I have created one Trigger for ORDR for Sales order. It is working fine. For that i have created two UDF to Title level. When i fill all fields it shows the correct result in DocTotal. But problem is that, while updateing specific record it also update but only refresh the DocTotal.
Means suppose i change the value of UDF fields that time it is not working it gives following error.
"There is difference between the document total and component total"
ALTER TRIGGER AmountForPC1
ON dbo.ORDR
AFTER INSERT,
UPDATE
AS
SET NOCOUNT ON
UPDATE x
SET x.DocTotal = COALESCE(i.DocTotalSy, 0) + COALESCE(i.U_Ref, 0) + COALESCE(i.U_Sub, 0)
FROM dbo.ORDR AS x
INNER JOIN inserted AS i ON i.DocEntry = x.DocEntry
Thanks
Swapnil

Hi Swapnil,
Are you aware that you might run into trouble, at least when it comes to a support case, because you have created triggers?
Accordingly to note [896891|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMSZ3PTU4ODAwMDAr)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&note_numm=896891] triggers are not supported.
Regards
Mario

Similar Messages

  • CIN: Items are not displayed while updating the RG1 Register using T Code:

    Hi Experts,
    Items are not displayed while updating the RG1 Register using T Code: J1I5.
    System is not showing any error message.
    Can any one explain to update the RG1 Register?
    Thanks
    Chandra

    Hi,
    dont go the table again and again . the table is updated at intial stage only for stock update but not when SAP is running.
    In day to day bussiness the flow is as follows:
    Production - MB31 - to Unres stock
    Sales - VL02n - PGI - to customer - i.e out of unres stock
    Every day u can run TC J1i5 once in a day as decided and update the register so all transactions which have happend in that day gets updated i.e both input and output.
    and this will happen every day.
    hence dont use table as it is only for intial data upload i.e just before golive.
    Hope i am clear.
    krishna

  • Cascading LOV does not work when setting the value of the parent LOV with DA

    Hello All,
    Using APEX 4.2.2.
    I have tow LOVs
    Parent LOV item is: P50_TYPE
    Child LOV item is :  P50_PROJECT_ID
    In other words in the attributes of the item P50_PROJECT_ID we have :
    > Cascading LOV Parent Item(s): P50_TYPE
    > Page Items to Submit: P50_TYPE
    > List of values definition: something similar to:
    Select * from mytable where type = :P50_TYPE
    I use DA that execute JS code to set the value of the P50_TYPE item
    something similar to:
    > $('#P50_TYPE').val(2);
    Having done this, the P50_PROJECT_ID item does not get refreshed, when the value of P50_TYPE is changed. Namely, P50_PROJECT_ID remains empty, unless end user manually changes the value of P50_TYPE.
    Any help please ?
    Regards,

    Thanks Scott,
    By the way, I remember reading a thread posted by you about  Sumneva Drag & Drop Report Region plugin that was answered by Tom . But, I cannot find this plugin anywhere. Does not it supported in APEX 4.2 ? Is there any alternative out there ?
    If you use it, and it works find with you, can you please send it to me on [email protected] ?
    Regards,
    Fateh

  • Error while updating the value to OID

    Hi,
    I have configured the OID provisioning, the Change tasks are working fine but the updated tasks are getting rejected for one custom attribute with the below error.
    <Aug 30, 2012 10:19:22 PM EST> <Error> <XELLERATE.ADAPTERS> <BEA-000000> <Class/Method: tcAdpEvent/getITAssetParam encounter some problems: Could not find IT asset value for Svr_key = 121 and spd_key = 214>
    <Aug 30, 2012 10:19:22 PM EST> <Error> <XELLERATE.ADAPTERS> <BEA-000000> <Class/Method: tcAdpEvent/getITAssetParam encounter some problems: DATA_ERROR
    com.thortech.xl.dataobj.util.tcAdapterTaskException: DATA_ERROR
    The updated tasks are working well for other attributes. The adapter I have used is the OOTB adapter "adpOIDMODIFYUSER".
    Please let me know the solution.
    Regards,
    Ishank

    There was an issue with mapping. After resolving that it worked fine.

  • If the trigger is not working what is the possible reason

    I update the form then suppose auto update the table PaymentRecords , but today it sudden not working , not error on the trigger , what is the possible mistake ??
    delimiter $$
    CREATE TRIGGER Date_PaymentRecord
    AFTER UPDATE ON tableA
    FOR EACH ROW BEGIN
    IF NEW.Ast= 'on' THEN
    UPDATE PaymentRecords SET DueDate = New.ADate
    WHERE FeeType = 'Fee 1st Instalment'
    and PaymentRecords.UserId=New.UserId;
    end if;
    END$$
    delimiter ;
    not error at all , just not work

    This is the forum for issues with the SQL Developer tool. You should ask your question in the SQL and PL/SQL forum.

  • My iphone 3g does not work after updating the software through itunes

    Some days ago I made a security copy of my iPhone 3G at iTunes. Today when I conected my iPhone to iTunes I had a message saying I had to update the software of my phone. I accepted and after around 30 minutes of update I got another message saying there had been a problem restarting my phone. The screen of my mobile was showing the iTunes icone and the USB icone and I can't access to the content of it. So I disconnected the mobile from iTunes and connected it again and I got another message saying iTunes has detected a mobile phone in recovering process and it says I have to restaure the iPhone to be able to use it in iTunes. And, by the way, before all this when I connected my phone to iTunes the iTunes recognized the name of my mobile. It doesn't anymore, it just says "iPhone" on the left column.
    My question is: Should I restaure the iPhone? Will I be able to recover the security copy I made some days ago? Where can I access that copy?
    Thank you so much in advance!
    B

    You're welcome.
    Already answered.
    When restoring the iPhone with iTunes, the iPhone is completely erased first folllowed by the current iOS version being re-installed. After iOS is reinstalled, you are prompted to restore from your iPhone's backup, which is the default selection. The other available selection is to restore as a new iPhone or not from the backup.

  • Not able to update the value in FM CRM_ORDERADM_H_MAINTAIN_OW

    hi,
         Here i am updating the data in below format. during exection showing the error msg an exception error occured during input processing........pls confirm
    ls_orderadm_h-guid                = lv_object_guid. "LV_HEADER_GUID.
        ls_orderadm_h-zz_             = '01'.
        INSERT ls_orderadm_h INTO TABLE lt_orderadm_h.
        ls_input_fields-fieldname = 'ZZ_FCT_INDICATOR'.
        APPEND ls_input_fields TO lt_input_field.
        CALL FUNCTION 'CRM_ORDERADM_H_MAINTAIN_OW'
          EXPORTING
            is_orderadm_h_com    = lt_orderadm_h
            iv_external_call     = 'X'
         IMPORTING
           ev_guid              = ev_guid
          CHANGING
            ct_input_field_names = lt_input_field

    Hi,
    Can you debug the standard transaction and make a note of how exactly the fields and the structures are getting filled? This will really reduce the tiring effort of a long debugging.
    I feel that the IT_INPUT_FIELD Table requires some more input. I'm not aware of the scenarios as I can see that you are trying to update some custom fields.
    Hope this helps.
    Thanks,
    Samantak

  • Password parameter not working while Installing the certificate hosted on a Web Application Server

    Hi,
    We are trying to secure our SAP BI Mobile connection with certificates. According to the manual we are storing a password protected certificate on a network location.
    On our ipad when I open the link: (according to manual: Administrator and Report Designer's Guide , chapter  4.14.2.1 Installing the x509 Certificate on Device)
    SAPBI://action=downloadcert&certurl=<Download URL>&Password=abc123
    It should open and install the certificate in the app without asking for the password. But thats not working. It does ask for the password. So I can access the certificate location and after entering the password it works. But I am giving the password parameter in the link so why is this not working?
    The guide is a bit contradictory, and I quote:
    "If you access the second link above: The application is launched and the certificate file is downloaded from the URL location (certurl).
    The certificate is directly installed on the device."
    But second quote:
    "NOTE:
    Since the password is already included in the URL, the application does ask the user for the password...."
    My question: what is the use of this password parameter if you still have to enter it manually?
    Does anybody know if this should work, and what I  might be doing wrong?

    Hi , i am facing the same issue. I'll open a incident.
    Martin

  • I update the software and now is not working, I update the software and now is not working

    I update my software, which was suggested by mi Ipod "ajustes". It finished and it asked me to connect it to the Itunes. I did so. The Itunes updated the software, and it says "Debe restaurar su Ipod" ... when I try to restore my Ipod it says "error"... and now my ipod is like freeze with the apple like when you turn it on, and with the bar which is not moving.

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iPod fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • Appleid not working while updating apps

    My daughter and I both upgraded from the 6 to the 6 (not the plus) a couple weeks ago. Headache after headache. I had to create a family sharing. Once I did this, I had to reset my applied and password. Now, my apps will not update. I cannot even backup through the icloud it says there is not enough storage, which I clearly have more than enough. I downloaded the IOS8.1.... yeah, nothing. HELP! I am extremely frustrated.

    Oops.... meant upgraded from the 5 to the 6

  • My ipod touch 4g audio and video is totally not working. Updated the ipod with the latest version and also tried to restore it several times and that didnot work. Sound system is totally not working. plzzzz help..

    My ipod touch stopped playing videos and music for the past three days rest all are working fine.
    I doubt the sound system is gone. i tried restoring it several times. I havent mishandled it. Few days back there was audio distortion and slowness so i upgraded to the iOS 5 but the audio/ video doesnt work.  Alerts ,sounds ... donot work..Please help me out...

    Try a restore to factory defaults/new iPod.  If still problem then you likely have a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • Anyone else's iPhone 4s speaker not working after update to iOS 6.1?

    My speaker does not work after updating the software to iOS 6.1. No sound for incoming calls or texts, no speakerphone, no siri, no music or any sounds played from apps. Headphones still work as does anything plugged into the headphone jack. I've check all my settings - everything is correct. I've rebooted and restored settings several times, I've docked it - nothing works.
    Anyone else having this problem? Did anyone have this problem and were able to fix it? Does anyone know if Apple is aware and will be sending another update to fix it? I really don't think it's a hardware problem. Phone is in immaculate condition and never dropped or spilled on.

    As stated...
    Sorry... But...
    The discussion of Jailbroken Devices is against the Terms of Use of this Forum.
    You will need to look elsewhere

  • Problem with new version 4.3.2 apps not working " after update to the new version "

    Problem with new version 4.3.2 apps not working " after update to the new version "
    i was in 4.3.1 then i do the update , but now after update i face this problem , so what i Supposed to do ?!!

    Hi There
    Had the same problem as you. App would terminate when launched.
    Solution to working You Tube app:
    -Go to playstore
    - Uninstall app (it doesn't remove the app, only removes the update)
    - "Et Voila", working again.
    This doesn't correct the problem, it's just a workaround for you to be able to use youtube app again.
    Hope it helped.
    Best Regards

  • My wi-fi on my iPhone 4S is not working after updating to ios7 and is a few weeks out of warranty, the Apple store wants me to pay £160 for a new one, are they joking?!

    My wi-fi on my iPhone 4S is not working after updating to ios7 which was working perfectly fine before. It is a few weeks out of warranty now and the Apple store wants me to pay £160 for a new one, are they joking?!

    Hi there Juicy Guava,
    You may find the troubleshooting steps in the article below helpful.
    iPhone, iPad, iPod touch: Troubleshooting touchscreen response
    http://support.apple.com/kb/ts1827
    -Griff W. 

  • HT1665 i have an apple IPhone4. I am experiencing certain problem with my iphone4. The problems are as follows a. my ear piece and proximity sensor is not working while making a call. 2. It cannot reproduce sound without earphone but rings if gets any cal

    Hi folks,
    i have an apple IPhone4. I am experiencing certain problem with my iphone4. The problems are as follows a. my ear piece and proximity sensor is not working while making a call. 2. It cannot reproduce sound without earphone but rings normally if gets any call.
    Can any one help me in this regard??

    Try to reset the phone by holding the sleep and home button for about 10sec, until the Apple logo comes back again. You will not lose data by resetting, but it can cure some glitches after installing new software or apps.

Maybe you are looking for

  • APEX PDF Printing with DEfault OC4J in 11g

    Hi, is it possible to use the default oc4j installation that comes with 11g for PDF printing ? I tried http://127.0.0.1:8888/ that worked but http://127.0.0.1:8888/em failed The examples (available from the start-page) /examples/jsp doesn´t work also

  • Problem with Cipher.init()

    i am using java 1.4.2 on Windows 2000 Professional I am using "Assembla" as JCE Provider for Microsoft Keystore. But when i call Cipher.init() i am getting the following error MSKeyStoreJNI: Could not acquire context for temporary container used for

  • Trouble with loading songs onto ipod

    I was trying to load some of my existing cd's onto my ipod and after a while it wouldnt load anymore songs on. And after several times of trying to get a cd onto my ipod, it deleted all the songs I had already in it off my ipod. So I had to go back a

  • Error in Spool generation

    Hi Gurus, I am using following code generate the spool. But spool is generated with twice with same output   SUBMIT GPC3IL91J3FDQJFRDFHTFNJSIKF110 TO SAP-SPOOL                     SPOOL PARAMETERS print_parameters                    ARCHIVE PARAMETER

  • Internet display messed up

    my internet page is only showing like half the page the bottom half is white and the top is my website but it aint the whole page. == This happened == Every time Firefox opened == a week ago