Start of Content Area

Procedure documentation Including SAPscript Texts  Locate the document in its SAP Library structure

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. This allows you to easily use a text in several forms. In addition, you do not need to load the whole form description to maintain these texts.

Note

This text type corresponds to the SAPscript statement INCLUDE. However, SAP Smart Forms does not allow any control statements in include texts. They are simply ignored when the form is processed.

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

Note

If there is no need for you to use old SAPscript texts, use text modules instead. They can be used across clients and are connected to the transport and translation systems.

Note

When using an include text, you can use the SFSY-SUBRC system field to check at runtime whether the text could be found in the system.

Procedure

  1. Create a text node in the navigation tree of the Form Builder.
  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. Caution

    Since you use a text node exclusively to edit a text element, an included text, or a text module, the system only stores 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 necessary, format the include text in the Paragraph Formats box:
  1. In the Begin list box, choose whether you want the text to start with a new paragraph or just in a new line. You can also choose to append the text directly to the end of the current paragraph.
  2. Select the No Error if Text Does Not Exist checkbox if you want the form to be printed even if the include text you refer to does not exist in the system. Otherwise, processing is terminated and an error message appears.
  3. If required, use the output options tab to maintain attributes for the style, box, and shading of the text.

Result

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

 

 

 

 

End of Content Area