Release of lock entry when external window closes.

Hi
I have created a external window for some URL which is created for VF02 transaction.
SET PARAMETER ID 'VF' FIELD lv_drftno.
CALL TRANSACTION 'VF02' AND SKIP FIRST SCREEN .
Now my problem is regarding lock entries.
The external window which is created is having a by default close button in upper right corner like explorer.
and if the user use this button to close the window in middle of the transaction the entery get locked.
So there is any method to release that entry on closure of window?
or can we get the event when user press that close button?

If you are using it in TEST MODE swtich on the flag TESTRUN of the BAPI and after that even if you COMMIT the changes will NOT be there in the DATABASE.
Then the locks will be released and changes are also NOT committed to DB if you have the TESTRUN flag on.
Its not recommended that you unlock the locks manually.
Regards,
Ravi

Similar Messages

  • Application lock on open external window

    Hi everybody,
    I have problems with opening a new browser window pointing to a folder on the network.
    If the user has access to the folder everything is working fine.
    If the user has no rights to access the folder, the user gets an error message and the window stays empty. After clicking okay on the error message and closing the window the  user can continue working in the application.
    If the folder which should be display does not exist the user gets an error message.
    After clicking oay on the message he can return to the application. But there the 'progress circle' is still running and it cannot abort or do anything! The user has to close the application and login again.
    Is there a way to handle the external window in any way after having it opened and the calling method was left?
    Any hint or advice is highly appreciated!
    Best regards,
    Roland

    Hi,
    Do this way... So that there will not be a minimise option, close option. and control will be there inside the Window and till the time user closes the window he cannot perform any actions on any other screens.
         //Added below code to open a new window
              IWDWindowInfo info =
                   wdComponentAPI.getComponentInfo().findInWindows("WD_vendorTable");
    //Where WD_vendorTable is a window with the desired view embedded inside it.
              IWDWindow win =
                   wdComponentAPI.getWindowManager().createModalWindow(info);
              wdContext.currentContextElement().setVa_VendorWinName(win);
    //Save this window information in a context variable(declared at component level and mapped to the parent view and to the window(child) view)
              win.setWindowSize(300, 300); //Desired window size
              win.setWindowPosition(600, 100); //Desired window position (from top left cornor)
              win.setTitle("Vendor Details"); //Desired window title
              win.show();
    To close this window
    create a button inside it and inside the button's action
    IWDWindow win=wdContext.currentContextElement().getVa_AssetNoWinName();
    win.destroyInstance();
    Regards,
    Srinivas.

  • BSP session not dying when browser window closes

    Hi,
    I am having a small problem with the bsp session. I shall explain the prb with an example.
    Lets say i have a bsp application BSP1. I open the application from the Favorites tab in the SAPGUi.
    Initially, i have another browser window open containing google.com(this is imp that i have another browser open all the time containing anything). I now start BSP1, then i close the window by hitting the close button of the browser, as a result the controller sends a exit view back to the frontend which never gets displayed. now i start BSP1 again from SAPGUi, and the browser instead of showing me the logon screen and the start page goes to the exit page of the application. In other words to the last URL that i visited last time in the application. Somehow when the window is closed, the session on the applicaiton server is not dying. This only happens if i have any other browser open all the time containing any thing.
    If i do not have any other browser open, and then i follow the above sequence of events,everything runs smoothly. Also, in the previous case, if i close the google window also and start the application again, everything runs smoothly. In IE settings , in Advanced tab there is a setting for REUSE EXISTING WINDOWS FOR LAUNCHING SHORTCUTS. If i set this option, everything runs smoothly, even if i have a Google(whatever) window open all the time. If i do not set this option, i run into the problem as in the first case. Also, if instead of opening the application through the SAPGui i open another browser from the taskbar and type in the URL , everything runs smoothly inspite of another google window being opened all the time.
    Also this problem is evident in systems with BASIS 640/level 10 and BASIS 620/level 19. It might be present in other versions also but i am working on these two systems with these versions. This problem does not pop up on BASIS 700.
    If on exit, within the controller, i reset the keep_context attribute of RUNTIME  object, everything runs smoothly.
    could you please guide me as to what can be the problem here and how it can be solved. It is important. Any kind of help and guidance would be highly appreciated.
    Looking forward to your response,
    Thanks and best regards,
    Ghufran

    The very first important aspect to understand is that CANCEL kills the session long before the request reaches the ABAP stack. So what ever you want to do, this is not the way to go.
    From reading your first post in this thread through, I have the impression that you might have some confusion between stateful versus authentication. No, I it is not the problem/solution, but just that your very long descriptions without using consistant terminology makes it difficult to understand where we are going.
    Thus, I would recommending read this article for background information:<a href="/people/mark.finnern/blog/2003/09/24/bsp-in-depth-confusion-between-stateless-stateful-and-authentication">BSP In-Depth: Confusion between Stateless, Stateful and Authentication</a>.
    Next, you CAN NOT "redirect it to the browser on the onbeforeunload() event". Well, at least I never have never succeeded.
    Once the closed button is hit, you have not many options. One idea is a window.open, see system application for examples. The other is the image loading trick that Thomas describes in his weblog. Both ideas will actually solve your problems (once you really understand what is happening). This is unfortunately not always perfectly easy.
    brian

  • My HP dv7-1245dx (intel processor) keeps locking up when loading Windows Vista

    Hi All,
    I am someone can help me with this particulary frustrating problem.  I have an HP dv7-1245dx that keeps locking up once you see the windows screen with the 'chaser bar' scrolling.  Shortly after I hear a 'pop' on the speakers (I am assuming it was loading the audio driver) it consistenly locks up; the scroll bar stops... and that is it!!  I first tried checking the bios for function, and the computer did lock up when the 'long hard disk diagnostics) starts.  The memory is fine, and the quick disk drive check worked fine.  Couldn't even find a BIOS version online to reload.  I recently duplicated and replaced the old hard drive with a bit-for-bit copy.   I put the OLD drive back in thinking the new hard drive were somehow currupted, but the exact same thing happened.
    I ordered recovery discs because I couldn't find my originals... initially.   I tried both sets, and the same thing continues to happen after reading the first disk, then seemingly going back to the hard drive.  Let me say this, the recovery utility sucks!!  You would think it would take ready command and control of the computer, allowing one to make changes.  I think this is Carly Forina's fault!! 
    Do I need to buy new Vista OS copy and reload??  Has anyone experienced the same thing??  I would appreciate any help in the right direction anyone is willing to offer me.  Thank you in advance!!

    Hi @windoz
    Welcome to the HP Forums! I see that you are having some problems getting your Windows Vista to load properly. Buying another copy of Windows Vista and reloading most likely isn't going to help you here. It does look like a hardware issue. If you have tried two different hard drives and the memory test comes up fine then it either the cable connecting the hard drive or the processor on the motherboard. I would recommend having someone take a look at the notebook.
    Please click “Accept as Solution ” if you feel my post solved your issue.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Thank you,
    BHK6
    I work on behalf of HP

  • Glitch causing AA to lock up when new windows open

    We're running Audition 2.0; in one of our production studios, whenever Audition is recording and another window opens up, it stops recording and locks up.  The only way to shut it down is to go into Windows Task manager.  It does it with Word, IE, Media Player, Real Player...pretty much everything.  Right now we can't record in any media off a player or our FTP site, and we can't read our commercial scripts on-screen.  Any help would be welcome!

    combatTVgirl97 wrote:
    We're running Audition 2.0; in one of our production studios, whenever Audition is recording and another window opens up, it stops recording and locks up.  The only way to shut it down is to go into Windows Task manager.  It does it with Word, IE, Media Player, Real Player...pretty much everything.  Right now we can't record in any media off a player or our FTP site, and we can't read our commercial scripts on-screen.  Any help would be welcome!
    Try going to the Audio Hardware setup page, and taking the check out of the box that says 'release ASIO driver in background' and see if that helps...

  • Presario cq61 notebook PC is locking up when windows is loading

    Presario cq61 notebook PC locking up when loading windows. Just recently updated drivers that were missing or damaged and when I restarted the system locked up when loading windows. Can't find safe mode to find or fix problem. An I'm running windows 7. Please someone help me with this problem.

    Hi @sng4ever2000 ,
    Thank you for visiting the HP Support Forums and Welcome. I have looked into your issue about your Compaq Presario CQ61 Notebook and issues starting Windows 7. Try to turn on the computer you start to press F11 repeatedly till the menu opens. You can do a system restore. System restore will help if something automatically updated and did not go well on the Notebook.
    When performing a System restore please note remove any and all USB devices. Disconnect all non-essential devices as they can cause issues.
    I would be happy to assist if needed. How Do I Find My Model Number or Product Number?
    Please let me know.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Scheduled job does not stop even after the scheduling window closes

    We have written custom stats gathering job whose duration has been set as 14 hours in the schedule. This job starts daily at 6:00 PM and expected to complete upto 8:00 AM next day. But the problem is that this job continues to execute even after 14 hours. If we look at the dba_scheduler_job_run_details table, then its execution duration is about 16 - 19 hours daily. We could not understand as why it is not closed when scheduling window closes? Is there any problem with the scheduler configuration?
    select job_name
          ,program_name
          ,schedule_name
          ,schedule_type
          ,stop_on_window_close
      from dba_scheduler_jobs
    where job_name = 'GATHER_STATS_STD_JOB';
    Output:
    JOB_NAME
    PROGRAM_NAME
    SCHEDULE_NAME
    SCHEDULE_TYPE
    STOP_ON_WINDOW_CLOSE
    GATHER_STATS_STD_JOB
    GATHER_STATS_STD_PROGRAM
    GATHER_STATS_STD_SCHEDULE
    NAMED
    TRUE
    SELECT window_name
          ,schedule_owner
          ,schedule_name
          ,schedule_type
          ,start_date
          ,repeat_interval
          ,end_date
          ,duration
          ,window_priority
          ,next_start_date
          ,last_start_date
          ,enabled
          ,active
      FROM dba_scheduler_windows;
    window_name
    schedule_owner
    schedule_name
    schedule_type
    start_date
    repeat_interval
    end_date
    duration
    window_priority
    next_start_date
    last_start_date
    enabled
    active
    GATHER_STATS_STD_WINDOW
    sys
    GATHER_STATS_STD_SCHEDULE
    named
    +00 14:00:00.000000
    high
    23-feb-15 06.00.10.000000 pm +02:00
    23-feb-15 06.00.10.095878 pm +02:00
    TRUE
    TRUE
    We are using Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod on Linux platform.
    Message was edited by: Moazzam

    Straight out of the docs 83 DBMS_SCHEDULER
    stop_on_window_close
    This attribute only applies if the schedule of a job is a window or a window group. Setting this attribute to TRUE implies that the job should be stopped once the associated window is closed. The job is stopped using the stop_job procedure with force set to FALSE.
    Having said that, stop_job with force applies to whether information about the job is gathered - you would have to test, but I believe that the statistics gather will be terminated in the middle of whatever it's doing.
    Update: force says:
    force
    If force is set to FALSE, the Scheduler tries to gracefully stop the job using an interrupt mechanism. This method gives control back to the slave process, which can update the status of the job in the job queue to stopped. If this fails, an error is returned.
    If force is set to TRUE, the Scheduler will immediately terminate the job slave. Oracle recommends that STOP_JOB with force set to TRUE be used only after a STOP_JOBwith force set to FALSE has failed.

  • The "not enough storage" window wont close when i press close and my phone also wont reset because my lock button doesnt work. what do i do? just let the battery drain then turn it on?

    the "not enough storage" window wont close when i press close and it wont reset because my lock button is broken. what do i do?

    Battery does not appear to charge
    Important: iPod touch cannot be charged with a FireWire-based power source.
    Verify that the power source being used is working properly.
    If connecting to a computer's USB port, verify it is a high-powered USB 2.0 port. Note: The USB ports on most keyboards don't provide enough power, so if you're connecting iPod touch to a keyboard, make sure it has a high-powered USB 2.0 port.
    Verify the computer is turned on and not in sleep or standby mode. If iPod touch is connected to a computer that's not turned on or is in sleep or standby mode, the iPod touch battery may drain.
    Try another USB port.
    Try charging from a USB charger if available.
    If that does not help, try another USB cable if available.
    Learn more about charging the battery.
    The Home button isn't working
    Put the iPod Touch to sleep.
    Wait a couple of seconds.
    Press the Home button.
    iPod Touch should wake up.
    If iPod Touch does not wake up, then iPod Touch should be serviced.
    Resources for Service
    http://support.apple.com/kb/he57
    https://selfsolve.apple.com

  • Close external window in NW04s

    Hi,
    We are using the following API in order to close an external window: TaskBinder.getCurrentTask().getClient().sendRedirect("javascript:window.close();",0);
    After closing the window, the object in the backend system remain locked (and not released). it seems that the session remains alive and hence the object is locked.
    If we close the window with the X of the window, the object of the backend is released as required.
    As suggestions?
    Thanks,
    Aviad

    Hi AVIAD,
    Check this.
    Step 1: Take a context attribute(WindowInstance) of type “com.sap.tc.webdynpro.services.session.api.IWDWindow”.
    Step 2: Take a CloseButton in the View(DisplayView) that is used as a embed View of external Window.
    Step 3:
    When you are calling the external window set “WindowInstance”
    public void onActionDisplayExternal Window(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionDisplayResult(ServerEvent)
         IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows(
         "DisplayWindow");
    //        create the Window
         IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo, true);
         window.setWindowPosition(WDWindowPos.CENTER);
         window.setTitle("WindowTitle");
         window.setWindowSize(100,100);
    //        Save WindowInstance in Context
         wdContext.currentContextElement().setWindowInstance(window);
    //        and show the window
         window.show();
         //wdThis.wdFirePlugInDisplay();
        //@@end
    Step4: Associate action “CloseWindow” with the “CloseButton
    ” and destroy the window instance inside it.
      public void onActionCloseWindow(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionCloseWindow(ServerEvent)
       IWDWindow window = wdContext.currentContextElement().getWindowInstance();
       window.destroyInstance();
        //@@end
    External Window
    Re: Exit button error...
    Regards,
    Mithu

  • How lock or hide URL LOCATION in a external windows WDA

    Hello guys...
    I am traying to hide or block the URL which i am using in a external window. I have coded this:
       call method lo_window_manager->create_external_window
    exporting
       url            = lv_url
       modal          = abap_true
       has_menubar    = abap_false
       is_resizable   = abap_true
       has_scrollbars = abap_true
       has_statusbar  = abap_false
       has_toolbar    = abap_false
       has_location   = abap_false
    receiving
       window         = lo_window2.
    *lo_window2->open( ).
    But, firstly the MODAL parameter doesn't work with external windows (It's Obsolete) So I can't use it, because I have to forbid the navigation between windows. I tried to close the main windows before open URL but it doesn't work either.(Appear a waring that you window wants to be closed) so then I used that:
      lo_windows->fire_exit_url_plg(
        url = lv_url                              " string
      lo_windows =   wd_this->get_windows_ctr( ).
        lo_windows->fire_exit_close_plg(
          close_window = 'X'                     " wdy_boolean
    That is Ok BUT I can't BLOCK the URL or even HIDE it. SOMEBODY give the light.!!!!! pleaseee..

    You are complexing with 2 problem with 2 options.
    1. Blocking url on the external window
    2. Closing the previous window.
    1. parameter model is indeed obsolete, so only has location parameter  would help you to block the URL and it will not work for the requirement 2.
    2. When you use exit plug and navigate to new URL, your window would close but new window would not open with address bar blocked.
    No solution is fitting for your both requirements.
    Probably you have seen this example application WDR_TEST_EXIT_WITH_CLOSE
    See if it fits in your case.

  • Distribution Window Closes when entering a large number of Distributions

    When entering distributions (around 20-30 or so, but no specific number) for an invoice, the distribution window closes without warning. The distributions are saved but the process is unreliable. See the attached documents for the errors given.
    The first error is not really an error so much as the message Oracle gives when it is trying to catch up, "Press cancel to end this database operation". This message will linger for about 3-5 seconds then the message along with the distribution window suddenly close.
    When you go to click on the distribution button immediately after the window closes a second error appears: APP-SQLAP-97734: The system cannot generate distributions for line 1 because: Verify line does not contain distributions: line already has distributions"
    There is no specific dollar amount or number of distributions where this error occurs. It does not happen all the time when we have a large amount of distributions but enough to make entering a large amount of distributions a cautious activity slowing data entry.
    Any Ideas?

    Hello.
    Have you checked MOS DOC Id 823787.1 ?
    Hope this helps.
    Octavio

  • Firefox locks up when I close it, then refuses to open again until I restart my PC

    Firefox refuses to open again after it freezes. This is happening every day and is fast becoming a browser that I will drop and never use again. As a long time user of Firefox I expected a more reliable product from Mozilla. The last 4 releases have been pure junk.
    I'm using Windows 7 (64Bit) with 32 mg of ram. Never had a problem in the last 10 years using Firefox, but I think the time has come to switch back IE 11 which from all reports is a fast stable browser.

    Same problem with FF37 beta. All internet loads stop. When I exit the program the window closes but process continues to run and Task Manager will not stop it. The only solution is to reboot. I have tried safe mode and a full refresh. Neither helps.

  • How can I shut down when printer window is locked?

    How can I proceed to shut down when printer window is locked?

    Thank you, i will try this option. Only thing is i did read another person having this problem and he did shut down his computer and now his photo library in unaccessible!!! Ugh. I do have an external back up hard drive. I sure hope that my photos are on there to reload into iPhoto!!!!
    I did try to place my mouse over the iPhoto icon @ the dock and held down the control key with no results in shutting down the application.

  • Release of locks when transaction commits

    hi guys,
    I am reading Expert Oracle by Tom Kyte, and I am a bit confused. I have checked the errata (http://www.apress.com/book/downloadfile/2421), and no one has pointed the bit I am confused about as an error, so maybe it is just my understanding that is flawed.
    Tom says that when a COMMIT happens, amongst other things:
    "*all locks held by our session are released*".
    Now this is confusing me. Why are all locks held by the SESSION released? I thought we would just release the locks held by the transaction. I mean, our session could have many transactions happening in it, yes? Why then would we need to release all locks?
    thanks

    A single session has a single transaction (barring the corner case of autonomous transactions-- I don't recall off the top of my head if autonomous transactions were available when this book was first released). Oracle doesn't support nested transactions, though you can set savepoints and roll back to a savepoint.
    JustinNow I am confused! Say I open up my PL/SQL Developer, and connect to a database. I now have one session running. I can then open up the "SQL window", and do a transaction, and at the same time, within the same PL/SQL Developer, I can open up another "SQL Window" and do another transaction (I havent done this yet, transactions is a topic I have not yet covered in depth, I am just learning about rollbacks and redo at the moment). So I am assuming I can have two concurrent transactions running from the same session. Is this incorrect? Judging from your response, this is wrong, and I cannot do the above in PL/SQL Developer.
    thanks

  • Windows always shows lock screen when idle, ignores setting

    On Windows 8, I had my computer set up so that the screen would turn off after a period of inactivity. When I would move the mouse or press a key, it would resume without asking me to log in. After upgrading to Windows 8.1, it is now always showing me the
    lock screen when resuming from idle. In the lock screen settings, I found a new option named "When my PC is inactive, show the locks screen instead of turning off the screen". I have disabled this setting, but my computer still locks every time the
    screen turns off.
    How can I get my computer to stop locking when it is idle?

    Hi,
    What about the settings in Screen Saver? Please check the Option "On resume, display logon screen" is unchecked.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

Maybe you are looking for

  • FCP help!  Please?  Lines in my picture

    Hi. Please help me if you can. I am exporting a Quicktime movie from FCP for DVD Studio Pro 4. I chose the MPEG 4 option in the compression, make it best quality and bounce it. But when I look at the self-contained mov file, every time a person walks

  • In 32bit system getting exception "Could not load file or assembly 'SIPEPS, Version=5.0.0.0' "

    Hi All, We are developing a windows service for Lync user state change using UCMA 4.0. It works fine in 64 bit system but once we run the window service in 32 bit system we are getting the exception as  below. Exception  message: Could not load file

  • Running a sequence of events

    I'd like a bit of advice if possible on my 'solution' to a requirement: The requirement is to have a 'Save and Close' button to update a table (using MRU) in a popup window, then close the popup. Sounds simple? - It probably is and there's quite a fe

  • [language settings] how do i change it to display English?

    cause right now my options are in Korean.. but i want to change them so that they're in English..does n.ebudy know how i can change that option ? I tried looking under preferences but I couldn't find the option.. thanks! <3heather

  • Saving raw in jpeg not enough memory (in Camera raw)

    Hello I am using Camera raw with following config: AMD Athlon II x2 245 processor 2.90 GHz RAM:4,00 Go 32 bits I know that it is not enough especially in Ram but I am not alone in this case. So very often I have to close Camera raw because I have got