Table control on Tabbed selection-screen

Hi All,
My Requirement is: I have a tabbed selection-screen with 3 tabs.
On one of the tabs I have to include a Table control.
Currently I'm displaying Table control as Pop-up . But I want that on the screen itself.
Please suggest me how to do this.

Once i have done this. but only table control was there on the screen.
design a screen and place one table control.
y will declare one default subscreen in the selection screen tab declaration,
and
At selection-screen.
change the value of the deflaut screen to ur designed screen.
below is one example
controls: tab type tableview using screen 201.
SELECTION-SCREEN BEGIN OF TABBED BLOCK object FOR 50 LINES.
SELECTION-SCREEN TAB (60) tab_cls USER-COMMAND ut_cls
                      DEFAULT SCREEN 101.
SELECTION-SCREEN TAB (60) tab_rcp USER-COMMAND ut_rcp
                      DEFAULT SCREEN 200.
SELECTION-SCREEN END OF BLOCK object.
SELECTION-SCREEN BEGIN OF SCREEN 0101 AS SUBSCREEN NESTING LEVEL 2.
parameters: P_lifnr type lfa1-lifnr.
SELECTION-SCREEN END OF SCREEN 0101.
SELECTION-SCREEN BEGIN OF SCREEN 0200 AS SUBSCREEN NESTING LEVEL 2.
parameters: p_ebele type ekko-ebeln.
SELECTION-SCREEN END OF SCREEN 0200.
AT SELECTION-SCREEN.
  CASE sy-dynnr.
    WHEN 1000.
      CASE sy-ucomm.
        WHEN 'PUSH1'.
          object-dynnr = 100.
        WHEN 'UT_RCP'.
          object-dynnr = 201.
        WHEN OTHERS.
      ENDCASE.
here the defualt screen is 200 but for table control purpose i changed it to 201 which has the table control in it.

Similar Messages

  • About table control in the selection screen

    i want to create a table control in the selection screen of my report.i can create the table control using SE51.but how to program with the table control in the report.for example i should fetch the data for the personnel nos entered in the table control of the selection screen.how to do this.can any of u provide sample code for this.
    thanks.

    Hi vadivel,
    Create internal table and create table control using same internal table
    e.g.
    data : begin of it,
           end of it.
    start-of-selection.
    call screen 100.
    If you create table control using wizard then code automatically come here.
    Now, Put one push button in same screen where table control is available. let's say push button Display report.
    Now, use export <IT> to memory id <ID> and submit report <report name> and return. now, define same internal table in this submitted report and use import <IT> from memory id <ID>. Now, table control data is available in internal table, use that data and make code as per your requirement. If you dont want to use push button then use menu bar and at user-command event.
    Hope this help
    Regards,
    Parag

  • Table control in report selection screen

    I have a selection screen with some fields. Now, below these fields, I need a table control in which i will have input parameters with 3 fields so that i can enter data in combinations and use the same while executing the report like an internal table.
    1. I should be able to save it as a Variants.
    2. I should be able to schedule a background job.
    I found similar notes but they dont help me save variants and with job schedules.
    Request your help in this regard.
    Regards
    Kasi

    Hi
    In the selection-screen u can generated a tabstrip:
    SELECTION-SCREEN BEGIN OF TABBED BLOCK MAX FOR 22 LINES.
    SELECTION-SCREEN TAB (25) TABS1 USER-COMMAND UCOMM1
             DEFAULT SCREEN 100.
    SELECTION-SCREEN END OF BLOCK MAX.
    So the system'll generate a tabstrip in the selection-screen, here it'll load only the screen 100.
    By screen painter u have to create a subscreen 100 where u insert your table control.
    Max

  • Table control and a selection screen

    Hi,
    I have a requirement where I am supposed to be designing a screen that has a table control with fields
    w/selection column       label 1(non-editable)          i/o field(from)        i/o field(to)
    w/selection column       label 2(non-editable)          i/o field(from)        i/o field(to)
    On searching the forum threads, I found related threads as to how to implement a selection screen (as the I/O fields are similar to select-options) in module pool programming. But mine requires the use of table control and a kind of selection screen embedded into it. Please guide me through this requirement.

    Hi
    If you need to implement a table control on selection screen u need to use a tabstrip as graphic element supports the table control.
    So
    1 - Step: define a tabstrip with 1 tab only:
    SELECTION-SCREEN BEGIN OF BLOCK 3.
    SELECTION-SCREEN BEGIN OF TABBED BLOCK MAX FOR 22 LINES.
    SELECTION-SCREEN TAB (25) TABS1 USER-COMMAND UCOMM1
             DEFAULT SCREEN 100.
    SELECTION-SCREEN END OF BLOCK MAX.
    SELECTION-SCREEN END OF BLOCK 3.
    2 - Step design the subscreen (in my sample the dynrpo 100) and insert the table control there:
    PROCESS BEFORE OUTPUT.
      MODULE INIT_CTRL.
      LOOP WITH CONTROL T_CTRL.
        MODULE DISPLAY_DATA.
      ENDLOOP.
    PROCESS AFTER INPUT.
      LOOP WITH CONTROL T_CTRL.
          MODULE UPDATE_DATA.
      ENDLOOP.
    In the module DISPLAY_DATA and UPDATE_DATA u need to implement the code to transfer the data from internal table to table control and from table control to internal table, in order to display and update the data.
    Max

  • TABLE CONTROL IN TAB STRIP CONTROL

    hi experts,
    I have a problem with table control in tab strip control  i have table control in first tab
    and some text fields in second tab .
    i enter data into table control in  first tab and enter into second tab and i fill data into second tab also .
    then i press save after filling data into these two tabs  at that time table control data is not updating into corresponding table ,Because when the time  we enter into second tab data in table control is cleared .
    please give me a solution for this problem as early as possible.
    Note  : saving data is done after filling two tabs only.
    Regards,
    k.Rajesh.

    Hi,
    go through this code,
    DIALOG PROGRAMMING
    TABSTRIPS
    IN SE51 FLOW LOGIC MAIN SCREEN
    PROCESS BEFORE OUTPUT.
    CALL SUBSCREEN PER_REF1 INCLUDING 'YMODULE_PR8' '0200'.
    CALL SUBSCREEN SALE_REF1 INCLUDING 'YMODULE_PR8' '0300'.
    MODULE STATUS_0100.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    IN SE51 FLOW LOGIC FOR SCREEN 200. 1st TAB IN SUBSCREEN AREA.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0200.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0200.
    IN SE51 FLOW LOGIC FOR SCREEN 300. 2nd TAB IN SUBSCREEN AREA.
    PROCESS BEFORE OUTPUT.
    LOOP AT ITVBAK WITH CONTROL TABCTRL.
    MODULE STATUS_0300.
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0300.
    LOOP AT ITVBAK.
    ENDLOOP.
    IN FLOW LOGIN OF MAIN SCREEN
    PROGRAM YMODULE_PR8 .
    TABLES : KNA1, VBAK.
    DATA : BEGIN OF ITVBAK OCCURS 0,
           VBELN LIKE VBAK-VBELN,
           ERDAT LIKE VBAK-ERDAT,
           ERNAM LIKE VBAK-ERNAM,
           NETWR LIKE VBAK-NETWR,
           END OF ITVBAK.
    CONTROLS : TABCTRL TYPE TABLEVIEW USING SCREEN 300,
                            TABSTRIP1 TYPE TABSTRIP.
    *&      Module  STATUS_0300  OUTPUT
    MODULE STATUS_0300 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    MOVE-CORRESPONDING ITVBAK TO VBAK.
    ENDMODULE.                 " STATUS_0300  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    MODULE USER_COMMAND_0100 INPUT.
    CASE SY-UCOMM.
      WHEN 'EXIT'.
        LEAVE PROGRAM.
      WHEN 'PERSONAL' OR SPACE.
        SELECT * FROM KNA1
         WHERE KUNNR = KNA1-KUNNR.
        ENDSELECT.
        TABSTRIP1-ACTIVETAB = 'PERSONAL'.  ## TO ACTIVATE TABSTRIP & MAKE IT                                                                               
    FUNCTIONAL
      WHEN 'SALES'.
        SELECT VBELN ERDAT ERNAM NETWR
          FROM VBAK
          INTO TABLE ITVBAK
         WHERE KUNNR = KNA1-KUNNR.
        DESCRIBE TABLE ITVBAK LINES TABCTRL-LINES.
        TABSTRIP1-ACTIVETAB = 'SALES'.  ## TO ACTIVATE TABSTRIP & MAKE IT                                                                               
    FUNCTIONAL
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100
    reward if usefull

  • How to deactivate the fields in a table control of a standard screen

    Hi,
       I have an requirement to deactivate the fields in a table control of a standard screen in ME22n transaction.I am using a BADI "ME_PROCESS_PO" and in item mathod i am looping at screen for the screen field name in the table control.But it is not working. Can anyone give me the possible solution . Thanx in advance.
    With Regards,
    Ajit.

    >
    Vivek Joshi wrote:
    > Hello Router ,
    >                      I do not want to set the focus , I want to get focus . User can click on any cell in the table and then press a button in the toolbar . Now in the event handler of the button i want to under which column User has set the focus .
    > I hope , I am clear now .
    > Thanks for your help
    > Regards
    > Vivek
    An yet you keep getting suggestions of how to set the focus.   I looked through the API documentation and I don't see anything that would suggest you can request to see where the current focus is.  Perhaps someone might still come along with a solution, but my hopes wouldn't be too high at this point.  I can pass the requirement onto Product Definition, as the use case does seem interesting.  Perhaps it is something we have even considered in the past. 
    But for now, there might be a better way to solve your problem.  It will probably mean redesign the interaction.  What exactly are your requirements?  Do you need to be able to get the data in a particular cell of table when a button is clicked?  Just throwing out some ideas here, but maybe just use the lead selection to select the row, but then have a button choice to choose the action associated with the column you want. A hack for sure - but it might work.  Also it doesn't help you right now, but in the near future update to NetWeaver 7.0, WDA does have a onColSelect event for the table.

  • Use of loops in pbo and pai events when a table control is on the screen

    asap.

    Hi Feroz,
              What is the very purpose of using table controls and tab strips in module pool programming.
    Rgds,
    kha

  • Variants on tabbed selection screen for ALV reports

    Scenario: We use a tabbed selection screen for an ALV report. We create a variant, make a selection field on the second tab mandatory & save it without a value. When we run the report with the saved variant it does not check that the required field on the second tab is populated before it executes.
    Question: How can I code such a check?
    Edited by: Alridge Tom on Jul 4, 2008 3:43 PM

    Hi,
    try inserting this code apropietly in you program. (1 parameter + Initialization + At-selection-screen + 2 forms)
    START HERE
    PARAMETERS: pa_vari TYPE disvariant-variant.
    INITIALIZATION.
      g_repid = sy-repid.
      CLEAR e_variant.
      e_variant-report   = sy-cprog.
      e_variant-username = sy-uname.
      CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
        EXPORTING
          i_save     = 'A'
        CHANGING
          cs_variant = e_variant
        EXCEPTIONS
          not_found  = 2.
      IF sy-subrc = 0.
        pa_vari = e_variant-variant.
      ENDIF.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR pa_vari.
      PERFORM alv_variant_f4 CHANGING pa_vari.
    *&      Form  ALV_VARIANT_F4
    FORM alv_variant_f4 CHANGING pa_vari.
      DATA: l_exit(1) TYPE c.
      CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
        EXPORTING
          is_variant       = e_variant
          i_tabname_header = 'ANYTHING'
          i_save           = 'A'
        IMPORTING
          e_exit           = l_exit
          es_variant       = e_variant
        EXCEPTIONS
          not_found        = 2.
      IF sy-subrc = 2.
        MESSAGE ID sy-msgid TYPE 'S'  NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSE.
        IF l_exit = space.
          pa_vari = e_variant-variant.
        ENDIF.
      ENDIF.
    ENDFORM.                               " ALV_VARIANT_F4
    END
    Hope iy helps!
    Alfonso

  • Tabbed selection screen problem.

    Hi expert,
    I need some help in creating my selection screen.
    Right now i'm creating a tabbed selection screen as the code below follows.
    PARAMETERS: p_test AS CHECKBOX USER-COMMAND testrun DEFAULT 'X'.
    SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
    PARAMETERS: p_offkdt TYPE sy-datum MODIF ID thr.
    SELECT-OPTIONS: s_konfe FOR p0002-konfe.
    SELECTION-SCREEN END OF SCREEN 100.
    SELECTION-SCREEN BEGIN OF SCREEN 200 AS SUBSCREEN.
    SELECTION-SCREEN: BEGIN OF LINE,
                       COMMENT 1(20) text-005 MODIF ID yea
                        FOR FIELD p_lowdt,
                        POSITION POS_LOW.
    PARAMETERS: p_lowdt TYPE begda MODIF ID yea,
                p_updt TYPE endda MODIF ID yea.
    SELECTION-SCREEN: END OF LINE.
    PARAMETERS: p_keydt TYPE dats MODIF ID yea.
    SELECTION-SCREEN END OF SCREEN 200.
    SELECTION-SCREEN BEGIN OF SCREEN 300 AS SUBSCREEN.
    PARAMETERS: p_lvdat TYPE dats MODIF ID lv.
    SELECTION-SCREEN END OF SCREEN 300.
    SELECTION-SCREEN: BEGIN OF TABBED BLOCK prog_selection FOR 4 LINES,
                      TAB (20) button1 USER-COMMAND push1,
                      TAB (20) button2 USER-COMMAND push2,
                      TAB (20) button3 USER-COMMAND push3,
                      END OF BLOCK prog_selection.
    Now as I'm using tab and subscreen, therefore i need to initialize the subscreen which i wanted to use which i did in the initialization event.
      prog_selection-dynnr = 100.
      prog_selection-activetab = 'PUSH1'.
    With the above code, my default tab would be screen 100 which is the first tab.
    My problem right now is, after i execute the program, and then i press the back button to go back to the selection screen, the default tab 100 is shown again while i wanted to show the last tab which was picked before the program was executed. Please kindly advise how can i solve this problem.
    Many Thanks!
    -Suwardi Nursalim-

    Hi,
    DATA: V_DYNNR TYPE SY-DYNNR VALUE '0100',
               V_ACTIVETAB(4).
    INITIALIZATION.
      MOVE 'PUSH1' TO V_ACTIVETAB.
    AT SELECTION-SCREEN OUTPUT.
      prog_selection-dynnr = V_DYNNR.
      prog_selection-activetab = V_ACTIVETAB.
    When the user clicks each tab of the tab strip.*
    CASE SY-UCOMM.
       WHEN 'PUSH1'.
            V_ACTIVETAB = 'PUSH1'.
            (rest of your code).
       WHEN 'PUSH2'.
            V_ACTIVETAB = 'PUSH2'.
            (rest of your code).
       WHEN 'PUSH3'.
            V_ACTIVETAB = 'PUSH3'.
            (rest of your code).
    ENDCASE.
    Hope this will help you.
    Regards,
    Smart Varghese

  • Adding a field to a table control of a standard screen

    Hi,
    I need to add a field to a table control of a standard screen (Transaction CAT2).
    Could anybody please tell me how i could go about doing this?
    Also, what customization would be required to display the field because there are way too many fields and only a few are being displyed as of now.
    I will get the access(SSCR) key to modify the screen.
    Regards,
    Monica.

    Hi Monica,
    Did you name you customer field also "FIELD1_W", because the field should get updated then without any modification as in screen 2100 a "move-corresponding" is performed from CATSDB to these fields.
    Regards,
    John.

  • Problem in more than one table control in a BDT screen

    HI gurus,
    Please help, I have placed two table controls in a BDT screen (same screen), in Business Partner (BP). When  I put only one table control then that is working fine but when I place two table controls then problem starts, table don't get scrolled may times, please suggest, its urgent.

    Hi,
    Try to implement the notes
    800369
    789747
    768803
    768479
    754237
    And if this doesnt solve problem, then describe the problem in detail.
    Smita.

  • How to update DBtable in table control (MPP) for selected lines.

    Hi Folks,
    I need to update DBtable from the table control after modification of  only multiple selected rows.
    But my issue. any row if edited is being modified in DBtable.
    Client does not want me to use Check box so im using Selcolumn in module pool table control.
    Please help me in resolving the issue. Let me know if you have any queries
    Thanks
    Reddy

    Hi Reddy,
    Hope it helps.
    For  Sel column.
    Declare:
    Data : SEL  TYPES XFELD in Structure.
    Double click on the sel  field     give the structure name and field name as below in screen shoot.
    In Flow logic.
    PROCESS AFTER INPUT.
    loop at it_tab.
        FIELD YTBLCTRL-SEL.
    MODULE update.
    ENDLOOP.
    MODULE Updatedb.
    In Editor.
    MODULE UPDATE INPUT.
       MODIFY it_tab FROM YTBLCTRL INDEX tbc1-current_line.
       if ytblctrl-sel IS NOT INITIAL.
       lv_cnt = lv_cnt + 1.
       endif.
    ENDMODULE.
    MODULE UPDATEDB INPUT.
    Case sy-ucomm.
    WHEN 'SAVE'.
    if lv_cnt is NE '1'.
    Message 'select more than one item.
    else.
    Update DB.
    endif.
    Endcase.
    Regards,
    Venkat.

  • Supressing Tab selection screen on selection screen ....

    Hello Gurus,
    I have following program. I want to make the Tab screen on selection screen inivisible when ceratin condition is set in configuration table. I know that I have to do it in AT SELECTION-SCREEN OUTPUT using loop - endloop. But how can I do it , lets say when variable v_block = 'X'.
    REPORT  ZTOPTEST .
    data: v_block type char1.
    SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
    parameters:
            max_res(8) default '20'.
    SELECTION-SCREEN END OF SCREEN 100.
    SELECTION-SCREEN: BEGIN OF TABBED BLOCK tab_block FOR 5 LINES,
      TAB (20) tab1 USER-COMMAND tabpush1
      DEFAULT SCREEN 100,
    END OF BLOCK tab_block.
    AT SELECTION-SCREN OUTPUT.
    LOOP AT SCREEN.
    MODIFY SCREEN.
    ENDLOOP.

    Hi, Jainam
    Use the following Sample Code hope will solve out your problem,
    AT SELECTION-SCREEN OUTPUT.
      IF v_block = 'X'.
        LOOP AT SCREEN.
          IF screen-name = 'MAX_RES' or screen-name = '%_MAX_RES_%_APP_%-TEXT'.
    *        screen-active = 0. " Active this and Hide the Bellow if Compliantly Hide Fields and Lable
            screen-input = 0.   " You can see the Fields but not able to Input
            MODIFY SCREEN.
          ENDIF.
      ENDLOOP.
    ENDIF.
    Best Regards,
    Faisal

  • About the data of table control in tab strip control

    hi experts:
           I use screen 0001 include one tab strip control,and its include two subscreens,one of it is table control(subscreen is 0003).
    I input data in the table control,when I click the button of tab strip control to change to another subscreen 0002.I found that the data I input into table control have not append to internal table.how can I solve this problem?
           appreciate your reply.thanks a lot.

    Hi,
    in the Main Screen
    In PAI
    call subscreen sub. ---> here it calls the subscreen where the tablecontrol is placed
    then call module user_command
    In the subscreen where you have your table control
    in PAI
    Loop at itab.
    module modify_tab.
    endloop.
    module modify_tab,
    descirbe table itab lines tc-lilnes.
    if tc-lines <= tc-current_line.
    modify itab index tc-current_lilne.
    else.
    append itab.
    endmodule.
    next you call the module user_command on the main screen
    module user_command
    case sy-ucomm
    WHEN 'TAB1'
    TS-ACTIVE_TAB = 'TAB1'
    when tab2.
    ts-active_tab = 'TAB2'.
    endmodule
    further you can take the help of CONTROL EXAMPLES in DWDM tcode
    Regards
    Ramchander Rao.K

  • Table Control not displaying selected data

    I have 2 screens, screen 100 is the selection screen where i select the data to be displayed and 300 is my table control.  When I select a single airline in screen 100, it displays all the airlines in my table control in screen 300, how can i fix?

    Table control if built via the screen painter wizard uses the contents of internal table declared in the main program and defined in the wizard to display. Check how you are filling this table, perhaps your filling it incorrectly.

Maybe you are looking for

  • In material master How to add a new field on Basic data 1 view

    Please Help It's very Urgent...        I have the Requirement that in Material Master a new field reqired to be added on basic data 1 view. This new field should be added just below field Old Material Number( MARA-BISMT). Can anyone Please suggest th

  • Windows does not recognize iPod

    This is my current situation: When I connect my iPod to my computer using USB 2, my iPod briefly shows the "Do not disconnect" screen, and then after several seconds, it shows the "OK to disconnect" screen with the checkmark. Also, my Windows XP brie

  • Why can Google Chrome browser display PDF that Reader cannot?

    I have a large PDF of a 2300-person family tree (400 pages if printed) that I am trying to share with family.  The PDF is produced by MacFamilyTree on Mac OS X 10.8.4  It has the ability to simply "Save" the Graph as a PDF and I can also ask it to "P

  • SQL Server 2005 (64 bit) returns truncated text from Oracle 10g (64 bit)

    Hi all, I'm no expert in Oracle so I desperately need your advice. I'm using SQL Server 2005 (64 bit) and trying to pull data from a Oracle 10g (64 bit) server. I am able to connect to the Oracle server with no problems. The problem came when I was t

  • XSLT processing and Memory Leak

    I have the following code for a Simple XSLT Transformation from one form of XML to another, the Size of the XML and the XSLT file are very small( few KB). As you can see I'm explicitly setting everything to null just to make sure the objects get GC'd