Tab strip in module pool

please tell me how to use tabstrip in module pool with small example

REPORT demo_dynpro_tabstrip_server.
CONTROLS mytabstrip TYPE TABSTRIP.
DATA: ok_code TYPE sy-ucomm,
      save_ok TYPE sy-ucomm.
DATA  number TYPE sy-dynnr.
mytabstrip-activetab = 'PUSH2'.
number = '0120'.
CALL SCREEN 100.
MODULE status_0100 OUTPUT.
  SET PF-STATUS 'SCREEN_100'.
ENDMODULE.
MODULE cancel INPUT.
  LEAVE PROGRAM.
ENDMODULE.
MODULE user_command INPUT.
  save_ok = ok_code.
  CLEAR ok_code.
  IF save_ok = 'OK'.
    MESSAGE i888(sabapdocu) WITH 'MYTABSTRIP-ACTIVETAB ='
                                  mytabstrip-activetab.
  ELSE.
    mytabstrip-activetab = save_ok.
    CASE save_ok.
      WHEN 'PUSH1'.
        number = '0110'.
      WHEN 'PUSH2'.
        number = '0120'.
      WHEN 'PUSH3'.
        number = '0130'.
    ENDCASE.
  ENDIF.
ENDMODULE.

Similar Messages

  • Tab option in Module pool.

    Hey,
    I want to incorporate tab functionality for my module pool programming. Can anyone tell me if there is any way I can achieve this.
    -- Thanks in advance.

    hi jaspreet,
    try to read help..on
    http://help.sap.com/saphelp_47x200/helpdata/en/a9/8bec2390a811d1b4640000e8a52bed/content.htm
    you can have my program code  for check it.
    coding in main screen of program.
    PROCESS BEFORE OUTPUT.
      MODULE status_0101.
      MODULE tabstrp_active_tabstr_set.
      Module set_attributes.
    CALL SUBSCREEN subscreen1 INCLUDING g_tabstrp-prog g_tabstrp-subscreen.
    PROCESS AFTER INPUT.
      module exit_trans at exit-command.
      CALL SUBSCREEN subscreen1.
      MODULE tabstrp_active_tabstr_get.
      MODULE user_command_0101.
    coding in module pool program.
    *********constant declearation****************
    CONSTANTS: BEGIN OF C_TABSTRP,
                 TAB1 LIKE SY-UCOMM VALUE 'MAIN',
                 TAB2 LIKE SY-UCOMM VALUE 'DETL',
                 TAB3 LIKE SY-UCOMM VALUE 'HEAD',
               END OF C_TABSTRP.
    CONSTANTS : C_X TYPE C VALUE 'X'.
    *********control declearation****************
    CONTROLS : TABSTRP TYPE TABSTRIP,
                TABLE_CONTROL TYPE TABLEVIEW USING SCREEN 0103.
    data declearation*****************
    DATA :  BEGIN OF G_TABSTRP,
                 SUBSCREEN   LIKE SY-DYNNR,
                 PROG        LIKE SY-REPID VALUE 'Z11SY_TABSTRIP_PO_PRINT',
                 PRESSED_TAB LIKE SY-UCOMM VALUE C_TABSTRP-TAB1,
            END OF G_TABSTRP.
    *&      Module  tabstrp_active_tabstr_set  OUTPUT
          text
    MODULE TABSTRP_ACTIVE_TABSTR_SET OUTPUT.
      TABSTRP-ACTIVETAB = G_TABSTRP-PRESSED_TAB.
      CASE G_TABSTRP-PRESSED_TAB.
        WHEN C_TABSTRP-TAB1.
          G_TABSTRP-SUBSCREEN = '0102'.
          CLEAR Z11SY_PO_HEADER.
        WHEN C_TABSTRP-TAB2.
          G_TABSTRP-SUBSCREEN = '0103'.
        WHEN C_TABSTRP-TAB3.
          G_TABSTRP-SUBSCREEN = '0104'.
        WHEN OTHERS.
      ENDCASE.
    ENDMODULE.                 " tabstrp_active_tabstr_set  OUTPUT
    *&      Module  tabstrp_active_tabstr_get  INPUT
          text
    MODULE TABSTRP_ACTIVE_TABSTR_GET INPUT.
      CASE OK_CODE_0101.
        WHEN C_TABSTRP-TAB1.
          G_TABSTRP-PRESSED_TAB = C_TABSTRP-TAB1.
        WHEN C_TABSTRP-TAB2.
          G_TABSTRP-PRESSED_TAB = C_TABSTRP-TAB2.
        WHEN C_TABSTRP-TAB3.
          G_TABSTRP-PRESSED_TAB = C_TABSTRP-TAB3.
      ENDCASE.
    ENDMODULE.                 " tabstrp_active_tabstr_get  INPUT
    reward is useful,
    thanks in advance..:-)
    regards,
    Sandeep

  • How to add TAB functionality in module pool screen

    Hi,
    I have created a screen with two fields(input/output).My requirement is generally cursor is in the first field when user pressed TAB key then cursor has to move to second field.How can i fulfil this requirment.
    Thanks,
    shyla

    Hi,
    If u have created your input filed (Input/Output-Se51) field in screen layout then it will automatically jump to next input field when u press enter.
    Chk it out.

  • Call report selection screen in module pool program with tab strip control

    Hi,
    Could anyone explain in detail to call report selection screen in module pool program with tab strip control.
    Thanks
    Mano

    Hi,
    Refer std program:
    demo_sel_screen_in_tabstrip.
    demo_sel_screen_with_tabstrip.
    Call your program with SUBMIT stmt form module program.
    Reward points if this Helps.
    Manish

  • Tab key does work in module pool

    Dear,
    Please, someone already passed or saw the following situation:
    In a module pool Z, in a tab item creation (there are several columns to be filled), pressing the TAB key, the cursor is directed to the next empty field, the moment presciono the enter key or realize any screen action and I try to fill the second line, to add one more item, the TAB key does not "work" properly, where the scrollbar should follow the cursor.
    I checked the characteristics of the screen.
    Thanks

    Dear,
    Please, someone already passed or saw the following situation:
    In a module pool Z, in a tab item creation (there are several columns to be filled), pressing the TAB key, the cursor is directed to the next empty field, the moment presciono the enter key or realize any screen action and I try to fill the second line, to add one more item, the TAB key does not "work" properly, where the scrollbar should follow the cursor.
    I checked the characteristics of the screen.
    Thanks

  • Module pool. error while navigating between tabs in tabstrip

    Hi all,
    in the module pool program, when i navigate from one tab to another it is giving me an error saying "Illegal value when compressing the screen". what might be the reason?
    Thanks

    Hi,
    Check out the dimensions of the subscreen. May be its bigger than your subscreen area.
    Regards,
    Naga Sai Swapna

  • Default values in module pool screen issue

    Hello,
    I have 6 input fields in one of my module pool tab-strip. I can able to populate default values in 4 fields, but 2 fields are not showing default value on the screen. I am passing these default value for all 6 fields in PBO module of that screen. My question is, why only these 2 fields are not showing default values on the screen?
    Thanks,
    Shree

    Edgar,
    Thanks for the reply, I checked again, the screen fields and variables name is exactly same.
    Here is the sample code:
    MODULE status_2050 OUTPUT.
      gv_id_no_2050 = '200'.
      gv_matnr_2050 = '232020191'.
      gv_ebeln_2050 = '20019100'.
      gv_qty_2050 = 3.
      gv_bukrs_2050 = 'JP01'.
      gv_comments_2050 = 'my comments here'.
    ENDMODULE.

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

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

  • Module pool - subscreen

    Hi
    I am using module pool. I have a main screen with tab strip & two buttons (Save & Edit ).
    Now I want following functionality.
    when user clicks on "Edit" on (main screen) some I/O elements on sunscreen should be active
    and when user clicks on "Save" on (main screen) those I/O elements on sunscreen should be deactivated.
    How to do this , as sunscreen do not have okcode - how to capture user command

    You can use the Ok-code value in the PBO of your subscreen to hide/unhide the fields, provided you are not clearing the ok-code in the main screen's PAI.
    If you are, use a variable to hold the value, such as this:
    IF ok-code = 'EDIT'.
    variable = 'E'.
    and use the value of this variable in your subscreen's PBO to change the screen elements.
    Hope this helps.
    Sudha

  • I want to go back from mandatory field in module pool program

    Hi
    i am doing tab strip control in module pool program.i want to go back from the selection field, which is a mandatory, to the main program by pressing f3.but i am nt able to get the output.can anybody pls help me.
    Amayika

    Hi
    1. For your BACK or CANCEL button on menu bar, give Button
    Ftype "E".
    2. In PAI : Write below Modules.
    PROCESS AFTER INPUT.
    MODULE CANCEL AT EXIT-COMMAND.
    MODULE BACK AT EXIT-COMMAND.
    double click on it.Inside of modules write below code.
    MODULE CANCEL INPUT.
    IF OK_CODE = 'CANCEL'.
    CLEAR OK_CODE.
    LEAVE PROGRAM.
    ENDIF.
    ENDMODULE.
    MODULE BACK INPUT.
    IF OK_CODE = 'BACK'.
    CLEAR: OK_CODE, INPUT1, INPUT2.
    LEAVE TO SCREEN 100.
    ENDIF.
    ENDMODULE.

  • Module Pool Text Editor Problem

    Hi
    I have developed module pool program which has 3 tab strips. In the last (3rd) Tab Strip I need to input Long Text. I have the done the coding but when I go to the Last tab and then come back to any other tabs, the text editor is overwriting the other fields in the other tabs. Can any tell how to solve this problem
    This is he code I have written
    ****90000******Screen
    PROCESS BEFORE OUTPUT.
      MODULE status_9000.
      MODULE modify_screen9000.
    module test_me.
      LOOP AT t_operation INTO s_operation WITH CONTROL toperation.
        MODULE move_data.
        MODULE modiy_screentblctrl.
      ENDLOOP.
      CALL SUBSCREEN sub1 INCLUDING sy-repid '9001'.
      CALL SUBSCREEN sub2 INCLUDING sy-repid '9002'.
      CALL SUBSCREEN sub3 INCLUDING sy-repid '9003'.
    PROCESS AFTER INPUT.
      MODULE cancel AT EXIT-COMMAND.
      CHAIN.
        FIELD zaodheader-heatnum MODULE check_heatnumber.
      ENDCHAIN.
      LOOP AT t_operation.
        MODULE update_itab.
      ENDLOOP.
      MODULE user_command_9000.
      CALL SUBSCREEN sub1.
      CALL SUBSCREEN sub2.
      CALL SUBSCREEN sub3.
    **************9003*****
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_9003.
      MODULE display_texteditor.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_9003.
    **************9003*****
    DATA : ccont TYPE REF TO cl_gui_custom_container,
           tedit TYPE REF TO cl_gui_textedit.
    MODULE display_texteditor OUTPUT.
      CREATE OBJECT ccont
      EXPORTING
    parent =
      container_name = 'CC'
    style =
    lifetime = lifetime_default
    repid =
    dynnr =
    no_autodef_progid_dynnr =
      EXCEPTIONS
      cntl_error = 1
      cntl_system_error = 2
      create_error = 3
      lifetime_error = 4
      lifetime_dynpro_dynpro_link = 5
      OTHERS = 6 .
      IF sy-subrc <> 0.
      ENDIF.
      CREATE OBJECT tedit
      EXPORTING
    max_number_chars =
    style = 0
    wordwrap_mode = wordwrap_at_windowborder
    wordwrap_position = -1
    wordwrap_to_linebreak_mode = false
    filedrop_mode = dropfile_event_off
      parent = ccont
    lifetime =
    name =
      EXCEPTIONS
      error_cntl_create = 1
      error_cntl_init = 2
      error_cntl_link = 3
      error_dp_create = 4
      gui_type_not_supported = 5
      OTHERS = 6.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDMODULE. " DISPLAY_TEXTEDITOR OUTPUT
    Edited by: kumar1819 on Apr 7, 2010 8:05 AM
    Solved

    Hi kumar,
    **************9003*****
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_9003.
    Case SY-UCOMM.
    When 'TAB2'.
    Call screen 9002.
    **************9003*****
    In 9001 and 9002 screen what code u r writing.
    Regards,
    Raj.

  • Module pool subscreen issue

    Hi
    I my module pool application, I have a tab strip having 4 tabs designed in local scrolling (PAI). But after entering some values on tab 1 , when I navigate to tab 2, the gui components of tab1 also appear on tab2  and screen becomes messed up.
    How to correct it?
    Regards
    Vishal Kapoor

    Hi,
    Just check if u are using same subscreen area and calling the same subscreen in all of them..
    If u use different subscreen area for each tab then try this:
    Pbo.
    Call subscreen subarea1
    Including sy-cprog ‘subscno’.
    Call subscreen subarea2
    Including sy-cprog ‘subscno’.
    Call subscreen subarea3
    Including sy-cprog ‘subscno’.
    Pai.
    Call subscreen subarea1.
    Call subscreen subarea2.
    Call subscreen subarea3.
    If u are using same subscreen area for all tabs then try this :
    Data dynnr type sy-dynnr.
    Pbo.
    Case my_tab-activetab.
    When ‘fc1’.
    Dynnr = ‘subscno1’.
    When ‘fc2’.
    Dynnr = ‘subscno2’.
    When ‘fc3’.
    Dynnr = ‘subscno3’.
    Endcase.
    Pai.
    Case ok_code.
    When ‘fc1’ or ‘fc2’ or ‘fc3’.
    My_tab-active tab = ok_code.
    Endcase.
    hope it helps.
    reward if useful.

  • How to disable ikons on the Application tool bar in module pool

    Hi Guys,
    I am working in module pool.
    I had three ikons on the Application tool bar .
    i am creating transactions for create,change and display.
    for display transaction i want to disable the ikons on the Application tool bar .
    Can any one help me in this regard.
    Regards
    Ram
    Message was edited by:
            ram kumar

    Hi
    go to layout
    double click on the button
    it will display button properties
    in that below u will find 3 tab strips
    like
    dict program  display
    click on display
    click on check box for invisible
    so that will become invisible
    reward if usefull

Maybe you are looking for