SAP Script Tutorials Page 58

myitcareer.org-Your IT Career Partner For Life. Please Bookmark It.
Software Engineering Tools | Buy Book | Buy Phone | Top Web Hosts | Rules Engines
Yoga Meditation | Invention Ideas | Wireless Health, mHealth | Manage Project
Knowledge Management
Plan Wedding | Online Tuition | Top Domain Registrars
Hire Freelancer | Hosting Charges | Android Application Design and Development

62 7.6.5 Leading Sign to the Right The default setting is to print the leading sign to the right of a numeric value. If you used the
SET SIGN LEFT control command to specify that the leading sign should be printed in front of
the value, you can override this specification for individual symbols. The symbols specified with
the > option are then printed with the leading sign to the right.
Syntax:
&symbol (>)&
You can use the SET SIGN RIGHT control command to switch back to the default
setting for the output of the leading sign. 7.6.6 Omitting Leading Zeros Certain symbol values are printed with leading zeros. If you want to suppress these, use the Z
option.
Syntax
&symbol (Z)&
Assuming the current date is 1.1.1994,
&DAY& -> 01
&DAY(Z)& -> 1 7.6.7 Space Compression The symbol value is viewed as a sequence of `words', each separated from the next by either
one or a string of space characters. The C option has the effect of replacing each string of
space characters with a single space and shifting the `words' to the left as necessary to close up
the gaps. Leading spaces are completely removed. The results are the same as those of the
ABAP command CONDENSE.
Syntax:
&symbol (C)&
Assuming ' Albert Einstein ' is the symbol value,
&symbol& -> Albert Einstein
&symbol(C)& -> Albert Einstein 7.6.8 Number of Decimal Places A program symbol of one of the data types DEC, QUAN, and FLTP can contain decimal place
data. Use the option below to override the Dictionary definition for the number of decimal places
for the formatting of this symbol value.
Syntax
&symbol (.N)&
The EKPO-MENGE field contains the value 1234.56. The Dictionary definition specifies
3 decimal places and an output length of 17.
&EKPO-MENGE& -> 1,234.560
&EKPO-MENGE(.1) -> 1,234.6
&EKPO-MENGE&(.4) -> 1,234.5600
&EKPO-MENGE&(.0) -> 1,235 7.6.9 Omitting the Separator for `Thousands' Symbols of the DEC, CURR, INT, and QUAN data types are normally formatted with the a
`thousands' separator character. The T option allows you to omit this separator character.
Syntax:
&symbol (T)&