Active tab in the tabstrip..

hi,
i created a screen with a tabstrip and 2 tabs.
code is generated automatically. I created two table controls, one for each of the subscreens for the tabs.
following code was generated:
MODULE BDATA_ACTIVE_TAB_SET.
MODULE BDATA_ACTIVE_TAB_SET OUTPUT.
  BDATA-ACTIVETAB = G_BDATA-PRESSED_TAB.
  CASE G_BDATA-PRESSED_TAB.
    WHEN C_BDATA-TAB1.
      G_BDATA-SUBSCREEN = '0125'.
    WHEN C_BDATA-TAB2.
      G_BDATA-SUBSCREEN = '0126'.
    WHEN OTHERS.
  *&SPWIZARD:      DO NOTHING
  ENDCASE.
  ENDIF.
ENDMODULE.
It so happend that the value in G_BDATA-PRESSED_TAB.
is always the Function code of the first tab !! Isn't SAP supposed to set this variable with the function code of the tab selection by the user ??
Why is this behaving so ??
I need to somehow set this variable G_BDATA-PRESSED_TAB.
to the correct function code of the tab selected.
how to achieve this ?
thks

resolved...when the tabstrip is created, in the wizard we have to choose scrolling in application server and not scrolling in sap gui !!!
thks

Similar Messages

  • Active tab in a tabstrip

    Is it possible to manually set the active tab in a tabstrip?
    Thank you,
    Bogdan

    Hi,
    I will give u some sample code to do that
    PROCESS BEFORE OUTPUT.
      MODULE status_9000.
      MODULE main_tab_active_tab_set.
      CALL SUBSCREEN main_tab_sca
        INCLUDING i_main_tab-prog i_main_tab-subscreen.
    PROCESS AFTER INPUT.
      MODULE user_command_9000.
      MODULE main_tab_active_tab_get.
      MODULE main_tab_active_tab_set.
    DATA FOR TABSTRIP 'MAIN_TAB'
    CONTROLS:  main_tab TYPE TABSTRIP.
    DATA:      BEGIN OF i_main_tab,
                 subscreen   LIKE sy-dynnr,
                 prog        LIKE sy-repid VALUE
                                  'ZCSVO_COGNOS_EXTRACT',
                 pressed_tab LIKE sy-ucomm VALUE c_main_tab-tab1,
               END OF i_main_tab.
    <b>MODULE main_tab_active_tab_set OUTPUT.</b>
      main_tab-activetab = i_main_tab-pressed_tab.
      CASE i_main_tab-pressed_tab.
        WHEN c_main_tab-tab1.
      To display open orders report
         i_main_tab-subscreen = '9100'.
          CALL METHOD o_alvgrid1->set_table_for_first_display
          EXPORTING
             is_variant                    = w_variant
             i_save                        = c_lay
             is_layout                     = w_layout
          CHANGING
             it_outtab                     = i_output1[]
             it_fieldcatalog               = i_fieldcat[]
          EXCEPTIONS
             invalid_parameter_combination = 1
             program_error                 = 2
             too_many_lines                = 3
             OTHERS                        = 4.
      IF sy-subrc <> 0.
        MESSAGE i000 WITH text-e06."Error in ALV report display
        LEAVE LIST-PROCESSING.
      ENDIF.
        WHEN c_main_tab-tab2.
      To display due for biling report
          i_main_tab-subscreen = '9200'.
          CALL METHOD o_alvgrid2->set_table_for_first_display
          EXPORTING
             is_variant                    = w_variant2
             i_save                        = c_lay
             is_layout                     = w_layout
          CHANGING
             it_outtab                     = i_output2[]
             it_fieldcatalog               = i_fieldcat3[]
          EXCEPTIONS
             invalid_parameter_combination = 1
             program_error                 = 2
             too_many_lines                = 3
             OTHERS                        = 4.
      IF sy-subrc <> 0.
        MESSAGE i000 WITH text-e06."Error in ALV report display
        LEAVE LIST-PROCESSING.
      ENDIF.
    WHEN OTHERS.
         DO NOTHING
      ENDCASE.
    ENDMODULE.                 " MAIN_TAB_ACTIVE_TAB_SET  OUTPUT
    *&      Module  MAIN_TAB_ACTIVE_TAB_GET  INPUT
          text
    <b>MODULE main_tab_active_tab_get INPUT.</b>
      CASE sy-ucomm.
        WHEN c_main_tab-tab1.
          i_main_tab-pressed_tab = c_main_tab-tab1.
        WHEN c_main_tab-tab2.
          i_main_tab-pressed_tab = c_main_tab-tab2.
        WHEN OTHERS.
         DO NOTHING
      ENDCASE.
    ENDMODULE.                 " MAIN_TAB_ACTIVE_TAB_GET  INPUT
    *&      Module  USER_COMMAND_9000  INPUT
          text
    <b>MODULE user_command_9000 INPUT.</b>
      CASE sy-ucomm.
        WHEN 'BACK'.
          PERFORM exit_program.
          SET SCREEN '0'.
        WHEN 'EXIT' OR  'CANC'.
          PERFORM exit_program.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9000  INPUT
    *&      Module  MAIN_TAB_ACTIVE_TAB_SET  INPUT
          text
    <b>MODULE main_tab_active_tab_set INPUT.</b>
      main_tab-activetab = i_main_tab-pressed_tab.
      CASE i_main_tab-pressed_tab.
        WHEN c_main_tab-tab1.
            i_main_tab-subscreen = '9100'.
        WHEN c_main_tab-tab2.
            i_main_tab-subscreen = '9200'.
        WHEN OTHERS.
         DO NOTHING
      ENDCASE.
    ENDMODULE.                 " MAIN_TAB_ACTIVE_TAB_SET  INPUT
    Try this out.
    Thanks & Regards,
    Judith.

  • I want to display a url link in only one tab of the tabstrip in webdynpro ?

    I want to display a url link in only one tab of the tabstrip in webdynpro view?  How do we do this?

    so in that tab of the tabstrip use LinkToUrl UI
    The LinkToURL UI element is a hypertext link. When you choose this link, you are directed to a user-defined Web resource (URL).
    The LinkToUrl is used to exclusively to open URLs in a separate window. To leave the Web Dynpro application and display a new URL use an exit plug.
    1.in ur UI create  tabs as u desire
    2. In each TAB , add ViewContainer . ViewContainer you would be able to add inside tab.
    3. Now create as many views as you have created Tabs.
    4. Embed views into the corresponding ViewContainers , in ur first view embed link to URL
    refer SAP online help for tabstrip :
    http://help.sap.com/saphelp_erp2005/helpdata/EN/e8/ac884118aa1709e10000000a155106/content.htm

  • Dynamic tabs in the tabstrip

    Hello All,
    I am trying to populate dynamic tabs using the function module
    TAXI_INITIALIZE_CARRIERSCREEN. Using this FM we can populate at the max 32 tabs.
    My requirement is to place more than 32 tabs in the tabstrip.
    Is there any other function module which is used to populate tabs.
    Or any other solution for this.
    Thanks in Advance.
    Regards,
    Suganya.

    hi,
    i need help on TAXI_INITIALIZE_CARRIERSCREEN. i want to know how to use this
    say, i have created a tabcontrol in the screen painter with function code and reference field. i want to change the text dynamically during runtime.
    can i use this function.
    Moreover , say,
    tabcap-TAB01 = 'TOTAL'.
    tabcap-TAB02 = 'SIZEE'.
    *TABSTRIP_NAME
    CALL FUNCTION 'TAXI_INITIALIZE_CARRIERSCREEN'
      EXPORTING
        tabstrip_captions       = tabcap
      GUI_PROGRAM             =
      GUI_STATUS              =
      GUI_TITLE               =
      GUI_TITLE_PARAM         =
    In the above where do i specify the TAB Strip control Name.
    i dont know how to pass on the export details for GUI_PROGRAM and rest of it. kindly help me
    regs,
    raja

  • What are the KEYstroke(s) used to CLOSE the active tab in the web browser?

    What are the KEYstroke(s) used to CLOSE the active tab in the web browser? I am reluctant to use a mouse where I can use keystrokes, as the mouse is a much slower process. In fact, can I find a list of all key strokes which can be used in Firefox, e.g. ALT+S followed by R (once or more) and ENTER used to restore previous browsing session; or CTRL+F to search for a specific word or term? Thank you.

    http://support.mozilla.com/en-US/kb/Keyboard+shortcuts
    http://www.7is7.com/software/firefox/shortcuts.html
    http://www.mvps.org/dmcritchie/firefox/keyboard.htm

  • Get the selected or active tab on a tabstrip to show different content

    Hi All,
    I have two tabs (TAB1 and TAB2) on a tabstrip. And on each of these tabs I have a table. Both tables are binded to the same context node.
    The property selectedTab of the Tabstrip is binded to an attribute "TAB" of a context node "TABSTRIP".
    I defined a supply function on this context node "TABSTRIP" in order to show the TAB1 by the first building up the view.
    METHOD supply_tabstrip .
    * local structure for the activ TAB
      DATA: stru_tabstrip TYPE if_componentcontroller=>element_tabstrip.
      CLEAR stru_tabstrip.
    * set the default-value
    * --> This is valid untill the user choose another Tab
      MOVE 'TAB1' TO stru_tabstrip-tab.
    * bind the filled structure to the context
      node->bind_structure(
        new_item             = stru_tabstrip
        set_initial_elements = abap_true ).
    ENDMETHOD.
    I also definded a supply function on the context node of the table (which is mentioned above) to fill it with content.
    Now i need to define a query to fill the table with two different content and for this I need to know which tab is selected by the user. How can i find which tab is selected or which tab is active?
    Thank you for any help
    Best regards
    Haleh

    Hi,
    I have a  context attrinbute SELECTED to which the SelectedTab property of tabstrip is bound.
    Implement action onSelect for Tabstrip -  Use this code snippet  -
    ***Variables
      DATA:
        lv_select_tab type string.          "Selected tab value
    ***Structure and internal table for the Events and messages
      DATA:
        lt_events type WDR_EVENT_PARAMETER_LIST,
        ls_events type WDR_EVENT_PARAMETER.
    ***Field symbols
      field-symbols: <fs_value> type any.   "Attribute value in events table
    ***Move the event table to lt_events
      lt_events = wdevent->parameters.
    *"Set to 'TAB' in lt_events
      read table  lt_events into ls_events with key name = wd_assist->GC_TAB.  "TAB
      if sy-subrc eq 0.
        assign ls_events-value->* to <fs_value>.
        if sy-subrc eq 0.
          lv_select_tab = <fs_value>.
        endif.                 "IF sy-subrc eq 0.
      endif.                 "IF sy-subrc eq 0.
    ***Set the selected tab value
      CALL METHOD WD_CONTEXT->SET_ATTRIBUTE
        EXPORTING
          VALUE = lv_select_tab
          NAME  = wd_assist->GC_SELECT_TAB.  "Set the selected tab Id "SELECTED
    **Call additional data if tab selected
      if lv_select_tab eq 'TAB1'.
    */Have your code here......
    else
    endif.
    Regards,
    Lekha.

  • Additio of a custom Tab to the tabstrip in  VD01  under salesarea tab

    Hello all,
    Can anybody please give me the steps required to achieve the follwing.
    I have created custom screen group in SPRO for VD01 and then Implemented the mentod GET_TAXI_SCREEN OF THE badi  CUSTOMER_ADD_DATA_CS
    But here Iam gettng the custom tab in the application tool bar but not as added tabl for the exising tabstrip avauialbe under SALES AREA tab of VD01.
    Is there any appraoch to accomplsih the same ...
    If it requires further SPRO customization please let me know
    very very very urgent .

    hi,
             here iam elobrating you step by step procedure as per my understanding.
    1)  Go to SPRO  -> Logistics – General -> Business Partner -> Customers -> Adoption of    
        Customer's Own Master Data Fields and execute it. “Maintain customer screen
        groups “ will appear. Add the new function code under the screen group ‘ZS’ and save it.
    Ø     Function code      = Zs
    Ø     Description           = Sales Rep
         BADI: CUSTOMER_ADD_DATA
    This BADI used to activate the screen group and checks for account group.
    2)     Inside the method SET_USER_INPUTS, code the logic.
    EXPORT L_EXE FROM L_EXE TO MEMORY ID 'ZSALES'.    “EXPORTED TO MEMORY
    BADI: CUSTOMER_ADD_DATA_CS
    This BADI used to include the custom screen and to deactivate the sales rep tab
    1)     implement  the implementation yxxxx .
    2)     Inside the method SET_DATA, code the logic. Export the SAP activity to the memory id ZACT
                      EXPORT I_ACTIVITY FROM I_ACTIVITY TO MEMORY ID 'ZSALES'.
    3)     Inside the method SUPPRESS_TAXI_TABSTRIPS, code the logic.
    4)     Inside the method GET_TAXI_SCREEN, code the logic. The custom screen is included here.
    CASE I_TAXI_FCODE.
    ENDCASE.
    A module pool screen is needed to display the sales rep screen. The screen consists of sales group
    Processing Logic:
    Basic Code:
    PROCESS BEFORE OUTPUT.
      MODULE DATABASE_FETCH.
      MODULE SCREEN_VALIDATION.
    PROCESS AFTER INPUT.
      MODULE USER_COMMAND_9001.
      PROCESS ON VALUE-REQUEST.
       FIELD G_VKGRP MODULE HELP_G_VKGRP.
    MODULE DATABASE_FETCH.
    regards
    kiran

  • How can I get Firefox 4 to display the URL of active tabs in the location bar so I can see and copy it?

    The only URL that I ever see in the location bar is the last one I typed there. No matter which tab I activate, the last typed URL is displayed. When I need to copy the URL of an active tab to paste into an email or something I can't see it.
    The location bar used to display the URL of each active tab and you could simply click in the address field and the URL would be highlighted so you could edit/copy it or jump to the end of a very long URL to see the final file name.
    I can't get this feature to work and I really need this feature as I need to copy URL's quite often. When I have multiple tabs active I sometimes forget which one is for which domain and need to see the URL. It is very annoying to surf blind.
    Please help me with this issue as quickly as possible so I can once again do my work easily and with the firefox browser instead of chrome. :(

    A couple of possible causes.
    The first is the file that stores details of browsing history and bookmarks is corrupt. For details on how to fix that see http://kb.mozillazine.org/Locked_or_damaged_places.sqlite
    Another possible cause is an add-on interfering with the location bar. To test this, use the procedure in this link - https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Title of the TAB in the tabstrip control

    Hi,
    I need to change a title of the TAB dynamically in the program.
    How can I do it?
    Thanks.

    Ok,  I just test this and it worked good. 
    First, go to screen painter layout, where the tabstrip is,  double click on the tab name,   It should have a value in the Name box, if not put one there.  For the rest of this example we will call this name  TABA,  also while in this dialog, make sure to check the box on the Program tab below for "Output Field".  Also make sure to make the lenght of these fields more than the 4 characters that they probably are now, make them like 10 or so.  Do all this for each tab, each tab should have a different name, TABA, TABB, TABC.
    Now in your program,  declare the variables for TABA, etc.
    data: taba(10) type c,
          tabb(10) type c.
    Now in your PBO, you can fill the text into the varaibles.
    module STATUS_0100 output.
    *  SET PF-STATUS 'xxxxxxxx'.
    *  SET TITLEBAR 'xxx'.
    TABA = 'This is tab A'.
    TABB = 'This is tab B'.
    endmodule.                 " STATUS_0100  OUTPUT
    That should be it.
    Regards,
    RIch HEilman

  • Inserting a tab in the tabstrip in web ui

    Hi Experts,
    I would like to insert a new tab in the create quotation view in CRM 7.0 UI. There is green config button per line item of the create qoutation view. If we click on the config button then a standard table view is loaded in the bottom portion of the screen . In standard two tabs are already there, one is for Header and other is for the Item. Now we are going to insert our custom tab, i,e 'discount..
    To implement this we have done several changes . Please see below.
    1.     IUICITEMD  component has been enhanced .
    2.     u2018IUICITEMD/ItemDetailVSu2019 view has been enhanced to incorporate the tabular link. Logic is given below.
    u201C/NPC/IUICITEMD/Discountsu201D new custom view has been created with the following fields.
    a.Discount attributes
    b.Product id
    c. Discount product description
    View /NPC/IUICITEMD/Discounts view has been added to the viewArea MainVA which has already been embedded in the ViewSet IUICITEMD/ItemDetailVS . u201CIUICITEMD/ItemDetailVSu201D this view set is further assigned outbound plug to MainWindow (default) ..
    3.     NavigationalLink DISCOUNT_NAV has been created for navigating from Mainwindow    to inbound plug of our custom table view. IF Discount tab link is clicked then one outbound plug u201COP_DISCOUNTu201D would be called which in turn call the navigational link for displaying our custom viewu2026
    4.     Following methods have been enhanced to incorporate the tablink DO_HANDLE_EVENT,WD_CREATE_CONTEXT,DO_PREPARE_OUTPUT,SET_MODELS,IP_DEFAULT,GET_TRAY_TITLE,EH_ONLK_DISCOUNTS,OP_DISCOUNT,FILL_TABLE  of the /NPC/CL_IUICCON_ITMDTLVS_IMPL class for the view IUICITEMD/ItemDetailVS .
    5. MAINWINDOW has been enhanced to create one outbound plug named "Discounts".
    6. In IUICQUOT component in the runtime repository we have added one inbound plug name "IP_DISCOUNT" in the usageIUICITEMD.
    The view set is not getting loaded when we are clicking on config button. It is throwing the error message ".do " controller is missing for our custom view.Actually the no inbound plug is not getting called from the event-handler of config button.
    Could you please suggest me what actually I need to do at this stage if anyone has worked on it.

    The Doobie Brothers foretold what becomes of long-term MS Word users.
    “What Were Once Vices Are Now Habits”.

  • I just upgraded to 29.0.1 on a Windows 8 PC Laptop, and the labels on all my tabs disappeared. Only the active tab displays the title.

    I tried resetting Firefox and starting in safe mode and neither fixed the problem. All it shows is the icon. This is a problem, particularly when I have multiple Google docs open and have to click on each to find the one I'm looking for.

    In case this is a glitch with the color scheme, e.g., black-on-black, could you hover the mouse over the tab to see whether the title is there but is not readable in the standard color scheme?
    If that is the problem, and hovering gives you enough visibility, I have a custom style rule you can use to create that appearance on all the background tabs: http://userstyles.org/styles/101036/brighter-background-tabs-australis-firefox-29
    If that's still too hard to read, a volunteer could help with a personalized style rule. In that case it would be helpful to see a screen shot of your tab bar. Please show a non-confidential/non-personal page. This article has tips: [[How do I create a screenshot of my problem?]]

  • How to change the text for the tabs of a tabstrip control dynamically

    Hi Guys,
        I am having two screens in a transaction.
    1. 1st screen has material number as an input and submit push button
    2. 2nd screen has two tabs in a tabstrip control.
        I want to display material description and plant number as heading for the two tabs based on the material number entered by the user in the 1st screen. Means i want to change the text dynamically. Is there any possible way? If it is there please help me. Very urgent...
    Thanks in advance
    James.

    Hi,
    If you set the "Output field" attribute for a pushbutton/tab, you can also set its text dynamically in the ABAP program. To do this, you must create a field in the ABAP program with the same name as the pushbutton/tab. You must then assign the required text to the field before the screen is displayed.
    For example define a global field in your program called MATNUM(20) and use this as the name for the material number tab on the tabstrip. Then you can assign a text MATNUM = 'Material Number' and this will appear as the tab title. Don;t forget to set the "Output field" attribute on the tab.
    Hope it helps

  • Reporting on the Activity Tab - Live Feeds, Notes, Tasks etc

    I would really like to be able to report on the customer information within the 'Activity' Tab in the CRM.  In particular I make notes on who I speak to and what they said and I want to be able to report on this information so I can access it quickly by customer type/lead type.
    Does anyone have any idea how this can be done.  I understand it is not something available at the moment but can anyone suggest how I can make this happen. 
    I would also love to be able to see more information in the 'Notes' section under the Activity tab - is there any way the information I enter can be seen across the page (it only allows a few words and then it cuts off - you can only see the full note if you click on it, but this takes too much time as I want to be able to see it at a glance.)
    Can anyone help?
    thanks!

    I would really like to be able to report on the customer information within the 'Activity' Tab in the CRM.  In particular I make notes on who I speak to and what they said and I want to be able to report on this information so I can access it quickly by customer type/lead type.
    Does anyone have any idea how this can be done.  I understand it is not something available at the moment but can anyone suggest how I can make this happen. 
    I would also love to be able to see more information in the 'Notes' section under the Activity tab - is there any way the information I enter can be seen across the page (it only allows a few words and then it cuts off - you can only see the full note if you click on it, but this takes too much time as I want to be able to see it at a glance.)
    Can anyone help?
    thanks!

  • How to hide a tab from the existing tabstrip of CRMD_BUS2000111 transaction

    I have to hide competitor tab from the tabstrip of CRMD_BUS2000111 transaction in CRM. I have tried shd0 but since this is not a dialog transaction we cannot create screen variant. After that I tried BUCO transaction.In BUCO I selected Sales Area data then competitors. But when I double click on compititors it is showing a message VCT control for screen configuration does not exist.
    I do not have much idea about BUCO. Can any one help me solving my problem?

    Friends
    With the following command you can register you .ocx ( Visual Buttons Control files ) in windows.
    REGSVR32 C:\Progra~1\SAP\FrontEnd\SAPgui\vistransmitter.ocx
    The above command will register said file in the registry and facilitate Visual Configurator Tool to run for Screen Sequence Modifications. With the above I also recommend Latest Patch (23), which is available with SAP to update on the windows frontend to avoid some other known frond end issues.
    Before doing all above make sure your have 2 files existence in the C:\Progra~1\SAP\FrontEnd\SAPgui folder
    Visu_se.exe
    vistransmitter.ocx
    Best Regards,
    Jaswant Purba
    [email protected]

  • How to provide Tab Name programatically for the new Tab created in Tabstrip

    Is it possible to customise the name of the tab for a newly created tab in the tabstrip?

    Yes, it is.
    Declare a global data with the same name as your tab, type c, with the same length (look at the tab attributes in the screen painter).
    Change that in your PBO.
    You're done.

Maybe you are looking for

  • How do I get info about new profiles available?

    With the last update of Camera Raw there were a number of new profiles made available. How do we get information as to new ones produced either by Adobe themselves, by other users or by camera manyfacturers? Do we have to search Google, wait for the

  • Proxy Error in application page

    Hi when i entered the url it shows error https://domain.com/OA_HTML/AppsLocalLogin.jsp Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /OA_HTML/AppsLocalLogin.jsp. M

  • TNS ERROR PLease help me

    Hi Everybody !! I hav changed my Network interface Card as the previous NIC is not working, since then i get TNS Error. I have changed IP address of the New NIC and disabled the OLD NIC, but still i get the TNS Error. Please help me find a solution.

  • I'm unable to make in app purchase

    I contacted apple support and they said it was due to terms and conditions but I don't understand how I'm not in compliance with the conditions, and yet I'm also still able to make any other purchases

  • FM to upload to excel

    Hi,,    i have data in internal table now i want that data to be uploaded to excel sheet can any body let me know wht is the Function Module to upload the data to excel sheet. points will be rewarded for sure