How to close sap portal IE window using WD ABAP

Hi All,
I'm asked to close sap portal window by clicking a button in one of my WD Abap applications.
Is that possible, if so can you please provide me with a coding example.
Thanks
Ziv

Thanks Prashant
The link was very helpful indeed.
It wasn't entierly correct but it got me on the right track to solving my problem.
Here is the complete solution :
Step 1.
Create an outbound plug in your view , O_<VIEW>_EXIT.
Step 2.
Create an inbound plug in your window , I_<WIN>_EXIT.
Step 3.
Create an outbound plug in your window , O_<WIN>_EXIT ,
while creating the plug make sure that you make it as an exit plug.
(In the normal course , system will not allow you create an exit plug
unless and otherwise you specify the plug as an interface one.)
Add a paramter close_window to the interface of the plug (this paramater is known by the framework)
Step 4.
Go to your HANDLEI_MAIN_EXIT method in your window and fire the exit plug.
>>>>>> wd_This->Fire_O_V_Main_Exit_Plg( close_window = 'X' ).
Step 5.
Go to the window create the navigation link from the outbound plug of your <VIEW> to the inbound plug of your window.
Ie , create a navigation from O_<VIEW>_EXIT ( view ) to I_<WIN>_EXIT ( window )
Step 6.
Whenever you want to close the window fire the outbound plug >>>>>> wd_This->Fire_O_<VIEW>_Exit_Plg( ) From your code.

Similar Messages

  • Cannot download application world- how to close all the browser windows

    i cannot download the blackberry application world "sorry, your session has expired. Please close all of your browser windows and then return to the welcome page to start again." How to close all the browser windows?

    Hello numadia
    Welcome to BlackBerry Support Forums
    Is your problem resolved or you're still having problem with download BlackBerry world !
    If you're having problem then just peform a Battery pull restart by removing the battery while your device is Powered On, wait for a min. then reinsert it back after reboot please try it again.
    If problem persists then you can also go through this Knowledge Base  KB32113
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • Installing SAP GUI on windows using Bootcamp on (MACBook)

    HI SDN,
    I am looking forward to buy MACBook.
    Please provide your suggestions on installing SAP GUI on windows using Bootcamp on MACBook?
    Are they any issues installing SAP GUI on Mac machine on Windows
    OS?
    Running Bex Queries, any excel integration issues while running BEx reports on Mac machine with windows Bootcamp?
    I really appreciate if you can forward any related information .
    Thanks
    (Full points will be awarded for helpfull answers)

    Hi,
    [SAP Mac Users Forum|iPhone & iPad Application Development;  is right place for this question

  • How i can open a browser windows using a button in jsf ?

    Hi
    Thank you for reading my post
    how i can open a browser windows using a button in jsf ?
    for example if i want to open a window which will show http://www.mywebsite.com?name=TestName&family=TestFamily
    and before opening the window i need to set those two variables.
    can some one help me with a solution ?
    thank you

    Hi Legolas,
    Please refer to the answer provided by Chris in the EA forums.
    Cheers
    Giri

  • How to create sap study platform(include BW,EP,ABAP develop IDE).

    How to create sap study platform(include BW,EP,ABAP develop IDE).Thanks!

    How can I get the bw IDES for free?
    Edited by: Andy Y.L. Zheng on Apr 28, 2009 4:46 AM

  • Remove Maximize button from popup window using Webdynpro ABAP

    Hi,
    Is there a way to remove the maximize button from a popup window using Webdynpro ABAP?
    Thanks,
    Jay

    Hi Jayanth,
    I think by setting is_resizable parameter pass abap_false. try this
    lo_window = lo_window_manager->create_window(
    window_name = 'POPUP'
    title = 'Window'
    close_in_any_case      = abap_true
    message_display_mode = if_wd_window=>co_msg_display_mode_selected
    message_type = if_wd_window=>co_msg_type_none
    is_resizable    = ABAP_FALSE ).
    Cheers,
    Kris.

  • How to access Sap portal login user in ejb web service

    Hi,
    I wnt to access SAP Portal login user in my ejb application which resides on the same server.
    I am using following code
    try {
         IUser user =null;                         IWDClientUser wdUser = WDClientUser.getCurrentUser();
                                  user = wdUser.getSAPUser();
                             } catch (WDUMException e) {
                                  // TODO Auto-generated catch block
                                  e.printStackTrace();
    Some additional jar files are required for this?
    The same code works fine with webDynpro but not with ejb.
    Thanks in advance     
    Best regards,
    Nilesh

    Thanks for reply.
    I have already added com.sap.security.api in my EJB module project classpath. How to add the same in EJB application Project (application-j2ee-engine.xml)?
    Best regards,
    Nilesh

  • How to install SAP GUI in Windows 8.1

    Hi,
    Please guide me how to install SAP GUI in OS Windows 8.1
    Regards,
    Priya

    Before installation of SAP GUI we need to know the OS details and the OS system Bits (32 / 64).
    NW SAP Setup
    • Download the software @ SAP Site using S user login ID.
    • Download the Software gui730_0-10010496 (include the patch 6 hotfix 1)
    • After download Extract it and go to the path and install.

  • SAP Portal - POPUP window issue

    Hi All,
    I'm just new in SAP Portal and I want to ask an assistance regarding the issue our team is currently handling.
    When user open a workitem in Engineer's Desktop (under Assembly Manager), a new popup window appears. When the user tries to open another workitem without closing the first one, the first popup window closes which should not be the case. If the user opens 2 workitem, there should be 2 popup window. There are no current changes done on Portal except the EHP upgrade.
    Can you please help me on this? ANy idea is appreciated.
    Thanks,
    Arlene

    Hi Padman,
    Pls. install JVM on you local machine..
    Regards
    Pramod

  • Error while Loading SAP portal on windows Vista

    I am getting the fowwloign error on step 36 out of 41 while trying to load SAP Portal /WAS on Windows Vista on my laptop.
    ERROR 2008-12-12 14:17:35.669
    FCO-00011  The step configSLDMainLocalImportContent with step key |NW_Workplace|ind|ind|ind|ind|0|0|NW_Onehost|ind|ind|ind|ind|0|0|SAP_Software_Features_Configuration|ind|ind|ind|ind|6|0|NW_Usage_Types_Configuration_AS|ind|ind|ind|ind|0|0|NW_CONFIG_SLD|ind|ind|ind|ind|0|0|configSLDMainLocalImportContent was executed with status ERROR .
    ERROR 2008-12-12 15:05:48.182
    CJS-30059  Java EE Engine configuration error. DIAGNOSIS: See output of logfile java.log: 'IO EXCEPTION: Connection refused: connect:: '.

    Hi,
    I believe VISTA is not a recomended OS for SAP Portal, I tried for a week to install and finally gave up
    check this
    Adventures with NetWeaver Portal 7 - Vista Installation
    jo
    Edited by: Ravi Joseph on Dec 12, 2008 11:51 AM

  • How to upload pdf file to DataBase using webdynpro abap.

    Hi Experts,
    how can i upload a pdf file in document server using webdynpro abap and display the same  pdf file on the view using webdynpro abap.
    Please Provide requried information .
    Thanks & Regards.
    Bhushan.

    NB - the "data" that is returned by these classes is the data as defined in an adobe form - it doesn't return the content of non-form PDF documents.
    The PDF must be an interactive form ( although that doesn't restrict you to using the SAP process for creating the form is my understanding - but I could be wrong. )
    Edit - I was wrong! ONLY PDF documents that have been created by the ADS can have data extracted using these classes. So unless you are using Adobe interactive forms - then you will get no value from this functionality - and if you're using AIF then you're probably just use the standard UI element
    Edited by: Chris Paine on Oct 26, 2010 6:04 PM

  • How to save User input into DB using webdynpro abap

    Hi,
    Im trying to create an application using webdynpro abap.
    I want to know how to save the data input by user, into a database table.
    In my UI, I have a table control which is editable and user inputs data into this. I need to know how i can transfer this data to a DB table.

    hello,
    u can do it by reading ur context node.
    we bind our UI elements to context attributes of appropriate type .
    we read their values using the code wizard or by pressing control+F7, click on radio button read node/attribute
    here for ur specific case , u must have binded ur table control with the context attribute , now u need to simply read this attribute
    eg suppose u have created a context node " cn_table"
      reading context node cn_table
       DATA : lo_nd_cn_table TYPE REF TO if_wd_context_node ,
             lo_el_cn_table TYPE REF TO if_wd_context_element ,
             ls_cn_table    TYPE wd_this->element_cn_table.
    *   navigate from <CONTEXT> to <CN_TABLE> via lead selection
      lo_nd_cn_table = wd_context->get_child_node(
                       name = wd_this->wdctx_cn_table ).
    **    get element via lead selection
      lo_el_cn_table = lo_nd_cn_table->get_lead_selection(  ).
      lo_el_cn_table->get_static_attributes( IMPORTING
                 static_attributes = wa_table ).
    here wa_table is the work area of structure type . u need to create a structure first with the same variables as there are the context attributes in ur node cn_table
    in ur
    now ur wa_tablecontains value
    u can nw use appropriate FM to update , delete and modify the DB table using the value
    u cn directly use SQL statements as well in the method of ur view , but direct SQL statements are nt recommende
    rgds,
    amit

  • How to close a pop up window of used component ( usage defined )

    Hi Friends ,
    I'm calling a window as a pop up of used component ( Usage defined ). I want to close that pop up using a button on the embedded view of that window.
    it would be great help If any one can help me in this.
    Regards,
    Laeeq

    >
    Laeeq Siddique wrote:
    > Hi Silke ,
    >
    > I Want to close a pop up using a botton on embedded view of window of used component and I do not have the refrence of window object there. I know what you are talking about but its not that simple.
    >
    > Regards,
    > Laeeq
    Actually it is pretty simple.  From the embedded view you can use the APIs to get access to the hosting window object.
    data l_api_v_new_attachment type ref to if_wd_view_controller.
      l_api_v_new_attachment = wd_this->wd_get_api( ).
      data window_controller type ref to if_wd_window_controller.
      window_controller = l_api_v_new_attachment->get_embedding_window_ctlr( ).
      data window type ref to if_wd_window.
      window = window_controller->get_window( ).
      window->close( ).

  • How to Access SAP ECC 6.0 using HP model Omni 10 (with windows 8.1) tab

    Dear Experts
    can anybody guide me to access SAP using TAB, where it has windows 8.1 o/s and manufactures are claimed it support all applications.
    which SAP client version to be loaded in this tab, what are the config steps to be followed etc
    Kindly revert.
    Thanks
    Venugopal

    Hi Ravidra
    Have u solved the probelm I also have the same problem when i move the groups from node1 to node2 manually my 2 servrces 00 and 01 are failed not able to bring up again. If You solve the problem please guide me the solution to solve this.
    THanks in advance

  • How to prevent a portal user from using the BEx Analyzer ?

    Hi,
    we have different type of users : most users may use the portal as well
    as the analyzer ;
    we have one special user with extended authorizations : this user
    should use the portal , where he has a limited set of queries to run
    with hardcoded filters ==> this user should not be able to use the
    analyzer however, since he then would be able to call all other queries
    by using the find function ;
    how can we make sure this user cannot use the analyzer , using SAP
    authorizations ?
    best regards,
    Erwin Van Giel.

    Hi,
    if I remove the complete S_RFC authorization for the user then the BEx Analyzer cannot connect anymore to the BW system, but neither can the user run reports from the portal : it needs the S_RFC with 'SYST'.
    If I only remove the RRMX from the S_TCODE and from the S_RFC, it does not prevent the user from starting the BEx Analyzer and connecting to the BW system. It only stops the user if he would start the RRMX transaction from within an SAPGUI session.
    Perhaps there should be a value in the S_RFC that allows connections from the portal but not from the BEx Analyzer .... ?
    so not solved yet ....
    best regards,
    Erwin.

Maybe you are looking for