Show TOC Start of Content Area

Procedure documentation Creating Exception Texts in the Online Text Repository  Locate the document in its SAP Library structure

Use

Each exception should be assigned an explanatory text. Each class has a default text whose ID corresponds to the class name. If you want to create further texts for special cases of this exception, you have to assign a separate ID for each text.

Note

Exception texts are language-specific and have to be translated. The OTR can be used here as a central storage area for exception texts.

Note

You might want to parameterize exception texts with attributes of the exception class. To do so, enclose the attribute name in '&' characters.

Example: An error occurred in object &ATTRIBUTE&.

The value &ATTRIBUTE& can have maximum 255 characters. If you need to insert more than 255 characters, instead of using &ATTRIBUTE&, split your parameter in the following way &ATTR1&&ATTR2&&ATTR3&.

Procedure

To create exception texts:

...

...

       1.      Select the exception class.

       2.      Switch the Class Builder to change mode and choose Texts.

       3.      First edit the default text whose ID was created automatically by the Class Builder.  

       4.      Choose ENTER.

The system displays the Create OTR Concept dialog box.

       5.      Confirming your entries will copy the new text to the OTR.

       6.      If necessary, create further IDs to assign special texts and repeat steps 4-6.

Result

The exception texts for an exception class are created in the OTR and can be output as message texts.

 

 

End of Content Area