Entering content frameFunction documentation Declaration and Initialization of a Container Locate the document in its SAP Library structure

Use

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:

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

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

The macros SWC_RELEASE_CONTAINER and SWC_CLEAR_CONTAINER have the same functions.

Leaving content frame