Entering content frameProcedure documentation Defining a Table Control Locate the document in its SAP Library structure

  1. Define the table control area.
  2. Define the table control elements.
  3. Add a title (optional).
  4. Declare the table control in your module pool.

Procedure

Note

The procedures described in this documentation are different if you are using the fullscreen editor in alphanumeric mode. For further information, see Creating a table control in alphanumeric mode.

Defining the Table Control Area

  1. With the Screen Painter in change mode, choose the table control icon from the element palette.
    The mouse pointer changes its shape.
  2. Drag and drop the object onto the screen work area.
  3. Resize or reposition the table control if necessary.
  4. Assign an element name to 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 are using ABAP Dictionary or program fields, follow the procedure described in Selecting Fields. If you want to create new fields, you use elements from the element palette as follows:

  1. Choose an element from the element palette and place it in the definition line of the table control.
    The system creates a new column.
  2. Assign an element name to the element, and any necessary attributes.
  3. Create a column header by dragging a text or entry element into the column heading.
  4. Repeat steps 1-3 for each additional column.
  5. Set the remaining table control attributes.

Adding a Title

  1. In the table control attributes, select With title.
    A dialog box appears, reminding you to create a title element.
  2. Enter a text field or an input/output element in the title row.
  3. Enter an element name, and the title in the Text field.

Declaring the Table Control in the Module Pool

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

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

Note

For information on processing the table, see Editing Table Controls.

 

 

Leaving content frame