Coding to allow the X (Close Window icon) to close a window.

I have coded a number of Modal screens called from a main screen.  I can't seem to find what allows the windows Close Window icon (X) to close the screen.  The user must hit my exit button to leave, and I want to keep that as an option, but also allow the X to close the window and be able to handle it in my User Command module.
Thanks in advance

Hi Paul,
First set the PF-status with CANCEL and activate it
for the model screen.
in PAI.
module leave_screen.
in program
case ok_code
when 'CANCEL'.
leave to screen 0.
endcase.
Best Regards
Ramchander Rao.K
Edited by: Ramchander Krishnamraju on Dec 23, 2008 11:06 AM

Similar Messages

  • What is the work around for not being able to see icons for folders.  I want to be able to copy and paste image icons in the GET INFO windows.

    I have always used images for my folder icons, and now I am told that Mt. Lion does not allow me to go to the GET INFO window and do a click on the image icon and then be able to paste that image on to other folders.    I just talked with a Apple support guy and he said that Mt. Lion does not support this function.  He did say that there are third party programs that allow using images to make icons for folders or other items.  I can see some image icon in some of my hard drive folders.......  some folders show image icons while others do not. I am a photographer and have scads of photo folders spread all over different hard drives, and I find it easier to find what I am looking for by just looking at the IMAGE PICTURE in the different folders on my hard drives, than by having to read the one or two words associated with each folder.
    THe support guy said to request that APPLE put back the ability to use the coy paste function in the GET INFO window.  If i can't get this working like it was I wouyld like to know how to get a refund and throw out Mt Lion.

    Restore your Lion bootable backup/clone or Time Machine backup and file your ML bug report. Just keep the installer ($20 USD isn't worth the hassle trying to get it refunded). Then, when the function's restored, reinstall and run Software Update.

  • HT4623 How do I close apps that are running in the background.  If you double click button you used to be able to press and hold for the "x" to come up to allow you to close, but now I can't .

    How do I close apps that are running in the background.  You used to double press the button, and then press and hold to allow the "x" to come up, so you could close them down.

    Close all apps in multi-task window
    1. Double tap the home button to bring up the multi-tasking view
    2. Swipe the app's windows upwards to close
    3. The app will fly off the screen

  • Some tabs wont allow me to close them unless i restart the browser

    Every time i open firefox the last tab that is open won't allow me to close it with out restarting the browser.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • When I try open a .pdf file my Adobe Reader 11 only allows the download / save opening the related window and don't show me both options 1) open with ... and 2) save as.... probably someone flagged the choise... always perform this way ....

    When I try open a .pdf file my Adobe Reader 11 only allows the download / save opening the related window and don't show me both options 1) open with ... and 2) save as.... probably someone flagged the choise... always perform this way ....
    Could some one give help and let me know where I can probably find the settings option that allows me to change and switch to previous situation where it was possible to decide time to time how to proceed either opening the file or saving it ??
    Thanks in advance
    David

    What is your operating system?
    Open a PDF from where?  If online, in what browser?

  • How do I delete movies from iTunes library? I have moved them to the iCloud and now only seem to have the option to hide the icon in iCloud.  I am sure I chose poorly at the 'keep file' window.  Please help. My Brain hurts- 18   movies need to go-.

    How do I delete movies from iTunes library? I have moved them to the iCloud and now only seem to have the option to hide the icon in iCloud.  I am sure I chose poorly at the 'keep file' window.  Please help. My Brain hurts… 18 plus movies need to go….  Thank you.

    Instead of removing the music from the cloud or the iTunes library why not shuffle your music using a Smart Playlist which excludes the holiday music, or tracks that are not checked. For example, use this very simple Smart Playlist:

  • The latest version of Pages does not allow a Pages document to become a 'stationery pad'!  Is there a way to do this this other than through the 'Get Info' window?

    The latest version of Mavericks does not allow a Pages document to become a 'stationery pad'!  Is there a way to do this this other than through the 'Get Info' window?  As Pages templates cannot be ordered in folders, my many templates are effectively unusable now and I need to find another way to order and access them.

    Are you aware of that you can still use Pages 09 on Mavericks? You don't have to go thru the grieves of using the crippled Pages 5. Pages 09 should bi in Applications/iWork 09 folder.

  • I just statred Flash CC for the first time and it seems that the text within the pop-up window (dialog box) is mis-aligned and not allowing me access to the command buttons, nor all the text. (ie: the NEW Template Box, can't see but 2/3 of the content)

    I just statred Flash CC for the first time and it seems that the text within the pop-up window (dialog box) is mis-aligned and not allowing me access to the command buttons, nor all the text. (ie: the NEW Template Box, can't see but 2/3 of the content) is there a fix to this problem? using 8.1, Monitor is a high res.2560x1440.

    Another View.
    the GUI is so hard to read (so small) I enlarge my Ps UI by the instructions below...which helped a lot.

  • Close the External Opend window on click of button

    Hi All,
    I have a parent window (A) and there is a button on click of that i am opening a another window as external window(B). Now on window B there is a button CLOSE and on that i want to close that external window. How can i achieve this?? i tried it using exit plug but i m not able to get the currently open windows URL.
    Thanks In Advance.

    Hi Prathamesh,
    I am not clear about your requirement - are you trying to use URL through EXTERNAL WINDOW or you are trying to use WNDOW EXIT?
    If its URL through External Window: following code might help--
    METHOD onactiongo.
    **-Created two radio buttons- SAP and Google. Select a radio button and click on GO button. Will redirect to the required URL
      DATA lo_nd_select_option TYPE REF TO if_wd_context_node.
      DATA lo_el_select_option TYPE REF TO if_wd_context_element.
      DATA ls_select_option TYPE wd_this->element_select_option.
      DATA lv_link TYPE wd_this->element_select_option-link.
    * navigate from <CONTEXT> to <SELECT_OPTION> via lead selection
      lo_nd_select_option = wd_context->get_child_node( name = wd_this->wdctx_select_option ).
    * get element via lead selection
      lo_el_select_option = lo_nd_select_option->get_element( ).
    * @TODO handle not set lead selection
      IF lo_el_select_option IS INITIAL.
      ENDIF.
    * get single attribute
      lo_el_select_option->get_attribute(
        EXPORTING
          name =  `LINK`
        IMPORTING
          value = lv_link ).
      DATA lo_window_manager TYPE REF TO if_wd_window_manager.
      DATA lo_api_component  TYPE REF TO if_wd_component.
      DATA lo_window         TYPE REF TO if_wd_window.
      lo_api_component  = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
      CASE lv_link.
        WHEN 'SAP'.
          lo_window = lo_window_manager->create_external_window(
                      'http://sdn.sap.com').
          lo_window->open( ).
        WHEN 'GOOGLE'.
          lo_window = lo_window_manager->create_external_window( 'http://www.google.com' ).
          lo_window->open( ).
      ENDCASE.
    ENDMETHOD.
    If its WINDOW EXIT:
    1) Create EXIT button in VIEW.
    2) Go to WINDOWS -> Outbound Plug -> Give Plug Name (e.g: OUT_EXIT) -> Check INTERFACE -> Plug Type = EXIT.
        In same window, in "IMPORTING PARAMETER FROM OUT_EXT" -> Parameter = URL -> Associated Type = String
    3) Go to VIEW -> Properties -> Create Controller Usaged
    4) In "onAction event" of EXIT button, write the following code:
    DATA lo_window1 TYPE REF TO ig_window1 .
      lo_window1 =   wd_this->get_window1_ctr( ).
      lo_window1->fire_out_exit_plg( url = 'http://www.google.co.in' )

  • My Ipad wont retrieve my new emails and if I try to check passwords in Settings, the settings window only stays open open for a second or two and the automatically closes. Any help on how to fix. I tried the turn off and on trick and that didn'

    My Ipad wont retrieve my new emails and if I try to check passwords in Settings, the settings window only stays open open for a second or two and the automatically closes. Any help on how to fix. I tried the turn off and on trick and that didn't work either. Thanks for any help.

    Try reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

  • Can I force the bootcamp wizard to skip looking for the bootcamp drivers?  I have already downloaded the latest drivers and loaded them on a FAT usb drive.  All I want is for bootcamp to create the partition and allow me to install windows 8 pro

    Hi Everyone,
    Can I force the bootcamp wizard to skip looking for the bootcamp drivers?  I have already downloaded the latest drivers and loaded them on a FAT usb drive.  All I want is for bootcamp to create the partition and allow me to install windows 8 pro.
    The bootcamp drivers have been downloaded from apple's website.  Filename:  BootCamp5.0.5033
    I have a iMac 27" late 2013 model.
    NOTE:  I have downloaded the drivers manually from apples support site as the bootcamp wizard fails third of the way through the download.
    Appreciate any assistance.
    Regards,
    asdutoit

    There is a missing point in this thread, and it is that the Boot Camp drivers for the Late 2013 iMac can only be downloaded from Boot Camp Assistant. The Boot Camp drivers available in the Apple site are not compatible with that iMac.
    Delete the Boot Camp drivers from the USB drive, open Boot Camp Assistant and try to download the Boot Camp drivers again. If you get a message telling you that they could not be downloaded, I would try reinstalling OS X through OS X Recovery, by holding down Command and R keys while your Mac is starting up

  • How to I get rid of pop up user account control "do you want to allow the following program to make changes to your computer" I have windows 7 professional.

    I keep getting an annoying pop up the says "User Account Control" "Do you want to allow the following program to make changes to your computer"
    == This happened ==
    Every time Firefox opened
    == Two days after I downloaded Firefox and set as my default browser.

    Check that you do not run Firefox as Administrator.
    Right-click the Firefox desktop shortcut and choose "Properties".
    In the Compatibility tab, make sure that Privilege Level: "Run this program as Administrator" is not selected.
    You also need to check the Properties of the firefox.exe program in the Firefox program directory.
    If you can't make the changes then you need to start Windows Explorer as Administrator.

  • How to close the scopes / preview window

    I guess I have the opposite problem that most people have (I did try to do a search on this one). I would like to close or disable the scopes/preview window. Is there anyway to do this?
    I am running 1 large monitor and would love to just have the main color interface fill the entire screen. (I have read that color is designed for 2 monitors.. but it's easier to fit one large (28") monitor on my desk rather than 2 smaller ones) In single display mode, I can minimize the scopes window, but I can't seem to maximize the main color window. If I do dual monitor mode, I can minimize the scopes window, but when I hit play, it pops up and jumps in front of my main window. I have a kona for my external monitor and I have an external scope.
    Is there anything I can do? Did Apple just not give us many ways to customize the interface (Can't re-size the main color window)? I am running color 1.0.4 on OS X 10.4.11 (on a G5), and have the ATI X800 XT.
    Thanks so much,
    Peter

    +Then the scopes screen jumps in front of my main grading window.+
    Don't know why this is happening to you. Under window set for a single display and restart Color. If your doing DVD/TV work the only monitor that going to be any help is a grading TV monitor. A second computer monitor would be a waste and useless.
    I have a two screen setup. I mainly do work for internet delivery. I have Color set up for single display. My main monitor (calibrated as close as I can get it) is better than my second monitor. And that's were I view my Quicktime videos. The second monitor is only used for programs tools/pallets. When I do something for TV I set up a second TV monitor.

  • I have Windows 8 pro on my computer .  I un-installed itunes on my computer to re-install itunes 7.1.1  Now the system will not allow the re-install.  Can anyone help?

    I have Windows 8 pro on my computer .  I un-installed itunes on my computer to re-install itunes 7.1.1  Now the system will not allow the re-install.  Can anyone help?

    I have an HP Officejet Pro 7580 similar to the 8600 you have and after upgrading to Mountain Lion it wouldn't work. HP support site said download updates for Mountain Lion from App Store not their site so I went to software update but there were NO UPDATES FOR 10.8.  Tried a million things and could not get printer to work.  So I restored back to Lion figuring at least printer worked then only now I can't get it to work with old settings either. I am sick to death of claims by Apple and peripheral manufacturers that everything is compatible all you have to do is get updates well in this case THERE ARE NONE TO BE GOT and I don't have time to **** about trying to find 'work arounds'.  There shouldnt be a need for work-arounds. Unless the updates are ready DONT release the new OS.  You shouldn't have to be an IT tech to make basic things like printing work.  I see also the HP 8600 is even sold by appstore so there is no reason why it shouldn't work with minimum fuss. 

  • All my hard drives (internal and external) have a small lock in the lower left corner of the icon and I don't have permissions to access. Permissions are set to 'Custom' in the get info window and I can't change them.

    All my hard drives (internal and external) have a small lock in the lower left corner of the icon and I don't have permissions to access. I have 3 user accounts set up and I cannot access any of them.   Permissions are set to 'Custom' in the get info window and I can't change them. Originally I had Snow Leopard installed on one hard drive and 10.5.8 installed on another.   I started to have some problems accessing data between them and so I tried changing the permissions on ONE hard drive partition.   The next thing I know, all my drives are locked (except the ones with the systems on them), the small lock appeared in the lower left corner of the drive icons and I don't have permissions to access any of them.   In the get info window, permissions are set to 'Custom' and I can't change them.

    There is suddenly a lock icon on my external backup drive!
    Custom Permissions

Maybe you are looking for