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

RKACSHOWNF01 SAP ABAP INCLUDE - documentation and ABAP source code







RKACSHOWNF01 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 RKACSHOWNF01 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 RKACSHOWNF01. "Basic submit
SUBMIT RKACSHOWNF01 AND RETURN. "Return to original report after report execution complete
SUBMIT RKACSHOWNF01 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 RKACSHOWNF01

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:

OBJECT_KEY_GET CALL FUNCTION 'OBJECT_KEY_GET' TABLES onr_tab = onr_tab.

K_RECONCILIATION_OBJECT CALL FUNCTION 'K_RECONCILIATION_OBJECT' EXPORTING i_ionrao = ionrao IMPORTING owaer = cccur-waers objnr = objnr.

K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING kokrs = kokrs IMPORTING e_tka01 = tka01 EXCEPTIONS OTHERS = 1.

RKE_BUSINESS_SEGMENT_EVALUATE CALL FUNCTION 'RKE_BUSINESS_SEGMENT_EVALUATE' EXPORTING i_paobjnr = paobjnr i_erkrs = erkrs IMPORTING e_owaer = cccur-waers e_ionrao = ionrao EXCEPTIONS error_message = 1 OTHERS = 1.

OBJECT_NUMBER_GET_EO CALL FUNCTION 'OBJECT_NUMBER_GET_EO' EXPORTING paobjnr = paobjnr erkrs = erkrs IMPORTING objnr = objnr EXCEPTIONS OTHERS = 0.

K_CKPH_GET_SINGLE CALL FUNCTION 'K_CKPH_GET_SINGLE' EXPORTING kstrg = kstrg IMPORTING ckph_i = ckph EXCEPTIONS not_found = 01.

KA01_DATA_TO_COMPONENT CALL FUNCTION 'KA01_DATA_TO_COMPONENT' EXPORTING i_rsnum = rsnum i_rspos = rspos i_rsart = rsart IMPORTING e_kokrs = kokrs e_objnr = objnr e_owaer = cccur-waers EXCEPTIONS OTHERS = 1.

K_ORDER_READ CALL FUNCTION 'K_ORDER_READ' EXPORTING aufnr = aufnr IMPORTING objnr = objnr kokrs = kokrs owaer = cccur-waers EXCEPTIONS not_found = 1.

CO_SF_AFVG_READ CALL FUNCTION 'CO_SF_AFVG_READ' EXPORTING aufnr_imp = aufnr vornr_imp = vornr IMPORTING afvc_exp = afvc EXCEPTIONS not_found = 1.

CO_SF_AFVG_OBJECT_GET CALL FUNCTION 'CO_SF_AFVG_OBJECT_GET' EXPORTING aplzl = onr_tab-aplzl aufpl = onr_tab-aufpl exp_only_aufkv = 'X' IMPORTING aufkv_exp = aufkv EXCEPTIONS error_message = 1 OTHERS = 2.

SD_DOCUMENT_ACCOUNT_ASSIGNMENT CALL FUNCTION 'SD_DOCUMENT_ACCOUNT_ASSIGNMENT' EXPORTING i_change_status = ' ' i_document_number = vbeln i_item_number = posnr IMPORTING e_kokrs = kokrs e_objnr = objnr e_waerk = cccur-waers EXCEPTIONS document_not_found = 01 item_not_found = 02.

OBJECT_IDENTIFICATION_GET CALL FUNCTION 'OBJECT_IDENTIFICATION_GET' EXPORTING objnr = objnr IMPORTING e_text = ld_otext ident_objid = ld_ident ident_txt20 = tbo01-txt20 EXCEPTIONS obart_invalid = 1 OTHERS = 2.

K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING kokrs = kokrs IMPORTING e_tka01 = tka01.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = ld_date i_periv = tka01-lmona IMPORTING e_gjahr = ow-bis_gjahr EXCEPTIONS OTHERS = 1.

K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING kokrs = kokrs IMPORTING e_tka01 = tka01.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = ld_date i_periv = tka01-lmona IMPORTING e_gjahr = ow-bis_gjahr EXCEPTIONS OTHERS = 1.

G_SET_ENCRYPT_SETID CALL FUNCTION 'G_SET_ENCRYPT_SETID' EXPORTING setclass = gsetc_costelement_setclass shortname = p_kstrgp kokrs = kokrs IMPORTING setid = ld_setid EXCEPTIONS no_co_area_specified = 1 illegal_setclass = 2 OTHERS = 3.

G_SET_GET_ALL_VALUES CALL FUNCTION 'G_SET_GET_ALL_VALUES' EXPORTING setnr = ld_setid TABLES set_values = lt_setvalues EXCEPTIONS set_not_found = 1 OTHERS = 2.

DDIF_NAMETAB_GET





CALL FUNCTION 'DDIF_NAMETAB_GET' EXPORTING tabname = ld_tabname * UCLEN = TABLES * X031L_TAB = dfies_tab = lt_nametab_dfies EXCEPTIONS not_found = 1.

NAMETAB_GET * CALL FUNCTION 'NAMETAB_GET' * EXPORTING * tabname = ld_tabname * TABLES * nametab = nametab.

DD_TBHD_GET CALL FUNCTION 'DD_TBHD_GET' EXPORTING tabl_name = gd_datei withtext = 'X' IMPORTING dd02v_wa_a = dd02v.

DD_VIHD_GET CALL FUNCTION 'DD_VIHD_GET' EXPORTING view_name = ld_view withtext = 'X' IMPORTING dd25v_wa_a = dd25v.

K_ITEM_TABLE_DETERMINE CALL FUNCTION 'K_ITEM_TABLE_DETERMINE' EXPORTING sumtb = ld_tabname vrgng = i_vrgng TABLES t_eptab = it_eptab EXCEPTIONS OTHERS = 1.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING * I_PROGRAM_NAME = * I_INTERNAL_TABNAME = i_structure_name = * I_CLIENT_NEVER_DISPLAY = 'X' * I_INCLNAME = * I_BYPASSING_BUFFER = CHANGING ct_fieldcat = p_gt_fieldcat[] * EXCEPTIONS * INCONSISTENT_INTERFACE = 1 * PROGRAM_ERROR = 2 * OTHERS = 3 .

K_TABLE_AUTHORITY CALL FUNCTION 'K_TABLE_AUTHORITY' EXPORTING i_tabname = ld_tabname.

K_TABLE_AUTHORITY CALL FUNCTION 'K_TABLE_AUTHORITY' EXPORTING i_tabname = table.

K_COSBA_READ_MULTI CALL FUNCTION 'K_COSBA_READ_MULTI' EXPORTING modus = 1 TABLES t_cosel = seltab t_cosba = gt_cosba.

K_COSLA_READ_MULTI CALL FUNCTION 'K_COSLA_READ_MULTI' EXPORTING modus = 1 TABLES t_cosel = seltab t_cosla = gt_cosla.

K_COSPA_READ_MULTI CALL FUNCTION 'K_COSPA_READ_MULTI' EXPORTING modus = 1 TABLES t_cosel = seltab t_cospa = gt_cospa.

K_COSPRA_READ_MULTI CALL FUNCTION 'K_COSPRA_READ_MULTI' EXPORTING modus = 1 TABLES t_cosel = seltab t_cospra = gt_cospra.

K_COSRA_READ_MULTI CALL FUNCTION 'K_COSRA_READ_MULTI' EXPORTING modus = 1 TABLES t_cosel = seltab t_cosra = gt_cosra.

K_COSSA_READ_MULTI CALL FUNCTION 'K_COSSA_READ_MULTI' EXPORTING modus = 1 TABLES t_cosel = seltab t_cossa = gt_cossa.

K_COSTA_READ_MULTI CALL FUNCTION 'K_COSTA_READ_MULTI' EXPORTING modus = 1 TABLES t_cosel = seltab t_costa = gt_costa.

K_COVJA_READ_MULTI CALL FUNCTION 'K_COVJA_READ_MULTI' EXPORTING modus = 1 TABLES t_cosel = seltab t_covja = gt_covja.

K_COVJLA_READ_MULTI CALL FUNCTION 'K_COVJLA_READ_MULTI' EXPORTING modus = 1 TABLES t_cosel = seltab t_covjla = gt_covjla.

K_COVJRA_READ_MULTI CALL FUNCTION 'K_COVJRA_READ_MULTI' EXPORTING modus = 1 TABLES t_cosel = seltab t_covjra = gt_covjra.

K_COVJTA_READ_MULTI CALL FUNCTION 'K_COVJTA_READ_MULTI' EXPORTING modus = 1 TABLES t_cosel = seltab t_covjta = gt_covjta.

STATUS_NUMBER_CONVERSION CALL FUNCTION 'STATUS_NUMBER_CONVERSION' EXPORTING client = sy-mandt language = sy-langu objnr = gt_jest-objnr status_number = gt_jest-stat * STSMA = ' ' IMPORTING * LANGUAGE_FOUND = txt04 = gt_jest-shortdecri txt30 = gt_jest-longdecri * EXCEPTIONS * INSUFFICIENT_INPUT = 1 * OBJECT_NOT_FOUND = 2 * STATUS_NOT_FOUND = 3 * STSMA_NOT_FOUND = 4 * OTHERS = 5 .




REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = g_repid i_callback_pf_status_set = g_status i_callback_user_command = g_user_command is_layout = gs_layout it_fieldcat = gt_fieldcat[] i_save = g_save is_variant = gs_variant it_events = gt_events IMPORTING es_exit_caused_by_user = gt_user_exit TABLES t_outtab = .

REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = g_save CHANGING cs_variant = gs_variant EXCEPTIONS wrong_input = 1 not_found = 2 program_error = 3 OTHERS = 4.

OBJECT_KEY_GET CALL FUNCTION 'OBJECT_KEY_GET' EXPORTING i_objnr = objnr IMPORTING e_ionra = obdat.

K_RECONCILIATION_OBJECT CALL FUNCTION 'K_RECONCILIATION_OBJECT' EXPORTING i_ionrao = ionrao IMPORTING owaer = owtab-owaer EXCEPTIONS error_message = 0 OTHERS = 0.

K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING kokrs = obdat-kokrs IMPORTING e_tka01 = tka01.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = ld_datum i_periv = tka01-lmona IMPORTING e_gjahr = owtab-bisgj EXCEPTIONS OTHERS = 1.

RKE_BUSINESS_SEGMENT_EVALUATE CALL FUNCTION 'RKE_BUSINESS_SEGMENT_EVALUATE' EXPORTING i_paobjnr = obdat-paobjnr i_erkrs = obdat-erkrs IMPORTING e_owaer = owtab-owaer e_ionrao = ionrao EXCEPTIONS error_message = 0 OTHERS = 0.

K_CKPH_GET_SINGLE CALL FUNCTION 'K_CKPH_GET_SINGLE' EXPORTING kstrg = obdat-kstrg IMPORTING ckph_i = ckph EXCEPTIONS error_message = 1 OTHERS = 1.

K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING kokrs = obdat-kokrs IMPORTING e_tka01 = tka01.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = ld_datum i_periv = tka01-lmona IMPORTING e_gjahr = owtab-bisgj EXCEPTIONS OTHERS = 1.

KA01_DATA_TO_COMPONENT CALL FUNCTION 'KA01_DATA_TO_COMPONENT' EXPORTING i_rsnum = obdat-rsnum i_rspos = obdat-rspos i_rsart = obdat-rsart IMPORTING e_kokrs = kokrs e_owaer = owtab-owaer EXCEPTIONS error_message = 0 OTHERS = 0.

K_ORDER_READ CALL FUNCTION 'K_ORDER_READ' EXPORTING aufnr = obdat-aufnr IMPORTING owaer = owtab-owaer kokrs = kokrs EXCEPTIONS error_message = 0 OTHERS = 0.

CO_SF_AFVG_OBJECT_GET CALL FUNCTION 'CO_SF_AFVG_OBJECT_GET' EXPORTING aplzl = obdat-aplzl aufpl = obdat-aufpl exp_only_aufkv = 'X' IMPORTING aufkv_exp = aufkv EXCEPTIONS error_message = 1 OTHERS = 1.

SD_DOCUMENT_ACCOUNT_ASSIGNMENT CALL FUNCTION 'SD_DOCUMENT_ACCOUNT_ASSIGNMENT' EXPORTING i_change_status = ' ' i_document_number = obdat-vbeln i_item_number = obdat-posnr IMPORTING e_waerk = owtab-owaer e_kokrs = kokrs EXCEPTIONS error_message = 0 OTHERS = 0.

RKE_TIMESTAMP_CONVERT_OUTPUT CALL FUNCTION 'RKE_TIMESTAMP_CONVERT_OUTPUT' EXPORTING i_timestmp = i_dayst = sy-dayst i_tzone = sy-tzone IMPORTING e_date = ld_date e_time = ld_time.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = sy-cprog dynumb = sy-dynnr translate_to_upper = 'X' TABLES dynpfields = dynpfields EXCEPTIONS OTHERS = 11.



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