Show TOC

 Example: Repeating Group with Instance Control

You can use the repeating group with instance control (MIC repeating group) and the master group items of the instance control (MIC:POS repeating group) to output data for creating an extended safety data sheet (eSDS).

Using the instance control, the system controls which value assignment records or value assignment instances are selected for output in the report. Instance control also allows you to make the selection of the value assignment instances dependent on the characteristic value assignments.

Example 1: MIC Repeating Group

The short titles of all the value assignment instances of the value assignment type Use and Exposure Scenario (SAP_EHS_1027_001) are output on the report template using the following syntax. If an MIC item is assigned to a value assignment instance, the reference number of this item is also output in the report template within the instance control output block.

Note Note

The data is output within the instance control output block. In other words, instance control determines which values are output in the report template when the final reports are generated.

End of the note.

<11BRG101(MIC,SAP_EHS_1027_001;*)><01EHS_ICBCB>

Short title: <01G1027001ST>

<13BNG009(*:01EHS_ICSCNR)>

Reference number of scenario: <01EHS_ICSCNR>

<13ENG009>

<01EHS_ICBCE><11ERG101>

Explanation of the Syntax

Syntax Example

Explanations

<11BRG101(MIC,SAP_EHS_1027_001;*)>

Start of the MIC repeating group. In terms of their type and function, all parameters match the parameters of a repeating group of master group type (M). The user exit functions of the master group can also be used.

<01EHS_ICBCB>

Start of the instance control output block. The output block controls which value assignment instances of the selected characteristics are output in the final report. Must be within the MIC repeating group.

<01G1027001ST>

Characteristics surrounded by the output block. This output block specifies the value assignment instances from which the selected characteristics are output. In this example, this is the short title of a usage.

<13BNG009(*:01EHS_ICSCNR)>

If the value assignment instance is assigned an MIC item, the system assigns a reference number for this MIC item. This can be interrogated using a blank compression.

<01EHS_ICSCNR>

Outputs the reference number assigned to the MIC item by the system.

<13ENG009>

End of the blank compression

<01EHS_ICBCE>

End of the instance control. Must be within the MIC repeating group.

<11ERG101>

End of the MIC repeating group.

Example 2: MIC:POS Repeating Group

The MIC:POS repeating group controls the output of the exposure scenarios in the report template. For this purpose, at least one value assignment instance that is assigned an MIC item must be output using the MIC repeating groups.

<15BIF006(AND:01EHS_ICREPV NE "NON")>

<13BNG007(*:01EHS_ICOREQ)>

Attachment with scenarios

Repeating group of the scenario

<11BRG201(MIC:POS;*)><01EHS_ICBCB>

Reference number of scenario: <01EHS_ICSCNR>

<11BRG001(S:POS;*)>

Scenario specification: <01GESTRSUBID>

<11ERG001>

<11BRG002(S:FREI,ESD;*)>

Scenario document: <01GESTDHEADE>

<11ERG002>

<01EHS_ICBCE><11ERG201>

<13ENG007>

<15EIF006>

Syntax Example

Explanations

<15BIF006(AND:01EHS_ICREPV NE "NON")>

The default report view is interrogated by means of a conditional output (symbol EHS_ICREPV). The eSDS attachment and scenarios are output in the report template only if the Main Part (No Attachment) report view was not selected.

<13BNG007(*:01EHS_ICOREQ)>

Blank compression that determines whether value assignment instances were output by an MIC repeating group during generation of the final reports (symbol EHS_ICOREQ).

<11BRG201(MIC:POS;*)>

Start of the MIC:POS repeating group. All of the MIC items found are to be output in the report template.

<01EHS_ICBCB>

Start of the instance control output block. The MIC items are also subject to the instance control. Data output is dependent on the value assignment instances from which the MIC items were derived.

<01EHS_ICSCNR>

Outputs the reference number assigned to the MIC item by the system.

<11BRG001(S:POS;*)>

All of the assigned specifications are output.

<01GESTRSUBID>

In this example, only the specification ID is output.

<11ERG001>

End of the specification output.

<11BRG002(S:FREI,ESD;*)>

All assigned user-defined texts of type ESD are output.

<01GESTDHEADE>

User-defined texts of type ESD are created as documents. This symbol integrates the document in the report.

<11ERG002>

End of the user-defined text output.

<01EHS_ICBCE>

End of the instance control. Must be within the MIC:POS repeating group.

<11ERG201>

End of the MIC:POS repeating group.

<13ENG007>

End of the blank compression

<15EIF006>

End of the conditional output.