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

Similar Messages

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

  • I am have problems with the ipad mini, it is a little crazy. It controls by itself, opens and closes application zooms in and out, end my facetime calls, Also Un certain part of the screen is no longer responsive to the touch.

    I am have problems with the ipad mini, it is a little crazy. It controls by itself, opens and closes application zooms in and out, end my facetime calls, Also Un certain part of the screen is no longer responsive to the touch, it Should be having so much problems. Thanks for your help.
    iPad, iOS 7.0.4

    Try reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

  • 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

  • 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

  • A module reported an error 0x80004005 from call back which was running as part of rule

    Hi 
    a module reported an error 0x80004005 from call back which was running as part of rule. with event id 4503this error shown since delta monitor is enable!thanks

    Hi,
    What is your SCOM version, would you please try to install the newest update, and check the result.
    And here is a similar thread, please refer to it:
    http://social.technet.microsoft.com/Forums/en-US/28516ca3-ae97-49a2-bb72-d6814750813f/scom-warnings-and-errors-event-id-4503-10703-1103-and-10102?forum=exchangesvradminlegacy
    Regards,
    Yan Li
    Regards, Yan Li

  • 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

  • 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

  • Callin two different subscreens which belong to different function groups

    hi,
    I have a  main screen which contains two subscreens say 'sub1' and 'sub2'. This main screen is part of the function group say 'A'. 'sub1' is also part of this function group 'A' and hence i am able to get the data. But, 'sub2' is part of the function group 'B'. So when i call this subscreen i am unable to fetch the data. So, i wanted to know is there any way to fetch the data from the function group "B" and display it in the subscreen of function group "A".
    i wrote the codes like this:
    PBO:
    CALL SUBSCREEN sub1
            INCLUDING 'SAPLZNEW_ORDER' c_sub1.
      CALL SUBSCREEN sub2
            INCLUDING 'SAPLZ_CONTENT' c_sub2.
    PAI:
    call subscreen sub1.
    call subscreen sub2.
    The above is not working because the internal tables get refreshed when the call to subscreen 'sub2' is done.
    Help will be appreciated with points.
    Thanks.

    Hi
    U have to create 2 fm in function group B:
    - one to transfer the data from main screen (so fg A) to subscreen SUB2 (so fg B)
    - one to return the data from subscreen SUB2 (so fg B) to main screen (so fg A).
    PROCESS PBO.
      CALL SUBSCREEN sub1 INCLUDING 'SAPLZNEW_ORDER' c_sub1.
      MODULE TRANSFER_DATA_TO_SUB2.
      CALL SUBSCREEN sub2 INCLUDING 'SAPLZ_CONTENT' c_sub2.
    PROCESS PAI.
      call subscreen sub1.
      call subscreen sub2.
      MODULE GET_DATA_FROM_SUB2.
    So u need to insert a module before calling subarea SUB2 in order to transfer the data:
    MODULE TRANSFER_DATA_TO_SUB2.
       CALL FUNCTION 'Z_SET_DATA'
           EXPORTING
    ENDMODULE.
    The IMPORTING paramenter of this new fm has to allow to transfer all data u need to manage the subscreen of SAPLZ_CONTENT.
    Here u can insert all code in order to fill the input/output field of subscreen.
    In PAI u can insert another fm in ordert to get the data setted in subscreen of SAPLZ_CONTENT':
    MODULE TRANSFER_DATA_TO_SUB2.
       CALL FUNCTION 'Z_GET_DATA'
           IMPORTING
    ENDMODULE.
    The EXPORTING paramenter of this new fm has to allow to transfer all data u need to manage in main screen.
    It's import both function modules belong to the function group Z_CONTENT.
    Max

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

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

  • 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

  • Any suggestions to avoid refreshing of TabPanel content of TabStrip control?

    Hello,
    I am using sap.ui.commons.TabStrip to toggle different views. The content displayed in TabPanel is included into iframe to avoid naming collision might happened in distributed environment. Due to the internal mechanism of TabStrip control, if the content of iframe is not saved and user toggle to another view, when he comes back, the iframe will be refreshed and unsaved content will be lost.
    Take the example below, iframe has been used in Tab1 to avoid naming collision, once user switch to Tab2, the TabStrip control will move content "<iframe src='test.html'></iframe>" in DIV of Tab1 into the hidden div with ID "sap-ui-preserve" and remove the DIV of Tab1. Once user switches back to Tab1, the DIV of Tab1 is reconstructed with content in div "sap-ui-preserve", refreshing occurs and filled content by user disappears. To avoid this, we have to use DIV to replace iframe, which means SPA, but there might be naming collision when there are 5-6 tabs and the tab content are developed by different developers.
    I checked other Tab controls, the Div of tab1 will be simply hidden with CSS, refreshing would not occur. Any other reasons to reconstruct the content of invisible Tabs? Or any suggestions if we continue to use UI5 control "TabStrip"?
    var oTabStrip = new sap.ui.commons.TabStrip({width:"500px",height:"380px"});
    var oTab1 = new sap.ui.commons.Tab();
    oTab1.setTitle(new sap.ui.core.Title({ text: "iframeTab" }));
    var oHtml = new sap.ui.core.HTML({ content: "<iframe src='test.html'></iframe>" });
    oTab1.addContent(oHtml);
    oTabStrip.addTab(oTab1);
    var oTab2 = new sap.ui.commons.Tab();
    oTab2.setTitle(new sap.ui.core.Title({ text: "inputTab" }));
    oHtml = new sap.ui.core.HTML({ content: "<input type='text'></input>" });
    oTab2.addContent(oHtml);
    oTabStrip.addTab(oTab2);
    oTabStrip.placeAt("content");
    Thanks a lot for any suggestions or comments!
    Patrick

    Hello Sakthivel,
    Thanks for the reply! The background is we are using UI5 to implement one SRM application, and which is developed by 20 developers. For individual page, one part is developed by application developers and shell by framework developers, application UI is embedded in the shell.there is requirement to access the control and set the attributes in different js files.
    For the shell, it's developed with declarative view, there isn't way to choose the control without ID. For application UI, without ID, variable of control have to be global variable to allow others' code to access.
    Regards,
    Patrick

  • TABSTRIP Control - Input event

    Hi,
    I'm quite naive to GUI based programming. My question reg. Tabstrip control is, <i>'Does selecting a Tab trigger the PAI modules?'</i>.  It doesn't seem to and the Active Tab, value is not stored correctly in the Global variables (I used wizard to create the controls).
    So, on refresh of control, it displays the first tab always. Can anyone help me out on this?
    Thanks & regards,
    Sree

    Check this code  sample
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap-code-samples/alv-grid/abap code sample for tab strip in alv.pdf
    In this part u can change the default tab by passing the corresponding tabname
    CONTROLS: main_tab TYPE TABSTRIP.
    DATA: BEGIN OF i_main_tab,
    subscreen LIKE sy-dynnr,
    prog LIKE sy-repid VALUE
    'ZZZ_TEST',
    pressed_tab LIKE sy-ucomm <b><u>VALUE c_main_tab-tab1</u>,</b>
    Change this bold part so that u can change the default tab.
    END OF i_main_tab

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

Maybe you are looking for