SAP ABAP SAPSCRIPT

From SapWiki
Revision as of 14:23, 27 March 2020 by WikiSysop (talk | contribs)

Formato en Sapscript

Fill Characters

&symbol(Ff)&	 	
The figure for customer sales in the KNA1-UMSAT field is $700. The Dictionary
description of the field specifies an output length of eight.

Symbol Result
&KNA1-UMSAT&     700.00
&KNA1-UMSAT(F*)& **700.00
&KNA1-UMSAT(F0)& 00700.00

Sing to the Left

 &symbol(<)&
 &ITCDP-TDULPOS(<)& -100.00

Sing to the Right

 &symbol(>)&

N° Decimals

 &symbol(.n)&
 &EKPO-MENGE(.4)& 1,234.5600

Ommiting Leading Zeros

Certain symbol values are output with leading zeros. To suppress
these values use the Z option.
&symbol(Z)&

Ommiting Leading Sign

Program symbols with numeric values can have a leading sign, which
usually appears at the right of the numeric value as a space for
positive numbers, or as a minus sign for negative numbers. The S
option ensures that the value is formatted without the sign.
 &symbol(S)&

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 replaces each string of space characters with a single space and
shifting “words” to the left to close gaps. Leading spaces are
completely removed. The results are the same as if the ABAP
command CONDENSE was used.
&symbol(C)&

Suppresing Initial Values

The I option suppresses the output of symbols that still contain their
initial value.
&symbol(I)&

Ignoring convertion rules

SAPscript conversion routines specified in the Dictionary are
automatically recognized and used when program symbols are
formatted. These conversions can be prevented with the K option.

&symbol(K)&

Offset

&symbol+n&
&symbol& = '123456789'
&symbol+3& = '456789'

Omitting the Separator for "Thousands"

&symbol(T)&

Output Lenght

&symbol(l)&
&symbol& = '123456789'
&symbol(3)& = '123'

Preceding and Subsequent Text

&'pre-text'symbol'post text'&
&'N° Factura 'VBRK-VBELN&

Right-Justified Output

&symbol(R)&
&symbol&     1234
&symbol(8R)&         1234