Entering content frameThis graphic is explained in the accompanying text Example: Repeating Group of Type G Locate the document in its SAP Library structure

Objective

You want to print out a phrase on a report in different languages. The example uses the phrase-related characteristic Advice (SAP_EHS_1015_002_ADVICE) that is represented by the symbol <01G1015002AD(P)> and is assigned to the value assignment type First aid: general information (SAP_EHS_1015_002).

You have assigned the phrase Consult physician to the characteristic Advice, for example. The report template has the rating PUBLIC (Released w/o restrictions) and is valid for the validity area REG_EU (European Community). The report is to be generated in German and the phrase Consult physician is also to be printed in Spanish and French.

Procedure

  1. Define the syntax for the report template as follows:

Syntax Example

Explanations

<11BRG002(M,SAP_EHS_1015_002;*)>

Start of the repeating group of type M that must be nested around the repeating group of type G. The usage of the value assignment type SAP_EHS_1015_002 must match the rating and validity area of the generation variant data.

<11BRG001(G;*)> <01G1015002AD(P)> ¿

Start of the repeating group of type G that must be nested around the symbol <01G1015002AD(P)>. You can insert the character ¿ if you want to print the individual phrases one below the other.

<11ERG001>

End of the repeating group of type G

<11ERG002>

End of the repeating group of type M

  1. Ensure that you have assigned the characteristic Advice for the specification with the phrase Consult physician as the value and that the usage of the value assignment type First aid: general information is defined as follows:
  1. Create a generation variant DEMO_01 and assign the released report template. Ensure that the generation variant is defined as follows:
  1. You generate the report for the specification with values assigned with the generation variant DEMO_01 in the language German.

Result

  1. For the repeating group of type M, the SAP System checks whether the usage of the value assignment type SAP_EHS_1015_002 matches the rating and the leading validity area of the generation variant DEMO_01.

As this is the case, the SAP System selects the phrase that is assigned to the symbol <01G1015002AD(P)>.

If the rating and the leading validity area do not match the usage of the value assignment type, the SAP System selects no values for the symbol.

  1. For the symbol <01G1015002AD(P)> around which the repeating group of type G is nested, the SAP System determines all the languages that are specified for the discrete validity areas of the generation variant DEMO_01 and outputs the phrase in these languages.

The SAP System does not check whether the discrete validity areas lie within the leading validity area. This means that selecting a discrete validity area has no significance in this case. The assignment of the language only is the decisive factor. In the example, the following phrases are generated for the characteristic Advice:

Arzt konsultieren. ¿

Consulter un médecin. ¿

Consultar un médico. ¿

Note

You can also reverse the nesting, meaning you can use the repeating group of type G as the outer group and type M as the inner repeating group. In this case, the SAP System checks whether the discrete validity areas for the generation variant match the validity areas for the value assignment type to which the symbol is assigned.

In the above example, the phrase would be output if the nesting was reversed only if the countries DE, FR, and ES are explicitly created in Customizing as countries in the validity area REG_EU.

See also Taking Validity Areas into Account When Generating Reports.

Leaving content frame