Using tab-strip

Hi all...
can any body tell me how to use tab-strip control in screens.
Thanks a lot...

hi
Check the coding..
REPORT ZKA_TABSTRIP .
TABLES: ZKA_EMP,ZKA_COM.
CONTROLS: TS TYPE TABSTRIP.."""""""""Declare
DATA: SCREENNO(4) TYPE N.  """""Screen no
CALL SCREEN '0003'. """""""""""""""""Call the screen
*& Module STATUS_0001 OUTPUT
text
MODULE STATUS_0001 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
IF SCREENNO IS INITIAL.
TS-ACTIVETAB = 'EMP'.
SCREENNO = '0002'.
ENDIF.
ENDMODULE. " STATUS_0001 OUTPUT
*& Module USER_COMMAND_0001 INPUT
text
MODULE USER_COMMAND_0001 INPUT.
IF SY-UCOMM = 'EMP'.
TS-ACTIVETAB = 'EMP'.
SCREENNO = '0002'.
ELSEIF SY-UCOMM = 'COM'.
TS-ACTIVETAB = 'COM'.
SCREENNO = '0003'.
ENDIF.
ENDMODULE. " USER_COMMAND_0001 INPUT
*& Module USER_COMMAND_0002 INPUT
text
MODULE USER_COMMAND_0002 INPUT.
IF SY-UCOMM = 'DISPLAY'.
SELECT SINGLE * FROM ZKA_EMP WHERE EMPNO = ZKA_EMP-EMPNO.
ELSEIF SY-UCOMM = 'SAVE'.
INSERT ZKA_EMP.
ELSEIF SY-UCOMM = 'REFRESH'.
CLEAR ZKA_EMP.
ELSEIF SY-UCOMM = 'EXIT'.
LEAVE PROGRAM.
ENDIF
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
   call SUBSCREEN ts4 INCLUDING sy-repid SCREENNO ."""""""""""Specify the screen no
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
   call SUBSCREEN ts4.
thanks
Dharma

Similar Messages

  • How to create and use tabs for WD views

    Hi,
    I have created two views. A button click  from onw view leads to the second view and vice versa.
    I would like to add tabs to the two views, in a way that when pressing the button on the first view - the second one will open, and the tabs of both views will be seen, in a way that will enable me to navigate between the views using the tabs.
    Is this possible to do? or must I implement one view with a tab strips? (whcih means - rewriting the secod view into the first...)
    Thanks,
    Oren.

    Hi
    There is no need to use inbound outbound plugs and navigation links when you use Tab Strip
    You have a tab strip control in which you inserted two tabs
    each tab contains transparent container which intern contains ViewContainerUIElement, so your Outline looks like this
    TabStrip[TabStrip - Child]
    --Tab[Tab - Child]
    Tab_Content[TransparentContainer - Child]
    viewContainerUIElement[ViewContainerUIElement - Child ]
    Tab_header
    --Tab1[Tab - Child]
    Tab1_Content[TransaparentContainer - Child]
    viewContainerUIElement[ViewContainerUIElement - Child]
    Tab1_header
    So you have two ViewContainerUIElements in Two Tabs, you need not write any code to navigate if you select second tab second view is displayed and if you select first tab first view is displayed.
    Regards
    Abhimanyu L

  • Element container & tab strip

    Hi All,
        I creating z transction for my customer requirment . actualy i am new in dialog program. i want three subscreen in a main screen thru tab strip. but i dont know how to create element container and view and tab strip and how to assign sub creen to tab strip. plz help me out.
    Thanks in Advance
    Jitendra

    hi jeetu
    Yes u can make three sub screen in a main screen thru tab strip. You have to use tab strip (with wizard) option on his main screen.
    Step 1: When u choose tab strip and gives a area in screen then u got a screen of tab strip control wizard: start
                Choose continue and put the tab strip name TAB (optional) and select scrolling in the application server option
    Step 2: In the next screen u got the tab text here u can define header text for his screen at least two in your case it's three.
    Step 3: You’re got the three-sub screen and function code u can change them as u required .
    Step 4: Here u defines the program name where u want code in each box and select complete.
    Now u have three-sub screen, which is, define in step 3 with the program name and u can define each screen as u need.
    xxxxxxxxxxxxxxxxx (see forum rules)
    Kuldeep Singh Rawat
    Edited by: kuldeep singh rawat on Jan 19, 2008 5:56 AM
    Edited by: Armin Reichert on Jan 19, 2008 12:20 PM

  • Open tabs are not on tab strip. Have to click on List All Tabs button to find tabs. Tabs used to display on tab strip and stopped doing this. Suggestions?

    Been using Firefox for years, running Windows XP. This morning when I opened pages in another tab, did not see them on tab strip. Only way to find them is to click on List All Tabs Button and it shows list. Cannot get them to display on tab strip. If I open in another window, it works, like it should. If I click on plus sign on tab strip it opens another tab, but can't see the previous ones except with List All Tabs Button. Any suggestions on how to turn tab strip back on? Thanks, jayem33

    If it works in a new window then you can drags tabs from the not working window to that new window.
    You can also try to close the tabs via Ctrl+W and restore the closed tabs via Shift+Ctrl+T

  • How to get active tab strip name using standard function ?

    Dear all,
    I have 5 Tab strip in my view, how can i know which tab strip is active during runtime ?
    Best Regards
    Fernand

    HI
      I hope you may be looking  at this thread , hope its  a  similar requirement as yours
      How to get the selected Tab from a TabStrip.
    Thanks

  • Tab Strip with multiple views refresh issue

    I have created a tab strip with two tabs.  Each tab has a view container element.  Each view has an iFrame which points to an ABAP report exposed as a web service (url).  I put a refresh button on the first view which fires an outbound plug which is directed to the same view.  This refreshes the first view just fine.  However, it also refreshes the second view.  I don't want to refresh the second view.  Is there a way around this?

    Hello Kenneth,
    i would try another way and use [Suspend&Resume|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/19bf8c16f25d7ae10000000a11466f/content.htm]. But that works only on component-level. So i would create 3 components A,B,C.
    Comp A has a tabstrip and inside each tab a ViewContainer Element (VCUI). Inside the VCUI's you call (the used) components B and C using Suspend & Resume Plugs. Components B and C only have one view each with an iframe calling the specific report.
    So you can refresh both components differently.
    Kind regards, Andreas

  • User changes in tab strip ui element are not recorded in context change log

    Hi All,
    We are using a tab strip ui element in webdynpro component. But user changes inside tab strip ui element are not getting recorded to the context change log. I have an input field on the same view besides  tab strip ui element. User changes to this input field are getting recorded to the context change log.
    Is there any restriction on context change log usage with tab strip ui element?
    Could you please suggest If there is any way to record changes inside tab strip ui element.
    Thanks,
    Sudheer.

    I think there are some limitations exists, context change logs are not complete when you do value help , i am not sure about tab strip.
    [http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/a8e5d273b12fe2e10000000a42189d/content.htm|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/a8e5d273b12fe2e10000000a42189d/content.htm]

  • Reg: How to add new tab strip in MIGO transaction

    Hi Experts,
    I need to add a new tab strip(Inside one selection screen, If the user clicks the new tab strip, New selection screen should populate) in MIGO transaction after pressing enter for the movement type '122'.
    I tried with the BADI MB_MIGO_BADI, Simply i called the module pool program inside that BADI, But it is not giving any solution.
    Please guide me to find the solution for this requirement.
    Regards
    Vijay.R

    Hi,
    You may also try the exits available with the MIGO transaction. To find exits you can use the fillowing code by giving tranasaction code as input.
    REPORT  zrmexitfinder                               .
    TABLES: modsap, modact, tstc.
    PARAMETERS: input1 LIKE tstc-tcode DEFAULT ' ',
                input2 LIKE modsap-typ DEFAULT ' '.
    DATA: search1(6),
          search2(3),
          search3 LIKE modsap-member.
    DATA : first_row VALUE 'Y'.
    CONCATENATE: '%' input1 '%' INTO search1,
    '%' input2 INTO search2.
    SELECT * FROM tstc WHERE tcode LIKE search1.
      first_row = 'Y'.
      CHECK tstc-pgmna NE space.
      CONCATENATE '%' tstc-pgmna '%' INTO search3.
      SELECT * FROM modsap WHERE typ LIKE search2
      AND member LIKE search3.
        SELECT SINGLE * FROM modact WHERE member = modsap-name.
        IF first_row EQ 'Y'.
          WRITE: /0 tstc-tcode, 6 tstc-pgmna, 16 modsap-name, 32 modsap-typ,
                 45 modsap-member, 70 modact-name.
          first_row = 'N'.
        ELSE.
          WRITE: /16 modsap-name, 32 modsap-typ, 45 modsap-member, 70 modact-name.
        ENDIF.
        CLEAR : modsap, modact.
      ENDSELECT.
      IF sy-subrc NE 0.
        WRITE : /0 tstc-tcode, 6 tstc-pgmna, 30 'No exits found'.
      ENDIF.
      CLEAR tstc.
    ENDSELECT.
    END-OF-SELECTION.
      CLEAR: search1, search2, search3.
    Regards,
    Renjith Michael.

  • How do I make the "Open new tab" button positioned at the end of the tab strip, on the right, next to the last open tab, just as the standard Firefox should be.

    My "Open a new tab" button (the +) does not appear at the end of the tab strip, it does not look like it is given in all photos here in the support page. It did not look like this before either. Now I have it at the most left end i.e. before the tabs begin. I can move it to the most right, but it sticks there. I want it to be attached to the last open tab, as it used to be, and as is shown in example Firefox photos.
    Could be useful if I sent you a print screen, but I don't see an attachment option here.
    Thanks!

    See https://bugzilla.mozilla.org/show_bug.cgi?id=574833 - Installing Persona theme completely covers the caption buttons

  • How to  create a selection screen with two tab strips

    Hi Experts,
    I need to craete a selection screen '100' with two tab strips, in the 1st tab strip i need create some select options as subscreen and in other tabstrip i need to call the subscren '4000' of the program 'SAPLCTMS' . i need to call this screen as selection screen from the zprogram. please help me out.
    Thanks in advance...
    Sarath...J

    Hi,
    I have developed some code.
    It just displays a table control and after entering the values init, upon hitting the return button, the values will be put into table itab. Have a look and make necessary changes as you see fit.
    *& Report  ZMADHU_TBCNTL
    REPORT  zmadhu_tbcntl.
    DATA: BEGIN OF itab OCCURS 0,
         sel TYPE s_flag,
         matnr TYPE matnr,
         ersda TYPE ersda,
         ernam TYPE ernam,
      END OF itab.
    CONTROLS: tab_cntl TYPE TABLEVIEW USING SCREEN 100.
    *START-OF-SELECTION.
    CALL SCREEN 100.
    *END-OF-SELECTION.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'TABCNTL'.   "pf status
    SET TITLEBAR 'xxx'.
      CASE sy-ucomm.
        WHEN 'BACK' OR
             'CANCEL' OR
             'EXIT'.
          LEAVE TO SCREEN 0.
      ENDCASE.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  ITAB_MODIFY  INPUT
          text
    MODULE itab_modify INPUT.
      CASE sy-ucomm .
        WHEN ' '.        " When pressed enter
    if itab-sel = 'X'.
          MODIFY itab INDEX tab_cntl-current_line.
          APPEND itab.    " append lines to internal table
          CLEAR itab.
    *endif.
      ENDCASE.
    ENDMODULE.                 " ITAB_MODIFY  INPUT
    *Screen 100 flow logic.
    PROCESS BEFORE OUTPUT.
      MODULE status_0100.
      LOOP AT itab WITH CONTROL tab_cntl CURSOR
      tab_cntl-current_line..
      ENDLOOP.
    PROCESS AFTER INPUT.
      MODULE select_data.
      LOOP .
        CHAIN.
          FIELD itab-matnr.
          FIELD itab-ersda.
          FIELD itab-ernam.
          MODULE itab_modify ON CHAIN-REQUEST.
        ENDCHAIN.
      ENDLOOP.
    MODULE USER_COMMAND_0100.
    Hope it will helps to u.
    Thanks,
    Shankar

  • New tab strip for PO header data

    Hello,
    for a customer project there is the need to add a new customer individual tab strip to PO and contract header data. Is there an User Exit or any other predefined way to do this in a most efficient way with minimum changes in SAP standard?
    Regards
    Norbert

    Hi Norbert,
    You can add th new custom tab to the PO and contract header data  using the below mentioned Enhancement.
    Enhancement        MM06E005
    Short text         Customer fields in purchasing document
    Create a project in the Tcode CMOD and assign the above mentioned enhancement.
    Add new fields in include structure CI_EKKODB.
    Design your screen for the new fields in SAPLXM06        0101.
    Put your logic in the corresponding function module exit as provided in the enhancement.
    Regards
    Dillip

  • Tab strip - dialogue programming

    Hi all,
    I want to make an dialogue program application which is similar to transaction code pp01. It would have two or three dropdown list boxes. Depending on what options I choose in the list box, certain options will come in the table below ( please refer to pp01).
    Now when i click on any of these options to choose it and then click on create button, it should open the corresponding infotype which I already created separately using transaction pm01 - to input entries in that infotype.
    When I click on display button, it should display the infotype record if it has been already created - just like pa30.
    I knoow how to create list boxes. But depending on the choices in these list boxes , in the tab strip below - on the first screen - should come some values , which will change when i change the listbox options.
    can you pls help me in this? My concern is not the list boxes but the action corresponding to list box choices I make and the tabstrip in transaction pp01. how to create it and how to add funcrtionality to the tab strip so it will open my required infotype in display or edit mode.
    Please suggest something in this.
    Thanks
    Ribhu

    Hi,
    Following links will be helpful:
    http://help.sap.com/saphelp_46c/helpdata/en/d1/801bd2454211d189710000e8322d00/frameset.htm
    Tabstrip Control
    TabStrip ViewSet example
    http://help.sap.com/saphelp_bw30b/helpdata/en/04/10f2469e0811d1b4700000e8a52bed/content.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap-code-samples/alv-grid/abap%20code%20sample%20for%20tab%20strip%20in%20alv.pdf
    Also you can try these sample programs:
    try these sample programs in the system
    demo_dynpro_tabstrip_local
    demo_dynpro_tabstrip_server
    Raja T
    Message was edited by:
            Raja T

  • Tab Strip Selection Screen in ALV Report

    Hi All,
    I want to create a ALV report with TABStrip selection screen. How to proceede.
    Is there any necessary to create dailog program for the screens.
    Please advise.
    Thank You,
    ANu.

    Hi
    You can create it using module pool program in an easy way. Have the tab strip in main screen and use the sub-screens for display. By this way you can do it. If you wish, you could refer the following link, where they have given step by step procedure.
    <<Link-farm removed>>
    Hope this helps you.
    Regards
    Vinodh
    Edited by: kishan P on Nov 1, 2010 3:00 PM

  • Reg: Additional header tab strip in MIGO Transaction

    Hi Experts,
    I have added a new header tab strip in MIGO transaction. The tab strip is triggered using the BADI 'MB_MIGO_BADI' (PBO_HEADER method), I populated a selection screen using module pool program through the same BADI. Now i need to update the values in the selection screen fields to the data base table MKPF.  I need a solution for update the screen field values to the data base table MKPF. Whether some other BADI i need to use? if yes how can i pass the screen field values to that BADI.
    Please guide me.
    Thanks
    Vijay.R

    Hi,
    You may also try the exits available with the MIGO transaction. To find exits you can use the fillowing code by giving tranasaction code as input.
    REPORT  zrmexitfinder                               .
    TABLES: modsap, modact, tstc.
    PARAMETERS: input1 LIKE tstc-tcode DEFAULT ' ',
                input2 LIKE modsap-typ DEFAULT ' '.
    DATA: search1(6),
          search2(3),
          search3 LIKE modsap-member.
    DATA : first_row VALUE 'Y'.
    CONCATENATE: '%' input1 '%' INTO search1,
    '%' input2 INTO search2.
    SELECT * FROM tstc WHERE tcode LIKE search1.
      first_row = 'Y'.
      CHECK tstc-pgmna NE space.
      CONCATENATE '%' tstc-pgmna '%' INTO search3.
      SELECT * FROM modsap WHERE typ LIKE search2
      AND member LIKE search3.
        SELECT SINGLE * FROM modact WHERE member = modsap-name.
        IF first_row EQ 'Y'.
          WRITE: /0 tstc-tcode, 6 tstc-pgmna, 16 modsap-name, 32 modsap-typ,
                 45 modsap-member, 70 modact-name.
          first_row = 'N'.
        ELSE.
          WRITE: /16 modsap-name, 32 modsap-typ, 45 modsap-member, 70 modact-name.
        ENDIF.
        CLEAR : modsap, modact.
      ENDSELECT.
      IF sy-subrc NE 0.
        WRITE : /0 tstc-tcode, 6 tstc-pgmna, 30 'No exits found'.
      ENDIF.
      CLEAR tstc.
    ENDSELECT.
    END-OF-SELECTION.
      CLEAR: search1, search2, search3.
    Regards,
    Renjith Michael.

  • Tab Strip eventing

    Hi,
    I have 4 tabs in data container, each tab associated with different event. Whenever i click on a tab , i want to display some data on top of the tab as dispaly only.  what is the better approach?
    I am thinking to create 4 web dynpro views and based on the selected tab, i  will show that perticular view or is there any efficient way to do this instead o creating 4 web dynpro views , can i create one and flip te data based on selected event?
    Please write the detailed steps to achieve the above task?
    Thanks
    Sri

    Hi Sri,
    Instead of creating 4 views, try to use 4 different transparent containers. Place the in corresponding containers. Create 4 different context attributes of the type com.sap.tc.webdynpro.progmodel.api.WDVisibility.
    Procedure:
    Click on "..." button in the properties of the context attribute. Select Local Dictionary -> Expand uielementdefinitions ->  Select WDVisibility. 
    After binding each context attributesto the corresponding visibility property of the transparent containers.
    Use this code to change the visibility in Tab strip  event handler.
    If (selectedTab.EqualsIgonreCase("Tab1")  )
    wdContext.currentContextElement().set<conatiner1Vis>(WDVisibility.VISIBLE);
    wdContext.currentContextElement().set<conatiner2Vis>(WDVisibility.NONE);
    wdContext.currentContextElement().set<conatiner3Vis>(WDVisibility.NONE);
    wdContext.currentContextElement().set<conatiner4Vis>(WDVisibility.NONE);
    else if (selectedTab.EqualsIgonreCase("Tab2")  )
    Feel free to revert in case of any issues.
    Regards,
    Siva

Maybe you are looking for