Show TOC Start of Content Area

Procedure documentation Creating a Table Control  Locate the document in its SAP Library structure

...

Use

You use this procedure to create a table control in the graphical mode of the Screen Painter. You must perform the following steps:

     Define the table control area

     Define the table control elements

     Add a title (optional)

     Declare the table control in your ABAP program.

Procedure

Defining Table Control Area

...

       1.      In the graphical mode of the Screen Painter, switch to change mode.

       2.      In the Element Palette, choose the Table Control icon.

The cursor changes its shape.

       3.      Define the size of the tabstrip control. For more information, see Basic Operations with Screen Elements.

       4.      In the Name field, enter a name for the new table control.

Defining Elements

To define elements for your table control, you can use ABAP Dictionary fields, fields from the program, or completely new fields.

If you want to create new fields, use elements from the element palette:

...

       1.      Choose an element from the Element Palette and place it on the definition line of the table control.

The system creates a new column.

       2.      Assign a name to the element.

       3.      Create a column header by dragging a text or an output element into the column heading.

       4.      Set the remaining table control attributes.

Note

If you use ABAP Dictionary or program fields, follow the procedure described in Inserting Fields.

Adding a Title

...

       1.      In the table control attributes, select With title.

       2.      Enter a text field or an input/output element in the title row.

       3.      Enter an element name and a title in the Text field.

Declaring the Table Control in the ABAP Program

Insert the following CONTROLS statement in the global data declaration of your transaction:

CONTROLS <tab_ctrl_name> TYPE TABLEVIEW USING SCREEN <screen_no>.

See also:

Creating a Table Control in the Alphanumeric Fullscreen Editor

Editing a Table Control

 

 

End of Content Area