SAP Reports / Programs | Controlling | Overhead Cost Controlling(CO-OM) SAP CO

K_RTOHC_POST_F_POST SAP ABAP INCLUDE - Forms to repost and reverse overheads







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


Text pool values


Title: Forms to repost and reverse overheads


INCLUDES used within this REPORT K_RTOHC_POST_F_POST

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:

SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting text = text-prc.

MESSAGES_INITIALIZE call function 'MESSAGES_INITIALIZE'.

SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting text = l_message.

RTOHC_REALTIME_DETERMINE call function 'RTOHC_REALTIME_DETERMINE' exporting i_kokrs = ls_orig_cobk-kokrs i_vorgang = ls_orig_cobk-vrgng i_year = ls_orig_cobk-gjahr i_period = ls_orig_cobk-perab importing e_active = l_rtohc_active.

RTOHC_DOCUMENT_CREATE call function 'RTOHC_DOCUMENT_CREATE' exporting is_cobk = is_cobk it_coep = lt_orig_coep i_original_valdt = ls_orig_cobk-valdt i_original_budat = ls_orig_cobk-budat importing e_no_rtohc = l_no_rtohc et_coep = lt_new_coep exceptions validation_error = 1 calculation_error = 2 others = 3.

K_OBJECTS_MASTER_READ call function 'K_OBJECTS_MASTER_READ' tables coiob_tab = lt_coiob i_periods = lt_periods.

K_COEP_COMPLETE call function 'K_COEP_COMPLETE' tables i_cobk = lt_cobk i_coep = ct_coep i_coiob = lt_coiob.

RWIN_CHECK_FUNCTION call function 'RWIN_CHECK_FUNCTION' exporting function = 'K_COEPX_LAST_CHECK' gjahr = p_post_g importing active = l_func_active.

K_COEPX_LAST_CHECK call function 'K_COEPX_LAST_CHECK' tables i_cobk = lt_cobk i_coep = ct_coep i_coiob = lt_coiob.

K_COBK_CURRENCY_FILL call function 'K_COBK_CURRENCY_FILL' exporting i_cobk = cs_cobk importing e_cobk = cs_cobk.

RTOHC_DOCUMENT_POST call function 'RTOHC_DOCUMENT_POST' exporting is_cobk = ls_cobk_ref exceptions processing_error = 1 others = 2.

RTOHC_CHECK_REVERSE call function 'RTOHC_CHECK_REVERSE' exporting i_awtyp = is_orig_doc-awtyp i_refbt = l_refbt i_refbn = is_orig_doc-refbn i_aworg = is_orig_doc-aworg i_awref_rev = l_awref_rev i_aworg_rev = l_aworg_rev i_awsys = is_orig_doc-awsys i_test_run = p_test i_reverse_gjahr = p_post_g i_reverse_period = p_post_p importing e_no_rtohc = l_no_rtohc exceptions reversal_not_allowed = 1 others = 2.

RTOHC_DOCUMENT_REVERSE call function 'RTOHC_DOCUMENT_REVERSE' exporting i_awtyp = is_orig_doc-awtyp i_belnr = is_orig_doc-belnr i_refbt = l_refbt i_refbn = is_orig_doc-refbn i_aworg = is_orig_doc-aworg i_awref_rev = l_awref_rev i_aworg_rev = l_aworg_rev i_awsys = is_orig_doc-awsys i_reverse_gjahr = p_post_g i_reverse_period = p_post_p i_reverse_budat = i_budat exceptions reversal_not_allowed = 1 others = 2.

K_KOKRS_READ call function 'K_KOKRS_READ' exporting gjahr = p_post_g kokrs = p_kokrs importing e_tka01 = ls_tka01.

G_POSTING_DATE_OF_PERIOD_GET call function 'G_POSTING_DATE_OF_PERIOD_GET' exporting variant = ls_tka01-lmona year = p_post_g period = p_post_p importing from_date = l_from_date to_date = l_to_date.

RTOHC_GET_OVERHEAD call function 'RTOHC_GET_OVERHEAD' exporting i_belnr = is_orig_doc-belnr i_kokrs = p_kokrs i_awtyp = is_orig_doc-awtyp i_refbt = is_orig_doc-refbt i_refbn = is_orig_doc-refbn i_aworg = is_orig_doc-aworg i_awsys = is_orig_doc-awsys i_exclude_reversed = con_on importing et_coep = lt_old_coep.



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