Академический Документы
Профессиональный Документы
Культура Документы
This is a collection of output that demonstrates how fields can be formatted when writing to an SapScript element.
Placing an offset
&A_VARIABLE+16&
Substr-Functionality
&A_VARIABLE+16(3)&
fox
12,345,678.000-
12,345,678.000
Leading sign
&rv50a-lfpmg(<)&
-12,345,678.000
Trailing sign
&rv50a-lfpmg(>)&
12,345,678.000-
00012,345,678.000&rv50a-lfpmg(F*)&
***12,345,678.000XXX12,345,678.000-
With Xes:
Unmodified:
Zero decimals: &rv50a-lfpmg(.0)&
12,345,678.00012,345,678&rv50a-lfpmg(.2)&
Zero decimals:
Two decimals:
Two decimals:
12,345,678.00-
Unmodified:
Compressed: &RV50A-MATNR(Z)&
123 123
Compressed:
Without compression
With compression (10.00)
( (10.00)
10.00)
With compression
Original &MSEG-BNBTR&
0.00
123
&RV50A-MATNR(K)&
Without conversion
000000000000000123
Deutschland
/: SET COUNTRY 'US '
USA
/: SET COUNTRY 'SE
Swenska
/: SET COUNTRY ' '
Back to default
With date mask: Anno Domino 1998, on the 15th day of Jun
Freitag 2000 Dezember 29 @ 15 h 35 min 12 sec Day of week &NAME_OF_DAY& = Freitag (from table TTDTG) Day &DAY& = 29 Day &DAY(Z)& without leading '0': 29 Month &MONTH& = 12 Month as a text &NAME_OF_MONTH& = Dezember (from table TTDTG) Year &YEAR& = 2000 Two digit year &YEAR+2(2)& = 00 Hours &HOURS& = 15 Hours without leading '0' &HOURS(Z)& = 15 Minutes &MINUTES& = 35 Minutes without leading '0' &MINUTES(Z)& = 35 Seconds &SECONDS(Z)& = 12 Seconds without leading '0' &SECONDS(Z)& = 12
1
&SAPSCRIPT-COUNTER_1(+)&
Output and increase counter 1 Output and increase again counter 1 Output counter 2
Output and decrease counter 1
2 3 0
&SAPSCRIPT-COUNTER_1(-)&
Page Information
Total number of pages &SAPSCRIPT-FORMPAGES& = 6 Actual page number &PAGE& = 6 Next page &NEXTPAGE& will be "Page 7"(will be zero if you are on last page) Total number of pages of job &SAPSCRIPT-JOBPAGES& = 6 Output device driver &SAPSCRIPT-DRIVER& is "SWIN" Most recent SapScript return code &SAPSCRIPT-SUBRC&is " 0"
Facsimile Information
If it were a fax, following information would be passed to SAPFAX.DLL Country="&SAPSCRIPT-TELELAND&" () Dialled number=" &SAPSCRIPT-TELENUM&" () Fax Number specified="&SAPSCRIPT-TELENUME&"