CLAS CL_UOM_CONVERSION

Source Link
Open in ADT

Home
Previous Object: CL_SYSTEM_UUID
Next Object: CL_UOM_DIM_MAINTENANCE

Status: RELEASED

Public
Type ty_dec5 TYPE cl_uom_conversion=>ty_dec5
Type ty_addko TYPE cl_uom_conversion=>ty_addko
Type ty_andec TYPE cl_uom_conversion=>ty_andec
Type ty_decan TYPE cl_uom_conversion=>ty_decan
Type ty_dimid TYPE cl_uom_conversion=>ty_dimid
Type ty_dzaehl TYPE cl_uom_conversion=>ty_dzaehl
Type ty_exp10 TYPE cl_uom_conversion=>ty_exp10
Type ty_famunit TYPE cl_uom_conversion=>ty_famunit
Type ty_msehi TYPE cl_uom_conversion=>ty_msehi
Type ty_nennr TYPE cl_uom_conversion=>ty_nennr
Type ty_buffer_ctr TYPE cl_uom_conversion=>ty_buffer_ctr
Type ty_context_switch TYPE cl_uom_conversion=>ty_context_switch
Static Method create
  IMPORTING
    buffer_control TYPE cl_uom_conversion=>ty_buffer_ctr Optional
    context_switch TYPE cl_uom_conversion=>ty_context_switch Optional
  RETURNING uom TYPE cl_uom_conversion
Method constructor
  IMPORTING
    buffer_control TYPE cl_uom_conversion=>ty_buffer_ctr Optional
    context_switch TYPE cl_uom_conversion=>ty_context_switch Optional
Method si_unit_get
  IMPORTING
    dimension TYPE cl_uom_conversion=>ty_dimid Optional
    unit TYPE cl_uom_conversion=>ty_msehi Optional
  EXPORTING
    si_unit TYPE cl_uom_conversion=>ty_msehi
  EXCEPTIONS dimension_not_found
  EXCEPTIONS unit_not_found
  EXCEPTIONS si_unit_not_found
Method unit_conversion_simple
  IMPORTING
    input TYPE any
    no_type_check TYPE any Optional
    round_sign TYPE any Optional
    unit_in TYPE cl_uom_conversion=>ty_msehi Optional
    unit_out TYPE cl_uom_conversion=>ty_msehi Optional
  EXPORTING
    add_const TYPE any
    decimals TYPE any
    denominator TYPE any
    numerator TYPE any
    output TYPE any
  EXCEPTIONS conversion_not_found
  EXCEPTIONS division_by_zero
  EXCEPTIONS input_invalid
  EXCEPTIONS output_invalid
  EXCEPTIONS overflow
  EXCEPTIONS type_invalid
  EXCEPTIONS units_missing
  EXCEPTIONS unit_in_not_found
  EXCEPTIONS unit_out_not_found
Method unit_parameters_get
  IMPORTING
    unit TYPE cl_uom_conversion=>ty_msehi
  EXPORTING
    decimals TYPE cl_uom_conversion=>ty_andec
    dimension TYPE cl_uom_conversion=>ty_dimid
    numerator TYPE cl_uom_conversion=>ty_dzaehl
    denominator TYPE cl_uom_conversion=>ty_nennr
    exponent TYPE cl_uom_conversion=>ty_exp10
    add_const TYPE cl_uom_conversion=>ty_addko
    decan TYPE cl_uom_conversion=>ty_decan
    famunit TYPE cl_uom_conversion=>ty_famunit
  EXCEPTIONS unit_not_found
Method convert_to_fract5
  IMPORTING
    nomin TYPE F
    denomin TYPE F
  EXPORTING
    nomout TYPE cl_uom_conversion=>ty_dec5
    denomout TYPE cl_uom_conversion=>ty_dec5
  RAISING cx_uom_error

Exists on:
754true
750false
702false

Bug reports and ideas welcome
Made using abaplint.app