Skip to Content
author's profile photo Former Member
Former Member

WHAT IS THE DIFF B/N TABLE CONTROL AND GRID CONTROL ANDTABSTRIPCONTROL

HI

EXPERTS CAN U HELP ME FOR THIS

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 11, 2007 at 10:16 AM

    Hi

    Table control and Tabstrip control are used in Module Pool programming and Grid control is used in ALV reports.

    See the doc on Table control:

    syntax:

    CONTROLS .

    if you only want to determine the row of the table control. SY´-SUBRC allows you to check if the cursor is placed in a row of a table control.

    u need to comment the performs of table control fields and write ur own perform statements. And u have to declare the table control fields as separate internal tables.

    Go through this urls.

    www.saptechnical.com

    www.sap-img.com

    Check the below links.

    http://www.planetsap.com/howdo_a.htm

    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm

    http://sap.niraj.tripod.com/id25.html

    Also you can see the below examples...

    Go to se38 and give demodynpro and press F4.

    YOu will get a list of demo module pool programs.

    One more T-Code is ABAPDOCU.

    YOu can find more examples there.

    See the prgrams:

    DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement

    DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB

    http://www.geocities.com/ZSAPcHAT

    http://www.allsaplinks.com/files/using_table_in_screen.pdf

    Reward points for useful Answers

    Regards

    Anji

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 12, 2007 at 12:03 PM

    Hi Ravi,

    <b> 1.Table Control:</b>

    Definition

    A table control is an area on the screen in which you can display data in tabular form. You process it using a loop. Table controls are comparable to step loop tables. While a table control consists of a single definition row, step loop blocks may extend over more than one row. Table controls are more flexible than step loops, and are intended to replace them.

    <b>Use</b>

    Table controls allow you to enter, display, and modify tabular data easily on the screen.

    They provide the following functions:

    • On definition:

    • Fixed columns

    • Column headers

    • At runtime:

    • Vertical and horizontal scrolling.

    • Modifiable column width.

    • Row and column selection.

    • Movable columns

    • Settings can be saved.

    <b>TABLE CONTROL</b> -

    http://www.geekinterview.com/Interview-Questions/SAP-R-3

    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa4735c111d1829f0000e829fbfe/content.htm

    http://www.sapgenie.com/abap/example_code.htm

    http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm

    http://www.sapgenie.com/links/abap.htm

    http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm

    <b>Eg of table Control:</b>

    http://members.aol.com/_ht_a/skarkada/sap/table_control/

    table_control.htm

    http://www.sapdesignguild.org/resources/MiniSG/3_Managing/3_Functions_Table_Control.htm

    <b>Table control in BDC</b>

    http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm

    http://help.sap.com/saphelp_erp2005/helpdata/en/45/adee2396f711d1b46b0000e8a52bed/frameset.htm

    Also, a table control wizard in Screen Painter(SE51) exists, which takes you step by step through the Table Control generation and also creates code, so you can start using the Table Control right away.

    <b>Step Loops:</b>

    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbacac35c111d1829f0000e829fbfe/frameset.htm

    http://help.sap.com/saphelp_nw04/helpdata/en/d1/80236c454211d189710000e8322d00/frameset.htm

    <b>Table control is the only facility provide thru dialog programming when we come acrosse the use of updating standard tables,deletion,insertion and all database operations.</b>

    The <b>ALV Grid Control</b> uses the grid control to display the output table. So we can say that the ALV Grid Control is a wrapper that uses the wrapper of a Basis control. As the 'outer layer', this wrapper spares the developer from having to register the events on the frontend in order to simplify event handling. The ALV Grid Control differs from Basis controls in the following respects:

    All events are registered as system events when the control is instantiated.

    If you want to register all events as application events, you must use parameter I_APPL_EVENTS ( See also: CONSTRUCTOR). As usual, you must then call method CL_GUI_CFW=>DISPATCH in the PAI module.

    Events DELAYED_CALLBACK or DELAYED_CHANGED_SEL_CALLBACK are registered using method register_delayed_event.

    For Drag & Drop With the ALV Grid Control no DISPATCH call is required.

    <b>*& Use of TabStrip and SubScreen explained

    *& -


    The report shows the material on one tab

    *& and plant on one tab.Pressing the execute button will show

    *& the description of the material or plant as the case is.

    *& TEXT-002 = Material Number

    *& TEXT-003 = Plant Number.</b>

    REPORT   znr1 NO STANDARD PAGE HEADING 
                LINE-SIZE 80 LINE-COUNT 60.
    TABLES : sscrfields.
    DATA  activetab(6) TYPE c .
    DATA  mat_des TYPE makt-maktx.
    DATA  pl_des  TYPE t001w-name1 .
    
    SELECTION-SCREEN BEGIN OF SCREEN 001 AS SUBSCREEN NO INTERVALS.
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-002 NO
    INTERVALS.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 14(18) text-002 FOR FIELD matnr.
    PARAMETERS matnr TYPE mara-matnr.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK block1.
    SELECTION-SCREEN END OF SCREEN 001.
    SELECTION-SCREEN BEGIN OF SCREEN 002 AS SUBSCREEN NO INTERVALS.
    SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME TITLE text-003 NO
    INTERVALS.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 14(18) text-003 FOR FIELD matnr.
    PARAMETERS werks TYPE t001w-werks.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK block2.
    SELECTION-SCREEN END OF SCREEN 002.
    
    SELECTION-SCREEN BEGIN OF TABBED BLOCK tabb1 FOR 5 LINES NO INTERVALS.
    SELECTION-SCREEN TAB (15) tabs1 USER-COMMAND ucomm1
                         DEFAULT SCREEN 001.
    SELECTION-SCREEN TAB (15) tabs2 USER-COMMAND ucomm2.
    *                     DEFAULT SCREEN 002   .
    SELECTION-SCREEN END OF BLOCK tabb1.
    INITIALIZATION.
      tabs1 = text-002.
      tabs2 = text-003.
      activetab = 'TABS1'.
    AT SELECTION-SCREEN .
      CASE sscrfields-ucomm.
        WHEN 'UCOMM1'.
          tabb1-prog = sy-repid.
          tabb1-dynnr   = 001.
          tabb1-activetab = 'TABS1'.
          activetab = 'TABS1' .
        WHEN 'UCOMM2'.
          tabb1-prog = sy-repid.
          tabb1-dynnr   = 002.
          tabb1-activetab = 'TABS2'.
          activetab = 'TABS2'.
      ENDCASE.
    START-OF-SELECTION.
      CASE activetab.
        WHEN 'TABS1'.
          SELECT SINGLE maktx  FROM makt INTO pl_des WHERE matnr = matnr.
          WRITE: 'Material ' , matnr , mat_des .
    
        WHEN 'TABS2'.
          SELECT SINGLE name1  FROM t001w INTO pl_des WHERE werks = werks.
          WRITE: 'Plant ' , werks ,pl_des.
    
    

    Regards

    Sathish

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.