Integrating Form Interface Fields into the Form Context
Use
The form interface is displayed on the left of the screen for defining the context of a form template. If you need to integrate elements of a form interface into the layout, you can take the following elements from the form interface and include them in the context:
-
Data field (import field or system field)
-
Structure node with all related data fields
-
Table (loop)
-
Table line (single record)
To include an element from the form interface in the context, you can use the mouse to drag it to the required location. You can also use the Create menu in the context structure, which you can call for any structure node.
Prerequisites
You have called the context of a form template for editing.
More information: Defining the Context of a Form Template
Procedure
Including a Data Field of the Interface in the Context
-
On a node of the context structure, chose .
-
Select the required data field from the form interface and confirm your selection.
Including a Structure Node of the Interface in the Context
-
On a node of the context structure, chose .
-
Select the required structure node from the form interface and confirm your selection.
Including a Table of the Interface in the Context
-
On a node of the context structure, chose .
-
Select the required table from the form interface and confirm your selection.
-
If you are using a migrated Smart Form as a form template: In Properties , specify the assignment type in the Output Behavior field and specify the Work Area of the table.
More information: Reading Internal Tables in the Smart Forms documentation
-
Optional: Restrict the selection of table data during form generation:
-
To read a specific area of the table, in Properties , section Loop , specify the line interval ( From Line , To Line )
-
To read specific table data, define the data to be selected under Where Conditions .
-
-
If you want the table to be sorted when the form is output, choose one of the following options:
-
If you want the table fields to be sorted by context structure, in Properties set the Sorting already exists indicator.
-
If you have not set the Sorting already exists indicator and want to sort by particular data fields of the table instead, specify the data fields under Group Levels . Only fields that do not belong to a structure within the table are suitable.
The system automatically adapts the context structure to these specifications by putting the selected fields before all other table fields.
-
Including a Single Record of a Table from the Interface in the Context
-
On a node of the context structure, chose .
-
Select the required table from the form interface and confirm your selection.
-
If you want the system to read a single record from the table when it generates the form, use one of the following options:
-
Under Properties (in section Single Record ) enter the number of the table line.
-
If you have not entered a table line, specify a search key as follows:
-
If you want the search for the key to be binary, under Properties , set the Binary Search indicator.
More information: Binary Search in Standard Tables in the documentation for ABAP programming
-
Specify the search key under With-Key Conditions .
If you specify a search key, the table line is read using the ABAP statement READ TABLE itab WITH KEY k1 = f1 ... kn = fn result . In this case, the return value SY-SUBRC is set in the system field SFPSY-SUBRC. If multiple single records are accessed, this system field contains the SY-SUBRC value of the last access.
More information: Reading Lines of Tables in the documentation for ABAP programming
-
-

