FCOOME06 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 FCOOME06 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: Currency Type Handling
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
REPP_CURRENCY_DEFAULTS_READ CALL FUNCTION 'REPP_CURRENCY_DEFAULTS_READ' EXPORTING p_applid = '6 ' p_user = sy-uname IMPORTING p_currency_type = curr_r EXCEPTIONS invalid_parameters = 1 OTHERS = 2.
REPP_CURRCONV_DEFAULTS_READ CALL FUNCTION 'REPP_CURRCONV_DEFAULTS_READ' EXPORTING p_applid = '6 ' IMPORTING p_target_currency = global_twaer p_source_currency_type = curr_ziel p_conv_type = global_convtype p_conv_date = global_convdate EXCEPTIONS no_target_currency = 1 invalid_parameters = 2 defaults_not_found = 3 OTHERS = 4.
CONVERT_TO_LOCAL_CURRENCY * CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' * EXPORTING * DATE = GLOBAL_CONVDATE * FOREIGN_AMOUNT = I_OBJNRCST-SWG * FOREIGN_CURRENCY = I_OBJNRCST-WAERS * LOCAL_CURRENCY = GLOBAL_TWAER * TYPE_OF_RATE = GLOBAL_CONVTYPE * IMPORTING * LOCAL_AMOUNT = I_OBJNRCST-SWG * EXCEPTIONS * OTHERS = 1.
REUT_CALCULATE_TARGET_CURR_VAL CALL FUNCTION 'REUT_CALCULATE_TARGET_CURR_VAL' EXPORTING i_kokrs = i_objnrcst-kokrs i_target_currency = global_twaer i_source_currency = i_objnrcst-waers i_conv_type = global_convtype i_conv_date = global_convdate i_source_amount = i_objnrcst-swg i_perio = l_perio i_gjahr = l_gjahr IMPORTING i_target_amount = i_objnrcst-swg EXCEPTIONS no_fiscper_specified = 1 no_kokrs_specified = 2 period_not_defined = 3 no_rate_found = 4 overflow = 5 other_conversion_error = 6 OTHERS = 7.
CONVERT_TO_LOCAL_CURRENCY * CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' * EXPORTING * date = global_convdate * foreign_amount = i_objnrcst-swf * foreign_currency = i_objnrcst-waers * local_currency = global_twaer * type_of_rate = global_convtype * IMPORTING * local_amount = i_objnrcst-swf * EXCEPTIONS * OTHERS = 1.
REUT_CALCULATE_TARGET_CURR_VAL CALL FUNCTION 'REUT_CALCULATE_TARGET_CURR_VAL' EXPORTING i_kokrs = i_objnrcst-kokrs i_target_currency = global_twaer i_source_currency = i_objnrcst-waers i_conv_type = global_convtype i_conv_date = global_convdate i_source_amount = i_objnrcst-swf i_perio = l_perio i_gjahr = l_gjahr IMPORTING i_target_amount = i_objnrcst-swf EXCEPTIONS no_fiscper_specified = 1 no_kokrs_specified = 2 period_not_defined = 3 no_rate_found = 4 overflow = 5 other_conversion_error = 6 OTHERS = 7.
CONVERT_TO_LOCAL_CURRENCY * CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' * EXPORTING * date = global_convdate * foreign_amount = i_objnrcst-swv * foreign_currency = i_objnrcst-waers * local_currency = global_twaer * type_of_rate = global_convtype * IMPORTING * local_amount = i_objnrcst-swv * EXCEPTIONS * OTHERS = 1.
REUT_CALCULATE_TARGET_CURR_VAL CALL FUNCTION 'REUT_CALCULATE_TARGET_CURR_VAL' EXPORTING i_kokrs = i_objnrcst-kokrs i_target_currency = global_twaer i_source_currency = i_objnrcst-waers i_conv_type = global_convtype i_conv_date = global_convdate i_source_amount = i_objnrcst-swv i_perio = l_perio i_gjahr = l_gjahr IMPORTING i_target_amount = i_objnrcst-swv EXCEPTIONS no_fiscper_specified = 1 no_kokrs_specified = 2 period_not_defined = 3 no_rate_found = 4 overflow = 5 other_conversion_error = 6 OTHERS = 7.
CONVERT_TO_LOCAL_CURRENCY * CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' * EXPORTING * date = global_convdate * foreign_amount = i_objnrvar-swg * foreign_currency = i_objnrvar-waers * local_currency = global_twaer * type_of_rate = global_convtype * IMPORTING * local_amount = i_objnrvar-swg * EXCEPTIONS * OTHERS = 1.
REUT_CALCULATE_TARGET_CURR_VAL CALL FUNCTION 'REUT_CALCULATE_TARGET_CURR_VAL' EXPORTING i_kokrs = i_objnrvar-kokrs i_target_currency = global_twaer i_source_currency = i_objnrvar-waers i_conv_type = global_convtype i_conv_date = global_convdate i_source_amount = i_objnrvar-swg i_perio = l_perio i_gjahr = l_gjahr IMPORTING i_target_amount = i_objnrvar-swg EXCEPTIONS no_fiscper_specified = 1 no_kokrs_specified = 2 period_not_defined = 3 no_rate_found = 4 overflow = 5 other_conversion_error = 6 OTHERS = 7.
CONVERT_TO_LOCAL_CURRENCY * CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' * EXPORTING * date = global_convdate * foreign_amount = i_objnrvar-swf * foreign_currency = i_objnrvar-waers * local_currency = global_twaer * type_of_rate = global_convtype * IMPORTING * local_amount = i_objnrvar-swf * EXCEPTIONS * OTHERS = 1.
REUT_CALCULATE_TARGET_CURR_VAL CALL FUNCTION 'REUT_CALCULATE_TARGET_CURR_VAL' EXPORTING i_kokrs = i_objnrvar-kokrs i_target_currency = global_twaer i_source_currency = i_objnrvar-waers i_conv_type = global_convtype i_conv_date = global_convdate i_source_amount = i_objnrvar-swf i_perio = l_perio i_gjahr = l_gjahr IMPORTING i_target_amount = i_objnrvar-swf EXCEPTIONS no_fiscper_specified = 1 no_kokrs_specified = 2 period_not_defined = 3 no_rate_found = 4 overflow = 5 other_conversion_error = 6 OTHERS = 7.
CONVERT_TO_LOCAL_CURRENCY * CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' * EXPORTING * date = global_convdate * foreign_amount = i_objnrvar-swv * foreign_currency = i_objnrvar-waers * local_currency = global_twaer * type_of_rate = global_convtype * IMPORTING * local_amount = i_objnrvar-swv * EXCEPTIONS * OTHERS = 1.
REUT_CALCULATE_TARGET_CURR_VAL CALL FUNCTION 'REUT_CALCULATE_TARGET_CURR_VAL' EXPORTING i_kokrs = i_objnrvar-kokrs i_target_currency = global_twaer i_source_currency = i_objnrvar-waers i_conv_type = global_convtype i_conv_date = global_convdate i_source_amount = i_objnrvar-swv i_perio = l_perio i_gjahr = l_gjahr IMPORTING i_target_amount = i_objnrvar-swv EXCEPTIONS no_fiscper_specified = 1 no_kokrs_specified = 2 period_not_defined = 3 no_rate_found = 4 overflow = 5 other_conversion_error = 6 OTHERS = 7.
CONVERT_TO_LOCAL_CURRENCY * CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' * EXPORTING * date = global_convdate * foreign_amount = i_objnrprice-stkg * foreign_currency = i_objnrprice-waers * local_currency = global_twaer * type_of_rate = global_convtype * IMPORTING * local_amount = i_objnrprice-stkg * EXCEPTIONS * OTHERS = 1.
REUT_CALCULATE_TARGET_CURR_VAL CALL FUNCTION 'REUT_CALCULATE_TARGET_CURR_VAL' EXPORTING i_kokrs = i_objnrprice-kokrs i_target_currency = global_twaer i_source_currency = i_objnrprice-waers i_conv_type = global_convtype i_conv_date = global_convdate i_source_amount = i_objnrprice-stkg i_perio = l_perio i_gjahr = l_gjahr IMPORTING i_target_amount = i_objnrprice-stkg EXCEPTIONS no_fiscper_specified = 1 no_kokrs_specified = 2 period_not_defined = 3 no_rate_found = 4 overflow = 5 other_conversion_error = 6 OTHERS = 7.
CONVERT_TO_LOCAL_CURRENCY * CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' * EXPORTING * date = global_convdate * foreign_amount = i_objnrprice-stkf * foreign_currency = i_objnrprice-waers * local_currency = global_twaer * type_of_rate = global_convtype * IMPORTING * local_amount = i_objnrprice-stkf * EXCEPTIONS * OTHERS = 1.
REUT_CALCULATE_TARGET_CURR_VAL CALL FUNCTION 'REUT_CALCULATE_TARGET_CURR_VAL' EXPORTING i_kokrs = i_objnrprice-kokrs i_target_currency = global_twaer i_source_currency = i_objnrprice-waers i_conv_type = global_convtype i_conv_date = global_convdate i_source_amount = i_objnrprice-stkf i_perio = l_perio i_gjahr = l_gjahr IMPORTING i_target_amount = i_objnrprice-stkf EXCEPTIONS no_fiscper_specified = 1 no_kokrs_specified = 2 period_not_defined = 3 no_rate_found = 4 overflow = 5 other_conversion_error = 6 OTHERS = 7.
* CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' * EXPORTING * date = global_convdate * foreign_amount = i_objnrprice-stkv * foreign_currency = i_objnrprice-waers * local_currency = global_twaer * type_of_rate = global_convtype * IMPORTING * local_amount = i_objnrprice-stkv * EXCEPTIONS * OTHERS = 1.
REUT_CALCULATE_TARGET_CURR_VAL CALL FUNCTION 'REUT_CALCULATE_TARGET_CURR_VAL' EXPORTING i_kokrs = i_objnrprice-kokrs i_target_currency = global_twaer i_source_currency = i_objnrprice-waers i_conv_type = global_convtype i_conv_date = global_convdate i_source_amount = i_objnrprice-stkv i_perio = l_perio i_gjahr = l_gjahr IMPORTING i_target_amount = i_objnrprice-stkv EXCEPTIONS no_fiscper_specified = 1 no_kokrs_specified = 2 period_not_defined = 3 no_rate_found = 4 overflow = 5 other_conversion_error = 6 OTHERS = 7.
CONVERT_TO_LOCAL_CURRENCY * CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' * EXPORTING * date = global_convdate * foreign_amount = i_objnrett-swljet * foreign_currency = i_objnrett-waers * local_currency = global_twaer * type_of_rate = global_convtype * IMPORTING * local_amount = i_objnrett-swljet * EXCEPTIONS * OTHERS = 1.
REUT_CALCULATE_TARGET_CURR_VAL CALL FUNCTION 'REUT_CALCULATE_TARGET_CURR_VAL' EXPORTING i_kokrs = i_objnrett-kokrs i_target_currency = global_twaer i_source_currency = i_objnrett-waers i_conv_type = global_convtype i_conv_date = global_convdate i_source_amount = i_objnrett-swljet i_perio = l_perio i_gjahr = l_gjahr IMPORTING i_target_amount = i_objnrett-swljet EXCEPTIONS no_fiscper_specified = 1 no_kokrs_specified = 2 period_not_defined = 3 no_rate_found = 4 overflow = 5 other_conversion_error = 6 OTHERS = 7.
CONVERT_TO_LOCAL_CURRENCY * CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' * EXPORTING * date = global_convdate * foreign_amount = i_objnrbud-swlges * foreign_currency = i_objnrbud-waers * local_currency = global_twaer * type_of_rate = global_convtype * IMPORTING * local_amount = i_objnrbud-swlges * EXCEPTIONS * OTHERS = 1.
REUT_CALCULATE_TARGET_CURR_VAL CALL FUNCTION 'REUT_CALCULATE_TARGET_CURR_VAL' EXPORTING i_kokrs = i_objnrbud-kokrs i_target_currency = global_twaer i_source_currency = i_objnrbud-waers i_conv_type = global_convtype i_conv_date = global_convdate i_source_amount = i_objnrbud-swlges i_perio = l_perio i_gjahr = l_gjahr IMPORTING i_target_amount = i_objnrbud-swlges EXCEPTIONS no_fiscper_specified = 1 no_kokrs_specified = 2 period_not_defined = 3 no_rate_found = 4 overflow = 5 other_conversion_error = 6 OTHERS = 7.
CONVERT_TO_LOCAL_CURRENCY * CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' * EXPORTING * date = global_convdate * foreign_amount = i_objnrpln-swlges * foreign_currency = i_objnrpln-waers * local_currency = global_twaer * type_of_rate = global_convtype * IMPORTING * local_amount = i_objnrpln-swlges * EXCEPTIONS * OTHERS = 1.
REUT_CALCULATE_TARGET_CURR_VAL CALL FUNCTION 'REUT_CALCULATE_TARGET_CURR_VAL' EXPORTING i_kokrs = i_objnrpln-kokrs i_target_currency = global_twaer i_source_currency = i_objnrpln-waers i_conv_type = global_convtype i_conv_date = global_convdate i_source_amount = i_objnrpln-swlges i_perio = l_perio i_gjahr = l_gjahr IMPORTING i_target_amount = i_objnrpln-swlges EXCEPTIONS no_fiscper_specified = 1 no_kokrs_specified = 2 period_not_defined = 3 no_rate_found = 4 overflow = 5 other_conversion_error = 6 OTHERS = 7.
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 FCOOME06 or its description.