SAP RV_CONDITION_CONVERT_UNITS Function Module for NOTRANSL: Umrechnen von Einheiten entsprechend der Rechenregel
RV_CONDITION_CONVERT_UNITS is a standard rv condition convert units 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: Umrechnen von Einheiten entsprechend der Rechenregel 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 rv condition convert units FM, simply by entering the name RV_CONDITION_CONVERT_UNITS into the relevant SAP transaction such as SE37 or SE38.
Function Group: V14A
Program Name: SAPLV14A
Main Program: SAPLV14A
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RV_CONDITION_CONVERT_UNITS 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 'RV_CONDITION_CONVERT_UNITS'"NOTRANSL: Umrechnen von Einheiten entsprechend der Rechenregel.
EXPORTING
KRECH = "Calculation Rule for Condition
KPEIN_SOURCE = "Condition Pricing Unit
KMEIN_SOURCE = "Condition Unit
KPEIN_TARGET = "Condition Pricing Unit
KMEIN_TARGET = "Condition Unit
* PRODUCT = "Material Number
* KMEIN_BASE = "Condition Unit
CHANGING
KBETR = "Rate (Condition Amount or Percentage) Where No Scale Exists
EXCEPTIONS
EXC_CONVERSION_FAILED = 1
IMPORTING Parameters details for RV_CONDITION_CONVERT_UNITS
KRECH - Calculation Rule for Condition
Data type: KONP-KRECHOptional: No
Call by Reference: Yes
KPEIN_SOURCE - Condition Pricing Unit
Data type: KONP-KPEINOptional: No
Call by Reference: Yes
KMEIN_SOURCE - Condition Unit
Data type: KONP-KMEINOptional: No
Call by Reference: Yes
KPEIN_TARGET - Condition Pricing Unit
Data type: KONP-KPEINOptional: No
Call by Reference: Yes
KMEIN_TARGET - Condition Unit
Data type: KONP-KMEINOptional: No
Call by Reference: Yes
PRODUCT - Material Number
Data type: KOMG-MATNROptional: Yes
Call by Reference: Yes
KMEIN_BASE - Condition Unit
Data type: KONP-KMEINOptional: Yes
Call by Reference: Yes
CHANGING Parameters details for RV_CONDITION_CONVERT_UNITS
KBETR - Rate (Condition Amount or Percentage) Where No Scale Exists
Data type: KONP-KBETROptional: No
Call by Reference: Yes
EXCEPTIONS details
EXC_CONVERSION_FAILED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RV_CONDITION_CONVERT_UNITS 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_kbetr | TYPE KONP-KBETR, " | |||
| lv_krech | TYPE KONP-KRECH, " | |||
| lv_exc_conversion_failed | TYPE KONP, " | |||
| lv_kpein_source | TYPE KONP-KPEIN, " | |||
| lv_kmein_source | TYPE KONP-KMEIN, " | |||
| lv_kpein_target | TYPE KONP-KPEIN, " | |||
| lv_kmein_target | TYPE KONP-KMEIN, " | |||
| lv_product | TYPE KOMG-MATNR, " | |||
| lv_kmein_base | TYPE KONP-KMEIN. " |
|   CALL FUNCTION 'RV_CONDITION_CONVERT_UNITS' "NOTRANSL: Umrechnen von Einheiten entsprechend der Rechenregel |
| EXPORTING | ||
| KRECH | = lv_krech | |
| KPEIN_SOURCE | = lv_kpein_source | |
| KMEIN_SOURCE | = lv_kmein_source | |
| KPEIN_TARGET | = lv_kpein_target | |
| KMEIN_TARGET | = lv_kmein_target | |
| PRODUCT | = lv_product | |
| KMEIN_BASE | = lv_kmein_base | |
| CHANGING | ||
| KBETR | = lv_kbetr | |
| EXCEPTIONS | ||
| EXC_CONVERSION_FAILED = 1 | ||
| . " RV_CONDITION_CONVERT_UNITS | ||
ABAP code using 7.40 inline data declarations to call FM RV_CONDITION_CONVERT_UNITS
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.| "SELECT single KBETR FROM KONP INTO @DATA(ld_kbetr). | ||||
| "SELECT single KRECH FROM KONP INTO @DATA(ld_krech). | ||||
| "SELECT single KPEIN FROM KONP INTO @DATA(ld_kpein_source). | ||||
| "SELECT single KMEIN FROM KONP INTO @DATA(ld_kmein_source). | ||||
| "SELECT single KPEIN FROM KONP INTO @DATA(ld_kpein_target). | ||||
| "SELECT single KMEIN FROM KONP INTO @DATA(ld_kmein_target). | ||||
| "SELECT single MATNR FROM KOMG INTO @DATA(ld_product). | ||||
| "SELECT single KMEIN FROM KONP INTO @DATA(ld_kmein_base). | ||||
Search for further information about these or an SAP related objects