Tabstrip Control Problem

I created a form with a a two-tab tabstrip (using the wizard).  On the first tab is an ALV grid, on the second, a text field.  When I run the program and the first grid shows up with the ALV grid just fine.  When I click the second tab, however, the program just terminates.  I'm a newbie so it's probably something obvious.  Thanks in advance!

hi ,
look at this...
http://help.sap.com/saphelp_nw04/helpdata/en/04/10f2469e0811d1b4700000e8a52bed/frameset.htm
Tabstrip control
check this test code...
TABLES : VBAK ,VBAP.
CONTROLS : TAB_STRIP TYPE TABSTRIP.
CONTROLS : TAB_CNTRL TYPE TABLEVIEW USING SCREEN 0002.
DATA : OK_CODE_0101(20).
DATA : D_REPID TYPE SY-REPID,
D_SUBSCR TYPE SY-DYNNR.
DATA : D_VBELN TYPE VBAK-VBELN.
TYPES : BEGIN OF D_STRUCT,
VBELN TYPE VBELN_VA,
POSNR TYPE POSNR_VA,
MATNR TYPE MATNR,
FMENG TYPE FMENG,
NETWR TYPE NETWR_AP,
END OF D_STRUCT.
DATA : ITAB TYPE STANDARD TABLE OF D_STRUCT WITH HEADER LINE.
DATA : D_WA TYPE D_STRUCT.
*& Module GET_SCR OUTPUT
text
module GET_SCR output.
IF OK_CODE_0101 IS INITIAL.
D_SUBSCR = '0001'.
ENDIF.
D_REPID = SY-REPID.
endmodule. " GET_SCR OUTPUT
*& Module EXIT_MODULE INPUT
text
module EXIT_MODULE input.
SET SCREEN 0.
LEAVE SCREEN.
endmodule. " EXIT_MODULE INPUT
*& Module USER_COMMAND_0101 INPUT
text
module USER_COMMAND_0101 input.
case ok_code_0101.
when 'TAB1'.
D_SUBSCR = '0001'.
TAB_STRIP-ACTIVETAB = 'TAB1'.
WHEN 'TAB2'.
D_SUBSCR = '0002'.
TAB_STRIP-ACTIVETAB = 'TAB2'.
WHEN 'GET1'.
D_SUBSCR = '0002'.
TAB_STRIP-ACTIVETAB = 'TAB2'.
ENDCASE.
regards,
venkat.

Similar Messages

  • Problem in Tabstrip Control

    Hi All,
    i had created an Custom Infotype.
    In that infotype i had created Tabstrip control with 2tabs.
    Each Tab contain 4 fields.
    When creating( F5) a record in transaction PA30, it allowing me create a record and the record is available in Data base table.
    1. My doubt is, when Display the Record through F7 and Change mode (F6), Still the fields are in editable mode. But not in Display Mode ( Editable Mode ).
    How to Disable the Fields for this Tab Strip Control. I have not used any Group Field for this. Can we need to Main tain anything.
    But SAVE option is automatically disabled.Iam not able to SAVE when i press F7 but in Editable is the My Problem.
    2. And one more query is, when press F5 or F6 or F7 it is show the following message at End screen,i.e.
    Protected tab titles are not supported (tab MENU_TABSTRIP title PUSH1) . But MENU_TABSTRIP is My Tab Strip control text Name and PUSH1 is my Tab1 , Function code.
    How to remove this message.
    Points will be rewarded.
    Thanks,
    N.L.

    Hi,
    Try this ....In the Table Control, double click on a field. In the attributes make that field as output only...
    Hope it helps,
    Swathi

  • Table update problem in tabstrip control

    Hi experts.
    i have one tabstrip control having 4 tabs.
    in those tabs i am updating one table say ztable(database table).
    my problem is this is happening in pai of every tab.
    but what ever i am updateing table those changes will reflect in other tabs.
    where i have to write code like pbo or what i should do.
    what ever i am updateing in tab1 i have to see in tab2.what ever i have update i should see in tab3.
    but it is not showing the updates when we will go for other tabs.
    Thanks

    Hi,
    Please check the following things :
    1 . The Fucntion code type for each tab is blank
    2 . Same subscreen area is assigned to each tab
    3 . Corresponding subscreen is dynamically incorporated into the subscreen area CALL SUBSCREEN in the flow logic
    If you are not doing this, then you are scolling in SAP GUI, not in your program. In this case the values entered in TAB1 won't get reflected in TAB2.
    If this is the case in your program, fix the above three points. then it will work.

  • Problem in Tabstrip Control in Custom Infotype Creation

    Hi All,
    Can any body tell me how to process with Tabstrip Control in an Custom Infotype.
    Iam creating Customizing Infotype With Tabstip Control.The Tabstrip Control have 2tabs.Each tab have Custom some fields.
    But iam not able activating the sample Tabstrip control.
    Can u tell me how to approach to create this in Modulepool programming for my Custom Infotype.
    Points wil be rewarded.
    Thanks,
    N.L.Narayana

    Hello Swapna,
    Thanks for your reply.
    This is my code for tabstrip control.
    AT SELECTION-SCREEN.
    CASE SSCRFIELDS-UCOMM.
       WHEN 'BOOK'.
         tabb1-prog = 'ZAXOMM005_V1'.
         tabb1-dynnr = 1.
         tabb1-activetab = 'TABS1'.
         option = '1'.
       WHEN 'SUMM'.
         tabb1-prog = 'ZAXOMM005_V1'.
         tabb1-dynnr = 2.
         tabb1-activetab = 'TABS2'.
         option = '2'.
       WHEN 'POST'.
         tabb1-prog = 'ZAXOMM005_V1'.
         tabb1-dynnr = 3.
         tabb1-activetab = 'TABS3'.
         option ='3'.
    *CH01 start
       WHEN 'RSET'.
         tabb1-prog = 'ZAXOMM005_V1'.
         tabb1-dynnr = 4.
         tabb1-activetab = 'TABS4'.
         option = '4'.
    ENDCASE.
    case option.
      when '1'.
    IF  SSCRFIELDS-UCOMM = 'ONLI'.
       if p1_werks is initial or p1_lgort is initial or
          p1_bstar is initial or p1_gjahr is initial.
         message e000(vz) with text-001.
       endif.
    ENDIF.
      when '2'.
    IF  SSCRFIELDS-UCOMM = 'ONLI'.
       if p2_gjahr is initial.
         message e000(vz) with text-005.
       endif.
    ENDIF.
      when '3'.
    IF  SSCRFIELDS-UCOMM = 'ONLI'.
       if p3_gjahr is initial.
         message e000(vz) with text-005.
       endif.
        ENDIF.
    *CH01 start
      when '4'.
    IF  SSCRFIELDS-UCOMM = 'ONLI'.
      if s4_werks is initial or p4_gjahr is initial.
         message e000(vz) with text-001.
      endif.
      if p4_book is initial and
         p4_summ is initial.
         message e000(vz) with text-022.
      endif.
       ENDIF.
    endcase.
    I can give you some more information.
    If I execute from program it is working fine, if I execute from T.code it is not working properly.
    Regards.
    Krishna.

  • Tabstrip control  Tab line navigation button display issue

    I have a tabstrip that has more tabs than can be displayed at the top of the tabstrip control.  When this happens a navigation button appears on the far right of the tab line( the line that contains all the tabs).  This has been working fine for several years.  Recently I needed to increase the width of the tabstrip control so that it was 160 character wide.  Now when the tabstrip displays, the tab line stops displaying at around 130 characters so the navigation button no longer shows.  As it turns out, the button is still there and functions as normal, except that it cannot be seen even though there are still too many tabs to all be displayed. 
    This appears to me to be a bug in the tabstrip control, but before I start complaining to SAP I thought I would ask here to see if anyone else might know of a solution to this problem. 
    Thanks for looking.

    Hi,
    cresate a managed bean in viewScope within the parent page and pass it as an argument to the child task flow. The managed bean contains/exposes a method to hide the menu items you don't want to show (or just disable them). The child task flow then can call the managed bean (from its input parameter reference) and invoke the method (e.g. in a method call activity as the default activity of the task flow).
    See this blog entry for more details: http://one-size-doesnt-fit-all.blogspot.de/2010/09/master-child-btf-chaperone-contextual.html
    Frank

  • Module Pool (tabstrip control Error :  )

    I am trying to activate tabstrip control in module pool but error is coming like no sub screen is assigned to tabstrip pushbutton
    tab12.
    my main screen is : 0221
    flow logic for 0221 is below :
    PROCESS BEFORE OUTPUT.
    CALL SUBSCREEN SUB1 INCLUDING SY-REPID '0321'.
    CALL SUBSCREEN SUB2 INCLUDING SY-REPID '0322'.
    PROCESS AFTER INPUT.
    CALL SUBSCREEN SUB1.
    CALL SUBSCREEN SUB2.
    MODULE USER_COMMAND_0221.
    and 0321 and 0322 is subscreen and i also gave ref field sub1 and sub2 .
    can you plz help me to solve the problem ?

    Hi,
    yes i created sub screen. i am going to explain what i have done .
    step : i created screen 200 (i choose subscreen)and inside 200 i put  tabstripcontrol then in tab1 i gave ref field sub1 and tab2 i gave ref field sub2 and fatch code ic1 and ic2.
    and then i created screen 221 and 222.
    inside 200 flow logic i wrote below code but still its giving me same error.
    PROCESS BEFORE OUTPUT.
    CALL SUBSCREEN SUB1 INCLUDING SY-REPID '0221'.
    CALL SUBSCREEN SUB2 INCLUDING SY-REPID '0222'.
    PROCESS AFTER INPUT.
    CALL SUBSCREEN SUB1.
    CALL SUBSCREEN SUB2.
    MODULE USER_COMMAND_0221.
    i dont know is it required to make any normal screen .
    please try to give me ans as soon as possible.

  • Screen error in tabstrip control

    hi all,
    I'm practicing a program for Tabstrip control.
    it will be like this
    tab1           tab2
    number1    result
    number2
    number1 number2 result are of integer data types.
    now the problem is
    the program is giving result when I declare the above variables as char...that to with some limit.
    but if the varilable are of type int program is givng an error called screen error.
    why this is happening ?
    whats the solution for it?
    points assured,
    Usha.

    HI,
    try like this...
    1.goto that perticular Screen Element List, there you will find a tab General Attributes.
    2.In that change the Format Column for that perticular field from CHAR to INT1 ( by default it will take as CHAR ).
    now you will not get any error.
    Regards,
    Sathish Reddy.

  • Tabstrip control issue, screen freezes

    I have a Screen with a tabstrip control with 4 tabs.  It will let me select tab 1, tab 2, tab 3, and tab 4, but when tab 4 is selected, and i click another tab, the screen freezes, and will not allow me to get out, what is the problem?

    Can you send the code ,may after the tab 4 is selected ,you are not activating the tab or no screen is attached.

  • Status icons on tabstrip controls

    Hello
    I have a problem displaying the status icon on a tabstrip control.
    I've created an infotype. On the tabstrip control, I've added texteditors and status icons.The status icon is there as an indication to state whether there is information populated in the texteditor.
    The texteditors all have information populated in them. Whenever I run the infotype on PA30, the status icon does not appear. It only appears when I click on the texteditor button which is not what i want it to do.
    On PA30,I would like the ICON to appear when there is information in the texteditor and not when I click on the texteditor button.
    Please advice me on how to fix this problem.
    Thanks
    Adhil Ramruthan

    REPORT  ZICON_CONTROL.
    tables: icon.
    controls: tc type tableview using screen 100.
    data: begin of it_data occurs 0,
           icon(4),
           value(02),
          end of it_data.
    "Based on condion you populate the ICON data here
    "if the case is editable and then you have to do the same in PBO
    it_data-icon = '@0A@'."ICON_RED_LIGHT.
    it_data-value = '00'.
    append it_data.
    it_data-icon = '@08@'. "ICON_GREEN_LIGHT.
    it_data-value = '01'.
    append it_data.
    call screen 100.
    *&      Module  transfer_data  OUTPUT
    *       text
    module transfer_data output.
    read table it_data index tc-current_line.
    endmodule.                 " transfer_data  OUTPUT
    Flow logic.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    loop at it_data with control tc.
      module transfer_data.
    endloop.
    PROCESS AFTER INPUT.
    loop.
    endloop.
    MODULE USER_COMMAND_0100.

  • Tabstrip Controls Einfügen

    Hallo,
    ich habe ein kleines Problem mit dem Tabstrip Control im SUD Editor.
    1. Welches ActiveX Control ist am besten geeignet?
    2. Wenn ich anderes Controls einen Tabtrip zuordnen, ich habe das Problem das der Tabstrip immer im Vordergrund ist und eine einstellung wie zOrder habe ich nicht gefunden. Ich schätze das es irgendwie mit der Layersteuerung funktioniert, aber leider hatt bisher alles nicht funktioniert.
    Über eine kleine Hilfestellung oder Gedankenanregung würde ich mich freuen.
    Viele Grüße
    Axel Manz

    Hallo Herr Manz,
    Sie haben Recht, so etwas programmiert man am Besten über die Layers des Dialogs. Ich lade dazu mal ein kleines Beispiel hoch, es simuliert eine Art TabControl - vielleicht können Sie es ja direkt anwenden.
    Allgemein kann der Z-Index der Bedien- und Anzeigeelemente über die Tabulatorreihenfolge festgelegt werden (Kontextmenü...) Das wirkt sich aber erst bei laufendem Dialog aus, und nicht in der Entwicklungsumgebung.
    Ingo Schumacher
    Applications Engineering
    National Instruments
    Attachments:
    TabControl.sud ‏13 KB

  • How can i hide a tabstrip control

    On my screen there are a pushbutton and a tabsrtip control which contain two tabs.
    initial,the tabstrip is visible,and the button with icon_collapse icon.
    then,i click the button ,and the tabstrip must be invisible,and the button's icon will change to icon_expand.
    if i use screen-name conditions to set the tab invisible,but the tabstrip has a shadow on the screen.the color of the space obtained by the tabstrip is different with other space's color.
    How can i set the color same with other if i want to hide the tabstrip.
    ths very much.

    see the example of custom tabstrip control for 0591 infotype
    MODULE ztab_strip_active_tab_set OUTPUT.
       IF  psyst-dsubt EQ 'BNPF'.
         g_ztab_strip-pressed_tab = c_ztab_strip-tab2.
         LOOP AT SCREEN.
           IF screen-group4 = '060'.
             screen-active = 0.
             MODIFY SCREEN.
           ENDIF.
         ENDLOOP.
       ELSEIF  psyst-dsubt EQ 'BNES'.
         g_ztab_strip-pressed_tab = c_ztab_strip-tab1.
         LOOP AT SCREEN.
           IF screen-group4 = '050'.
             screen-active = 0.
             MODIFY SCREEN.
           ENDIF.
         ENDLOOP.
       ENDIF.
       IF   psyst-dsubt NE 'BNPF' AND psyst-dsubt NE 'BNES'.
          LOOP AT SCREEN.
           IF screen-group4 = '050'.
             screen-active = 0.
             MODIFY SCREEN.
           ENDIF.
         ENDLOOP.
          LOOP AT SCREEN.
           IF screen-group4 = '060'.
             screen-active = 0.
             MODIFY SCREEN.
           ENDIF.
         ENDLOOP.
         g_ztab_strip-pressed_tab = ' '.
       ENDIF.
       ztab_strip-activetab = g_ztab_strip-pressed_tab.
       CASE g_ztab_strip-pressed_tab.
         WHEN c_ztab_strip-tab1.
           g_ztab_strip-subscreen = '0201'.
         WHEN c_ztab_strip-tab2.
           g_ztab_strip-subscreen = '0203'.
         WHEN OTHERS.
           g_ztab_strip-subscreen = '0202'.
       ENDCASE.
    ENDMODULE.                    "ZTAB_STRIP_ACTIVE_TAB_SET OUTPUT
    check this for hiding one tabstrip in one subtype and another in next subtype

  • How to insert tabstrip control in module pool screen painter

    Hi all!
    plz tell e how to use tabstrip control in module pool screen painter.Also plz give me an example program using tabstrip control.

    To insert tabstrip just open layout of screen and press on the tabstrip button there .
    Use this souce code further to activate it .
    CONTROLS tabstrip TYPE TABSTRIP.
    DATA: okcode TYPE sy-ucomm,
    dynnr TYPE sy-dynnr,
    flag type flag,
    active like tabstrip-activetab .
    call SCREEN 100.
    *& Module USER_COMMAND_0100 INPUT
    text
    MODULE USER_COMMAND_0100 INPUT.
    data: lv_okcode type syucomm.
    lv_okcode = okcode.
    clear okcode.
    case lv_okcode.
    WHEN 'TAB1'.
    dynnr = '0110'.
    WHEN 'TAB2'.
    dynnr = '0120'.
    WHEN 'TAB3'.
    dynnr = '0130'.
    WHEN 'TAB4'.
    dynnr = '0140'.
    WHEN 'TAB5'.
    "check authorization, if authorization fails
    flag = 'X'. "set the global flag
    active = 'TAB1'. "store active tab in global variable
    dynnr = '0110'. "set the screen number
    WHEN 'BACK' or 'EXIT'.
    leave program.
    ENDCASE.
    IF lv_okcode(3) = 'TAB'.
    tabstrip-activetab = lv_okcode.
    ENDIF.
    ENDMODULE. " USER_COMMAND_0100 INPUT
    *& Module STATUS_0100 OUTPUT
    text
    MODULE STATUS_0100 OUTPUT.
    SET PF-STATUS 'MAIN'.
    SET TITLEBAR 'xxx'.
    IF tabstrip-activetab IS INITIAL OR
    dynnr IS INITIAL.
    tabstrip-activetab = 'TAB1'.
    dynnr = '0110'.
    ENDIF.
    "set the activetab explicilty here
    if flag eq 'X'. "from authorization failure
    tabstrip-activetab = active. "'TAB1'
    clear flag.
    endif.
    ENDMODULE. " STATUS_0100 OUTPUT

  • How to hide tabstrip Control at runtime?

    hi to all.
    i used a tabstrip control in my screen.
    i want to make my tabstrip visible or invisible based on t-code
    for my screen.
    it will be total based on t-code.
    if i will enter t-code zins11 it will show me tabstrip for screen 100.
    if i will enter t-code zins12 it will hide me tabstrip for screen 100.
    Reply me.
    thanks.

    If you don't mind seeing the blank grey Tab Strip control box and simply hiding the tabs, this code will help.
      LOOP AT SCREEN.
        IF screen-name CP 'TS_TEST1_TAB*'.
          screen-active = 0.
          modify screen.
        ENDIF.
      ENDLOOP.
    where my Tab Strip name was 'TS_TEST1

  • User Account Control Problems with Premier Elements 7 32 bit in 64 Bit Windows 7

    I found User Account Control Problems in other forums but didn't see much in Premiere Elements, so I hope this helps others who may be having problems with 32 bit programs in a 64 bit computor. When I first got my 64 bit I didn't have problems.
    Back in February I bought a Quad Core Desktop with Windows 7 64 bit. Haven't been on the forum for 7 months since I wrote in regarding importing video with the Pyro AV Link (Premiere Elements Tips and Tricks). I was having problems importing video which started after March 28 sometime, as that was the last time I didn't have a problem importing VHS. Took me a few months off and on to find out what worked.
    I started uninstalling Windows updates and any programs I had installed back to that point in time. Checked after uninstalling each item. The capture screen would come up on a delayed basis but clicking on capture did nothing. Although no driver is required for IE1394 (so they say) I read where some people using the Legacy driver had fixed some problems, so I switched to the Legacy. Seemed to work great (for a few minutes).
    I had even uninstalled and reinstalled PE7 but no difference. Finally I noticed a shield in the PE7 Desktop icon. Thats weird. Never had that before. Just decided to show up after I had done all of the stuff I mentioned. Turns out at some point in time since I've had the computor Windows 7 decided to flag my 32 bit program as misusing the 64 bit system. User Account Control. I never bothered too much with UAC and just clicked on the yes box wen it popped up asking if I wanted this or that to take control of my computor. I tried using the minimum setting for safety reasons, and then finally turned User Account Control off. Bingo! PE7 capture works again and still working.
    While I am not recommending that people arbitrarily turn UAC off, this appeared to be my problem. I would recommed that they try turning it off before uninstallin a bunch of stuff. Having a restore point may or may not have been a fix for me. I think one of the Windows Updates caused the problem but I am not going to uninstall any more stuff at this point, I have not been back on the internet or installed any more updates in my desktop. I am going to use my laptop for internet and used the desktop for video.
    I am guessing this could be a problem for any 64 bit systems trying to use 32 bit programs. IE: XP,Vista,Windows 7 64 bit. In Vista there is also Data Execution Prevention (DEP) which you can turn on or off, supposedly to prevent misuse of memory (as I understand it), but Win7 either doesn't have it or I haven't found where it's located.
    Maybe this has been covered in the forum somewhere and I missed reading it. Hope I am not too confusing. Anyway, whatever feedback you guys have would be great.  

    John,
        Thanks for your answer, and I did check out the link you suggested. However, I have Windows 7 Home Premium as most people have I think, and the XP program was not available. I started with Vista and now have Win 7. I never could navigate around in XP anyway so am content to just leave User Account Control off.
        Interesting side note to turning UAC off is that my desktop seemed to be using more of the CPUs, where half of them were "Parked" as I wrote in also about 7 months ago when I 1st got my desktop. I am pleased to say that video processing seems to go quicker with UAC off. Have to observe things some more to confirm.
        I just thought if others were having problems after installing Windows Updates and leaving UAC off worked then they could possibly pinpoint a problem.

  • Query about TABSTRIP Control within Sub screen

    Hi Expert,
    I have requirement like follows:
    In IW32->Enhancement Tab screen is as subscreen and No: 0900.
    Now I want to have 2 different sub screen say 0910 and 0920 each of this for different purpose according to
    Order Type as per clients requirement.
    Actaully I have developed screen 0900 already for some order type and now clients requirement changed i.e.
    there are 2 different groups of Order types (say Grp1 and Grp2)
    So, I proposed a solution for this as follows:
    In Enhancement Tab of IW32 according to group of Order Type (either Grp1 or Grp2) only you will be able to
    see fields for that perticular Grp either of 2.
    Technical Solution is like...
    1) I thought that I will create 2 subscreens say 0910 and 0920.
    2) In 0910 i will insert all those fields which are designed already in 0900 which is for Grp1
    3) and for Grp2 i will design 0920
    4) according to Order Type only 0910 or 0920 client will be able to see.
    Now I got stuck in between the screen development for 0920 because there are so many fields and i said to
    client that they will be able to see those fields in different Tab strips.
    I never worked on Tab Strip concept, I search so many forums and sites for Lesson on Tab Strip but not
    understood how to proceed as per my specific requiment.
    Please can anyone suggest me how to proceed further.
    Thanks in advance.
    Regards,
    Jay.

    There's no reason why you couldn't do it.
    A tabstrip control is simply made of a subscreen area and a "tabstrip" above, where each tab corresponds to a button/function code. You have 2 ways to define/program it, "local" or "server", the difference being a better performance with the "local" (interesting in slow WAN).
    In ABAPDOCU demos, you have 2 programs DEMO_DYNPRO_TABSTRIP_LOCAL and DEMO_DYNPRO_TABSTRIP_SERVER.
    Sandra

Maybe you are looking for

  • Accidental install of malware/spyware

    i know that there is little to no spyware/malware threat for a mac user. but if the user installs it himself without knowing what it actually is, it can still get onto the user's system. I am that user. I downloaded something and installed it, i don'

  • OEM grid 11 installation on windows server 2008

    Hi , We have a 64 Bit windows 2008 server , on which we need to install OEM grid 11. For this we will be using : OEM 11 for windows 32 bit Oracle 11gr2 windows 32 bit Weblogic server 32 bit. the instalation order would be : 1.Weblogic 2. Database 3.

  • Unable to install on ibook G4

    I'm having some issues installing leopard onto my old ibook. I believe it meets all the requirements: 1.33 GHz PowerPC 1.5 GB DDR SDRAM Its been idle for awhile, but I believe that I have all the available updates to make it leopard ready. When I att

  • Adding additional components and installation path problem

    Howdy, Background: In our organization we have 5 schools on 5 different locations and 5 seperated networks & AD-structures. We install our clients (over 2000 laptops) with the help of ghost images containing most of the necesary software, including A

  • Unable to Make Purchases or Add Items to Cart After iTunes 7.6 Upgrade

    After upgrading to iTunes 7.6, I'm unable to purchase anything (either by adding to my cart or using the 1-click purchase), nor am I able to subscribe to any podcasts. If I wait long enough I get the following HTTP error: "Could not add an item to yo