• ABAP调用SAP的单位转换函数进行单位转换


    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.
     

  • 相关阅读:
    数据库底层索引
    shell脚本
    备份还原ESXi 中的虚拟机快照
    docker proxy
    yum
    ubuntu系统更换源和apt命令参数
    前端BootStrap框架和django创建项目和app
    python之路5:常用模块
    python之路3:文件操作和函数基础
    python之路4:各种器
  • 原文地址:https://www.cnblogs.com/xiaomaohai/p/6157475.html
Copyright © 2020-2023  润新知