How to do a Logout Button in WD for ABAP ?

Hi all,
i wonder that i cannot find a logout method somewhere. I have read about an exit plug, but how to fire exitplug of a windwow from the view ?
And how to do a normal logout button which logs out the user and start the webdynpro application again and go to the login screen ?
Thx a lot
Roman

how to fire exitplug of a windwow from the view ?
Use Exit Plug in Windows:
Do the following steps :
-> Make an Outbound Plug to the Window.
->Make the type of Outbound plug to Exit Type.
->Add CLOSE_WINDOW of type wdy_boolean as a parameter to the outbound plug of Window.
->Do remember to add Component Name in the Properties Tab of View ( othervs Calling Outbound plug of window from view wont be possible ).
->Fire the outbound plug with close_window as X in the onAction of Exit Button .
Refer SAP online help on using Exit plug to close a window:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/ca3351508f04e7e10000000a42189c/content.htm
method ONACTIONGO_EXIT .
data: L_REF_MAIN_WINDOW type ref to IG_MAIN_WINDOW .
L_REF_MAIN_WINDOW = WD_THIS->GET_MAIN_WINDOW_CTR( ).
L_REF_MAIN_WINDOW->FIRE_MY_EXIT_PLUG_PLG( CLOSE_WINDOW = 'X' ).
endmethod.
here Main_window is the window which needs to be closed.
I hope it is clear.

Similar Messages

  • ZLM00: How to create the logout-button?

    LS.,
    I am creating my own LM00 screens which work fine. There is one button hat I still have to add: LOGOUT.
    Of course I can create the button and give it a functioncode, but what do I have to let it do to make the user logout?
    I tried functions like:
    EXIT, LEAVE TO SCREEN 0, LEAVE PROGRAM, LEAVE, RETURN, STOP, CALL TRANSACTION '/NEX'.
    Also I tried to debug the original LM00 transaction, but it is not debuggable using /h /hs or /he.
    I have also searched for function modules that log the user out, but did not find any.
    Anybody any idea how to create the logout-button?
    Best regards,
    Tim van Steenbergen.

    Got it.
    Functionmodule SAPGUI_SET_FUNCTIONCODE does some part, but only works for a dialogsession. When trying this on a scanner, it did not do anything because this interface does not have a transaction box to enter the functioncode in.
    The trick that worked was call 'SYS_LOGOFF'.

  • How to make cell editable alv in WebDynpro for ABAP?

    I make Column editable ALV.(See under source code)
    But I can't make Cell editable ALV.
    How to make Cell editable ALV in WebDynpro for ABAP?
    and..how to get changed data?
    DATA: l_value TYPE REF TO cl_salv_wd_config_table.
      l_value = l_ref_interfacecontroller->get_model( ).
    * { EDITABLE
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings,
            lr_input_field     TYPE REF TO cl_salv_wd_uie_input_field,
            lr_column          TYPE REF TO cl_salv_wd_column.
      lr_column_settings ?= l_value.
      lr_column = lr_column_settings->get_column( 'TOTAL_COUNT' ).
      CREATE OBJECT lr_input_field
        EXPORTING
          value_fieldname = 'TOTAL_COUNT'.
      lr_column->set_cell_editor( lr_input_field ).
      DATA: lr_table_settings TYPE REF TO if_salv_wd_table_settings.
      lr_table_settings ?= l_value.
      lr_table_settings->set_read_only( abap_false ).

    the code seems to be correct....but where are you writing it?
    put the code in the wddoinit method and it should work.
    have a look at this article..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1

  • How to create a long text in webdynpro for abap?

    Hi Experts,
                      I am new to Web Dynpro for ABAP, I have a requirement for Grievance workflow. For this we have developed a Webdynpro application which appears in portal. Here my issue is user wants to enter a long text on the screen and I have to save this text as standard text. Is it possible to create a text box which we can insert number of lines?
    If so can anybody please suggest me how to resolve this issue.
    Thank You.
    Ranganadh.

    hi ,
    u can use the TEXT EDIT UI element , procced like this :
    1 Right click on Root Element UI container , insert elemnt TEXT EDIT
    2 create a context attribute of type string or string_table
    3 bind value property of ur UI to this attribute
    4 u can get the values entered in the text UI by user , by get_attribute method
    press CNTRL + F7  , select the radio button read context node/attribute , select the corresponding attribute
    The attribute to be bound can be of type STRING or STRING_TABLE. With STRING_TABLE rows from TextEdit are stored as table rows. A line break is always stored as a line feed in a STRING (CL_ABAP_CHAR_UTILITIES=>NEWLINE, ASCII decimal 10). The Web Dynpro framework carries out the conversion for the client platform.
    Note that a string to be displayed in TextEdit, must only use a line feed as a line break.
    refer this online help :
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/06/45ee412e5e6324e10000000a1550b0/content.htm
    regards,
    amit

  • How to create an editable table in webdynpro for ABAP? Help!

    Hi Experts,
            I have a requirement where I have to create a webdynpro for ABAP table for new row/rows entry, delete row/rows and update row/rows data. This is something like table control in normal ABAP.
    how can I achieve this? Is there any such feature in ALV component?
    Any code sample will be really helpfull.
    Please help!
    Thanks
    Gopal

    Hi,
    yes, the ALV is integrated into WDA, have a look at this: http://help.sap.com/saphelp_nw2004s/helpdata/en/74/fd4142646ab46be10000000a155106/frameset.htm
    Regards, Heidi
    PS: look at the WDA Knowledge Center under https://www.sdn.sap.com/irj/sdn/developerareas/abap?rid=/library/uuid/02e1fa45-0801-0010-10a0-f1cf47e8c943, there you can find several ALV tutorials
    Message was edited by: Heidi von Geisau

  • How to confirm program version in Web Dynpro for ABAP

    Hello expert
    I would like to know how to confirm the program version for Web Dynpro for ABAP.
    For ABAP we can confirm version using SE38.
    Best regards,
    Ichimura

    everything has a version
    View has a version.
    controllers have versions
    WD component also has version
    so double click on what you need and the follow the path

  • How do I make a button in Photoshop for Muse?

    Three months ago I found this info, and I've made a dozen buttons. Can't remember how to do it. I've spent all afternoon trying to find the info. All I get is how to place a button. How do I make it?

    Thank you to both Zorinos and jamtec; I appreciate your responses.
    My question was how to configure the PS file, but I think I wasn't clear about that.  I finally went back to a button I'd made in January and figured out how I'd made it: A new file, transparent background, a layer with the image and  layer with text (Or transparent background and one layer with image and text for my purpose.) Then File/Place PS Button creates the button. I didn't need to allocate different states.
    What is so annoying is, I needed ten seconds worth of information: the PS file. It is not available except in time wasting, obscure videos. The James Fritz video (http://tv.adobe.com/watch/learn-muse/importing-a-photoshop-button) doesn't mention the PS file until after two minutes of jabber, and it is almost unnoticeable hidden in the middle of a sentence.
    I don't like videos; they waste time. Written instruction are more efficient. For me.

  • How to set up one-button embed-hotlinking for Flash SWF?

    Hello,
    I'm publishing a webcomic in Flash.swf format and I'd like to make it as easy as possible for people to grab my comic and put it on their website. How can I set up one-button hot-linking that will automagically provide the code so that they can easily drop it into their website, similar to the way YouTube does with video?
    Thanks,
    Tom

    you can use the following.  the bolded lines require you to use appropriate values:
        <div id="flashContent">
                <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="yourswfwidth" height="yourswfheight" id="swfname" align="middle">
                    <param name="movie" value="http://www.yourdomain.com/path/swfname.swf" />
                    <param name="quality" value="high" />
                    <param name="bgcolor" value="#ffffff" />
                    <param name="play" value="true" />
                    <param name="loop" value="true" />
                    <param name="wmode" value="window" />
                    <param name="scale" value="showall" />
                    <param name="menu" value="true" />
                    <param name="devicefont" value="false" />
                    <param name="salign" value="" />
                    <param name="allowScriptAccess" value="sameDomain" />
                    <!--[if !IE]>-->
                   <object type="application/x-shockwave-flash" data="http://www.yourdomain.com/path/swfname.swf" width="yourswfwidth" height="yourswfheight">
                        <param name="movie" value="http://www.yourdomain.com/path/swfname.swf" />
                        <param name="quality" value="high" />
                        <param name="bgcolor" value="#ffffff" />
                        <param name="play" value="true" />
                        <param name="loop" value="true" />
                        <param name="wmode" value="window" />
                        <param name="scale" value="showall" />
                        <param name="menu" value="true" />
                        <param name="devicefont" value="false" />
                        <param name="salign" value="" />
                        <param name="allowScriptAccess" value="sameDomain" />
                    <!--<![endif]-->
                        <a href="http://www.adobe.com/go/getflash">
                            <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
                        </a>
                    <!--[if !IE]>-->
                    </object>
                    <!--<![endif]-->
                </object>
            </div>

  • How to set default value in select option for ABAP query

    Hi experts,
    What is the way to set up default values for select-options in ABAP query.
    e.g.
    I have one field 'Year' in my ABAP query selection screen.
    I want value of current year to be appeared here whenever user execute report
    Thanks in Advance
    -Harkamal

    Hi Harkamal,
    execute your Query via SQ01. On Selection-Screen
    goto save Variant. Mark your field
    as selection variable an press Button election variable.
    Take variable from TVARV and use it.
    Than save the Variant.
    Look at TVARV if the 'Year' is updated to the actualYear!
    regards, Dieter

  • How To convert XSTRING To LRAW in Webdynpro For ABAP

    Hi,
         In my application , I want to convert XSTRING TO LRAW.
    Please Suggest me how to achieve this.
    Thanks,
       Pratibha

    What do you mean convert?  XSTRING and LRAW are the same thing - an unlimited byte sequence.  LRAW is generally used to describe an XSTRING based database column.  You can insert XSTRING directly into a LRAW column using SQL.  No conversion or special processing is necessary.
    Also I don't see how this question is related to Web Dynpro ABAP.  This seems like a general ABAP language question.

  • How to call a BSP Application inside Webdynpro for  ABAP

    Is there any way to call a BSP application inside the webdynpro ABAP application..
    The Input screen will be the BSP page and when the user click the action it have to trigger some data in BSP and in turn it have to collaborate the manipulated data in webdynpro and shows the output in webdynpro or in BSP..

    pls refer to http://help.sap.com/saphelp_nw70/helpdata/EN/30/1b62799d786445a72ad85acb4fd55b/content.htm
    and check if it helps u

  • Need to know how to find the name of the classes for ABAP Objects

    Hi Experts,
    I am new in ABAP Objects. I do not now the best way to find the class which I want to use. Shall I search it using F4 search help, but many of the classes does not have a description with them.
    I want to create a text field on my splitter container. Can anybody please tell me the class-name for the text field.
    Regards,
    Saurabh A. Buksh

    Hi,
    Thank you for the helping me. But, I actually want something which we call a Text Box. I do not require a Text Edit Control.
    Please tell me if you know any classes related to it and the parameters that I need to pass into it.
    Thanks & Regards,
    Saurabh A. Buksh

  • Problem designing the logout button i.e. the front end jsp

    Hi,
    my project is an intranet project and starts with the login page. From my login page I am directed to manager, or supervisor, or accountant page where I am needed to perform certain duties. After I am done I need to logout. My problem is that I do not know how to logout and where to place the logout button.
    Will the logout button be on each of the manager, supervisor, accountant page or will it be on the manager page and its sub pages and so on.
    Also I do not know how to configure this button. Should this button be linked to a controller servlet that will destruct the session and redirect the control back to the login page or this follows a different mechanism.
    Do we need to create a frame. Put the logout button on the static side and on ther dynamic side display the pages ie the supervisor, manager, accountant.
    Please help me as I am new to jsp and I am not able to visualize this.

    Hi^^,
    in short: the code you have to send <% session.invalidate(); %> to delete the session -> logout the user. See my example-code:
    //logout.jsp
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>example</title>
    </head>
    <body>
    <% session.invalidate(); %>
    <p> You are now loged out. </p>
    <br><br>
    <form method="post" action="index.jsp">
         <input type="submit" value="Back to mainpage">
    </form>
    </body>
    </html>Save this code into a "logout.jsp" and let it be executed if you want to logout.
    If you have no idea where to put the logout-button:
    I've done it myselb by creating a header.jsp, where I display the log-status and therre is my logout-button:
    //header.jsp
    <div align="right">
    <%
    if (session.getAttribute ("username")!=(null))
              // User is loged in
              out.println ("Welcome, ");
              out.println (session.getAttribute ("username"));
              out.println (".");
              out.println ("<br>");
              out.println ("<a href='logout.jsp'>Logout</a><br>");
              out.println ("-------------------------------------");
              out.println ("<br>");
    else
              // User is guest
              out.println ("Welcome, Guest");
              out.println ("<br>");
              out.println ("-------------------------------------");
              out.println ("<br>");
    %>
    </div>The structure:
    Include this header.jsp into every page you have. use <%@ include file="header.jsp"%>. Hope this is not too confusing ;)

  • How to reduce the Logout time in IDM

    Hi Everyone,
    Help me in Solving the issue.
    When i click on the logout button of the end user interface in sun idm, it is taking 20 secs to come back to the login page (login.jsp) which is causing very much delay in the process. I want to reduce this time. Dont know exactly what is the backend process.
    Kindly help me if you know any solution for the same.
    Thank you in advance.

    Srikanth,
    It would be better to use a database table(s) to store your audit trail information than an xml file, which could grow beyond a manageable size and then require housekeeping efforts and file rolling, etc.  It would also be much easier to query user related information out of the logs, pareto charts for failed vs. successful login attempts, etc. if the data was stored in a database.
    Have you considered modifying the Relogin.jsp page link in the portal's sub-menu bar?  How about making your own version of this web page and changing the link pointer?  Keep in mind that whatever result you come up with here will need a significant update for NetWeaver UME compatibility in version 12.0.
    Regards,
    Jeremy

  • Help needed with Logout Button

    Hi all,
    I have created a Java faces web application with some of the jsp pages in a protected folder. I am using Tomcat 4.1.24 form based authentication with a memoryRealm. This is all working fine.
    I am now trying to create a logout button. I have created a button with an actionRef that invokes the following method:
    public Action getLogoutAction() {
    return new Action() {
    public String invoke() {
    FacesContext context = FacesContext.getCurrentInstance();
    //Invalidate the session
    HttpSession session = (HttpSession) context.getExternalContext().getSession(false);
    if (session != null) {
    session.invalidate();
    return "logout";
    This works. (I can no longer access the protected pages without re-entering the username and password.) However, rather than returning to the login page, I get a nasty HTTP status 500 error message. The 'root cause' is as follows:
    java.lang.IllegalStateException: getAttribute: Session already invalidated
         at org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:954)
         at org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:171)
         at org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:171)
         at com.sun.faces.context.SessionMap.put(ExternalContextImpl.java:430)
    etc etc....
    I am not sure what this means. Can anyone help?
    Patrick

    Can you supply the rest of the stack trace? The "etc. etc." is what we need to see!
    I believe this is a JSF RI bug - it looks like it doesn't deal with HttpSession invalidation.
    The workaround is to remove the relevant objects from the session instead of invalidating, e.g.:
      FacesContext context = FacesContext.getCurrentInstance();
      context.getExternalContext().getSessionMap().remove("userInfo");
      context.getExternalContext().getSessionMap().remove("otherThing");Or, even better, keep all of the per-session information that you'd need to chuck as child objects on whatever bean implements getLogoutAction(), so you could write:
    public String invoke() {
      this.userInfo = null;
      this.otherThing = null;
    }... which nicely hides any concerns with where or how your logged-in information is stored.
    BTW, as a rule of thumb, calling any of getRequest(), getSession(), or getContext() on ExternalContext should be used a last resort. When you use these methods, you break encapsulation. (OTOH,
    preserving encapsulation isn't more important than getting your application working.)
    -- Adam Winer (EG member)

Maybe you are looking for

  • Is there a way to share my Mail account and settings between two partitions, running Snow Leopard and Lion?

    I have two partitions on my internal hard drive - one is running Mac OS X 10.6 Snow Leopard and the other is running Mac OS X 10.7 Lion. Mail (5.0) is set up and runs perfectly on the Lion partition and I have not used Mail (4.5) yet on my Snow Leopa

  • Do I need to install odi-public-ws.aar for ODI 11g?

    Hello - Prior to ODI 11g - used to upload odi-public-ws.aar to Axis2 on Application server. Starting in 11g do we still need to do that? I was told JAX-WS takes care of that. If that's the case - what URL is used to call the ODIInvoke from SOA? Is it

  • Linking the fields to fetch the data

    Hi friends, on my selection screen i have 3 fields S_BSTNK  =  Customer Purchase Order number S_TKNUM = Shipment S_KUNNR = Ship to Now my requiremnt is when the user enters the value in S_BSTNK , i should get all the invoices fromVBRK table. and late

  • Clarification on Box Command

    Hi,                   I've created 2 pages in my script.In the first page i've useed BOX command & also a Standard Text for the column headings in the Main window.When the first page is overflown,obviously it is displaying the remaining records in th

  • Download using Orbit,DAP etc software in Flex

    Hello All,           When we download from the server,default window come and download takes place. Suppose I have Orbit, DAP etc software ( by this software we download) installed on my machine and then If I download from the server ,it should get d