Show TOC Start of Content Area

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

Creating a Table Control

...

       1.      Position the cursor where you want the top left-hand corner of the table control to be.

       2.      Choose Edit ® Create elements ® Table control.

The system displays the maximum possible size for the table control.

       3.      Position the cursor where you want the bottom right-hand corner of the subscreen area to be.

       4.      Choose Select Ctrl end to mark the end of the table control.

The attribute dialog box appears.

       5.      Maintain the table control attributes. For more information, see Table Control Attributes.

       6.      Choose Copy.

The table control appears on the fullscreen editor.

Adding Elements and Headings

...

       1.      Position the cursor on the table control area.

       2.      Choose Select or Edit ® Table control.

The application toolbar displays special functions for editing table controls.

       3.      Choose Ctrl elements.

A dialog box appears. Here you enter the definition of the table columns and their headings.

       4.      Position the cursor on the input field for the relevant column.

       5.      Choose Create element.

A dialog box appears. Here you can specify an element type for the table column. You can use a text field, an input/output field, a radio button, a checkbox, or a pushbutton.

Note

If you refer to an ABAP Dictionary field or a program fields, choose Dict./Prog fields.

       6.      Select a field type.

The Screen Element Attributes dialog box appears.

       7.      Enter the attributes and choose Copy.

Note

If you are defining an input/output field, you must specify the defined length as well as a field name.

       8.      Enter the column heading and press ENTER.

       9.      Enter a field type and choose Continue.

   10.      Enter the field type attributes and choose Copy.

The table control appears on the screen.

Adding a Table Title

...

       1.      Open the attribute window in the table control.

       2.      Select With title.

       3.      Enter a field name for the title and choose Copy.

       4.      In the next dialog box, enter a field type and choose Continue.

       5.      Enter the field type attributes and choose Copy.

       6.      You can use the following functions to edit the control you have already created:

Function

Use

Ctrl Attributes

Changes the table control attributes

Ctrl Elements

Changes the columns of the table control

Select Ctrl End

Changes the position of the bottom right-hand corner of the table control

Deselect Control

Ends the editing session for the table control

Convert TC

Converts the table control into a fixed or variable step loop

Move TC

Moves a table control to a new position

Dissolve TC

Dissolves the table control into individual elements. The system can place the elements only in the original table area. If dissolving a table control is likely to produce an unsatisfactory result, the system asks you whether you really want to proceed.

Delete Ctrl

Deletes the table control

For more information about defining and using table controls, see Table Controls.

Note

You can also use the table control wizard, which takes you step-by-step through the procedure for creating a working table control. For more information, see Using the Table Control Wizard.

End of Content Area