on 04-21-2008 10:47 AM
Hi all,
Can any body please provide me sap Script alignment symbols.
thanks and Regards,
Anilreddy.
correct
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi anil reddy,
Symbols and Control commands
Symbols are placeholders for values that are inserted during print formatting.
Symbols are indentified by name surrounded by "&" and are not case sensitive
Types of symbols
System symbols
DATE Date
DAY Day
NAME_OF_DAY Name of day
MONTH Month
YEAR Year
TIME Time
HOURS Hours
MINUTES Minutes
SECONDS Seconds
PAGE Page number
NEXTPAGE Number of next pagre
DEVICE Output device
SPACE Blank space
ULINE Underline
VLINE Vertical line
Standard symbols
Standard symbols are user defined and are maintained in table TTDG(table is not available???)
. You use transaction SM30 to change or display standard symbols.
An examples of standard symbols is &MFG& fot "Yours faithfully"
Standard text
standard texts is predifined texts that can be used in more than one form. Standard texts are can be created, changed and displayed using transaction SO10.
The text ID is used to classify texts.
To include a standard text in a form, use the INCLUDE command:
INCLUDE Z_BC460_EX4_HF OBJECT TEXT ID SDVD
When formatting the standard text the PARAGRAPH parameter is used. To center the text use:
Example:
INCLUDE Z_BC460_EX4_HF OBJECT TEXT ID SDVD LANGUAGE EN PARAGRAPH C.
Name: Z_BC460_EX4_HF
Object: Text
Text id: SDVD (Text id from SO10)
Language: EN
Paragraph: C (Centered)
Tip: You can use menu Insert->Text->Standard to make it easier to insert the text
Program symbols
Program symbols are for contents of database fields or global program symbols. When you print the form, data from the database tables are printed isntead of the symbols.
In the print program:
TABLES: kna1.
In the form:
&KNA1-NAME1&
Formatting
&SYMBOL& No formatting
&SYMBOL+4& Offset - Output begins here. Offset refers to formatted value
&SYMBOL(5)& Length - Output data in the specified length
&SYMBOL(I)& Suppress initial value - If the field has been initialized, nothing is output
&SYMBOL(Z)& Suppress leading zeros
&SYMBOL(C)& Compress blank spaces - Consecutice spaces are compressed into a single space. Leading spacesare suppressed.
&SYMBOL(R)& Right align output
&SYMBOL(S)& Operators are suppressed
&SYMBOL(*)& Dictionary length - The data length is defined by the ABAP dictionary
&SYMBOL(8.2)& Decimal format. Length 8 decimals 2
&'text1'SYMBOL'text2'& Text can be inserted before and after the symbol
Control commands
Control command are used to modify text output. Use format key /: in the format column.
The intensity is the grey scale of the box as %. The frame parameters is the thickness of the frame. Default is 0.
Each of the paramteters ypos, xpos, width, height and frame muts be followed of the measurement unit:
TW (twip)
PT (point)
IN (inch)
MM (millimeter)
CM (centimeter)
LN (line)
CH (character).
Examples:
BOX XPOS '11.21' MM YPOS '5.31' MM HEIGHT '10' MM WIDTH '20' MM INTENSITY 10 FRAME 0 TW
Draws two rectangles and two lines to construct a table of three columns with a highlighted heading section.
POSITION and SIZE
You can use the POSITION and SIZE commands to set default parmeters for a box. This can be usefull if you have several boxes that share the same parameters.
If you want to set the position realtively to the window use POSITION WINDOW to set the position to the top/left start of the window. Then use POSITION to set the current position relatively to the start of the Window. Note that
you uses "+" or "-" in the ORIGIN position to the set the position relatively.
the position is now 5 MM from the left and 10 MM from the top of the window.
NOTE: After using the position command you can move the current position realtively to the last used position
Using SAPscript Symbols
You can use SAPscript symbols to include program or system data or predefined texts in your document.
To use a symbol, enter the name of the symbol in your text enclosed in & characters :
&TIME&.
You can insert a symbol anywhere in your text. When you print or display your document, SAPscript substitutes the current value of the symbol for the symbol name in your document.
If you do not know the name of a symbol, choose Include ® Symbols to find the symbols available and choose one. In this case, you can also specify how to process and format the symbol.
You can use the TIME symbol to have the current time inserted in your document when the document is displayed or printed. You set symbols off from normal text by enclosing the symbol name in ampersands:
For example, Monday, &TIME& is displayed or printed as Monday, 08:00:52 , The time formatting depends on the option set in System ® User profile.
If you choose Include ® Symbol to insert a symbol into your text, the system automatically supplies the & characters.
Using the Four Types of Symbols
SAPscript offers four types of symbols that draw their values from different sources. These symbols are system symbols, program symbols, standard SAPscript symbols, and local text symbols. You access each type of symbol by way of a different Include submenu.
Here is more information on each type of symbol:
System symbols draw their values from global SAP System variables.
System symbols
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
Program symbols draw data from tables in the program that you need to retrieve the data for the SAPscript document you want to print. In addition, you can include all globally defined data as program symbols. Therefore, the tables must be defined in the ABAP Dictionary. This type of symbol is used to make data from the SAP applications available in such SAPscript documents as checks and correspondence.
To access these symbols, choose Include ® Symbols ® Program.
PC Editor
To include pargram symbols in the PC editor, see Inserting Program Symbols.
Standard symbols are maintained centrally in SAPscript (table TTDTG) and are available in all SAPscript documents. They generally contain static texts. For example, symbol &SGDH& is defined with the text "Dear Ladies and Gentlemen."
Standard symbols are language-dependent. If a symbol has been translated, then it is inserted in your document in the language that you have chosen for the document.
To access these symbols, choose Include ® Symbols ® Standard.
Text symbols are defined locally in your own document and are usable only in the document in which they are defined.
You can, for example, define a standard term or text passage once in your document and then include it where it is needed by way of its symbol name.
Define a text symbol with the DEFINE command:
/: DEFINE ='Symbol text'
PC Editor
To enter the DEFINE command together with the desired symbol name, choose Edit ® Include command
Syntax: DEFINE &MYSYMBOL& = '100'
Line Editor
In the line editor, you must mark the command in the format tag column with /: :
The following line defines a symbol that you can use elsewhere in your text:
/: DEFINE &OBJECT&='my country'
The text God save &OBJECT& would be printed or displayed as God save my country.
For more information, see the documentation BC Style and Form Maintenance.
Once you have defined a text symbol, you can include it by typing its name into your text or by choosing Include ® Symbols ® Text.
If you have allignment problems follow this
The alignment problem will be properly solved by making use of 'Tabs' available in PARAGRAPH FORMATS.
Follow the steps below:
1. Go to PARAGRAPH FORMATS, Click on the paragraph format (eg: CK) which you have defined for your fields
2. Click on the TABS pushbutton available on the right hand side.
3. Define the 'TAB position' and the 'Alignment'.
For eg for CK you have defined for ( number 1) tab position : 6.00 CM Alignment : LEFT.
( number 2) tab position : 12.00 CM Alignment : LEFT.
4. Go to text editor where you have defined these fields.
suppose u have fields
CK &a& &b& &c& then edit the content into CK &a&,,&b&,,&c&
Now, the field b will appear after 6 CM and the field c will appear after 12 CM.
thanks
karthik
reward me points if usefull
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.