Function documentationDeclaration and Initialization of a Container Locate this document in the navigation structure

 

You can use macros to create or initialize a container at runtime.

A container has to be created if you program the event creation yourself and require an event container, for example.

You do not have to create a container in the following programs:

  • Function Module for Rule Resolution

    The container is declared in the interface of the function module.

  • Implementation program

    The container is called CONTAINER and is already created.

Features

Declaring a container data structure at runtime

An empty internal table is created with the structure SWCONT. Use the macro following macro instruction:

SWC_CONTAINER <Container>.

Initializing a container

You must initialize a container before you use it. This deletes all entries in the internal table. Use the macro following macro instruction:

SWC_CREATE_CONTAINER <Container>.

Note Note

The macros SWC_RELEASE_CONTAINER and SWC_CLEAR_CONTAINER have the same functions.

End of the note.