Making a tab default in tabstrip

Hi,I have an urgent requirement.
In a tabstrip of five tabs, how to make 3rd tab default.
I mean to say,if i am executing a program having such tabstrip then selection screen should open with fields defined in subscreen of third tab.

This is the code i have written..but its not working:
*& Report  ZEXAMPLE
REPORT  ZEXAMPLE
        NO STANDARD PAGE HEADING.
TABLES:sscrfields.
*   Selection screen
*Selection screen for vendor1 and vendor2.
SELECTION-SCREEN: BEGIN OF TABBED BLOCK tab_block FOR 16 LINES,
                    TAB (23) button1 USER-COMMAND push1,      "#EC NEEDED
                    TAB (23) button2 USER-COMMAND push2       "#EC NEEDED
                    " etc
                    DEFAULT SCREEN 1001,
                    END OF BLOCK tab_block.
  SELECTION-SCREEN BEGIN OF SCREEN 1001 AS SUBSCREEN.
    SELECTION-SCREEN END OF SCREEN 1001.
    SELECTION-SCREEN BEGIN OF SCREEN 1002 AS SUBSCREEN.
    SELECTION-SCREEN END OF SCREEN 1002.
  " etc.
  INITIALIZATION.
    button1 = text-bu1.
    button2 = text-bu2.
    " etc.
    tab_block-prog = sy-repid.
    tab_block-dynnr = 1002.
    tab_block-activetab = 'BUTTON2'.
    " etc.
    AT SELECTION-SCREEN.
      CASE sscrfields-ucomm.
        WHEN 'PUSH1'.
          tab_block-dynnr = 1001.
          tab_block-activetab = 'TAB2'.
ENDCASE.         " etc.

Similar Messages

  • Addition Tab in Item Tabstrip of MIGO

    Hi Gurus,
    I need to add a custom tab in the Items TabStrip in MIGO called Details...there are already 5-6 by default already.
    I have created the implimentation for BADI MB_MIGO_BADI
    But i dont knw hw to create tabs in the tabstrip now
    Plz guide me so i can proceed further ?
    wait for reply...
    thanks in advance ..
    khushboo.

    Hi,
    Check the example implementation class CL_EXM_IM_MB_MIGO_BADI.
    Check methods PBO_DETAIL,PAI_DETAIL,etc.
    I think this will help u to add new subscreen.
    Regards,
    Ashok.

  • How to restrict  changes in Tabs: Defaults and Parameters in tcode:  SU3

    Good Morning Everybody.
    Do you know how to restrict End Users can change data stored in Tabs Defaults and Parameters of tcode: SU3.
    I was checking Authorization Objects related this transaction but I did not find a way to fix this issue.
    Thanks for your comments.
    Mauricio Cardozo.
    BASIS Consultant.

    I've been looking into this same question.  I don't think there's any way to protect individual user parameters, which is what we really wanted to do, but it is possible to protect the Parameters tab as a whole while still granting access to the Address and Defaults tabs (if desired).  SU3, which is usually given to all users, gives change access to all three tabs in the User Data, but to make it more fine-grained, as the last person said, take away SU3 and instead grant whatever combination of SU0, SU1, or SU2 makes sense for your organization.  SU0 gives access to the Defaults tab, SU1 to the Address tab, and SU2 to the Parameters tab.
    So, in your case, you would grant SU1 only, so users can change their name or phone number, etc, but not Defaults or Parameters.  They won't even be able to see defaults or parameters if you do this, though.
    I hope this helps.
    --Matt

  • 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

  • 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

  • Tab in a tabstrip

    Hi ,
      I have an ALV with multiple selection possible , now if a user selects certain records and pressed the custom button attached , then the details corresponding to each record must be displayed in tabs of tabstrip on the next screen.
    This leads to a question can we have the number of tabs in a tabstrip be dynamic , i.e. if the user selects 2 records then display 2 tabs , if he selects 5 then display 5 and so on , if yes please tell how can this be implemented.
    Regards
    Arun

    Hi,
    its not possible to make the number of tabs dynamic.for this u just create max number of tabs.based on the number of records selected by the customer show the tabs u want and make the other tabs inactive.
    see this code.
    MODULE STATUS_0101 OUTPUT.
    SET PF-STATUS 'MENU1'.
      SET TITLEBAR 'TIT1'.
    DO 20 TIMES.
      NUM = SY-INDEX.
      CONCATENATE 'TAB' NUM INTO ACT_TAB.
      SELECT TAB_STATUS INTO TAB_STATUS FROM ZTMW_WRKBNCH_TAB
                                      WHERE WORK_BENCH_TAB = NUM.
        IF tab_status = 'X'.
          LOOP AT SCREEN.
            IF SCREEN-NAME = ACT_TAB.
              SCREEN-INVISIBLE = '0'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        ELSE.
          LOOP AT SCREEN.
            IF SCREEN-NAME = ACT_TAB.
              SCREEN-INVISIBLE = '1'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDSELECT.
      IF SY-SUBRC <> 0.
        LOOP AT SCREEN.
          IF SCREEN-NAME = ACT_TAB.
            SCREEN-INVISIBLE = '1'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDDO.
    ENDMODULE.      
    regards,
    bharat.

  • 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.

  • My tab default is1.25 which is too big for the A5 document I'm working on, how do I change the default tab so that I don't have to reset each individual line?

    My tab default is1.25 which is too big for the A5 document I'm working on, how do I change the default tab so that I don't have to reset each individual line?

    Hi Hannah,
    Inspector > Text > Tabs Button > Tab Settings > Default Tabs.
    To set a tab stop on the go, click in the ruler.
    If you can't see the ruler, Menu > View > Show Rulers.
    To set tab stops for lines (paragraphs) you have already typed, select those paragraphs and set them all at once.
    Also, have a look at Menu > Pages > Preferences > Rulers.
    Regards,
    Ian.

  • 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.

  • Two 'Qualifications' tab in a tabstrip.

    Hi,
    In E-Recruitment, when I click on 'Apply' button from the page, which lists all the Jobs, I am getting a page with tabstrips, where I can find 2 'Qualifications' tab there in the tabstrip.
    The BSP application responsibe for the 'Apply Job' functionality is HRRCF_REG_APPLN and it is using in the standard form only (not customised at all).
    Could you please tell me, why it's showing 2 'Qualifications' tab in the tabstrip? Is it any configuration issue?
    Navigation details:
    E-Rec :  Employees-> Apply Directly-> (Select a job)->Apply
    Your help in this regard is highly appreciated.
    Thanks,
    John

    Hi,
    its not possible to make the number of tabs dynamic.for this u just create max number of tabs.based on the number of records selected by the customer show the tabs u want and make the other tabs inactive.
    see this code.
    MODULE STATUS_0101 OUTPUT.
    SET PF-STATUS 'MENU1'.
      SET TITLEBAR 'TIT1'.
    DO 20 TIMES.
      NUM = SY-INDEX.
      CONCATENATE 'TAB' NUM INTO ACT_TAB.
      SELECT TAB_STATUS INTO TAB_STATUS FROM ZTMW_WRKBNCH_TAB
                                      WHERE WORK_BENCH_TAB = NUM.
        IF tab_status = 'X'.
          LOOP AT SCREEN.
            IF SCREEN-NAME = ACT_TAB.
              SCREEN-INVISIBLE = '0'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        ELSE.
          LOOP AT SCREEN.
            IF SCREEN-NAME = ACT_TAB.
              SCREEN-INVISIBLE = '1'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDSELECT.
      IF SY-SUBRC <> 0.
        LOOP AT SCREEN.
          IF SCREEN-NAME = ACT_TAB.
            SCREEN-INVISIBLE = '1'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDDO.
    ENDMODULE.      
    regards,
    bharat.

  • Well,Most of the time I use Firefox,but that is without making it my default browser,I want to know the benefits of making Firefox my default browser,Please do let me know.

    I want to know the benefits of making Firefox as my default browser.If I do not make IT my default browser then what will be my loss ? Most of the time I use Firefox.Please help me intime.Thank You. I am using Windows Vista,Firefox 10.0.2.

    Making Firefox the default simply tells Windows that you want to use Firefox to open anything on the internet. You are still able to access other browsers, it just uses Firefox to open stuff like links in emails, docs, etc. instead of Internet Explorer.
    It is really a personal choice, if you want to use Firefox the majority of the time, I'd set it as default, it just makes thinks easier.

  • Hide tabs of a tabstrip after authority-check

    Hi experts,
    I would like to hide tabs of a tabstrip depending on the user that is running the application. We have created an authorization-object "Z" to restrict this.
    The scenario will be the following: for example, he have a tabstrip with 4 tabs. USER1 could only have editable tabs 1, 2 and 3. And USER2 have the restriction of not viewing tabs 1 and 3.
    How can I associate each tab with the authorization-object?
    Lots of thanks.
    Javier

    Hi
    It depends on how you have create the authorization object: it should be have 2 fields
    -one for the tab number
    -one for the action (Create, Change and Display)
    Max

  • WAD Tabs - Default View

    Hi,
    We have several Web Templates, complete with tabs that contain different charts.
    However, in some templates, the default opening tab is not consistent and after looking through quite a few settings/parameters, I can't see what setting(s) determines the default opening tab/chart. eg. One will open first tab, another at the second tab etc.
    Can anyone shed some light on this, as I guess it is something obvious.
    Thanks,
    Scott

    Hi.
    Could you plz more clarify your issue ?
    Actually you defined "tabstrip container item" and within this item you defibe TABS in "tab panel list".
    Each such tab contain subordinate web item (when you click ot tab panel definition you can see which web item attached to this tab).
    So you can control for each tab which item shown in this tab.
    First tab in tab panel is tab that shown first by default.
    Regards.

  • 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.

Maybe you are looking for