Entering content frameFunction documentation Repeating Groups Locate the document in its SAP Library structure

Use

Repeating groups iterate over data objects stored in the specification database. If a symbol refers to several data records, you can use the repeating group to control which data records are to be output.

Features

A repeating group carries two main items of information:

See Repeating Group Types.

Repeating group type

Identification code for the object in the symbol

  • Master group

Value assignments of a value assignment type

(M)

  • Slave groups

Components of a value assignment

 

(S:POS, S:POSD)

User-defined text of value assignment

(S:FREI)

Usage of a value assignment

(S:VERW)

Transport data

(S:CLASS) (see Example: Repeating Group S:CLASS)

  • Validity area and language

(G) (see Example: Repeating Group of Type G)

  • Discrete expansion of multiple value assignments

(D)

  • Sources

(Q) (see Example: Creating a List of Sources)

  • Parameter hierarchy

(P)

  • User exit

(Exit)

Note

A slave group always references the data for a characteristic value assignment. In order for the system to assign the appropriate value assignment type, a slave group must nest within a master group.

Identification code in the symbol

Meaning

n

The system selects the data record "number n"

*

The system selects all data records it finds

n-m

The system selects the data records from number "n" to "m"

n-*

The system selects all data records starting from number "n"

The range is always separated from the other parameters of the symbol by a semicolon.

Example

<11BRG001(M,SAP_EHS_1015_003;1-3)>

<01G1015003AD(P;1)>

<11ERG001>

The system expands the first three value assignment records of value assignment type SAP_EHS_1015_003, that is, the first phrase of the characteristic G1015003AD.

Nesting Check

You can define nesting structures for repeating groups. The system checks the permitted nesting. The syntax diagram below illustrates the nesting structures that are valid for repeating groups.

You can determine all valid structures by following the arrows.

This graphic is explained in the accompanying text

Syntax Graph

Note

If a repeating group of type G lies within a repeating group of type M, only the language is taken into account. For the validity area also to be taken into account, the type G repeating group must be nested outside the type M repeating group.

Activities

WWI: Inserting Repeating Groups

Leaving content frame