UNIT_PARAMETERS_GET is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name UNIT_PARAMETERS_GET into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
SCV0
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'UNIT_PARAMETERS_GET' "
EXPORTING
unit = " t006-msehi Unit of measurement
IMPORTING
decimals = " t006-andec Number of decimal places for rounding
dimension = " t006-dimid Dimension
numerator = " t006-zaehl Counter
denominator = " t006-nennr Denominator
exponent = " t006-exp10 base ten exponent for conversion to SI unit
add_const = " t006-addko additive constant
decan = " t006-decan Number of decimal places for number display
famunit = " t006-famunit Unit of measurement family
EXCEPTIONS
UNIT_NOT_FOUND = 1 "
. " UNIT_PARAMETERS_GET
The ABAP code below is a full code listing to execute function module UNIT_PARAMETERS_GET including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).
| ld_decimals | TYPE T006-ANDEC , |
| ld_dimension | TYPE T006-DIMID , |
| ld_numerator | TYPE T006-ZAEHL , |
| ld_denominator | TYPE T006-NENNR , |
| ld_exponent | TYPE T006-EXP10 , |
| ld_add_const | TYPE T006-ADDKO , |
| ld_decan | TYPE T006-DECAN , |
| ld_famunit | TYPE T006-FAMUNIT . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_decimals | TYPE T006-ANDEC , |
| ld_unit | TYPE T006-MSEHI , |
| ld_dimension | TYPE T006-DIMID , |
| ld_numerator | TYPE T006-ZAEHL , |
| ld_denominator | TYPE T006-NENNR , |
| ld_exponent | TYPE T006-EXP10 , |
| ld_add_const | TYPE T006-ADDKO , |
| ld_decan | TYPE T006-DECAN , |
| ld_famunit | TYPE T006-FAMUNIT . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name UNIT_PARAMETERS_GET or its description.
UNIT_PARAMETERS_GET - UNIT_OF_TIME_INSERT_INTO_BUFFE - UNIT_OF_MEASURE_SAP_TO_ISO - Converts an SAP measurement unit code into ISO code UNIT_OF_MEASURE_ISO_TO_SAP - Convert an ISO measurement unit code into the SAP code UNIT_OF_MEASUREMENT_TEXT_GET - UNIT_OF_MEASUREMENT_HELP - Possible entries help for units of a dimension (F4 help)