SAP Standard Text

Introduction

SAP Standard text is an object that holds some reusable text. If the texts are used more than once, those can be entered as standard text. This is globally stored and can be included in scripts, Smart Forms, or ABAP programs. Usually, standard texts are created for printing documents or inserting content of the body.

SAP Standard Text Formatting

There are different formatting options available in the text editor. Let’s check them out.

  1. * Default Paragraph: It is a default format for the text.
  2. B Paragraph, Justified: The paragraph is justified.
  3. C Centered: It aligns the paragraph to the center.
  4. L   Paragraph, Left Aligned: It aligns the paragraph to left.
  5. Space   Continuous Text: When two or more lines are needed in the paragraph, space can be specified to make it continuous text in the editor.
  6. =     Extended Line: It appends the next line only at the output.
  7. (      Raw line: It is used to apply the same format to the next paragraph as the previous one.
  8. /      Line Feed: It displays the text in the next line, same as the write statement is used to print in the next line.
  9. /=    Line Feed and Extended Line: It displays the content of the current line in the next line.
  10. /(     Line Feed and Raw Line: It displays the preceding line at the next line and uses the format of the previous paragraph.
  11. /:     Command Line: These lines are not interpreted and the contents of the line are converted to caps. The command line must be a single line.
  12. /*    Comment Line: It is used to write comments. These lines are neither be executed nor interpreted.

Steps to create a Standard Text

Step 1:  SO10 is the transaction code to create a standard text. Enter SO10 in the common field.

Transaction code SO10

Step 2: Enter a name for the standard text in Text Name field and click on the Create button.

Create Standard Text

Step 3: Enter text in Standard text Editor.

There are different text editors. To change the editor, click on GOTO and select Change Editor.

Standard text Editor

Step 4: Click on the Save button.

 

Steps to include Standard text in Smart Forms:

Step 1: SMARTFORMS is the t-code for Smart Forms. Enter SMARTFORMS in the common field.

SAP Smart Forms

Step 2: Enter a form name and click on Create button.

Create Smart Forms

Step 3: Expand the Pages and Windows node and create a Text node.

Expand Smart Forms

Step 4: Change the Text type to Include Text.

Change Text Type

Step 5: A “Change Text node” pop will appear. Click on Yes.

Change Text node

Step 6: Enter Standard text name, Text object, Text ID, and Language.

Enter Standard text

Step 7: Check and activate the Smart Forms.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.