Writing a Table into a Container 

Prerequisites

The following prerequisites must be fulfilled in order to write a multiline field value into a container:

These prerequisites are always fulfilled if you are in the implementation program. The container is then addressed with the name CONTAINER .

Procedure

  1. Create a variable for the table.
  2. If the container is used in a workflow binding, you must ensure that the table has the same data type reference as the container element defined in the container definition.

  3. Assign values to the table.
  4. Write the table into the container using the following macro instruction:

SWC_SET_TABLE <Container> <ContainerElement> <Value>.

Upper and lower case are not distinguished for the container element ID. If the container is used in the binding of a workflow, you must ensure that a container element of the same name is defined in the container definition.

To append a value to a table, you must first read the table from the container, then append the value, and finally write the table back into the container.

Result

If the container element with this ID is not yet in the container, it is inserted into the container with its value. If there is already a container element with this ID in the container, the old value is overwritten with the new value.