"Leave tab" event for tabs in TabStrip UI

Hi
I want to check that some input fields are valid and force users do not change Tab in TabStrip (until enter valid values for required fields) but I do not know is it possible this in Webdynpro? Does anybody know which is this event and may I use it in my WD Application?
In TabStrip there is action for OnSelect event but this is event when user enters in Tab. I need event when user exits the tab.

In BSP the tabStrip has a value "selection" which if you read the tabStrip to see the tab they selected you can store that value.
Then check if the fields are filled in if so then pass the stored value back to the "selection" parameter and if not give the name of the tab they were currently on back to the "selection" parameter.

Similar Messages

  • How can I register a Event for TAB???

    Hi,
    my problem is, that i search for an solution to register an Event for Tabulator (Tab Key).
    If i klick to tab, than it must be trigger the event!!
    I have found in forum following:
    http://webcache.googleusercontent.com/search?q=cache:fk2pfn0bhiwj:www.sdn.sap.com/irj/scn/thread%3fmessageid%3d1078796eventtabulatoralvgrid&cd=50&hl=de&ct=clnk&gl=de
    How must I register my TAB Event ????
    Please give an example!
    Thanks in forwards.
    Ersin

    Thanks for Help:-)

  • Firefox (33.0.1) tabs and windows get all closed when I leave computer alone for some hours.

    Firefox (33.0.1) tabs and windows get automatically all closed when I leave computer alone for some hours. No crash report get created. It never happens while I am working on the computer or surfing the web. I have Windows XP SP3.

    -> Restart your System in Safe Mode
    * http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/boot_failsafe.mspx?mfr=true
    -> Uninstall your current Firefox => [[Uninstalling Firefox]]
    * DO NOT SELECT TO REMOVE USER DATA AND SETTINGS
    * Restart your system
    -> Do a MALWARE check with these Malware Scanning programs. You need to scan with all programs because each program detects different malware. Make sure that you UPDATE each program to get the latest version of their Databases before doing a Scan. Also, Close All other Applications (softwares) before Starting to Run Scans.
    * Malwarebytes' Anti-Malware -> http://www.malwarebytes.org/products/malwarebytes_free
    * SuperAntispyware -> http://www.superantispyware.com
    * Ad-Aware Free Internet Security -> http://www.lavasoft.com/products/ad_aware_free.php
    * Spybot Search & Destroy -> http://www.safer-networking.org/en/index.html
    * Anti-Rootkit Utility '''TDSSKiller''' -> http://support.kaspersky.com/faq/?qid=208283363
    -> [[Installing Firefox on Windows]]
    Check and tell if its working.

  • How to create iView for Leave Request Approval for ESS Tab in Portal

    Hello ,
    I am new to  Enterprise portal. I got a requirement for creating iViews.
    How to create iView for Leave Request Approval for ESS Tab in Portal.??
    Please give me clearly or provide any document.
    Thanks
    Risha

    Hi Risha,
    is it customized application ?
    If so in SWFVISU transaction maintaain the entry .
    Use transaction SWFVISU to prepare standard setting for your Workitem in the UWL. --Parameters for Work Item Visualization in the UWL.
    Have a look at below link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/59/d516690e854c7090ae15bf492a869f/content.htm

  • Problems with Mouse Down event for a picture control embedded in tab.

    I noticed that when trying to get a Mouse Down event for a picture control that the Mouse Down will not be 'fired' if the picture is embedded in a tab control. It also appears that this problem exists for other controls (I only tested a slider in addition to the picture). It isn't much of an issue for me now as I can just poll the mouse property of the picture control, but the Mouse Down event has information that I may want access to in my next software revision (button pressed, and Alt mod). I could do that by handling the Mouse Down event for the tab itself and checking to see if the the mouse property isn't -1, -1 for the picture, but that seems a little bit too kludgy (sp?) to me and wouldn
    't address the issue with other control types. Any chance of this being addressed by a patch sometime in the next couple of months???
    Attachments:
    TabProblem.vi ‏69 KB

    The problem I reported above was in LV 6.1.
    As a work-around, I used the mouse down on the tab control and did the math to decide if the picture was clicked.
    I have been told that this was fixed in LV 7.0. I can not confirm.
    You could call NI and ask about the service request number I cited above.
    I hope this helps,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Tab in Tabstrip Control in display mode (Module Pool)

    Hi friends,
    I am trying to give authorization based on sy-uname, in runtime based on uname the particular tab should be opend in a display mode and some in change mode.  please help me out in this
    Edited by: shravan sonayila on Aug 12, 2008 8:06 AM

    Hi,
    when u creating tabstrip,while defining each tab in tabstrip , u have to
    create one subscreen for each tab.i think u want one tab for display
    mode and one tab for edit mode. if u want this way , in one tab try to
    give fields all in invisible mode this for display mode and goto second tab if u want all visible only keep like that only other wise u have create geoups.when u press enter ,groups will be change.it means visible , invisible modes.
    u have to give logic for screen in pbo.
    *&      Module  STATUS_0300  OUTPUT
          text
    module status_0300 output.
      set pf-status 'GUI_300'.
      set titlebar 'TITLE_300' with v_title.
      if i_aktyp = 'H'.
        if temp_flag = 1.
          loop at screen .
            if screen-group1 = 'GP2'.
              screen-input = 1.
              modify screen .
            else.
              screen-input = 0.
              modify screen.
            endif.
            temp_flag = 0.
          endloop.
        else.
          loop at screen.
            if screen-group1 = 'GP1'.
              screen-input = 1.
              modify screen.
            else.
              screen-input = 0.
              modify screen.
            endif.
            temp_flag = 1.
          endloop.
        endif.
      elseif i_aktyp = 'V'.
        loop at screen.
          if screen-group1 = 'GP1'.
            screen-input = 1.
            modify screen.
          else.
            screen-input = 0.
            modify screen.
          endif.
        endloop.
      endif.
    endmodule.                 " STATUS_0300  OUTPUT
    Try to give this logic.
    Regards,
    Ramya

  • Problem on tab in tabstrip

    Hi all,
       I want to execute particular code or event when i select a particular tab. But in standard only one event is available, that execute every time when i select any tab in tabstrip.Plz reply....
    Regards,
    Ramesh.

    hi,
    You can use selected tab property of tabstrip, just bind it to attribute
    says tab, node selected_tab and read that attribute by code wizard,
    suppose you have 3 tab name tab1, tab2, tab3
    i.e,
    DATA LO_ND_SELECTED_TAB TYPE REF TO IF_WD_CONTEXT_NODE.
      DATA LO_EL_SELECTED_TAB TYPE REF TO IF_WD_CONTEXT_ELEMENT.
      DATA LS_SELECTED_TAB TYPE WD_THIS->ELEMENT_SELECTED_TAB.
      DATA LV_TAB LIKE LS_SELECTED_TAB-TAB.
    navigate from <CONTEXT> to <SELECTED_TAB> via lead selection
      LO_ND_SELECTED_TAB = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_SELECTED_TAB ).
    get element via lead selection
      LO_EL_SELECTED_TAB = LO_ND_SELECTED_TAB->GET_ELEMENT(  ).
    get single attribute
      LO_EL_SELECTED_TAB->GET_ATTRIBUTE(
        EXPORTING NAME =  `TAB`
        IMPORTING  VALUE = LV_TAB ).
    case lv_tab.
    when 'tab1'.
    *do somthing'
    when 'tab2'.
    *do somthing
    when 'tab3'.
    *do somthing.
    when  others.
    exit.
    endcase.
    Y N

  • Problem hiding Tabs in Tabstrip of My Trips and Expenses WD ABAP iView

    Hi,
    My requirement is to hide the thet tabs ALL MY Trips,All my Travel REquest,All my travel Plans,Pending expense report from the tabstrip ALl my Expense report in Travel and Expense Application.
    I have gone through the thread and the sap note mentioned in
    Re: Problem hiding Tabs in Tabstrip of My Trips and Expenses WD ABAP iView
    My problem is tabs that has to be deleted /hidden does not present in the Development system, but exist in the QA or the prd system.
    So how to implement the note when data is not present in the dev system and only exist in the QA/PRD system.
    Pleas eprovide me your valuable inputs.
    Thanks in advance.
    Pooja

    Implemneted the note and problem is solved.

  • Ical leaves no room for events

    I have a macbook air, iPhone and iPad and have them all synced on the cloud.
    When I enter events, sometimes it will just format them normally.
    If I enter 10am meeting with Jane it will show up on the calendar as: meeting with Jane  and there will be a small grey 10a off to the right. 
    But if the time I have to enter is not on the hour exactly, for instance, if it is 10;15am, what will happen is that it will say: Meeting with Jane  and in grey on the left it will say fri, june 8, 10;15am.  Which means that I will only see Meeting with…. because there is no room for Jane!
    Help, why does it do that and how do I stop it? it didn't used to do that.
    And sometimes it will say gmt, or pdt or pst  and sometimes it won't. I do not have the time zone support on, as I prefer to just adjust timing when I am traveling on my own. but there is no logic to why it will label it sometimes and why not.
    Then a week ago it ate a section of my calendar. most of the events for a three week span just disappeared, but not all of them.
    so is this a corrupted ical and do I need to somehow remove it and re install? or is this a common issue with ical that the dates are wonky and badly designed, and the events disappearing is a separate issue?
    Help!
    Katarina

    nobody has an answer?? has it happened for anyone else.

  • Getting onchange event for inputfield

    Hi all,
    How can I get onChange() event for inputfield in webdynpro
    and how can i use that.
    Thanks
    Fahad

    Hi anil,
    In my application, I am having one inputfield and a dropdown.As per the input field entry, I have to load values in dropdown even if the end user is using Tab button or mouse for changing the focus.
    How can I do that?

  • Event for RibbonTab click in Excel Addin

    Hi,
    I am working on an Excel Addin. I am using VS 2008 and Excel 2007.
    Currently my addin gets loaded on opening of Excel. Since i have a dropdown in the Ribbon, even that gets loaded on openeing of Excel. And since that loading of dropdown takes time, i wanted to change this behavior. I wanted to load my Addin on click of the
    Ribbon Tab. For this i wanted to know how to fire the event on click of Ribbon Tab.
    Usually ThisAddIn_Startup() is the method that's fired first when excel is opened. But i want to call this method in the event of Click of Ribbon Tab. Is this possible?
    basically i want to capture click event of Ribbon Tab.
    Can someone please help me on this.
    Regards,
    Shailendra

    Hi ,
    Here's a short sample for you, as Cindy mentioned there's no "click event" for a Ribbon tab, so we need to pick Dropdown list instead.
    The idea is when Excel starts we add a button in Dropdown list, if user click the button, then refresh the Dropdown list,fill it with the real data, and also hide the button at same time:
    <?xml version="1.0" encoding="UTF-8"?>  
    <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="Ribbon_Load">  
      <ribbon> 
        <tabs > 
          <tab idMso="TabAddIns"  > 
            <group id="MyGroup"   
                   label="My Group">  
              <dropDown id="myDropDown" onAction="dropDownAction" getEnabled="dropDownGetEnabled" getItemLabel="ItemLabel" getItemCount="ItemCount"  > 
                <button id="mybutton" label="Button" onAction ="ReDraw" showImage="false" getVisible="getButtonVisible"/>  
              </dropDown> 
            </group> 
          </tab> 
        </tabs> 
      </ribbon> 
    </customUI> 
      bool ButtonVisible = true;  
            int itemCount = 0;  
            public void Ribbon_Load(Office.IRibbonUI ribbonUI)  
                this.ribbon = ribbonUI;  
            public void ReDraw(Office.IRibbonControl RibbonControl)  
                this.ButtonVisible = false;  
                this.itemCount = 9;  
                ribbon.InvalidateControl("myDropDown");  
                ribbon.InvalidateControl("mybutton");  
            public void dropDownAction(Microsoft.Office.Core.IRibbonControl control, string selectedId, int selectedIndex)  
            public bool dropDownGetEnabled(Office.IRibbonControl RibbonControl)  
                return true;  
            public string ItemLabel(Office.IRibbonControl control, int index)  
                return "Item " + index.ToString();  
            public int ItemCount(Office.IRibbonControl control)  
                return this.itemCount;  
            public bool getButtonVisible(Office.IRibbonControl RibbonControl)  
                return this.ButtonVisible;  
    For more information about InvalidateControl method :
    http://msdn.microsoft.com/en-us/library/aa433553.aspx
    Thanks

  • Smartform_header event for table

    Hello All,
    In a smartform, I have header event for a table and this event has to get triggered at the start of the paragraph and at the page-break.
    The problem what i face is,
    when the paragraph(table) get printed exactly at the start of the page(second page), header event for the table get triggered twice(one for start of the paragraph and the second for  page-break) and print the header twice.
    Can you help me out.
    Regards,
    Subramanian.

    hi,
    Just double click on the header node of the table node.
    And just check in the right side output options tab  whether under the print time
    both the checkboxes are checked .
    Both should be checked . then only you can get the desired reault.
    Regards,
    Guru

  • Event for the List Box in ALV Grid Control

    Hello,
    I have the below urgent requirment.
    I have an ALV Grid Control built using ABAP Objects. In the grid, I have few fields and one of these fields is a List Box. Depending on the values selected, I need to enable or disable some fields. So, is there any event for the List box in ALV Grid Control.
    For ex: I have 2 Fields, Designation and Commission. The designation field is a List Box field having 'Software Engineer' and 'Manager' as values. When I select 'Software Engineer', the commission field should be disabled. When I select 'Manager', the comission field should be enabled.
    Early reply is hightly appreciated.
    Priya

    REPORT  ZTEST1234    MESSAGE-ID ZZ                           .
    DATA: G_GRID TYPE REF TO CL_GUI_ALV_GRID.
    DATA: L_VALID TYPE C,
          V_FLAG,
          V_DATA_CHANGE,
          V_ROW TYPE LVC_S_ROW,
          V_COLUMN TYPE LVC_S_COL,
          V_ROW_NUM TYPE LVC_S_ROID.
    DATA: OK_CODE LIKE SY-UCOMM,
          SAVE_OK LIKE SY-UCOMM,
          G_CONTAINER1 TYPE SCRFNAME VALUE 'TEST',
          GS_LAYOUT TYPE LVC_S_LAYO.
    DATA:BEGIN OF  ITAB OCCURS 0,
         VBELN LIKE LIKP-VBELN,
         POSNR LIKE LIPS-POSNR,
         COMISN(10),
         CELLCOLOR TYPE LVC_T_SCOL, "required for color
         DROP(20),
        <b> HANDLE_STYLE TYPE LVC_T_STYL,</b>
         END OF ITAB.
    *       CLASS lcl_event_handler DEFINITION
    CLASS LCL_EVENT_HANDLER DEFINITION .
      PUBLIC SECTION .
        METHODS:
    **Hot spot Handler
        HANDLE_HOTSPOT_CLICK FOR EVENT HOTSPOT_CLICK OF CL_GUI_ALV_GRID
                          IMPORTING E_ROW_ID E_COLUMN_ID ES_ROW_NO,
    <b>**Handler to Check the Data Change
        HANDLE_DATA_CHANGED FOR EVENT DATA_CHANGED
                             OF CL_GUI_ALV_GRID
                             IMPORTING ER_DATA_CHANGED
                                       E_ONF4
                                       E_ONF4_BEFORE
                                       E_ONF4_AFTER,</b>
    **Double Click Handler
        HANDLE_DOUBLE_CLICK FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID
                                         IMPORTING E_ROW E_COLUMN ES_ROW_NO.
    ENDCLASS.                    "lcl_event_handler DEFINITION
    *       CLASS lcl_event_handler IMPLEMENTATION
    CLASS LCL_EVENT_HANDLER IMPLEMENTATION.
    *Handle Hotspot Click
      METHOD HANDLE_HOTSPOT_CLICK .
        CLEAR: V_ROW,V_COLUMN,V_ROW_NUM.
        V_ROW  = E_ROW_ID.
        V_COLUMN = E_COLUMN_ID.
        V_ROW_NUM = ES_ROW_NO.
        MESSAGE I000 WITH V_ROW 'clicked'.
      ENDMETHOD.                    "lcl_event_handler
    *Handle Double Click
      METHOD  HANDLE_DOUBLE_CLICK.
      ENDMETHOD.                    "handle_double_click
    <b>**Handle Data Change
      METHOD HANDLE_DATA_CHANGED.
        DATA: X_CHANGE TYPE LVC_S_MODI,
                X_FINAL TYPE ITAB,
                L_FLAG,
                LS_OUTTAB LIKE LINE OF ITAB.
        DATA: LS_EDIT TYPE LVC_S_STYL,
              LT_EDIT TYPE LVC_T_STYL.
        LOOP AT ER_DATA_CHANGED->MT_GOOD_CELLS INTO X_CHANGE.
          IF X_CHANGE-FIELDNAME = 'DROP' AND X_CHANGE-VALUE = 'S/W ENGINEER'.
            LS_EDIT-FIELDNAME = 'COMISN'.
            LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_DISABLED.
            LS_EDIT-STYLE2 = SPACE.
            LS_EDIT-STYLE3 = SPACE.
            LS_EDIT-STYLE4 = SPACE.
            LS_EDIT-MAXLEN = 8.
            INSERT LS_EDIT INTO TABLE LT_EDIT.
            INSERT LINES OF LT_EDIT INTO TABLE LS_OUTTAB-HANDLE_STYLE.
            MODIFY ITAB INDEX X_CHANGE-ROW_ID FROM LS_OUTTAB  TRANSPORTING
                                              HANDLE_STYLE .
          else.
            LS_EDIT-FIELDNAME = 'COMISN'.
            LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_ENABLED.
            LS_EDIT-STYLE2 = SPACE.
            LS_EDIT-STYLE3 = SPACE.
            LS_EDIT-STYLE4 = SPACE.
            LS_EDIT-MAXLEN = 8.
            INSERT LS_EDIT INTO TABLE LT_EDIT.
            INSERT LINES OF LT_EDIT INTO TABLE LS_OUTTAB-HANDLE_STYLE.
            MODIFY ITAB INDEX X_CHANGE-ROW_ID FROM LS_OUTTAB  TRANSPORTING
                                              HANDLE_STYLE .
          ENDIF.
        ENDLOOP.
        CALL METHOD G_GRID->REFRESH_TABLE_DISPLAY
          EXCEPTIONS
            FINISHED = 1
            OTHERS   = 2.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                     WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDMETHOD.                    "HANDLE_DATA_CHANGED</b>
    ENDCLASS.                    "LCL_EVENT_HANDLER IMPLEMENTATION
    *&             Global Definitions
    DATA:      G_CUSTOM_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,"Container1
                G_HANDLER TYPE REF TO LCL_EVENT_HANDLER. "handler
    *- Fieldcatalog for First and second Report
    DATA: IT_FIELDCAT  TYPE  LVC_T_FCAT,
          X_FIELDCAT TYPE LVC_S_FCAT,
          LS_VARI  TYPE DISVARIANT.
    *                START-OF_SELECTION
    START-OF-SELECTION.
      SELECT VBELN
             POSNR
             FROM LIPS
             UP TO 20 ROWS
             INTO CORRESPONDING FIELDS OF TABLE ITAB.
    END-OF-SELECTION.
      IF NOT ITAB[] IS INITIAL.
        CALL SCREEN 100.
      ELSE.
        MESSAGE I002 WITH 'NO DATA FOR THE SELECTION'(004).
      ENDIF.
    *&      Form  CREATE_AND_INIT_ALV
    *       text
    FORM CREATE_AND_INIT_ALV .
      DATA: LT_EXCLUDE TYPE UI_FUNCTIONS.
      CREATE OBJECT G_CUSTOM_CONTAINER
             EXPORTING CONTAINER_NAME = G_CONTAINER1.
      CREATE OBJECT G_GRID
             EXPORTING I_PARENT = G_CUSTOM_CONTAINER.
    * Set a titlebar for the grid control
      CLEAR GS_LAYOUT.
      GS_LAYOUT-GRID_TITLE = TEXT-003.
       <b>GS_LAYOUT-STYLEFNAME = 'HANDLE_STYLE'.</b>
      GS_LAYOUT-ZEBRA = SPACE.
      GS_LAYOUT-CWIDTH_OPT = 'X'.
      GS_LAYOUT-NO_ROWMARK = 'X'.
      GS_LAYOUT-CTAB_FNAME = 'CELLCOLOR'.
    <b>  CALL METHOD G_GRID->REGISTER_EDIT_EVENT
        EXPORTING
          I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_MODIFIED.</b>
      CREATE OBJECT G_HANDLER.
      SET HANDLER G_HANDLER->HANDLE_DOUBLE_CLICK FOR G_GRID.
      SET HANDLER G_HANDLER->HANDLE_HOTSPOT_CLICK FOR G_GRID.
    <b>  SET HANDLER G_HANDLER->HANDLE_DATA_CHANGED FOR G_GRID.</b>
      DATA: LS_CELLCOLOR TYPE LVC_S_SCOL. "required for color
      DATA: L_INDEX TYPE SY-TABIX.
      "Here i am changing the color of line 1,5,10...
      "so you can change the color of font conditionally
      LOOP AT ITAB.
        L_INDEX = SY-TABIX.
        IF L_INDEX = 1 OR L_INDEX = 5 OR L_INDEX = 10.
          LS_CELLCOLOR-FNAME = 'VBELN'.
          LS_CELLCOLOR-COLOR-COL = '6'.
          LS_CELLCOLOR-COLOR-INT = '0'.
          LS_CELLCOLOR-COLOR-INV = '1'.
          APPEND LS_CELLCOLOR TO ITAB-CELLCOLOR.
          MODIFY ITAB INDEX L_INDEX TRANSPORTING CELLCOLOR.
          LS_CELLCOLOR-FNAME = 'POSNR'.
          LS_CELLCOLOR-COLOR-COL = '6'.
          LS_CELLCOLOR-COLOR-INT = '0'.
          LS_CELLCOLOR-COLOR-INV = '1'.
          APPEND LS_CELLCOLOR TO ITAB-CELLCOLOR.
          MODIFY ITAB INDEX L_INDEX TRANSPORTING CELLCOLOR.
        ENDIF.
      ENDLOOP.
    * setting focus for created grid control
      CALL METHOD CL_GUI_CONTROL=>SET_FOCUS
        EXPORTING
          CONTROL = G_GRID.
    * Build fieldcat and set editable for date and reason code
    * edit enabled. Assign a handle for the dropdown listbox.
      PERFORM BUILD_FIELDCAT.
      PERFORM  SET_DRDN_TABLE.
    * Optionally restrict generic functions to 'change only'.
    *   (The user shall not be able to add new lines).
      PERFORM EXCLUDE_TB_FUNCTIONS CHANGING LT_EXCLUDE.
    **Vaiant to save the layout
      LS_VARI-REPORT      = SY-REPID.
      LS_VARI-HANDLE      = SPACE.
      LS_VARI-LOG_GROUP   = SPACE.
      LS_VARI-USERNAME    = SPACE.
      LS_VARI-VARIANT     = SPACE.
      LS_VARI-TEXT        = SPACE.
      LS_VARI-DEPENDVARS  = SPACE.
      CALL METHOD G_GRID->REGISTER_EDIT_EVENT
        EXPORTING
          I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_MODIFIED.
    **Calling the Method for ALV output
      CALL METHOD G_GRID->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
          IT_TOOLBAR_EXCLUDING = LT_EXCLUDE
          IS_VARIANT           = LS_VARI
          IS_LAYOUT            = GS_LAYOUT
          I_SAVE               = 'A'
        CHANGING
          IT_FIELDCATALOG      = IT_FIELDCAT
          IT_OUTTAB            = ITAB[].
    * Set editable cells to ready for input initially
      CALL METHOD G_GRID->SET_READY_FOR_INPUT
        EXPORTING
          I_READY_FOR_INPUT = 1.
    ENDFORM.                               "CREATE_AND_INIT_ALV
    *&      Form  EXCLUDE_TB_FUNCTIONS
    *       text
    *      -->PT_EXCLUDE text
    FORM EXCLUDE_TB_FUNCTIONS CHANGING PT_EXCLUDE TYPE UI_FUNCTIONS.
    * Only allow to change data not to create new entries (exclude
    * generic functions).
      DATA LS_EXCLUDE TYPE UI_FUNC.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_COPY_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_DELETE_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_APPEND_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_INSERT_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_MOVE_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_COPY.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_CUT.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_PASTE.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_PASTE_NEW_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_UNDO.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
    ENDFORM.                               " EXCLUDE_TB_FUNCTIONS
    *&      Form  build_fieldcat
    *       Fieldcatalog
    FORM BUILD_FIELDCAT .
      DATA: L_POS TYPE I.
      L_POS = L_POS + 1.
      X_FIELDCAT-SCRTEXT_M = 'Delivery'(024).
      X_FIELDCAT-FIELDNAME = 'VBELN'.
      X_FIELDCAT-TABNAME = 'ITAB'.
      X_FIELDCAT-COL_POS    = L_POS.
      X_FIELDCAT-NO_ZERO    = 'X'.
      X_FIELDCAT-OUTPUTLEN = '10'.
      X_FIELDCAT-HOTSPOT = 'X'.
      APPEND X_FIELDCAT TO IT_FIELDCAT.
      CLEAR X_FIELDCAT.
      L_POS = L_POS + 1.
      X_FIELDCAT-SCRTEXT_M = 'Item'(025).
      X_FIELDCAT-FIELDNAME = 'POSNR'.
      X_FIELDCAT-TABNAME = 'ITAB'.
      X_FIELDCAT-COL_POS    = L_POS.
      X_FIELDCAT-OUTPUTLEN = '5'.
      APPEND X_FIELDCAT TO IT_FIELDCAT.
      CLEAR X_FIELDCAT.
      L_POS = L_POS + 1.
      X_FIELDCAT-SCRTEXT_M = 'Drop'(025).
      X_FIELDCAT-FIELDNAME = 'DROP'.
      X_FIELDCAT-TABNAME = 'ITAB'.
      X_FIELDCAT-COL_POS    = L_POS.
      X_FIELDCAT-OUTPUTLEN = '5'.
      X_FIELDCAT-EDIT = 'X'.
      X_FIELDCAT-DRDN_HNDL = '1'.
      X_FIELDCAT-DRDN_ALIAS = 'X'.
      APPEND X_FIELDCAT TO IT_FIELDCAT.
      CLEAR X_FIELDCAT.
      L_POS = L_POS + 1.
      X_FIELDCAT-SCRTEXT_M = 'Comissn'(025).
      X_FIELDCAT-FIELDNAME = 'COMISN'.
      X_FIELDCAT-TABNAME = 'ITAB'.
      X_FIELDCAT-COL_POS    = L_POS.
      X_FIELDCAT-OUTPUTLEN = '10'.
      X_FIELDCAT-EDIT = 'X'.
      APPEND X_FIELDCAT TO IT_FIELDCAT.
      CLEAR X_FIELDCAT.
    ENDFORM.                    " build_fieldcat
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'MAIN100'.
      SET TITLEBAR 'MAIN100'.
      IF G_CUSTOM_CONTAINER IS INITIAL.
    **Initializing the grid and calling the fm to Display the O/P
        PERFORM CREATE_AND_INIT_ALV.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE USER_COMMAND_0100 INPUT.
      CASE SY-UCOMM.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  SET_DRDN_TABLE
    *       text
    FORM SET_DRDN_TABLE.
      DATA:LT_DRAL TYPE LVC_T_DRAL,
            LS_DRAL TYPE LVC_S_DRAL.
      LS_DRAL-HANDLE = '1'.
      LS_DRAL-VALUE =  'S/W Engineer'.
      LS_DRAL-INT_VALUE =  'S/W Engineer'.
      APPEND LS_DRAL TO LT_DRAL.
      LS_DRAL-HANDLE = '1'.
      LS_DRAL-VALUE =  'Manager'.
      LS_DRAL-INT_VALUE =  'Manager'.
      APPEND LS_DRAL TO LT_DRAL.
    **Setting the Drop down table for Reason Code
      CALL METHOD G_GRID->SET_DROP_DOWN_TABLE
        EXPORTING
          IT_DROP_DOWN_ALIAS = LT_DRAL.
    ENDFORM.                               " set_drdn_table
    Regards
    vijay

  • SIZE_CONTROL Event for docking container

    Hi, Everybody
    I'm trying to handle size_control event for a docking container. But the event is not trigged. See the code excerpt below:
    * Create left docking container
      CREATE OBJECT ao_docking_container_left
        EXPORTING
          side = cl_gui_docking_container=>dock_at_left
          extension = 300
          dynnr = cl_co=>ac_main_screen
          repid = cl_co=>ac_main_prog.
    * Register the event
    ls_event-eventid = 12.
      ls_event-appl_event = 'X'.
      APPEND ls_event TO lt_events.
      CALL METHOD ao_docking_container_left->set_registered_events
        EXPORTING
          events                    = lt_events
        EXCEPTIONS
          cntl_error                = 1
          cntl_system_error         = 2
          illegal_event_combination = 3
          OTHERS                    = 4
    * Set handler
    SET HANDLER handle_doclist_resize FOR ao_docking_container_left.
    I have set the handle_doclist_resize method as a handler for the SIZE_CONTROL event of the CL_GUI_DOCKING_CONTAINER class (by Class Builder).

    I have transfered my code just into the one programm. But it still doesn't work I guess the SIZE_CONTROL event is not implemented in CL_GUI_DOCKING_CONTAINER.
    *& Report  ZMMM_DOCK                                                   *
    report  zmmm_dock                               .
    data:   ao_docking_container_left type ref to cl_gui_docking_container,
            lt_events type cntl_simple_events,
            ls_event type cntl_simple_event.
    *&       Class CL_EVENT_HANDLER
    *        Text
    class cl_event_handler definition.
      public section.
        class-methods:
        handle_doclist_resize for event size_control
        of cl_gui_docking_container.
    endclass.               "CL_EVENT_HANDLER
    * Create left docking container
    create object ao_docking_container_left
      exporting
        side = cl_gui_docking_container=>dock_at_left
        extension = 600
        dynnr = '0100'
        repid = sy-repid.
    ls_event-eventid = 12.
    ls_event-appl_event = 'X'.
    append ls_event to lt_events.
    call method ao_docking_container_left->set_registered_events
      exporting
        events                    = lt_events
      exceptions
        cntl_error                = 1
        cntl_system_error         = 2
        illegal_event_combination = 3
        others                    = 4.
    set handler cl_event_handler=>handle_doclist_resize
      for ao_docking_container_left.
    call screen 100.
    *&       Class (Implementation)  cl_event_handler
    *        Text
    class cl_event_handler implementation.
      method handle_doclist_resize.
    *Handles tree resizing
        data: lv_result type sysubrc,
              lv_width type i.
        call method ao_docking_container_left->get_width
          importing
            width      = lv_width
          exceptions
            cntl_error = 1
            others     = 2.
        leave program.
      endmethod.                    "handle_doclist_resize
    endclass.               "cl_event_handler
    include zmmm_dock_status_0100o01.
    include zmmm_dock_user_command_0100i01.

  • IPhoto randomly deleting photos, leaving empty events behind.

    Hi. My iPhoto will randomly delete photos from entire events, leaving behind only an empty event. What is happening? Are the photos still on my computer somewhere? How do I make is stop?
    I have read it could be a corrupt library? Is that possible? Any help is greatly appreciated.

    Super! Thanks for the guidline for providing better detail.
    I'm running iPhoto '11 (version 9.4.2)
    -on OSX Mountain Lion 10.8.4
    - There doesn't seem to be a trend to what photos are deleted and when. It has started within the past 5-6 months. All I observe is when I open my iPhoto, on occasion there will be an empty event. It never deletes partial events and it never deletes the event itself (that I have noticed) There are absolutley no other problems with iPhoto itself. It speaks to my iPhone and iPad just fine, iCloud syncs the Photo Stream well. I am fairly certain that the only photos deleted came from my iPhone. (I have an iPhone 5)
    In addition to deleting photos, it seems that iPhoto is misplacing events. For example, I have an event with only 3 photos in it taken on 12 April. It has been moved to the top of the list of events for no apparent reason.
    - I can't say how long this has been going on. Maybe 5-6 months tops. I did move to Indonesia from America in that time. I can't imagine that would do anything. Before I left, I replaced my hard drive (upgraded to 1TB from 500GB). I restored off of the old hard drive with no problem. I also got more memory installed so I'm running with 8GB instead of 4GB. I have not installed anything or made any other noticeable changes since the problem began. Although replacing a hard drive is no small thing...
    - I have tried to reveal the photos in Finder to see if the original files are still in the source library. They are not. The organization now skips a number where my photos ought to be. Other than that I'm not sure how to fix it. I don't really have a backup from which I can restore.
    - There is nothing unusual about the setup, it's a standard Mac OS and I only use iPhoto with my iPhone and iPad.
    I hope that helps give some information?

Maybe you are looking for

  • Sequence of books in iBooks

    Hi, I've put 1468 books on my iPad, but I cannot get iBooks to put them in alfabetical order sorted by Author. I've changed all the info in iTunes, now when I go to the part when you can sort your books, it does sort by author, but I want to see that

  • Please give me the solution if any one knows

    Dear forum members, I have an assignment like that Happy birth Day (that should move like marquee) To(Fixed) (Following values should come one by one from oracle database and move ) Name , Dept , DOB Ali , IT , 01/11/1980 Courtesy from HR ( this mess

  • Add new portal language

    Hello, Is there a way to add a new language in portal? To appear for example in language selection when you create a new user account. Thanks in advance. Guillermo.

  • TS1398 When the phone is locked Wi-fi signal disappears?! (iPhone 5 iOS 6.0.1)

    When the phone is locked Wi-fi signal disappears?! (iPhone 5 iOS 6.0.1) What can I do to solve this problem? Thank, you!

  • IPhoto se ha cerrado inesperadamente

    No puedo abrir la aplicacion y realmente estaba sacandole provecho, tengo muchas imagenes que necesito trabajarlas con la aplicación.