CNV_UNIT_TESTF03 is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.
If you would like to execute this report or see the full code listing simply enter CNV_UNIT_TESTF03 into the relevant SAP transactions such as SE38 or SE80
This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.
Title: Include CNV_UNIT_TESTF03
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
COM_PRODUCT_UNIT_CONVERSION CALL FUNCTION 'COM_PRODUCT_UNIT_CONVERSION' EXPORTING iv_product_guid = gv_product iv_input = lv_input iv_unit = gv_aunit iv_base_unit = gv_bunit iv_flag_unit = ' ' IMPORTING ev_output = lv_alt_quantity_abap ev_numerator = lv_numerator_abap ev_denominator = lv_denominator_abap EXCEPTIONS wrong_call = 1 no_units_found = 2 base_unit_not_found = 3 iv_unit_not_found = 4 conversion_not_found = 5 overflow = 6 OTHERS = 7. "#EC *
PRC_CNV_UNIT_CONV_BASE_TO_ALT CALL FUNCTION 'PRC_CNV_UNIT_CONV_BASE_TO_ALT' DESTINATION gv_rfcdst EXPORTING iv_base_quantity = gv_bquan iv_alt_unit = gv_aunit iv_base_unit = gv_bunit it_alt_quantity_unit = gt_alt_quantity_unit IMPORTING es_profile = gs_profile ev_alt_quantity = lv_alt_quantity_java ev_numerator = lv_numerator_java ev_denominator = lv_denominator_java EXCEPTIONS communication_failure = 1 MESSAGE gv_message system_failure = 2 MESSAGE gv_message OTHERS = 3. "#EC *
COM_PRODUCT_UNIT_CONVERSION CALL FUNCTION 'COM_PRODUCT_UNIT_CONVERSION' EXPORTING iv_product_guid = gv_product iv_input = lv_input iv_unit = gv_aunit iv_base_unit = gv_bunit iv_flag_unit = 'X' IMPORTING ev_output = lv_base_quantity_abap ev_numerator = lv_numerator_abap ev_denominator = lv_denominator_abap EXCEPTIONS wrong_call = 1 no_units_found = 2 base_unit_not_found = 3 iv_unit_not_found = 4 conversion_not_found = 5 overflow = 6 OTHERS = 7. "#EC *
PRC_CNV_UNIT_CONV_ALT_TO_BASE CALL FUNCTION 'PRC_CNV_UNIT_CONV_ALT_TO_BASE' DESTINATION gv_rfcdst EXPORTING iv_alt_quantity = gv_aquan iv_alt_unit = gv_aunit iv_base_unit = gv_bunit it_alt_quantity_unit = gt_alt_quantity_unit IMPORTING es_profile = gs_profile ev_base_quantity = lv_base_quantity_java ev_numerator = lv_numerator_java ev_denominator = lv_denominator_java EXCEPTIONS communication_failure = 1 MESSAGE gv_message system_failure = 2 MESSAGE gv_message OTHERS = 3. "#EC *
UNIT_CONVERSION_SIMPLE CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' EXPORTING input = gv_fquan unit_in = gv_funit unit_out = gv_tunit IMPORTING denominator = lv_denominator_abap numerator = lv_numerator_abap output = lv_quantity_to_abap EXCEPTIONS conversion_not_found = 1 division_by_zero = 2 input_invalid = 3 output_invalid = 4 overflow = 5 type_invalid = 6 units_missing = 7 unit_in_not_found = 8 unit_out_not_found = 9 OTHERS = 10.
PRC_CNV_UNIT_CONV_SIMPLE CALL FUNCTION 'PRC_CNV_UNIT_CONV_SIMPLE' DESTINATION p_rfcdst EXPORTING iv_from_quantity = gv_fquan iv_from_unit = gv_funit iv_to_unit = gv_tunit IMPORTING es_profile = gs_profile ev_to_quantity = lv_quantity_to_java ev_numerator = lv_numerator_java ev_denominator = lv_denominator_java EXCEPTIONS communication_failure = 1 MESSAGE gv_message system_failure = 2 MESSAGE gv_message OTHERS = 3. "#EC *
UNIT_OF_MEASURE_ISO_TO_SAP CALL FUNCTION 'UNIT_OF_MEASURE_ISO_TO_SAP' EXPORTING iso_code = lv_abap_iso IMPORTING sap_code = lv_abap_uom1 EXCEPTIONS not_found = 1 OTHERS = 2.
UNIT_OF_MEASURE_ISO_TO_SAP CALL FUNCTION 'UNIT_OF_MEASURE_ISO_TO_SAP' EXPORTING iso_code = lv_abap_iso IMPORTING sap_code = lv_abap_uom2 EXCEPTIONS not_found = 1 OTHERS = 2.
UNIT_OF_MEASURE_ISO_TO_SAP CALL FUNCTION 'UNIT_OF_MEASURE_ISO_TO_SAP' EXPORTING iso_code = lv_abap_iso IMPORTING sap_code = lv_abap_uom3 EXCEPTIONS not_found = 1 OTHERS = 2.
PRC_CNV_UNIT_CONV_ISO CALL FUNCTION 'PRC_CNV_UNIT_CONV_ISO' DESTINATION p_rfcdst EXPORTING it_iso_quantity_unit = lt_iso_quantity_unit IMPORTING es_profile = gs_profile et_mapping = lt_mapping et_message = lt_message EXCEPTIONS communication_failure = 1 MESSAGE gv_message system_failure = 2 MESSAGE gv_message OTHERS = 3. "#EC *
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
CNV_UNIT_TESTF03 - Include CNV_UNIT_TESTF03 CNV_UNIT_TESTF02 - Include CNV_UNIT_TESTF02 CNV_UNIT_TESTF01 - Form CHECK_SUBRC CNV_UNIT_TEST1 - Test report for RFC calls of Conversion Engine CNV_UNIT_TEST1 - Test report for RFC calls of Conversion Engine CNV_UNIT_TEST - Test report for RFC calls of Conversion Engine for Units