‎2007 Aug 06 9:46 AM
what r formatting symbols in a sap script where r these symbols used///////////pls lemme know
‎2007 Aug 06 9:52 AM
Hi,
Format option is --> &VAR(n)&
Example :
&VAR& = ABCDEFGHIJK
&VAR(2)& = AB
&VAR+2(3)& = CDE
System symbol
Contains
DATE
current date
DAY
day from current date
DEVICE
output device: PRINTER, SCREEN, TELEX, FAX
HOURS
hours from time of day
MINUTES
minutes from time of day
MONTH
month from current date
NAME_OF_MONTH
name of the month from current date
NEXTPAGE
page number of the next page
PAGE
page number of a SAPscript text
SECONDS
seconds from time of day
SPACE
blank
TIME
time of day
ULINE
underline
VLINE
vertical line
YEAR
year from current date
Regards
Sudheer
‎2007 Aug 06 9:55 AM
Hi,
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. SAP script 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&
Regards,
Priyanka.