SAP的单位转换函数进行单位转换
作者:admin 日期:2009-08-21
report Zrsbzme10 .
parameters: p_In(10) type c,
unit_in like t006-msehi default 'M',
unit_out like t006-msehi default 'MM',
round(1) type c default 'X'.
data: result type p decimals 3,
input type p decimals 3.
input = p_IN.
call function 'UNIT_CONVERSION_SIMPLE'
exporting
input = input
round_sign = round
unit_in = unit_in
unit_out = unit_out
importing
output = result
exceptions
conversion_not_found = 01
division_by_zero = 02
input_invalid = 03
output_invalid = 04
overflow = 05
units_missing = 06
unit_in_not_found = 07
unit_out_not_found = 08.
write: 'Result: ',result.
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/CompassButton/archive/2006/11/07/1371247.aspx
parameters: p_In(10) type c,
unit_in like t006-msehi default 'M',
unit_out like t006-msehi default 'MM',
round(1) type c default 'X'.
data: result type p decimals 3,
input type p decimals 3.
input = p_IN.
call function 'UNIT_CONVERSION_SIMPLE'
exporting
input = input
round_sign = round
unit_in = unit_in
unit_out = unit_out
importing
output = result
exceptions
conversion_not_found = 01
division_by_zero = 02
input_invalid = 03
output_invalid = 04
overflow = 05
units_missing = 06
unit_in_not_found = 07
unit_out_not_found = 08.
write: 'Result: ',result.
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/CompassButton/archive/2006/11/07/1371247.aspx
评论: 0 | 引用: 0 | 查看次数: 2939
发表评论
你没有权限发表留言!