cancel
Showing results for 
Search instead for 
Did you mean: 

give some functionlity of standard text

Former Member
0 Kudos

hi guru

please tell me functionlity of standard text,where exactly it use.

thanks

subhasis

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Another example would be normally every company will have some standard terms & conditions for all vendors. So for all PO's they would like to print those terms & conditions on each & every PO. The terms & conditions would be creatd as standard text via SO10. You can add/change them if the need be.

I hope this clarifies the matter,

Regards

Raju Chitale

former_member196280
Active Contributor
0 Kudos

Standard text is created in So10..

Let me give you an example... before that I will tell you... it contains text name, text ID and language..

Ex 1: Usually standard text is called in our form with text name , ID and language... few endusers wants to modify few hardcoded data frequently.. ex, there bank account number then they will just goto So10 and modify... as we are calling thru std name.. whatever maintained in std, it will be displayed.

Ex:2 You have created some statment in English and few text should be displayed in Japanese baisng on company code language.. in this kind of scenarios we will maintain standard text in EN and JP

We call it like this

IF company code EQ India

INCLUDE................ Lang 'EN'.

ENDIF.

IF company code EQ Japan

INCLUDE................ Lang 'JP'.

ENDIF.

I hope now you got some picture what standard text does...

Regards,

Sairam

Former Member
0 Kudos

we use standard text for scripts and smartforms.......

You can insert standard texts, texts of the online documentation, and hypertext modules into your document. You can insert texts directly and include them by reference.

When inserting text directly, the text is inserted in the editor in formatted form. You can then edit it further.

Inserting Standard Text

Choose Insert ® Text ® Standard.

The dialog window for inserting text appears.

Enter the text name, the text ID, and the language. To insert the text directly, select Expand immediately.

Choose Continue.

There are two ways to format texts with forms:

In the standard SAPscript text processing (Tools ® Word processing ® Standard text), you can select a form for a document. You can then type text into the main window of the form and output the document in the format defined in the form.

For example, you can select a form for a letter. You can then type the body text of the letter in the main window. When you print the letter, the default text elements in the other windows of the form (heading, footer, and so on) are printed with the body text.

To include the contents of another text into the current text, use the INCLUDE control command. SAPscript still treats the text to be included as a separate text. The text is copied over only at the point at which the output is formatted.

Thus the use of the INCLUDE command always ensures that the most current version of a text is included into the output, since the text is not read and inserted until the output is formatted.

Syntax:

/: INCLUDE name

You must specify the name of the text to be inserted. It can be up to 70 characters long. If the name of the text contains spaces, then you must enclose it in quotes as a literal value. You can, alternatively, specify the name via a symbol. All remaining parameters in the INCLUDE command are optional. If an optional parameter is not specified, then SAPscript uses default values as applicable for the calling environment.

/: INCLUDE MYTEXT

The text MYTEXT is included in the language of the calling text.

/: INCLUDE MYTEXT LANGUAGE 'E' PARAGRAPH 'A1'

The text with the name MYTEXT and the language E is included, regardless of the language of the calling text. The paragraph format A1 will be used as the standard paragraph type for this call.

Optional parameters:

LANGUAGE

If this parameter is not specified, then the language of the calling text or the form language are used for the text to be included. If the language is specified, then the text will be fetched in this language, regardless of the language of the calling text.

PARAGRAPH

The text to be included is formatted using the style allocated. The PARAGRAPH parameter can be used to redefine the standard paragraph for this style for the current call. All *-paragraphs in the included text will then be formatted using the paragraph specified here.

NEW-PARAGRAPH

The first line of the text to be included will be given this format indicator, as long as it is not a comment or command line. If the optional PARAGRAPH parameter (see above) is not specified, then all *-paragraphs of the included text will also be formatted using the paragraph specified in the NEW-PARAGRAPH command.

OBJECT

In order to completely specify a text, information about the text object is also required. There are a number of restrictions and other rules that depend on the object type of the calling text:

Any kind of text can be included in a form. If no object is specified, then TEXT will be used (standard texts).

In the case of a document text (DOKU object), you can include only document texts. This object type is also assumed if no object is specified in this environment.

Only hypertexts and document texts can be included in a hypertext (DSYS object). If the OBJECT parameter is missing, then DSYS is used as the default value.

In the other kinds of text you can include only standard texts (TEXT object), document texts or hypertexts. If there is no specification, then the default object is TEXT.

ID

The text ID is a part of the text key, which permits further text objects within a given object. If no ID is specified, then the default include ID is used from the TTXID table for the calling text. If there is no entry in this table, then the text ID of the calling text is used.

The following consistency check is applied both to the ID and the object:

All text IDs are allowed in a form.

In document texts, only document texts may be included that have text IDs TX (general texts) or UO (authorization objects) and also other document texts with the same text ID as the calling document text.

In DSYS texts, all DSYS texts can be included, whatever ID they have. Document texts to be included must have one of the IDs TX or UO.

Into the other texts, standard texts with any allowable text ID, DSYS texts with all IDs, and document texts with the IDs TX and UO can be included.

The INCLUDE command returns a status code in the SAPSCRIPT-SUBRC symbol:

0: the text include was successful.

1: the command could not be executed because it contained syntax errors.

2: the rules governing the text to be included were not followed (see above).

This value cannot occur if the command is used in a SAPscript form.

4: the specified text could not be found.

reward points if helpful