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

FKGA2FEX SAP ABAP INCLUDE - documentation and ABAP source code







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

FORM GEN-INCLUDE_EXIT USING
FORM GEN-INCLUDE_EXIT_RKE USING
FORM GEN-INCLUDE_EXIT_TD USING
FORM GEN-TOPINCLUDE_EXIT USING
FORM GEN-TOPINCLUDE_EXIT_RKE USING
FORM GENERATE_INCLUDE_RKE USING
FORM GEN-TOPINCLUDE_EXIT_RKE_OLD USING


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:

G_ALL_GET_ORGANIZATIONAL_INFO CALL FUNCTION 'G_ALL_GET_ORGANIZATIONAL_INFO' IMPORTING e_s_t800a = s_t800a e_s_t881 = s_t881 e_dim_orgunit = dim_orgunit e_dim_kokrs = dim_kokrs e_kokrs = h_kokrs TABLES i_t_t811c = it811c e_t_t001 = t_t001 e_t_t880 = t_t880 e_t_glx_org_info = t_glx_org_info.

K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING gjahr = p_gjahr kokrs = tka00-kokrs IMPORTING e_tka00 = tka00 e_tka01 = tka01.

FAGL_PRCTR_KOKRS_ACTIVE_ACT CALL FUNCTION 'FAGL_PRCTR_KOKRS_ACTIVE_ACT' EXPORTING GJAHR = p_gjahr KOKRS = tka00-kokrs PCRCH = tka00-pcrch EXCEPTIONS OTHERS = 1.

RK_BUKRS_OF_KOKRS CALL FUNCTION 'RK_BUKRS_OF_KOKRS' EXPORTING kokrs = tka00-kokrs TABLES t_bukrs = it_bukrs.

K_KOKRS_WITH_DELTAVERSN_CHECK CALL FUNCTION 'K_KOKRS_WITH_DELTAVERSN_CHECK' EXPORTING kokrs = tka00-kokrs EXCEPTIONS no_delta_version = 01.

RKE_FILL_FIELD_TABLE CALL FUNCTION 'RKE_FILL_FIELD_TABLE' EXPORTING erkrs = erkrs * NEU_KZ = ' ' * PROTOKOLL_KZ = ' ' tabname = tabname pa_type = '3' TABLES fieldtab = fieldtab.

RKE_READ_ERKRS_MESSAGE CALL FUNCTION 'RKE_READ_ERKRS_MESSAGE' EXPORTING i_erkrs = erkrs IMPORTING e_v_tkeb = g_pa_attr et_v_tkebl = gt_pa_attr_curr.

RKE_OPEN_MSG_LIST CALL FUNCTION 'RKE_OPEN_MSG_LIST' EXPORTING erkrs = erkrs protocol = rkea1_c_prot-nil. " no protocol

K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING gjahr = p_gjahr kokrs = tka00-kokrs IMPORTING e_tka00 = tka00 e_tka01 = tka01.

K_KOKRS_SET CALL FUNCTION 'K_KOKRS_SET' EXPORTING I_KOKRS = tka00-kokrs POPUP = '0' EXCEPTIONS OTHERS = 1.

RK_BUKRS_OF_KOKRS CALL FUNCTION 'RK_BUKRS_OF_KOKRS' EXPORTING kokrs = tka00-kokrs TABLES t_bukrs = it_bukrs.

RKE_GENERATE_ABAP CALL FUNCTION 'RKE_GENERATE_ABAP' EXPORTING * DEL_LABEL = E01 erkrs = erkrs fcode = 'GEN ' model = model program = xrname i_devclass = '$TMP'.

RKE_GENERATE_ABAP CALL FUNCTION 'RKE_GENERATE_ABAP' EXPORTING * DEL_LABEL = E01 erkrs = erkrs fcode = 'GEN ' model = 'RKETDOXX' program = xrname.

RKE_FIELDNAMES_CHECK CALL FUNCTION 'RKE_FIELDNAMES_CHECK' EXPORTING auswahl = 'K' erkrs = erkrs fnam = keyfigures-field pa_type = keyfigures-pa_type IMPORTING subrc = subrc EXCEPTIONS OTHERS = 1.

RKE_FIELDNAMES_LIST CALL FUNCTION 'RKE_FIELDNAMES_LIST' EXPORTING auswahl = 'K' erkrs = erkrs pa_type = pa_type IMPORTING et_fields = t_keyfigures_list_costing.

RKE_FIELDNAMES_LIST CALL FUNCTION 'RKE_FIELDNAMES_LIST' EXPORTING auswahl = 'K' erkrs = erkrs pa_type = pa_type IMPORTING et_fields = t_keyfigures_list_accounting.

RKE_GENERATE_ABAP CALL FUNCTION 'RKE_GENERATE_ABAP' EXPORTING * DEL_LABEL = E01 erkrs = erkrs fcode = 'GEN ' model = model program = yrname i_devclass = '$TMP'.

DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' EXPORTING TABNAME = dbtable-tab * ALL_TYPES = ' ' * LFIELDNAME = ' ' * GROUP_NAMES = ' ' * UCLEN = * IMPORTING * X030L_WA = * DTELINFO_WA = * TTYPINFO_WA = * DDOBJTYPE = * DFIES_WA = * LINES_DESCR = TABLES * X031L_TAB = DFIES_TAB = lt_fields EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

G_FIELD_SET





CALL FUNCTION 'G_FIELD_SET' EXPORTING * table = 'COKEY' table = 'COKEY_IS' ftype = 'D' text_flag = true EXCEPTIONS not_found = 4.

G_FIELD_GET CALL FUNCTION 'G_FIELD_GET' IMPORTING field_attr = dfies subrc = subrc.

K_VERSN_ACTIVATE_VALUTYP_5 CALL FUNCTION 'K_VERSN_ACTIVATE_VALUTYP_5'.

K_VERSN_VALUATION CALL FUNCTION 'K_VERSN_VALUATION' EXPORTING i_kokrs = tka01-kokrs * importing * e_basic_valuation = TABLES t_tka09_v = v_tka09.

K_VERSN_ACTIVATE_VALUTYP_5 CALL FUNCTION 'K_VERSN_ACTIVATE_VALUTYP_5'.

TP_CVPROF_GET CALL FUNCTION 'TP_CVPROF_GET' EXPORTING i_kokrs = tka00-kokrs IMPORTING e_active = tprice_active EXCEPTIONS cvprof_not_found = 1 no_cvprof_for_kokrs = 2 kokrs_not_found = 3 OTHERS = 4.

K_VERSN_ACTIVATE_VALUTYP_5 * CALL FUNCTION 'K_VERSN_ACTIVATE_VALUTYP_5'.

K_VERSN_VALUATION CALL FUNCTION 'K_VERSN_VALUATION' EXPORTING i_kokrs = tka00-kokrs IMPORTING e_basic_valuation = basic_valuation TABLES t_tka09_v = v_tka09.

RK_BUKRS_OF_KOKRS CALL FUNCTION 'RK_BUKRS_OF_KOKRS' EXPORTING kokrs = h_kokrs TABLES t_bukrs = h_t_bukrs EXCEPTIONS OTHERS = 1.

G_SET_ENCRYPT_SETID CALL FUNCTION 'G_SET_ENCRYPT_SETID' EXPORTING setclass = '0002' " setclass for temporary sets shortname = short_name IMPORTING setid = header-setnr.

G_GENERATE_BASIC_SET CALL FUNCTION 'G_GENERATE_BASIC_SET' EXPORTING set_header = header TABLES set_lines = set_lines EXCEPTIONS bad_formula = 01 not_unique = 02 old_set_has_wrong_data_element = 03 old_set_has_wrong_type = 04 variable_does_not_exist = 05 variable_has_wrong_data_elem = 06 variable_has_wrong_type = 07 setname_too_long = 08 table_or_fieldname_missing = 09 wrong_interval = 10.

RK_CLINE_ADD CALL FUNCTION 'RK_CLINE_ADD' EXPORTING line = 'ENDFORM.'

RK_CLINE_ADD CALL FUNCTION 'RK_CLINE_ADD' EXPORTING line = 'ENDFORM.'

RK_CLINE_ADD CALL FUNCTION 'RK_CLINE_ADD' EXPORTING line = 'ENDFORM.'

RKE_GET_VERSI_RCVR_FROM_VERSN CALL FUNCTION 'RKE_GET_VERSI_RCVR_FROM_VERSN' EXPORTING i_kokrs = tka00-kokrs i_versn = l_versn i_gjahr = tka00-gjahr IMPORTING e_versi = l_versi EXCEPTIONS version_not_assigned = 1 version_not_defined = 2 OTHERS = 3.

RKE_VERSI_READ CALL FUNCTION 'RKE_VERSI_READ' EXPORTING i_erkrs = erkrs i_versi = l_versi IMPORTING es_tkevs = tkevs EXCEPTIONS versi_not_found = 1.

RKE_AL_CHARAC_GROUP CALL FUNCTION 'RKE_AL_CHARAC_GROUP' EXPORTING i_erkrs = i_erkrs i_patype = '3' i_activity = i_activity i_t811ia = i_t811ia i_subrc = i_subrc i_cycle_run = 'X' TABLES it_fieldtab = lt_fieldtab CHANGING x_t811i = x_t811i.

K_GET_ACTIVE_APPLICATIONS call function 'K_GET_ACTIVE_APPLICATIONS' importing es_subkey_active = ss_active.



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