Close the application from a window or a view

Hi,
I need to check some prerequisities in the WDDOINIT of a window. If they are not
available I send a pop up window to confirm to the user with the missing information.
When the Ok button is selected I would like the application to be exit, I mean I'd like the browser to disappear.
Any idea how to reach this?
I tried the following:
WDDOINIT of the view checks prerequisities, if not avaialable, the view sends a
confirmation dialog. the ok button of the pop up is handeled by the action call_exit of this view.
This action fire an outbound plug to an inbound plug of the window.
The handle function of the window's inbound plug fire an intreface exit plugout.
According to
http://help.sap.com/saphelp_nw04s/helpdata/en/45/1bc575ba064574e10000000a114a6b/content.htm
the associated application should end automatically.
The effect I get is that the window disappears and the browser content gets completely white.
I would like the browser (client) window to disappear, as well.
Is this possible?
kind regards,
      Sahla

Hello,
thank you all for rely.
I solved the problem in the following way:
(I found this in a previous forum question)
So basically the exit plug is fired, but the setting the CLOSE_WINDOW parameter is necessary!
I didn't do this in my firt trial.
method ONACTIONON_COMPLETE .
data : l_view_cntr type ref to if_wd_view_controller,
l_win_cntr type ref to if_wd_window_controller,
l_window type ref to if_wd_window,
l_parameter_list type wdr_event_parameter_list,
l_parameter type wdr_event_parameter,
l_val type ref to data.
field-symbols <fs> type any.
l_view_cntr = wd_this->wd_get_api( ).
l_win_cntr = l_view_cntr->get_embedding_window_ctlr( ).
l_parameter-name = 'CLOSE_WINDOW'.
create data l_val type c.
assign l_val->* to <fs>.
<fs> = 'X'.
l_parameter-value = l_val.
insert l_parameter into table l_parameter_list.
l_win_cntr->if_wd_view_controller~fire_plug(
exporting plug_name = 'EXIT_PLUG'
parameters = l_parameter_list ).
endmethod.
kind regards,
       Sahla

Similar Messages

  • When I click onto the firefox webbrowser, I get the message "firefox has stopped working, windows will close the application to find a solution to the problem " This has been going on for several days, I've had to go back IE to access web pages

    When I click onto the firefox webbrowser, I get the message "firefox has stopped working, windows will close the application to find a solution to the problem."

    I had this exact same problem.  I found this fix and it worked for me. 
    Step 1:
    Browse to C:\Program Files (x86)\Common Files\Apple\Apple Application Support and copy the filen named QTMovieWin.dll. 
    Step 2:
    Browse and past that file into C:\Program Files (x86)\iTunes.
    Hope this helps you.  I wish I could remember where I saw this originally so I could thank them.
    Good Luck.
    Anthony

  • "The Application was unable to start correctly (0xc000007b). Click OK to close the application" error when starting Visual Studio Community

    Hi,
    I just installed Visual Studio and when I launch it, the following error pops up: "The Application was unable to start correctly (0xc000007b). Click OK to close the application". I tried searching online but no usable results. Please help!
    jd

    Hi,
    There is not enough information about the problem. For troubleshooting, I recommend you can use Process Monitor to detect whether there's any process failed.
    You can download Process Monitor and see how to use it for troubleshooting in below links:
    http://support.microsoft.com/kb/939896
    http://blogs.technet.com/b/askperf/archive/2007/06/01/troubleshooting-with-process-monitor.aspx
    There are a lot of log entries in Process Monitor, you may filter Visual Studio process only(proces = devenv.exe). And you can upload the logs to OneDrive so that we can investigate them.
    Also, you can refer to Gfazil's post in 
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/96035692-9a50-40d4-a7d3-48bda87d11ec/the-application-was-unable-to-start-correctly-0xc000007b-click-ok-to-close-the-application-when?forum=vssetup
    Please try the method he mentioned to see whether the problem can occur:
    " Replacing the dlls mentioned below from a machine that is working solves the problem:
    c:\Windows\SysWOW64\msvcp100.dll
    c:\Windows\SysWOW64\msvcp100d.dll
    c:\Windows\SysWOW64\msvcr100.dll
    c:\Windows\SysWOW64\msvcr100_clr0400.dll
    c:\Windows\SysWOW64\msvcr100d.dll "
    Best Wishes!
    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. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • CMD.EXE: The application was unable to start correctly (0xc0000142). Click OK to close the application.

    Hi. I am running Windows 8.1.
    I recent have been having trouble running cmd.exe. I am getting this pop up message everytime I run the program, whether as a regular user or as Admin. The message that pops up is:
    The application was unable to start correctly (0xc0000142). Click OK to close the application. 
    Can you please help?
    I ran event viewer and this is the report of the error:
    Log Name: System Source: Application Popup Date: 12/22/2013 3:56:10 PM Event ID: 26 Task Category: None Level: Information Keywords: User: SYSTEM Computer: Jason-Vaio Description: Application popup: cmd.exe - Application Error : The application was unable to start correctly (0xc0000142). Click OK to close the application. Event Xml: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="Application Popup" Guid="{47BFA2B7-BD54-4FAC-B70B-29021084CA8F}" /> <EventID>26</EventID> <Version>0</Version> <Level>4</Level> <Task>0</Task> <Opcode>0</Opcode> <Keywords>0x8000000000000000</Keywords> <TimeCreated SystemTime="2013-12-22T19:56:10.126735000Z" /> <EventRecordID>493149</EventRecordID> <Correlation /> <Execution ProcessID="760" ThreadID="312" /> <Channel>System</Channel> <Computer>Jason-Vaio</Computer> <Security UserID="S-1-5-18" /> </System> <EventData> <Data Name="Caption">cmd.exe - Application Error</Data> <Data Name="Message">The application was unable to start correctly (0xc0000142). Click OK to close the application. </Data> </EventData> </Event>

    Hello,
    See this blog-post;
    http://blogs.technet.com/b/gladiatormsft/archive/2013/06/11/app-v-5-0-on-these-0xc0000142-errors-and-where-they-are-coming-from.aspx
    Nicke Källén | The Knack| Twitter:
    @Znackattack

  • LOV retrieval hang the application on assignment window

    When i try to choose an organization using the LOV on the assignment window it hangs the application and i am force to close the application. I have done a trace on the form executed the sql statement directly from sqlplus i get the same effect.
    select distinct o.name, o.organization_id from
    per_organization_units o where o.business_group_id =361 order by o;name;
    When i run the above statement sqlplus hangs
    but when i do
    select distinct o.name, o.organization_id from
    per_organization_units o where o.business_group_id =361 order by o;name,oragnization_id;
    The records are retrieved
    I wanna why does it hangs when i do a sort only by the name which is the default statement executed from the assignment window.
    Is it because of a corrupted data block
    Any help would be greatly appreciated

    I have done a trace on the form executed the sql statement directly from sqlplus i get the same effect.What does the tkprof of the trace file show?
    Is it because of a corrupted data blockAny ORA-XXXXX errors in the alert_<SID>.log file?

  • Programmatically close the current sequence's window

    Is there a way to programmatically close the current sequence’s window in order to reload it if it was modified or to load another sequence (programmatically)?

    Do you want to close it from the UI?  Because I don't think you can do it from the Seq. Editor???? 
    From TestStand Help:
    CloseSequenceFile Method
    Syntax
    ApplicationMgr.CloseSequenceFile ( file)
    Return Value
    Boolean
    Returns whether the sequence file was successfully closed.
    Purpose
    Closes a sequence file.
    Remarks
    The Application Manager control attempts to close the sequence file by generating a QueryCloseSequenceFile event. The QueryCloseSequenceFile event confirms whether to release the file and remove the file from the SequenceFiles collection. If the sequence file is running in an execution or if other references to the sequence file exist, TestStand does not immediately unload the file from memory.
    Parameters
    file As SequenceFile
    [In] Specifies the sequence file to close.
    OpenSequenceFile Method
    Syntax
    ApplicationMgr.OpenSequenceFile ( sequenceFilePath)
    Return Value
    SequenceFile
    Returns the opened sequence file, if successful. If a type conflict occurs when loading the file and the conflict prevents TestStand from opening the file, this method returns NULL. If an error occurs while opening the file, this method throws an exception.
    Purpose
    Opens a sequence file.
    Remarks
    This method adds the sequence file to the SequenceFiles collection and generates the SequenceFileOpened and DisplaySequenceFile events.
    Parameters
    sequenceFilePath As String
    [In] Specifies the path of the sequence file to load. If you do not pass an absolute path, this method searches for the file using the TestStand search paths.
    Hope that helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • The application was unable to start correctly (0xc0000142). Click OK to close the application. error: 0x6740090A-0x20003

    Hello,
    I have installed the app-v 5 client on a 2012 rd server. After publishing the application I’m getting the error “The
    application was unable to start correctly (0xc0000142). Click OK to close the application.”
    The registry value
    NtfsDisable8dot3NameCreation is already set on 2.
    The error in the eventlog is
     “could not be started because the App-V Subsystem 'Virtual Filesystem' could not be initialized. {error: 0x6740090A-0x20003}”
    Thanks in advance
    Rene

    See this blog post: http://blogs.technet.com/b/gladiatormsft/archive/2013/06/11/app-v-5-0-on-these-0xc0000142-errors-and-where-they-are-coming-from.aspx
    Please remember to click "Mark as Answer" or "Vote as Helpful" on the post that answers your question (or click "Unmark as Answer" if a marked post does not actually
    answer your question). This can be beneficial to other community members reading the thread.
    This forum post is my own opinion and does not necessarily reflect the opinion or view of my employer, Microsoft, its employees, or other MVPs.
    Twitter:
    @stealthpuppy | Blog:
    stealthpuppy.com |
    The Definitive Guide to Delivering Microsoft Office with App-V

  • The application was unable to start correctly (0xc000007b) Click Ok to close the application

    My computer is returning a "The application was unable to start correctly (0xc000007b) Click Ok to close the application" message, every time I try to start After Effects or SpeedGrade

    Oops sorry.
    OS - windows 7 premium.
    CPU - i7-2600 @3.4GHz
    Graphics - Asus HD7750 (running dual display)
    SpeedGrade, Dreamweaver and 3DS max all give the same problem
    Any help?

  • The application was unable to start correctly (0x0000906). Click OK to close the application

    Hello People
    I am receiving the error "The application was unable to start correctly (0x0000906). Click OK to close the application" in a couple of Windows 7 Computers, one 64bits one 32bits.
    I have searched the web with no specific solution, so I am requesting help here.
    Thanks in advance.
    Best regards
    Fernando Puntel
    IT support
    [email protected]
    [email protected]

    Hi
    I believe you need to add more detail about this issue
    Can you help me to check at event viewer log maybe we can find cause for this issue
    http://windows.microsoft.com/en-us/windows/what-information-event-logs-event-viewer#1TC=windows-7
    May I know when this issue start happen? any change software or hardware before this issue happen?

  • WINWORD.EXE -Application Error The application was unable to start correctly (0xc0000142). Click ok to close the application

    HI 
    when i am trying to open MSWord following message pop up and i can't open MSword any more:
    WINWORD.EXE -Application Error The application was unable to start correctly (0xc0000142). Click ok to close the application.
    Please advise 

    Hi,
    Does Word start in Safe Mode?
    Press Win key + R, type "winword.exe /safe" in the blank box, press Enter.
    If Word can start in Safe Mode, the issue should be related to 3rd-party add-ins, disable the suspicious add-ins to determine which one caused the problem.
    You can also try repairing Office from Control Panel -> Programs and Features, check if this helps.
    Regards,
    Melon Chen
    TechNet Community Support

  • CS6--The application was unable to start correctly (0xc000007b). click OK to close the application.

    CS6--Error message -- the application was unable to start correctly 9)xc000007b). click OK to close the application.

    Nobody can know. That's just a generic Windows crash code and since you haven't provided any system info, no crash logs nor even told us what app you actually refer to this is totalyl useless.
    Mylenium

  • How can I close the applications?

    I have installed the latest iOS 7.0.2 and I could not close the applications and not possible to download  a new application. Before that, I was pushing twice the button and then close the applications, but now it is not possible.
    Ipad 2
    Thank you
    Harutyun

    Close inactive apps
    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
    http://support.apple.com/kb/ht5137

  • I am trying to download firefox5 and the download failed, and getting message To close the application -Rundell32.exe and Ox0000142

    Trying to download firefox 5 and the download failed i am getting message to close the application and cod number Ox0000142, is have any way to fix the problem with out removing window 7

    Open the Java pane in System Preferences. A separate application will launch. In the Security tab, check the box marked
    Enable Java content in the browser
    If necessary, adjust the Security Level slider, but if you must reduce the level, do so only temporarily and only if you are absolutely sure of what you're doing. Don't do this to play a game or because a stranger on the Internet asked you to. Java can be dangerous.
    If your browser is Safari, you may also need to make changes to the plugin settings in the Security tab of its preferences window.

  • End-user closes the Web browser's window...

    Hi ,
    I have an Exit_Form selection on a menu.....
    Is it possible the code being there to be executed whenever the end-user closes the web-browser's window.....???
    I use Dev10g.
    Thanks , a lot
    Simon

    Unfortunately... is is not applicable....because:
    1) Many users(application users) connect via a db user to the database.... , so i cannot relate each application user to a db session.
    2) The trigger on_logoff can not be used because of the first note....
    3) As i have written in my previous post the "exit_form" is not 'pure PL/SQL' code but 'forms' code.... It contains some 'erase(global_variables)' which are unknown to the db......
    Thanks , anyway...
    Simon

  • How to get the values from popup window to mainwindow

    HI all,
       I want to get the details from popup window.
          i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
       now i am able to display popup window with values.How to get the values from popup window now.
       I can anybody explain me clearly.
    Thanks&Regards
    kranthi

    Hi Kranthi,
    Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
    Regards,
    Uday

Maybe you are looking for

  • Export JTable to Excel

    Hi, I am trying to export a jtable to excel by using APACHE POI (latest version 3.6), but after adding the jar file to my CLASSPATH, my code will recognize all the new objects, which is great, but it wont find the "write" method from the HSSFWorkbook

  • [SOLVED]Youtube and Video Codecs

    Hey guys Ok basically today i went to make a screen recording for a friend. and i got this command line of the internet, youtube itself actually. i do remember the guy on the video saying he converts it later The recording went fine. better than fine

  • Help with Update task

    Hi friends, In the below am trying to update a custom table using a call function in update task. I dont see the table getting updated can someone take a look at it and let me knw what the problem is? I have the commit work statement and also marked

  • Print Table data

    Hi all,      I want to print table data. I came up with couple of solutions like export to excel , printversion and adobe forms. We do not want to go for Adobe forms.  My concern in case of excel and print version is I want the logo also to be printe

  • Order of coordinates affect SDO_AREA for SRID 8307

    I have this strange problem. Coordinates stored in sdo_ordinate_array in this order: 1,2,3,4,1 gives very small difference in area from coordinates stored in this order: 2,3,4,1,2. The difference in area is approximately in the range of ~0.001 square