Ultimate commit does not get made. Any ideas

Hi Folks.
I have written the following program unit. This is fired from a WHEN-CHECKBOX-CHANGED trigger in my form.
If I happilly click a checkbox on and off several times the program unit works fine, making changes and then undoing them.
The only thing it does not do is make the final call to UPDATE_SESSION_LOG.
Eg.
If I check and uncheck the same checkbox 5 times then all the changes to the required tables are made correctly apart from the final call to UPDATE_SESSION_LOG which seems to get missed. Both program units are listed below.
Please post a reply with any sugggestions.
Cheers
Simon
PROCEDURE ASSIGN_UNASSIGN_PU_P IS
     v_check                               NUMBER(1);
     v_payment_ref                VARCHAR2(80);
     v_payment_date                DATE;
     v_payment_amount           NUMBER(12,4);
     v_payment_currency      CHAR(3);
     v_payment_status           NUMBER(1);
     v_invoice_number          CHAR(18);
     v_running_total               NUMBER(12,4);
     v_user                                   CHAR(10);
BEGIN
     v_check := NULL;
     v_check := :POSITION_ASSIGN_CANDIDATE.ASSIGNED;
     v_user := GET_APPLICATION_PROPERTY(USERNAME);
     IF v_check = 1 THEN -- Invoice marked as paid
          v_payment_ref                := :POSITION_ASSIGN_SUMMARY.PAYMENT_REF;
          v_payment_date                := :POSITION_ASSIGN_SUMMARY.PAYMENT_DATE;
          v_payment_amount           := :POSITION_ASSIGN_SUMMARY.PAYMENT_AMOUNT;
          v_payment_currency      := :POSITION_ASSIGN_SUMMARY.PAYMENT_CURRENCY;
          v_payment_status           := 1;
          v_invoice_number          := :POSITION_ASSIGN_CANDIDATE.UCL_INVOICE_NO;
          UPDATE SETTLEMENTS
          SET PAYMENT_REFERENCE = v_payment_ref,
                    PAYMENT_DATE = v_payment_date,
                    PAYMENT_AMOUNT = v_payment_amount,
                    PAYMENT_CURRENCY = v_payment_currency,
                    PAYMENT_STATUS = v_payment_status
          WHERE UCL_INVOICE_NO = v_invoice_number;
          :SCB_TRANSACTIONS.PROCESSING_STATUS := 2;
          :CONTROL.TOTAL_SELECTED := :CONTROL.TOTAL_SELECTED + :POSITION_ASSIGN_CANDIDATE.UCL_INVOICE_AMOUNT;
          SYNCHRONIZE;
          COMMIT;     
          UPDATE_SESSION_LOG('Assigned', 'Ref '||SUBSTR(:POSITION_ASSIGN_SUMMARY.PAYMENT_REF,1,65), v_invoice_number, SUBSTR(v_invoice_number,1,5), SUBSTR(v_invoice_number,7,5), v_user, SYSDATE, NULL);
     ELSIF v_check = 0 THEN -- Invoice being marked as unpaid;
               v_payment_ref                := NULL;
               v_payment_date                := NULL;
               v_payment_amount           := NULL;
               v_payment_currency      := NULL;
               v_payment_status           := 0;
               v_invoice_number          := :POSITION_ASSIGN_CANDIDATE.UCL_INVOICE_NO;
          UPDATE SETTLEMENTS
          SET PAYMENT_REFERENCE = v_payment_ref,
                    PAYMENT_DATE = v_payment_date,
                    PAYMENT_AMOUNT = v_payment_amount,
                    PAYMENT_CURRENCY = v_payment_currency,
                    PAYMENT_STATUS = v_payment_status
          WHERE UCL_INVOICE_NO = v_invoice_number;
          :SCB_TRANSACTIONS.PROCESSING_STATUS := 1;
          :CONTROL.TOTAL_SELECTED := :CONTROL.TOTAL_SELECTED - :POSITION_ASSIGN_CANDIDATE.UCL_INVOICE_AMOUNT;
          SYNCHRONIZE;
          COMMIT;
          UPDATE_SESSION_LOG('Unassigned', 'Ref '||SUBSTR(:POSITION_ASSIGN_SUMMARY.PAYMENT_REF,1,65), v_invoice_number, SUBSTR(v_invoice_number,1,5), SUBSTR(v_invoice_number,7,5), v_user, SYSDATE, NULL);
          END IF;
END;
PROCEDURE update_session_log (module varchar2, description varchar2, invoice_no char, pmn char, p_pmn char, aUser char, aDate DATE, period char) IS
     the_user          varchar2(10);
     the_date          DATE;
BEGIN
     the_user     := Get_Application_Property(USERNAME);
     the_date     := SYSDATE;
INSERT
     INTO OPS_LOG_SESSION
     VALUES
               module,
               description,
               invoice_no,
               pmn,
               p_pmn,
          the_user,
               the_date,
               period
          COMMIT;

Hey Lozzerg,
Thanks for the question. I understand that you are having issues send email on your iPad Air. The following resource outlines troubleshoot steps that may lead to a resolution:
iOS: Troubleshooting Mail
http://support.apple.com/kb/TS3899
Thanks,
Matt M.

Similar Messages

  • UPGRADED 10.4.11 ON MACBOOK PRO TO 10.5, NOW UPDATES TO 10.5.8 WILL NOT SAVE, "DIGITAL SIGNATURE DOES NOT MATCH". ANY IDEAS.

    UPGRADED 10.4.11 ON MACBOOK PRO INTEL TO 10.5.1 (FAMILY PACK VERSION), UPDATES TO 10.5.8 WILL NOT SAVE DUE TO, "DIGITAL SIGNATURE DOES NOT MATCH". ANY IDEAS? CAN I UPGRADE TO 10.6.1 WITHOUT SAME ISSUE.

    Well, not sure if having the disk in a firewire case or over a network would have made a difference.
    The solution of making a disk image as in article http://support.apple.com/kb/TS2664 was what worked for me.
    After, mounting the disk image the Migration Assistant completed without errors. So far everything seems to be working like it did on 10.4.11.

  • My MacBook Pro, running 10.7.3, does not recognize when my iPhone and iPad are on the same network, thus it does not synch.  Any ideas?

    My MacBook Pro, running 10.7.3, does not recognize when my iPhone and iPad are on the same network, thus it does not synch.  Any ideas?

    Try the basics first:
       Change your router channel number.  Most times this works & is all you have to do.
    Disconnect & reconnect your modem.  unplug it for about 10 seconds.  Plug it back in.  Do the same for Apple’s routers.  Wait for everything to reboot.
    System Preferences>Network
    Click the Assist Me button.
    In the next window that pops up, click the Diagnostic button & do the necessary.
    Research Knowledge Base for network problems that pertain to the OS that is currently installed on your computer.   See these basic networking KB Articles:  http://support.apple.com/kb/HT1401 AirPort troubleshooting guide
    http://support.apple.com/kb/HT2712 Using network locations in Mac OS X
    Manually provided DNS server addresses are higher priority than DHCP's
    http://support.apple.com/kb/HT1714 Solutions for connecting to the Internet, setting up a small network, and troubleshooting
    ============================
    What to do when you can't connect to the Internet
    Also, run the Airport Utility app which is located inside the Utilities folder.
    =====================
    If using a  Linksys router, contact LinkSys Customer Support and/or post in their forums.
    If using Apple's Airport, please re-post over in one of the AirPort Forums.

  • The cooling fan comes on just after switching on and does not switch off any ideas

    The cooling fan on my iMac comes on just after switching on and does not go off any ideas please?

    Do a smc and pram reset,  See if those fix it.

  • I updated to ios 7 and now the battery does not stop charging any ideas, or have to wait for update? thanks

    i updated to ios 7 and now the battery does not stop charging any ideas, or have to wait for update? thanks

    To show the battery percentage used go to settings
    from there click general scroll to usage and select
    scroll to bottom of page for battery usage select on.
    This will show the icon battery and the percent numbers on the top right.
    When phone is connected to an outlet sometimes it does not always show complete charge. I do not understand why but it is what it is.
    FYI I sent reply to you not to deggie. You can have your own satisfaction to reply direct.

  • My I touch gets very hot when charging, and it won't turn on.  I've tried all the resets/fixes and it does not respond.  Any Ideas?

    I have tried charging my itouch on the computer, in a docking station, and it gets very hot.  It won't turn on, even after trying all the resets I've read on this site.  Any ideas what the problem is?  Is it fixable?

    Hey Halefarm, What happens if you connect directly with the charging source with your cable, no docking station? Since resetting did not help, try connecting directly with the cable to your power source and your iPod. Next  try a different cable, there could be a short in the one you are currently using. If still will not charge correctly, I'm leaning in the direction of a failing battery. Set up an appointment to have your iPod evaluated by Apple. Have your iPod evaluated for possible battery issues. Take the cable and dock and have them tested as well. If it is a failing battery, you choices are; replace the battery, either through Apple or third party shop. Replace it yourself, if you can. Or,  you look into getting a new iPod. I don't have the cost of a new battery for an iPod 3, but I'm sure it's under $100. Check with Apple for exact pricing. Good luck, Cheers.

  • I have several tabs open and firefox suddenly stopped displaying when I clicked on the taskbar icon. I am running windows 7, no idea of FF ver as it will not display. Rebooting pc does not help. Any ideas?

    Just noticed that I can open FF in a new window but cannot get to any tabs already opened in the other window. The first time I experienced a problem was when I opened one tab too many. I guess it was over 20 tabs open at once, but have now only 8-10 open.
    Just remembered, it could have happened after yahoo installed itself on the toolbar, then as a menu item. I declined this every time it asked to install, but it went ahead and I cannot remove it now.

    My scroll also doesn't work in Firefox -- but does in Excel and Word. This has been intermittent for months now. Usually, if I reboot the scroll would begin working again until for no apparent reason it quits again. Now even the reboot doesn't fix the no-scroll problem. I have Windows Vista. I even did a Firefox Update to 9.0.1.
    I don't have that file on my about:config page so this solution won't work for me.
    Thanks in advance for any help!

  • SM04 Session does not end..Any Idea?

    Hi all,
    I noted that SAP R/3 session does not automatically ended after a user logs off from the ESS Frontend. This will result in a increase in session in SM04 eventhough the users had logout from the portal.
    I have adjusted some timeout parameter in transaction RZ10 in R/3 including rdisp/plugin_auto_logout and restarted the services. To test, i accessed the ESS Portal and access some IAC IVIEW. Thereafter, i logged off the portal and observed the session created in R/3 (SM04) and noted that the session including the RFC connections are not released at all.
    Anyone face this issue before? How can i control so that after the user logoff from the portal, the session in SM04 is end.
    Thanks in advance

    Hi Sukanta,
    I found some note on the session which i attached below. However in my EP server have dozens of web.xml. Which one should i configure? Would you able to help me on this?
    Specifying HTTP Session Timeout
    Use
    You can specify a timeout period for HTTP sessions created in your Web application. If the session is inactive for this timeout period, it is invalidated by the Web container.
    If you do not specify such a timeout explicitly, a default one of 30 minutes is assumed.
    You can configure the HTTP session timeout using the web.xml descriptor.
    Procedure
    On the web.xml screen, proceed as follows:
           1.      Open the General screen.
           2.      To specify the timeout period, enter a value in the Session configuration – Session timeout field.
    The value is specified in minutes. If you enter a negative value in this field, HTTP sessions are never terminated because of a timeout. Instead, only an explicit logout by the user will terminate the corresponding session.

  • HT5129 Every time iPhoto scans my Mobilme albums for import, it freezes and does not complete. Any ideas?

    Every time my iPhoto prompts to import my Mobilme albums, it freezes iPhoto and I have to force quit to continue.
    Any ideas? It cannot import my albums.
    Thanks

    Go to http://web.me.com and use the Sign In link to go to your galleries:
    There you can use the Download button to download all of you gallery photos grouped by gallery.
    When you're done  go to iPhoto's Accounts preference pane and delete the MobileMe account. Next to go the Sustem/MobileMe preference pane and log out of MMe.  That will stop those messages.
    OT

  • After installing Snow Leopard, my external apple keyboard does not work. Any ideas?

    After installing Snow Leopard (v. 10.6.3), my external Apple keyboard no longer works. Any ideas?

    The laptops are called MacBooks there really is no MacPro laptop.
    MacBook Pro Apple Support -
    MacBook Pro specs 17-inch model
    MacBook Pro

  • Https broken on my (& only me, not other ppl) FF ver v35, v29, v3.6.28. reinstall does NOT fix. Any ideas?

    FF broken after virus infected my windows userinit. Virus removed, but FF still broke in https and uninstall/reinstall does not fix broken https

    FF broken after virus infected my windows userinit. Virus removed, but FF still broke in https and uninstall/reinstall does not fix broken https

  • I bought my iphone4 in Qatar it does not have facetime any ideas on how to set it up?

    I bought my iphone4 in Qatar but has no FaceTime as my wife's phone has having been bought in the Uk Can I add this facility?

    I believe your government does not allow facetime.

  • I have a Mac Air.  When I go to view any video online (youtube for example)and click on a video, I get the space where the video should play but there is just a black screen and no play button and the video does not start.  Any ideas?

    I have a Mac Air. When I go to view  video online (youtube for example), the screen for the video comes up with a black square space where the video should play.  But there is no pay button and the vidoe never starts playing.  Any suggestions would be appreciated.

    Shockwave and Flash are not the same. Try installing a Flash plug-in. Here's the latest: Adobe Flash Player 11.2.202.183

  • I am trying to open a website that is using Microsoft content viewer, and the page does not show. Any ideas on how to view this site using firefox. It works on IE.

    I am participating in an online class whose website uses Microsoft Content Viewer to view the class content. The browser opens a new page, but nothing is there. At the top of the tab it says Microsoft Content Viewer, and nothing else. Can anyone tell me how to view my course using Firefox? I would prefer not to use IE, but it works there.

    When originally creating the pdf, you would need to choose another pdf conversion setting. In Word if you use the pdf menu, change your settings there: Adobe PDF > Change Conversion Settings. I would use High Quality Print instead. If you use the File > Print method, click the Properties button next to the Adobe PDF printer selection.
    For your already created form, you can change the file so your users will not encounter issues. In Acrobat 9, which hopefully is similar in process to 8: Advanced > Preflight > Profile tab > PDF/A compliance > Remove PDF/A information.(You'll have to unsecure your form first).
    You can read about PDF/A files in the Help.

  • BAPI_PR_CHANGE, successul message but commit does not actually update

    I am testing in SE37 BAPI_PR_CHANGE.   In the result msg  I get these messages:
    Purchase requisition 10013879 changed
    Instance 10013879 of object type PurchaseRequisition has been changed.
    and in the line item I get a qty update I'm expecting.  I then do a BAPI_TRANSACTION_COMMIT but when I go to look at the PR in the SAP GUI the qty update does not appear.
    Any ideas?  Perhaps, I am missing something in the structure that I should check.
    Thanks

    are you using the TESTRUN parameter.. if so then the bapi runs in a stimulous mode and doesnt really do what its supposed to do.
    [Example|http://sapabapscreenshotsexamples.blogspot.com/2007/11/sap-abap-screenshots-examples.html]
    Re: BAPI change PR version

Maybe you are looking for

  • Portal runtime error while creating rooms

    Hi, I installed collaboration and content management on my portal instance and started basic configuration. Now while creating rooms , i get the portal runtime error. I have enclosed the screen shot of the error. I have enclosed the steps that can be

  • Multiple SAP Systems to one LiveCache

    Hi All, I know some one in the past already discussed on this topic.  I want to know is it possible to use a single MaxDB/LiveCache  for more than one SAP System like SCM and WFD system to a single LiveCache.  If this is possible and some one already

  • Difference b/w PAR & JAR Files

    hi, i m new to enterprise portal(EP),what is a use of PAR file in portal appl , what is the difference b/w PAR & JAR files,why cant we can use JAR file. thank in advance naresh

  • Mpeg-4 sound file and Jpeg's

    I don't know if QT is the correct program but I have some JPEG photos and some MPEG4 audio files. I am trying to make a "movie" i.e. #1JPEG and #1 MPEG4 and MPEG4 is 30 seconds long the #2 JPEG and #2 MPEG4 is 20 seconds so that when played all 12 ph

  • Over 30Mb below estimate

    I was wondering if anybody here could help.  Recently we upgraded to the up to 80 package from the full 40 package. After doing the telephone number check the estimated speed was 76mb, living less than 100 yards from the exchange. We were getting bet