Calling Subscreen using tabstrip control

Hello all,
I need to create a tabstrip with 2 tabs.
when i click on the first tab i need to have 4 fieldnames from EKKO.
when i click on the second tab i need to have 2 fieldname from EKPO
I have created a Tabstrip control with 2 tabs.
Subcreen area is also created in this tabstrip control.
And i have created 2 subscreens for the 2 tabs.
but i am not able to call the subcreens.
Can someone tell me how to do this.
Thanks
Harish

Hi Harish,
Chekc this
Calling subscreen in tabstrip
hope it helps.
Thanks!

Similar Messages

  • How to create subscreens in tabstrip control using  module pool

    hai experts,
    can u plz give me step by step procedure to create subscreens in tabstrip control using  module pool,

    hi,
    You can check this program
    <b>  DEMO_DYNPRO_TABSTRIP_LOCAL </b>
    This will help you in understanding the concept and how to create subscreens.
    Regards
    Nishant

  • Problem when call rfc using function control

    i try to call rfc using functin control but error "wdtfuncs error '800a03eb' Fail to call Remote Function Module" be popuped.
    my code like that:
    Set objSAPFunction = Server.CreateObject("SAP.Functions")
              Set objSAPFunction.Connection = objSAPConn.NewConnection
              IsLogOnSAP = False
              If objSAPFunction.Connection.Logon(1, True) Then
                   IsLogOnSAP = True
                   'Upload Cancel Invoice
                  Set objFunc = objSAPFunction.Add("ZRFC_SD_BILLINGDOC_GET1")
                   Set objISGR1 = objFunc.exports("DOCUMENT")
                   Set objISGR2 = objFunc.exports("COMPANYCODE")
                   Set objISGR3 = objFunc.exports("YEAR")
                   set objOSGR1 = objFunc.imports("NETVALUE")
                   set objOSGR2 = objFunc.imports("CURRENCY")
                   set objOSGR3 = objFunc.imports("DATE")
                   set objOSGR4 = objFunc.imports("CUSTOMERCODE")
                   set objOSGR5 = objFunc.imports("CUSTOMERNAME")
                   objISGR1.value = cstr(doc)
                   objISGR2.value = cstr(companycode)
                   objISGR3.value = cstr(year)
                   bResult = objFunc.Call          <<<<< Error
                   GetDataFromSAP = Array(cstr(objOSGR1),cstr(objOSGR2),cstr(InvDateFormat(objOSGR3)),cstr(objOSGR4),cstr(objOSGR5))
                   If IsLogOnSAP Then
                             objSAPFunction.Connection.Logoff
                        End If
              End If
    These code can run on the A machine, but do not run on the B machine. And both two machines have been installed SAP FrontEnd.
    which problem about it?

    To change all definition of parameters of the function from type to like may be solution.

  • Error in call subscreen..   CALL SUBSCREEN ref1.

    Hi Guru's
    i am trying to use tabstrip. initially i have created the program using tabstrip control wizard. but now the same code i am writing using tabstrip control.
    But while clicking 2nd tab i am getting errot as " Invalid field format (screen error)"
    my code is
    REPORT  ytest2.
    DATA: g_tabst_act TYPE sy-ucomm.
    CONTROLS: tabstrip_control TYPE TABSTRIP.
    DATA: BEGIN OF tabst,
          prog    TYPE sy-repid VALUE 'YTEST2' ,
          screen  TYPE sy-dynnr,
          press_t TYPE sy-ucomm VALUE 'TAB2',
          END OF tabst.
    CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'ST'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE user_command_0100 INPUT.
      CASE sy-ucomm.
        WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
          SET SCREEN 0.
        WHEN OTHERS.
          tabst-press_t = sy-ucomm.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  ACTIVATE_TABSTRIP  OUTPUT
          text
    MODULE activate_tabstrip OUTPUT.
      g_tabst_act = tabst-press_t.
      tabstrip_control-activetab = g_tabst_act.
      CASE g_tabst_act.
        WHEN  'TAB1'.
          tabst-prog   = sy-repid.
          tabst-screen = '1001'.
        WHEN  'TAB2'.
          tabst-prog   = sy-repid.
          tabst-screen = '1002'.
      ENDCASE.
    ENDMODULE.                 " ACTIVATE_TABSTRIP  OUTPUT
    screen flow logic is
    PROCESS BEFORE OUTPUT.
      MODULE status_0100.
      MODULE activate_tabstrip.
      CALL SUBSCREEN ref1 INCLUDING tabst-prog tabst-screen.
    PROCESS AFTER INPUT.
      MODULE user_command_0100.
      CALL SUBSCREEN ref1.
    Element list is..
    +           TABSTRIP_CONTROL     Tab     1     1     78     78     23
    -           TAB1     Push     1     1     4     4     1
    -           TAB2     Push     1     2     4     4     1
    -           REF1     Subsc     3     2     73     73     20
                                                                                    OK     0     0     20     20     1      OK
    Can you please help me why i am geting this error.

    Hi,
    Check have you done this .....
    "As this is done for you by the wizard, but if you are creating tab control manually you must do this....
    *&SPWIZARD: OUTPUT MODULE FOR TS 'DEAL_TABS'. DO NOT CHANGE THIS LINE!
    *&SPWIZARD: SETS ACTIVE TAB
    MODULE DEAL_TABS_ACTIVE_TAB_SET OUTPUT.
      DEAL_TABS-ACTIVETAB = G_DEAL_TABS-PRESSED_TAB.
      CASE G_DEAL_TABS-PRESSED_TAB.
        WHEN C_DEAL_TABS-TAB1.
          G_DEAL_TABS-SUBSCREEN = '0101'.
        WHEN C_DEAL_TABS-TAB2.
          G_DEAL_TABS-SUBSCREEN = '0102'.
        WHEN C_DEAL_TABS-TAB3.
          G_DEAL_TABS-SUBSCREEN = '0103'.
        WHEN C_DEAL_TABS-TAB4.
          G_DEAL_TABS-SUBSCREEN = '0104'.
        WHEN OTHERS.
    *&SPWIZARD:      DO NOTHING
      ENDCASE.
    ENDMODULE.
    *&SPWIZARD: INPUT MODULE FOR TS 'DEAL_TABS'. DO NOT CHANGE THIS LINE!
    *&SPWIZARD: GETS ACTIVE TAB
    MODULE DEAL_TABS_ACTIVE_TAB_GET INPUT.
      OK_CODE = SY-UCOMM.
      CASE OK_CODE.
        WHEN C_DEAL_TABS-TAB1.
          G_DEAL_TABS-PRESSED_TAB = C_DEAL_TABS-TAB1.
        WHEN C_DEAL_TABS-TAB2.
          G_DEAL_TABS-PRESSED_TAB = C_DEAL_TABS-TAB2.
        WHEN C_DEAL_TABS-TAB3.
          G_DEAL_TABS-PRESSED_TAB = C_DEAL_TABS-TAB3.
        WHEN C_DEAL_TABS-TAB4.
          G_DEAL_TABS-PRESSED_TAB = C_DEAL_TABS-TAB4.
        WHEN OTHERS.
    *&SPWIZARD:      DO NOTHING
      ENDCASE.
    ENDMODULE.
    Hope it helps you,
    Regards,
    Abhijit G. Borkar

  • 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 use custom control in Dialog Programming?

    How can I call a subscreen using custom control in Dialog Programming?
    The required subscreen contains a calender. Any class or something available for this purpose. Please suggest.

    As [vinraaj|http://forums.sdn.sap.com/profile.jspa?userID=3968041] wrote, call transaction SE51, there is a Wizard to help you generate the table control, it will create the table control and some includes with PBO/PAI modules > Read [Using the Table Control Wizard|http://help.sap.com/saphelp_bw/helpdata/en/6d/150d67da1011d3963800a0c94260a5/frameset.htm]
    Also there is a tutorial in the wiki, read [Learn Making First Table Control |http://wiki.sdn.sap.com/wiki/display/ABAP/LearnMakingFirstTableControl] by [Krishna Chauhan|http://wiki.sdn.sap.com/wiki/display/~nc0euof]
    Regards,
    Raymond

  • Adding tab in tabstrip control dynamically..........

    Hi ,
        I am using TabStrip control of PDK .NET. I want to add tab dynamically in tabstrip control.
    But I am getting error for any postback when I switch in between tabs.
    Error description is :
    <b>"Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index"</b>
    <b>Stack Trace:
    [ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index]
       System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index) +2382545
       SAP.Web.UI.Controls.TabCollection.get_Item(Int32 index) +6
       SAP.Web.UI.Controls.TabStrip.LoadPostData(String sPostData, NameValueCollection oPostCollection) +92
       System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +674
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2965</b>
    Any help appreciated?
    Regards,
    Prashant

    Hi Prashant,,
    your index is less than zero, the postback will not store it unless you explicitly save it using 'enable view state' for the tree control, if it is already enabled and still not working: here is the work around :-
    you can store it in a hidden input field, so that it can be retrived when you do a postback, and then reassign the current index
    it should be a relatively simple fix
    please let me know how you get along...
    with respect,
    amit

  • Calling subscreen which is part of tabstrip control

    I am trying to call a subscreen which is part of a tab control, but i keep getting the error message:  "." or "ID....FIELD..." expected after SUBSCREEN.  Here is the code: 
    CALL SUBSCREEN tab2 including zd_tabstrip 102.
    What is my mistake?

    CALL SUBSCREEN....... statement will not work inside any module. So, you need to set the screen number and than you have to set the subscreen with that screen.
    Try like:
    In your code:
    CASE ok_code.
    WHEN 'EDIT'.
    CLEAR ok_code.
    LOOP AT itab INTO wa_itab.
    IF wa_itab-mark = 'X'.
    SELECT SINGLE * FROM zdstats WHERE zplayer = wa_itab-zplayer.
    W_DYNNR = '0102'.
    ENDIF.
    ENDLOOP.
    endcase.
    In your flow logic:
    PROCESS BEFORE OUTPUT.
      CALL SUBSCREEN tab2 including zd_tabstrip W_DYNNR.
    PROCESS AFTER INPUT.
      CALL SUBSCREEN tab2.
    Regards,
    Naimesh Patel

  • Request for code on Tabstrip controls with subscreen in it.

    Hi experts,
    Can somebody please provide me the code for tabstrip controls with subscreens in it?
    Thanks,

    Hi,
    <li>Check the demo program DEMO_DYNPRO_TABSTRIP_SERVER.
    Thanks
    Venkat.O

  • Creating TabStrip control using visual composer

    Hi,
    I am NW04 version for Visual Composer. I want to create a TabStrip control on which I want to show two table from a RFC. Is there any facility available to create this like NW2004s. I found from some posts that NW04 verson doesn't have capabilities to create listbox. Or is there any patches available and after applying we will get the functionality??? Or can I install VC for NW2004s and it will be compatible with EP 6.0??
    Please suggest.
    Thanks,
    SA.

    Use layers and set the correpsonding property. Tabstrip is one of the options in 2004.
    Mario

  • Calling webservice in code using data control ADF Mobile

    Hi,
    I am calling webservice in code using data control. Below image is show my binding.
    https://www.dropbox.com/s/ufjnnd67mfaeucq/Snap%202013-05-13%20at%2011.49.17.png
    My code is :
    ValueExpression ve1 = AdfmfJavaUtilities.getValueExpression("#{bindings.WeatherDescriptionIterator}", AmxIteratorBinding.class); // Using IteratorBinding
    AmxIteratorBinding iter = (AmxIteratorBinding) ve1.getValue(AdfmfJavaUtilities.getAdfELContext());
    GenericType row = null;
    iter.getIterator().first();
    iter.release();
    for(int i = 0; i < iter.getIterator().getTotalRowCount(); i++)
    row = (GenericType)iter.getCurrentRow();
    Integer s = new Integer(i+100);
    row.setAttribute("deptId", s);
    This code is work fine in POJO data control. But When I used this code for calling webservice data control then i get following error.
    can not find property bindings.
    And I also use below code but same error occur.
    ValueExpression ve1l = AdfmfJavaUtilities.getValueExpression("#{bindings.WeatherDescription.collectionModel}", AmxCollectionModel.class); // Using CollectionModel
    AmxCollectionModel model = (AmxCollectionModel)ve1l.getValue(AdfmfJavaUtilities.getAdfELContext());
    Object[] myArr = model.getKeys();
    for (int x = 0; x < myArr.length; x++)
    Object myObj = myArr[x];
    Map provider = (Map)model.getProviders().get(myObj);
    String deptName = provider.get("deptName").toString();
    }

    !!!! IMPORTANT !!!!
    The use of +*#{data.view_FlexFieldDisplayPageDef.publicflexfieldflow1.regionModel}"*+ in your code is an *absolute no-go and serious coding issue* as there is no guarantee that this PageDef file exists in the application you use the declarative component in. Even if you don't plan to use the declarative component anywhere else, you should pass the model reference as an input attribute to the declarative component so it can be configured by each use of the component
    Frank

  • Iphone is locked with pass code but still we can make a call using voice control

    If our iphone is locked with pass code we can make a call using voice control.
    Press and Hold the Home button then you will get the Voice Control Menu.
    Choose Dial or Call then you can make call.
    Is it IOS Bugs or...

    It is a feature.
    You can disable it at Settings > General > Passcode > Voice Dial if you wish.

  • Dialog  problem using tabstrip & cl_gui_alv_grid

    Hi All,
         I have created a dialog program which has 2 tab strips. On first I am displaying data n a table control & on other tabstrip display same data using grid. Here to display data in grid I have used set_table_for_first_display of class cl_gui_alv_grid.
    The data is displayed successfully. But when I select second tab and return to first tab it still shows the grid on first tab in front.
    Kindly tell me what I am missing.
    Regards,
    Dilip
    Following is my code:
    REPORT  ZTEMP02.
    controls: tab type tabstrip,
              tab_c type tableview using screen 101 .
    data  :    cont1 type ref to cl_gui_custom_container,
              grid type ref to cl_gui_alv_grid.
    data : imara like mara occurs 1 with header line.
    data zmara type LVC_T_FCAT.
    data wa_mara like line of zmara.
    data flag .
           select * from mara into table imara up to 100 rows.
    call screen 100.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
    case sy-ucomm.
      when 'T1'.
        tab-activetab = 'T1'.
          FLAG = SPACE.
      when 'T2'.
        tab-activetab = 'T2'.
      WHEN 'EXT'.
        LEAVE PROGRAM.
    endcase.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  STATUS_0102  OUTPUT
          text
    MODULE STATUS_0102 OUTPUT.
    if FLAG is initial.
      create object :
      cont1
        exporting
           container_name = 'CONT',
      grid
        exporting
           I_PARENT = cont1.
      FLAG = 'X'.
    endif.
    call method grid->SET_TABLE_FOR_FIRST_DISPLAY
         EXPORTING
           i_structure_name = 'MARA'
         changing
           it_outtab = imara[].
    ENDMODULE.                 " STATUS_0102  OUTPUT

    Have you attached a subscreen to tab T1 .
    You will also have to use Call subscreen .

  • Error in creation of  Tabstrip Control

    Hi Guy's
    Please help me i created one sample tabstrip, when executing this program i am getting error message" SQL Error in the database when accessing a table".  Pasting my code here please help me where i did mistake. it is very urgent.
    1) IN SE-38
    tables : kna1.
    data : begin of itab occurs 0,
    land1 type LAND1_GP,
    name1 type NAME1_GP,
    end of itab.
    *& Module USER_COMMAND_0100 INPUT
    case sy-ucomm.
    when 'DISP'.
    select land1 name1 from kna1 into itab where kunnr = kna1-kunnr.
    append itab.
    endselect.
    when 'EXIT'.
    leave program.
    endcase.
    ENDMODULE. " USER_COMMAND_0100 INPUT
    *& Module STATUS_0110 OUTPUT
    MODULE STATUS_0110 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    MOVE-CORRESPONDING ITAB TO KNA1.
    ENDMODULE.
    2) IN SE51-Fow Logic and layout of Screen 100
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    CALL SUBSCREEN SUB INCLUDING 'ZSHANTHU1' '110'.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    CALL SUBSCREEN SUB.
    3) In the screen -110 Flow logic and Layout
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0110.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0110.
    Edited by: sai shanhu on Apr 11, 2008 1:32 PM

    Hi,
    From the message it seems either you are using wrong company code in Organisation data of the PO or the company code need to be assigned to country in spro-enterprise structure-Financial accounting-edit copy check company code.
    Please check this.
    Dhruba

  • 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

Maybe you are looking for

  • Opening and closing balance

    Hi experts. I am looking for a formula to calculate opening and closing balance @ query level. points are waiting.

  • A warning about your MacBook Pro (Do not let this happen to you)

    If your MacBook Pro is nearing the end of its warranty do like be like me. Purchase the extended warranty! Just before the warranty ran out on my 17" MacBook Pro in December of 2007 the NVIDEA Graphics chip set failed. (8600GT). As you will see below

  • How can I access eBay pages marked "blocked due to legal restrictions of some countries"/ All other browsers do not block.

    Using Vista Ultimate 64x and Firefox (any version) I keep hitting eBay page blocks that read "Unfortunately, access to this particular item has been blocked due to legal restrictions in some countries..." These same pages can be accessed with IE or C

  • My startup disk is showing full.

    I ran omnidisk sweeper and it shows I only have 39GB of used space.  However, when I check the info on the startup disk it shows that I only have 300mb-5GB left depending on the day.  I have deleted all unnecessary files that I can.  I can't really f

  • Opening PDF v1.6 by Acrobat 9

    Hello Friends, Have you ever met with any problems with opening PDF v1.6 (created, supported by Adobe Acrobat standard or professional 7) by Adobe Acrobat standard or professional 9 ? Theoretically appearance of such a problem is very low but maybe s