SAP FRML958_EXIT_UNIT_CONVERSION Function Module for NOTRANSL: RMS-FRM: Userexit
FRML958_EXIT_UNIT_CONVERSION is a standard frml958 exit unit conversion SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: RMS-FRM: Userexit processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for frml958 exit unit conversion FM, simply by entering the name FRML958_EXIT_UNIT_CONVERSION into the relevant SAP transaction such as SE37 or SE38.
Function Group: FRML958
Program Name: SAPLFRML958
Main Program: SAPLFRML958
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FRML958_EXIT_UNIT_CONVERSION pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'FRML958_EXIT_UNIT_CONVERSION'"NOTRANSL: RMS-FRM: Userexit.
EXPORTING
* I_BASE_QUAN = "Quantity of a Material or Substance for Unit Conversion
* I_BASE_UNIT = "Unit of Measure
* I_ADDINF = "EHS: Additional Information for Function Module Calls
* IT_SPECATTR = "Table Type for Substance, Entity, Value, Unit
* I_ENTITY_DENS = 'DENS' "Entity Types for Formula
IMPORTING
ET_LOG = "RMS-FRM: Messages for Application Log
CHANGING
XT_MAT_SPEC = "RMS-FRM: Table for Unit Conversion
EXCEPTIONS
NO_VALUES = 1 NO_BASE_VALUE = 2 DIMENSION_ERROR_BASE_UNIT = 3 SPEC_ERROR = 4 NO_VALDAT = 5 NO_ENVIRONMENT_PARAMETER = 6
IMPORTING Parameters details for FRML958_EXIT_UNIT_CONVERSION
I_BASE_QUAN - Quantity of a Material or Substance for Unit Conversion
Data type: FRMLE_QTY_CONVOptional: Yes
Call by Reference: Yes
I_BASE_UNIT - Unit of Measure
Data type: MSEHIOptional: Yes
Call by Reference: Yes
I_ADDINF - EHS: Additional Information for Function Module Calls
Data type: RCGADDINFOptional: Yes
Call by Reference: Yes
IT_SPECATTR - Table Type for Substance, Entity, Value, Unit
Data type: FRMLTY_SPECATTROptional: Yes
Call by Reference: Yes
I_ENTITY_DENS - Entity Types for Formula
Data type: FRMLE_ATTRDefault: 'DENS'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FRML958_EXIT_UNIT_CONVERSION
ET_LOG - RMS-FRM: Messages for Application Log
Data type: FRMLTY_LOG_RECOptional: No
Call by Reference: Yes
CHANGING Parameters details for FRML958_EXIT_UNIT_CONVERSION
XT_MAT_SPEC - RMS-FRM: Table for Unit Conversion
Data type: FRMLTY_MAT_SPECOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_VALUES -
Data type:Optional: No
Call by Reference: Yes
NO_BASE_VALUE -
Data type:Optional: No
Call by Reference: Yes
DIMENSION_ERROR_BASE_UNIT -
Data type:Optional: No
Call by Reference: Yes
SPEC_ERROR -
Data type:Optional: No
Call by Reference: Yes
NO_VALDAT -
Data type:Optional: No
Call by Reference: Yes
NO_ENVIRONMENT_PARAMETER -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FRML958_EXIT_UNIT_CONVERSION Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_et_log | TYPE FRMLTY_LOG_REC, " | |||
| lv_no_values | TYPE FRMLTY_LOG_REC, " | |||
| lv_i_base_quan | TYPE FRMLE_QTY_CONV, " | |||
| lv_xt_mat_spec | TYPE FRMLTY_MAT_SPEC, " | |||
| lv_i_base_unit | TYPE MSEHI, " | |||
| lv_no_base_value | TYPE MSEHI, " | |||
| lv_i_addinf | TYPE RCGADDINF, " | |||
| lv_dimension_error_base_unit | TYPE RCGADDINF, " | |||
| lv_spec_error | TYPE RCGADDINF, " | |||
| lv_it_specattr | TYPE FRMLTY_SPECATTR, " | |||
| lv_no_valdat | TYPE FRMLTY_SPECATTR, " | |||
| lv_i_entity_dens | TYPE FRMLE_ATTR, " 'DENS' | |||
| lv_no_environment_parameter | TYPE FRMLE_ATTR. " |
|   CALL FUNCTION 'FRML958_EXIT_UNIT_CONVERSION' "NOTRANSL: RMS-FRM: Userexit |
| EXPORTING | ||
| I_BASE_QUAN | = lv_i_base_quan | |
| I_BASE_UNIT | = lv_i_base_unit | |
| I_ADDINF | = lv_i_addinf | |
| IT_SPECATTR | = lv_it_specattr | |
| I_ENTITY_DENS | = lv_i_entity_dens | |
| IMPORTING | ||
| ET_LOG | = lv_et_log | |
| CHANGING | ||
| XT_MAT_SPEC | = lv_xt_mat_spec | |
| EXCEPTIONS | ||
| NO_VALUES = 1 | ||
| NO_BASE_VALUE = 2 | ||
| DIMENSION_ERROR_BASE_UNIT = 3 | ||
| SPEC_ERROR = 4 | ||
| NO_VALDAT = 5 | ||
| NO_ENVIRONMENT_PARAMETER = 6 | ||
| . " FRML958_EXIT_UNIT_CONVERSION | ||
ABAP code using 7.40 inline data declarations to call FM FRML958_EXIT_UNIT_CONVERSION
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| DATA(ld_i_entity_dens) | = 'DENS'. | |||
Search for further information about these or an SAP related objects