Difference between revisions of "SAP ABAP SAPSCRIPT"

From SapWiki
(Created page with "==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 specifi...")
 
Line 1: Line 1:
 
==Formato en Sapscript==
 
==Formato en Sapscript==
* Fill Characters
+
=== Fill Characters===
 
   
 
   
 
  &symbol(Ff)&
 
  &symbol(Ff)&
Line 12: Line 12:
 
  &KNA1-UMSAT(F0)& 00700.00
 
  &KNA1-UMSAT(F0)& 00700.00
  
* Sing to the Left
+
===Sing to the Left===
  
 
   &symbol(<)&
 
   &symbol(<)&
Line 18: Line 18:
 
   &ITCDP-TDULPOS(<)& -100.00
 
   &ITCDP-TDULPOS(<)& -100.00
  
* N° Decimals
+
===Sing to the Right===
 +
 
 +
  &symbol(>)&
 +
 
 +
===N° Decimals===
  
 
   &symbol(.n)&
 
   &symbol(.n)&
Line 24: Line 28:
 
   &EKPO-MENGE(.4)& 1,234.5600
 
   &EKPO-MENGE(.4)& 1,234.5600
  
* Ommiting Leading Zeros
+
===Ommiting Leading Zeros===
  
 
  Certain symbol values are output with leading zeros. To suppress
 
  Certain symbol values are output with leading zeros. To suppress
Line 31: Line 35:
 
  &symbol(Z)&
 
  &symbol(Z)&
  
* Ommiting Leading Sign
+
===Ommiting Leading Sign===
  
 
  Program symbols with numeric values can have a leading sign, which
 
  Program symbols with numeric values can have a leading sign, which
Line 40: Line 44:
 
   &symbol(S)&
 
   &symbol(S)&
  
* Space Compression
+
===Space Compression===
  
 
  The symbol value is viewed as a sequence of “words,” each separated
 
  The symbol value is viewed as a sequence of “words,” each separated
Line 51: Line 55:
 
  &symbol(C)&
 
  &symbol(C)&
  
* Suppresing Initial Values
+
===Suppresing Initial Values===
  
 
  The I option suppresses the output of symbols that still contain their
 
  The I option suppresses the output of symbols that still contain their
Line 57: Line 61:
  
 
  &symbol(I)&
 
  &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

Revision as of 14:23, 27 March 2020

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