SAP SmartForms 字符处理

格式化数字等,在smartforms显示输出的格式。 

Link:

http://help.sap.com/saphelp_nw04/helpdata/en/1c/f40c6fddf311d3b574006094192fe3/frameset.htm

Overview

Formatting Options for Fields

Syntax

Description

&field+<offset>&

Skips offsets (<offset>) in the field value (character fields only). If the offset is greater than the length of the value, nothing is displayed.

&field(<length>)&

Sets the output length to <length>.

&field(*)&

If the field is defined by a Data Dictionary type, Smart Forms sets the output length to the value specified there.

&field(S)&

Suppresses the sign

&field(<)&

Displays the sign to the left of the number

&field(.<nat.number>)&

Limits output of decimal places to <nat.number>

&field(E<nat.number>)&

Displays the field value with the fixed exponent <nat.number>. The mantissa is adapted to this exponent by shifting the decimal character and inserting zeros.

&field(T)&

Suppresses thousand indicators when displaying fields of types DECCURRINT, andQUAN.

&field(Z)&

Suppresses leading zeros in numbers

&field(I)&

Suppresses display of initial values

&field(K)&

Deactivates a conversion routine specified in the Data Dictionary

&field(R)&

Right-justified display. Use this option only when specifying an output length as well.

&field(F<filler>)&

Replaces left-justified blanks in the value by the fill character <filler>.

&field(L)&

Converts a date field to a local date and displays it. The date is then formatted using the edit mask JPDAT.

Since this representation uses Japanese characters, it is only to be used in the Japanese version of the SAP System.

&field(C)&

The system takes the field value as a sequence of words separated by blanks. Option C shifts these words to the left and leaves one blank in-between as a separator. Any leading blanks are omitted. This effect corresponds to that of the ABAP statementCONDENSE.

 

 

 Case:

保留三位小数,需要&GV_MENGE_ZH(.3)&。然后同时取消该字段的参考,如下图:



 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值