Including SAPscript Texts 

Use

You use the text type Include text of the text node to refer to a SAPscript text that already exists in the system. To identify the text, you need the text name, the text object, the text ID, and the language. Thus, you can easily use the texts in several forms. In addition, you need not load the entire form description to maintain these texts.

This text type corresponds to the SAPscript statement INCLUDE. However, Smart Forms do not allow any control statements in include texts. When processing the form, they are simply ignored.

To administer application-specific form texts, applications use transaction SE75 to define their own text objects with subordinate text IDs. Use text object TEXT with text ID ST to enter general standard texts. To maintain them, use the standard text editor (transaction SO10).

If there is no need for you to use old SAPscript texts, you better use text modules. They can be used cross-client and are connected to the transport and translation systems.

Procedure

  1. To create a text node, call the context menu for that node in the tree structure that shall receive the text and choose Create ® Text.
  2. Enter a unique name for the node and a node description (for example, letter).
  3. On the General Attributes tab choose Include text as text type.
  4. Since you edit a text element, an included text, or a text module exclusively via the text node, the system stores only information on the selected type. When you change the text type, the system therefore asks for your confirmation.

  5. In the Text key box, identify the include text.
  1. If required, use the Paragraph formats box to format the include text:
  1. In the Text node box choose whether you want the text to start in a new paragraph, in a new line, or directly at the end of the current paragraph.
  2. If desired, choose the Output Options tab to maintain the style or box and shading of the text.

Result

The system displays the node in the tree structure, including its name and description. The included text is included only at the moment the form is processed.