目的 | 將單位換算 |
Func | UNIT_CONVERSION_SIMPLE |
程式碼 | DATA: value_in TYPE i VALUE 1, value_out TYPE i .
CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' EXPORTING input = value_in round_sign = 'X' unit_in = 'H' unit_out = 'MIN' IMPORTING Output = value_out EXCEPTIONS Conversion_not_found = 01 Division_by_zero = 02 input_invalid = 03. WRITE : value_out.
VALUE_out-à60 |
注意事項 | This FM converts values from one measurement unit to another and rounds the result to the number of decimal places maintained in the measurement unit table, if necessary. The rounding is up ('+'), down ('-'), commercial ('X') or no rounding (SPACE), depending on the parameter ROUND_SIGN. |
ABAP单位换算
最新推荐文章于 2024-01-12 11:32:05 发布