SAP Reports / Programs | Controlling | Profitability Analysis | Profitability Analysis / Basic Functions(CO-PA-PMS) SAP CO

RK4OWBOP SAP ABAP Report - documentation and ABAP source code







RK4OWBOP 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 RK4OWBOP 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 RK4OWBOP. "Basic submit
SUBMIT RK4OWBOP AND RETURN. "Return to original report after report execution complete
SUBMIT RK4OWBOP VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT RK4OWBOP

INCLUDE RKEVRK4O_FIX.


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:

RKE_EXIT call function 'RKE_EXIT' exporting i_exit_id = keex_c_exit_id-kefc_modify_001 i_count_params = 5 changing x_param_1 = g_erkrs x_param_2 = l_repid x_param_3 = l_check_fields x_param_4 = l_check_orgele x_param_5 = l_derive.

RKE_CUSTOMER_FUNCTION_EXT_DATA call function 'RKE_CUSTOMER_FUNCTION_EXT_DATA' exporting i_exit_nr = '002' i_group = i_repid i_erkrs = g_erkrs i_plikz = '0' tables t_item = gt_items.

COPA_CHECK_CEEP call function 'COPA_CHECK_CEEP' exporting copa_einzelposten = i_ce0item tabname = g_ce0name tables checktab = lt_fieldtab_extended.

RKE_SHORT_TEXT_ALL call function 'RKE_SHORT_TEXT_ALL' exporting i_erkrs = g_erkrs is_ce0 = i_ce0item i_date = i_ce0item-budat importing e_subrc = l_subrc tables it_check_fields = lt_check_fields et_error = lt_error.

RKE_CHECK_ORG_ELEMENTS call function 'RKE_CHECK_ORG_ELEMENTS' exporting datum = i_ce0item-budat "45B datum_bis = i_ce0item-budat "45B bukrs = i_ce0item-bukrs erkrs = g_erkrs gsber = i_ce0item-gsber kokrs = i_ce0item-kokrs prctr = i_ce0item-prctr pprctr = i_ce0item-pprctr vkorg = i_ce0item-vkorg vtweg = i_ce0item-vtweg spart = i_ce0item-spart werks = i_ce0item-werks exceptions error_message = 1 others = 2.

RKE_CUSTOMER_FUNCTION_EXT_DATA call function 'RKE_CUSTOMER_FUNCTION_EXT_DATA' exporting i_exit_nr = '001' i_group = i_repid i_erkrs = g_erkrs i_plikz = '0' i_item = ls_item importing e_item = ls_item exceptions others = 0.

RK_KOKRS_FIND call function 'RK_KOKRS_FIND' exporting bukrs = ls_item-bukrs importing kokrs = ls_item-kokrs exceptions assignment_not_allowed = 1 insufficient_input = 2 no_kokrs_assigned = 3 no_kokrs_for_bukrs = 4 no_kokrs_for_bu_gb = 5 wrong_kokrs_for_bukrs = 6 wrong_kokrs_for_bu_gb = 7 others = 8 .

RKE_CURRENCIES_GET call function 'RKE_CURRENCIES_GET' exporting i_erkrs = i_erkrs i_paledger = i_paledger i_bukrs = i_bukrs importing et_v_curr = lt_v_curr exceptions erkrs_not_defined = 1 paledger_not_defined = 2 bukrs_not_defined = 3 others = 4.

RKE_CONVERT_DATE_TO_LOGNR call function 'RKE_CONVERT_DATE_TO_LOGNR' exporting erkrs = g_erkrs date = i_budat importing perio = e_perio perio2 = e_altperio exceptions error_message = 1 others = 2.

RKE_READ_ERKRS_MESSAGE call function 'RKE_READ_ERKRS_MESSAGE' exporting i_erkrs = g_erkrs importing e_v_tkeb = ls_v_tkeb.

RKE_READ_ERKRS_MESSAGE call function 'RKE_READ_ERKRS_MESSAGE' exporting i_erkrs = g_erkrs importing e_v_tkeb = ls_v_tkeb.

RKE_GET_FIRST_DAY_IN_PERIOD call function 'RKE_GET_FIRST_DAY_IN_PERIOD' exporting perio = i_perio periv = ls_v_tkeb-periv importing date = e_budat exceptions i_error = 1 i_perflag_invalid = 2 i_periv_notedited = 3 i_periv_notfound = 4 others = 5.

NUMBER_CHECK call function 'NUMBER_CHECK' exporting object = c_nrk_objekt " COPA_IST subobject = i_erkrs nr_range_nr = ls_tvgai-numke toyear = i_gjahr number = i_belnr importing returncode = l_nrk_ret_code exceptions interval_not_found = 1 number_range_not_extern = 2.

KEDR_COPA_DERIVE call function 'KEDR_COPA_DERIVE' exporting i_erkrs = g_erkrs i_item = ls_ce0item i_derivation_date = ls_ce0item-budat i_trace_mode = l_trace_mode i_tabname = g_ce0name i_mass_processing = 'X' importing e_item = ls_ce0item e_trace_handle = l_trace_handle exceptions derivation_failed = 1 others = 2.

COPA_UPDATE_STANDARD_MEASURES call function 'COPA_UPDATE_STANDARD_MEASURES' exporting i_tabname = g_ce1name i_copa_line_item = ls_ce1item i_do_not_overwrite = 'X' importing e_copa_line_item = ls_ce1item tables i_fieldtab = lt_fieldtab exceptions conversion_error = 1 others = 2.

COPA_ITEM_CONV_AND_PRICING call function 'COPA_ITEM_CONV_AND_PRICING' exporting i_erkrs = g_erkrs i_valutyp = ls_ce0item-valutyp i_currency_mode = g_currency_mode_item i_item = ls_ce1item i_trace_mode_bean = l_trace_mode_bean i_trace_mode_copc = l_trace_mode_copc importing et_items = lt_post e_trace_handle_copc = l_trace_handle_copc e_trace_handle_bean = l_trace_handle_bean tables it_fieldtab = lt_fieldtab exceptions pricing_error = 1 error_message = 2 others = 3.

KEDR_TRACE_WRITE call function 'KEDR_TRACE_WRITE' exporting i_trace_handle = l_trace_handle.

KEDR_TRACE_WRITE call function 'KEDR_TRACE_WRITE' exporting i_trace_handle = l_trace_handle_copc.

COPA_KEAB_TRACE_WRITE





call function 'COPA_KEAB_TRACE_WRITE' exporting i_trace_handle = l_trace_handle_bean.

RKE_TRANSFORM_STRUCTURE call function 'RKE_TRANSFORM_STRUCTURE' exporting erkrs = g_erkrs from_area = is_ce0 from_tabname = g_ce0name to_area_import = es_ce1 to_tabname = g_ce1name importing to_area_export = es_ce1.

RKE_READ_ERKRS_MESSAGE call function 'RKE_READ_ERKRS_MESSAGE' exporting i_erkrs = g_erkrs i_langu = sy-langu importing et_v_tkebl = lt_tkebl.

COPA_CHECK_BELNR call function 'COPA_CHECK_BELNR' exporting i_erkrs = g_erkrs i_vrgar = ls_items-vrgar i_gjahr = ls_items-gjahr i_belnr = ls_items-belnr importing e_belnr = l_belnr.

RKE_POST_ACT_LINE_ITEM call function 'RKE_POST_ACT_LINE_ITEM' exporting erkrs = g_erkrs is_reversal = l_reversal_legal t_paledger = lt_paledger tables line_item_tab = gt_items exceptions error_message = 4 others = 4.

COPA_CHECK_BELNR call function 'COPA_CHECK_BELNR' exporting i_erkrs = g_erkrs i_vrgar = ls_items-vrgar i_gjahr = ls_items-gjahr i_belnr = ls_items-belnr importing e_belnr = l_belnr.

RKE_POST_ACT_LINE_ITEM call function 'RKE_POST_ACT_LINE_ITEM' exporting erkrs = g_erkrs is_reversal = l_reversal_prctr t_paledger = lt_paledger_pcb tables line_item_tab = gt_items_pcb exceptions error_message = 4 others = 4.

RKE_FILL_FIELD_TABLE call function 'RKE_FILL_FIELD_TABLE' exporting erkrs = g_erkrs tabname = g_ce1name pa_type = i_pa_type tables fieldtab = lt_fieldtab.

RKE_TRANSFORM_STRUCTURE call function 'RKE_TRANSFORM_STRUCTURE' exporting erkrs = g_erkrs from_area = ls_ce1 from_tabname = g_ce1name to_area_import = ls_ce0 to_tabname = g_ce0name importing to_area_export = ls_ce0.

RKE_GET_WAERS call function 'RKE_GET_WAERS' exporting erkrs = g_erkrs kokrs = is_data-kokrs bukrs = is_data-bukrs pa_type = i_pa_type paledger = rkea1_c_paledger-erkrs importing waers = e_waers exceptions error_message = 1 others = 2.

RKE_READ_ERKRS_MESSAGE call function 'RKE_READ_ERKRS_MESSAGE' exporting i_erkrs = g_erkrs i_langu = sy-langu importing et_v_tkebl = lt_tkebl.

RKE_GET_ACT_DOC_NUMBER call function 'RKE_GET_ACT_DOC_NUMBER' exporting erkrs = g_erkrs gjahr = ls_item-gjahr vrgar = ls_item-vrgar importing belnr = l_belnr.

RKE_GET_ACT_DOC_NUMBER call function 'RKE_GET_ACT_DOC_NUMBER' exporting erkrs = g_erkrs gjahr = ls_item-gjahr vrgar = ls_item-vrgar importing belnr = l_belnr.

RKE_GET_ACT_DOC_NUMBER call function 'RKE_GET_ACT_DOC_NUMBER' exporting erkrs = g_erkrs gjahr = ls_item-gjahr vrgar = ls_item-vrgar importing belnr = ls_item-belnr.

RKE_GET_ACT_DOC_NUMBER call function 'RKE_GET_ACT_DOC_NUMBER' exporting erkrs = g_erkrs gjahr = ls_item-gjahr vrgar = ls_item-vrgar importing belnr = l_belnr.

RKE_GET_ACT_DOC_NUMBER call function 'RKE_GET_ACT_DOC_NUMBER' exporting erkrs = g_erkrs gjahr = ls_item-gjahr vrgar = ls_item-vrgar importing belnr = ls_item-belnr.



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 RK4OWBOP or its description.