Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

sap script

Former Member
0 Likes
645

what r system symobls ,standard symbols,text symbols ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
599

A variable in SAPscript is called a symbol. There are the following types.

• System symbol (e.g. the number of the current page)

• Standard symbol (usable in any document)

• Program symbol (value from the print program)

• Text symbol (“local variable”)

The value of a symbol is text for using within SAPscript code and is represented by the symbol-name enclosed by ampersands. On seeing the tell-tale ampersands in SAPscript code, you sometimes need to figure out the symbol type.

System symbols

System symbols in a SAPscript form are comparable to system fields like SY-UZEIT in an ABAP program, and include these. The graphical editor offers three types of system symbol.

1. General system symbols

See the table TTSXY. PAGE is the most widely used. The list given in our BC460 training manuals is out of date.

2. SAPscript system symbols

See the dictionary structure SAPSCRIPT. SAPSCRIPT-FORMPAGES is the most widely used.

3. ABAP system symbols

For the ABAP system field SY-UNAME, say, the symbol is SYST-UNAME. [SYST is the dictionary structure for ABAP system fields.]

Sample code:

  • User: &SYST-UNAME&

  • Page &PAGE& of &SAPSCRIPT-FORMPAGES(C3)&

Standard symbols

Standard symbols are maintained centrally (in the table TTDTG via transaction SE75) for use in any document. Menu path:

Tools

Form Printout

Administration

Settings

Some standard symbols are SAP-standard and others are custom. Curiously, table TTDTG is cross-client although SAPscript forms are not.

The value of a standard symbol has to be defined for each language used. This gives a way to make a single SAPscript form multi-lingual.

We can take advantage to an extent of the central maintenance, though there is no guarantee that the available standard symbols will used in every appropriate context.

Standard symbols complicate searching a SAPscript form, since text like ‘Charity registration 211581’ may be hiding in a standard symbol.

Text symbols

A text symbol is declared and assigned to within the SAPscript code, and so obviously applies only to the current document. The command DEFINE is used, requiring /: in the tag column, as in the following examples.

/: DEFINE &COMP_NAME& = ‘University of Warwick’

/: DEFINE &WS_RATE& = &TAX_SUMM_C&

5 REPLIES 5
Read only

Former Member
0 Likes
600

A variable in SAPscript is called a symbol. There are the following types.

• System symbol (e.g. the number of the current page)

• Standard symbol (usable in any document)

• Program symbol (value from the print program)

• Text symbol (“local variable”)

The value of a symbol is text for using within SAPscript code and is represented by the symbol-name enclosed by ampersands. On seeing the tell-tale ampersands in SAPscript code, you sometimes need to figure out the symbol type.

System symbols

System symbols in a SAPscript form are comparable to system fields like SY-UZEIT in an ABAP program, and include these. The graphical editor offers three types of system symbol.

1. General system symbols

See the table TTSXY. PAGE is the most widely used. The list given in our BC460 training manuals is out of date.

2. SAPscript system symbols

See the dictionary structure SAPSCRIPT. SAPSCRIPT-FORMPAGES is the most widely used.

3. ABAP system symbols

For the ABAP system field SY-UNAME, say, the symbol is SYST-UNAME. [SYST is the dictionary structure for ABAP system fields.]

Sample code:

  • User: &SYST-UNAME&

  • Page &PAGE& of &SAPSCRIPT-FORMPAGES(C3)&

Standard symbols

Standard symbols are maintained centrally (in the table TTDTG via transaction SE75) for use in any document. Menu path:

Tools

Form Printout

Administration

Settings

Some standard symbols are SAP-standard and others are custom. Curiously, table TTDTG is cross-client although SAPscript forms are not.

The value of a standard symbol has to be defined for each language used. This gives a way to make a single SAPscript form multi-lingual.

We can take advantage to an extent of the central maintenance, though there is no guarantee that the available standard symbols will used in every appropriate context.

Standard symbols complicate searching a SAPscript form, since text like ‘Charity registration 211581’ may be hiding in a standard symbol.

Text symbols

A text symbol is declared and assigned to within the SAPscript code, and so obviously applies only to the current document. The command DEFINE is used, requiring /: in the tag column, as in the following examples.

/: DEFINE &COMP_NAME& = ‘University of Warwick’

/: DEFINE &WS_RATE& = &TAX_SUMM_C&

Read only

Former Member
0 Likes
599

Hi Naga,

Symbols :

- are placeholders for texts.

Example :

&symbol&

Four Types :

System Symbols.

Standard Symbols.

Program Symbols.

Text Symbols.

System Symbols :

SAPscript supplies the values for system symbols.

Example :

&Date&

&DAY&

&MONTH&

&TIME&

Standard Symbols :

Standard symbols are defined in table TTDTG.

TTDTG contains the name of each symbol and its value.

SAP supplies this table filled with standard entries.

Can use standard symbols in all kinds of text.

Program Symbols :

Represent data supplied by the program that is currently executing.

datas are copied into work areas declared using TABLES.

Symbols which obtain their values from this work area are called program

symbols.

The value of a program symbol is limited to 255 characters.

Text Symbols :

All symbols except the above three symbols are text symbols.

we define text symbols ourselves.

Two ways of defining :

In the text editor : INCLUDE ->SYMBOLS->TEXT

In the text, use the control command DEFINE.

Thanks.

Reward If Helpful.

Read only

Former Member
0 Likes
599

Hi,

http://help.sap.com/saphelp_40b/helpdata/en/f4/b4a0b3453611d189710000e8322d00/content.htm

SAPscript symbols

Overview

A variable in SAPscript is called a symbol. There are the following types.

• System symbol (e.g. the number of the current page)

• Standard symbol (usable in any document)

• Program symbol (value from the print program)

• Text symbol (“local variable”)

The value of a symbol is text for using within SAPscript code and is represented by the symbol-name enclosed by ampersands. On seeing the tell-tale ampersands in SAPscript code, you sometimes need to figure out the symbol type.

System symbols

System symbols in a SAPscript form are comparable to system fields like SY-UZEIT in an ABAP program, and include these. The graphical editor offers three types of system symbol.

1. General system symbols

See the table TTSXY. PAGE is the most widely used. The list given in our BC460 training manuals is out of date.

2. SAPscript system symbols

See the dictionary structure SAPSCRIPT. SAPSCRIPT-FORMPAGES is the most widely used.

3. ABAP system symbols

For the ABAP system field SY-UNAME, say, the symbol is SYST-UNAME. [SYST is the dictionary structure for ABAP system fields.]

Sample code:

  • User: &SYST-UNAME&

  • Page &PAGE& of &SAPSCRIPT-FORMPAGES(C3)&

Standard symbols

Standard symbols are maintained centrally (in the table TTDTG via transaction SE75) for use in any document. Menu path:

Tools

Form Printout

Administration

Settings

Some standard symbols are SAP-standard and others are custom. Curiously, table TTDTG is cross-client although SAPscript forms are not.

The value of a standard symbol has to be defined for each language used. This gives a way to make a single SAPscript form multi-lingual.

We can take advantage to an extent of the central maintenance, though there is no guarantee that the available standard symbols will used in every appropriate context.

Standard symbols complicate searching a SAPscript form, since text like ‘Charity registration 211581’ may be hiding in a standard symbol.

Program symbols

Program symbols are for values from the ABAP print program.

For example, &VBDPA-NETWR(11)& in SAPscript code represents the value of the ABAP field VBDPA-NETWR, but as text (to be printable) and restricted to 11 characters.

Such values are not explicitly passed by the print program. A side effect of some of the SAPscript-related function calls that a print program makes seems to be that all the ABAP fields and their contents (as they are at that moment) become available for SAPscript-symbol use.

Text symbols

A text symbol is declared and assigned to within the SAPscript code, and so obviously applies only to the current document. The command DEFINE is used, requiring /: in the tag column, as in the following examples.

/: DEFINE &COMP_NAME& = ‘University of Warwick’

/: DEFINE &WS_RATE& = &TAX_SUMM_C&

Regards,

Priyanka.

Read only

Former Member
0 Likes
599

Hi naga.

Text symbols are global variables that are filled into the print program linked to a form.

Standard symbols are somehow "constants" for some common items (paragraph numbering, "What to do", "Syntax"). You should use these standard symbols if you want SAP automatically to handle the language translations for these constants.

System symbols are global variables valid for all forms, for example, page number, total number of pages, and several fields of structure SY/SYST.

I hope it helps. BR,

Alvaro

Read only

Former Member
0 Likes
599

Hi Naga Mrudula,

Symbols are constants used to save un nessessary work used in documentation

1. system symbols : example: &date& &time& etc

2. text symbols: they are defined using control statements

protect...endprotect, if endif, etc

3. standard symbols : all the messages are stored in TTDTG table

4. program symbols : used in abap program example: &i_mara-matnr& &i_mara-ernam&

Hope this resolves your query.

Reward all the helpful answers.

Regards