SAP Reports / Programs

CNV_UNIT_TEST1 SAP ABAP Report - Test report for RFC calls of Conversion Engine







CNV_UNIT_TEST1 is a standard Executable ABAP Report 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_TEST1 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

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.






SUBMIT CNV_UNIT_TEST1. "Basic submit
SUBMIT CNV_UNIT_TEST1 AND RETURN. "Return to original report after report execution complete
SUBMIT CNV_UNIT_TEST1 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Test report for RFC calls of Conversion Engine


INCLUDES used within this REPORT CNV_UNIT_TEST1

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

COM_PRODUCT_GUID_GET call function 'COM_PRODUCT_GUID_GET' exporting iv_product_id = 'BKR101' * IV_PRODUCT_TYPE = * IV_OBJECT_FAMILY = ' ' * IV_LOGSYS = * IV_PRODUCT_OBJECT_IND = 'D' * IV_SHOW_POPUP = 'X' * IV_UPDATE_BUFFER = ' ' importing ev_product_guid = gv_product_guid * ET_PRODUCT_GUID = exceptions not_found = 1 wrong_call = 2 internal_error = 3 others = 4.

UNIT_CONVERSION_SIMPLE_OLD call function 'UNIT_CONVERSION_SIMPLE_OLD' exporting input = uv_from_quantity * NO_TYPE_CHECK = 'X' * ROUND_SIGN = ' ' unit_in = uv_from_unit unit_out = uv_to_unit importing * add_const = * decimals = 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 gv_dest exporting iv_from_quantity = uv_from_quantity iv_from_unit = uv_from_unit iv_to_unit = uv_to_unit importing 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.

COM_PRODUCT_UNIT_CONVERSION call function 'COM_PRODUCT_UNIT_CONVERSION' exporting iv_product_guid = gv_product_guid iv_input = lv_alt_quantity_abap iv_unit = uv_alt_unit iv_base_unit = uv_base_unit iv_flag_unit = 'X' * IV_USE_NET_WEIGHT = ' ' * IV_CURRENT = 'X' * IV_TIMESTAMP = * IV_PRWB = ' ' importing * EV_BASE_UNIT = ev_output = lv_base_quantity_abap ev_numerator = lv_numerator_abap ev_denominator = lv_denominator_abap * EV_ADD_CONST = 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.

PRC_CNV_UNIT_CONV_ALT_TO_BASE call function 'PRC_CNV_UNIT_CONV_ALT_TO_BASE' destination gv_dest exporting iv_alt_quantity = uv_alt_quantity iv_alt_unit = uv_alt_unit iv_base_unit = uv_base_unit it_alt_quantity_unit = gt_alt_quantity_unit importing ev_base_quantity = lv_base_quantity_java ev_numerator = lv_numerator_java ev_denominator = lv_denominator_java ev_exponent = lv_exponent_java exceptions communication_failure = 1 message gv_message system_failure = 2 message gv_message others = 3.

COM_PRODUCT_UNIT_CONVERSION call function 'COM_PRODUCT_UNIT_CONVERSION' exporting iv_product_guid = gv_product_guid iv_input = lv_base_quantity_abap iv_unit = uv_alt_unit iv_base_unit = uv_base_unit iv_flag_unit = ' ' * IV_USE_NET_WEIGHT = ' ' * IV_CURRENT = 'X' * IV_TIMESTAMP = * IV_PRWB = ' ' importing * EV_BASE_UNIT = ev_output = lv_alt_quantity_abap ev_numerator = lv_numerator_abap ev_denominator = lv_denominator_abap * EV_ADD_CONST = 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.

PRC_CNV_UNIT_CONV_BASE_TO_ALT call function 'PRC_CNV_UNIT_CONV_BASE_TO_ALT' destination gv_dest exporting iv_base_quantity = uv_base_quantity iv_alt_unit = uv_alt_unit iv_base_unit = uv_base_unit it_alt_quantity_unit = gt_alt_quantity_unit importing ev_alt_quantity = lv_alt_quantity_java ev_numerator = lv_numerator_java ev_denominator = lv_denominator_java ev_exponent = lv_exponent_java exceptions communication_failure = 1 message gv_message system_failure = 2 message gv_message others = 3.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name CNV_UNIT_TEST1 or its description.