SAP PRC_CNV_UNIT_CONV_BASE_TO_ALT Function Module for Convert Base to Alternative Product Unit
PRC_CNV_UNIT_CONV_BASE_TO_ALT is a standard prc cnv unit conv base to alt SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Convert Base to Alternative Product Unit 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 prc cnv unit conv base to alt FM, simply by entering the name PRC_CNV_UNIT_CONV_BASE_TO_ALT into the relevant SAP transaction such as SE37 or SE38.
Function Group: CNV_UNITS
Program Name: SAPLCNV_UNITS
Main Program: SAPLCNV_UNITS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled JAVA Module
Update:

Function PRC_CNV_UNIT_CONV_BASE_TO_ALT 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 'PRC_CNV_UNIT_CONV_BASE_TO_ALT'"Convert Base to Alternative Product Unit.
EXPORTING
IV_BASE_QUANTITY = "Quantity
IV_ALT_UNIT = "Quantity Unit
IV_BASE_UNIT = "Quantity Unit
IT_ALT_QUANTITY_UNIT = "Alternative Quantity Unit With Conversion Factors
IMPORTING
ES_PROFILE = "Profile of the IPC call
EV_ALT_QUANTITY = "Quantity
EV_NUMERATOR = "Numerator for Conversion into Base Quantity Unit
EV_DENOMINATOR = "Denominator for Conversion into Base Quantity Unit
EV_EXPONENT = "Exponent for Conversion into Base Quantity Unit
IMPORTING Parameters details for PRC_CNV_UNIT_CONV_BASE_TO_ALT
IV_BASE_QUANTITY - Quantity
Data type: CNVT_QUANTITYOptional: No
Call by Reference: No ( called with pass by value option)
IV_ALT_UNIT - Quantity Unit
Data type: CNVT_QUANTITY_UNITOptional: No
Call by Reference: No ( called with pass by value option)
IV_BASE_UNIT - Quantity Unit
Data type: CNVT_QUANTITY_UNITOptional: No
Call by Reference: No ( called with pass by value option)
IT_ALT_QUANTITY_UNIT - Alternative Quantity Unit With Conversion Factors
Data type: CNVT_ALT_QUANTITY_UNIT_TOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for PRC_CNV_UNIT_CONV_BASE_TO_ALT
ES_PROFILE - Profile of the IPC call
Data type: CNVT_PROFILEOptional: No
Call by Reference: No ( called with pass by value option)
EV_ALT_QUANTITY - Quantity
Data type: CNVT_QUANTITYOptional: No
Call by Reference: No ( called with pass by value option)
EV_NUMERATOR - Numerator for Conversion into Base Quantity Unit
Data type: CNVT_NUMERATOROptional: No
Call by Reference: No ( called with pass by value option)
EV_DENOMINATOR - Denominator for Conversion into Base Quantity Unit
Data type: CNVT_DENOMINATOROptional: No
Call by Reference: No ( called with pass by value option)
EV_EXPONENT - Exponent for Conversion into Base Quantity Unit
Data type: CNVT_EXPONENTOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PRC_CNV_UNIT_CONV_BASE_TO_ALT 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_es_profile | TYPE CNVT_PROFILE, " | |||
| lv_iv_base_quantity | TYPE CNVT_QUANTITY, " | |||
| lv_iv_alt_unit | TYPE CNVT_QUANTITY_UNIT, " | |||
| lv_ev_alt_quantity | TYPE CNVT_QUANTITY, " | |||
| lv_ev_numerator | TYPE CNVT_NUMERATOR, " | |||
| lv_iv_base_unit | TYPE CNVT_QUANTITY_UNIT, " | |||
| lv_ev_denominator | TYPE CNVT_DENOMINATOR, " | |||
| lv_it_alt_quantity_unit | TYPE CNVT_ALT_QUANTITY_UNIT_T, " | |||
| lv_ev_exponent | TYPE CNVT_EXPONENT. " |
|   CALL FUNCTION 'PRC_CNV_UNIT_CONV_BASE_TO_ALT' "Convert Base to Alternative Product Unit |
| EXPORTING | ||
| IV_BASE_QUANTITY | = lv_iv_base_quantity | |
| IV_ALT_UNIT | = lv_iv_alt_unit | |
| IV_BASE_UNIT | = lv_iv_base_unit | |
| IT_ALT_QUANTITY_UNIT | = lv_it_alt_quantity_unit | |
| IMPORTING | ||
| ES_PROFILE | = lv_es_profile | |
| EV_ALT_QUANTITY | = lv_ev_alt_quantity | |
| EV_NUMERATOR | = lv_ev_numerator | |
| EV_DENOMINATOR | = lv_ev_denominator | |
| EV_EXPONENT | = lv_ev_exponent | |
| . " PRC_CNV_UNIT_CONV_BASE_TO_ALT | ||
ABAP code using 7.40 inline data declarations to call FM PRC_CNV_UNIT_CONV_BASE_TO_ALT
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.Search for further information about these or an SAP related objects