SAP Reports / Programs

RK2LBCCA SAP ABAP INCLUDE - documentation and ABAP source code







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

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:

RKE_GET_CRITERIA_FOR_CE4KEY call function 'RKE_GET_CRITERIA_FOR_CE4KEY' exporting i_erkrs = g_erkrs i_use_tkeoe = 'X' i_pa_type = '1' tables object_table = lt_item4[].

RKE_GET_CRITERIA_FOR_PAOBJNR * call function 'RKE_GET_CRITERIA_FOR_PAOBJNR' * exporting * erkrs = g_erkrs * use_tkeoe = 'X' * pa_type = '1' * tables * object_table = lt_item4[] * exceptions * paobjnr_not_found = 1 * others = 2.

COPA_ITEM_SIGN_REVERSE call function 'COPA_ITEM_SIGN_REVERSE' exporting i_tabname = i_tabname changing xs_item = ls_item_c.

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

RKE_POST_ACT_LINE_ITEM call function 'RKE_POST_ACT_LINE_ITEM' exporting erkrs = g_erkrs is_reversal = 'X' t_paledger = lt_paledger tables line_item_tab = i_ce1.

RKE_REVERSE_ACT_LINE_ITEM * call function 'RKE_REVERSE_ACT_LINE_ITEM' * exporting * erkrs = g_erkrs * i_from = i_from * tables * line_item_tab = lt_ce1[].

RKE_GET_ACCTNR call function 'RKE_GET_ACCTNR' exporting i_erkrs = g_erkrs * I_PA_TYPE = '1' i_vorgang = ' ' tables object_table = ce4_tab.

RKE_GET_OBJECT_NUMBER * CALL FUNCTION 'RKE_GET_OBJECT_NUMBER' * EXPORTING * erkrs = g_erkrs * PA_TYPE = '1' * TABLES * object_table = ce4_tab * EXCEPTIONS * OTHERS = 1.

RKE_TRANSFORM_STRUCTURE call function 'RKE_TRANSFORM_STRUCTURE' exporting erkrs = g_erkrs from_area = is_item from_tabname = i_tabname to_area_import = ls_item0 to_tabname = gc_tabname0 importing to_area_export = ls_item0.

RKE_TRANSFORM_STRUCTURE call function 'RKE_TRANSFORM_STRUCTURE' exporting erkrs = g_erkrs from_area = ls_item0 from_tabname = gc_tabname0 to_area_import = ls_item4 to_tabname = gc_tabname4 importing to_area_export = ls_item4.

RKE_GET_ACCTNR call function 'RKE_GET_ACCTNR' exporting i_erkrs = g_erkrs i_vorgang = i_btrans tables object_table = lt_item4[].

G_CONVERT_OUTPUT call function 'G_CONVERT_OUTPUT' exporting convexit = is_fieldtab-convexit datatype = is_fieldtab-datatype length_to_convert = is_fieldtab-intlen output_length = is_fieldtab-outputlen value_to_convert = x_field importing output_value = x_field.

COPA_GET_MANUAL_CHARACTERISTIC call function 'COPA_GET_MANUAL_CHARACTERISTIC' exporting i_erkrs = g_erkrs i_acctnr = xs_cobl-paobjnr importing et_fieldname = lt_fields_manual exceptions error = 1 others = 2.

RKE_TEMP_SEGMENT call function 'RKE_TEMP_SEGMENT' exporting i_erkrs = g_erkrs i_opcode = 'R' changing x_s_ce4 = ls_ce4.

FAGL_R_CHECK_OBJ_NOT_IN_REORG CALL FUNCTION 'FAGL_R_CHECK_OBJ_NOT_IN_REORG' EXPORTING iv_vbeln = ls_ce4-kaufn iv_posnr = ls_ce4-kdpos iv_plan_type = '003' IMPORTING ev_xin_reorg = reorg_flag.

RKE_GET_DATE_FOR_ACCTNR * call function 'RKE_GET_DATE_FOR_ACCTNR' * exporting * i_erkrs = g_erkrs * i_aktbo = 'X' * i_paobjnr = l_paobjnr * importing * e_budat = l_acct_budat.

COPA_GET_NRKR_HIST * call function 'COPA_GET_NRKR_HIST' * exporting * i_erkrs = g_erkrs * i_from_rel = c_release * i_from_patch = c_patch * i_object = c_nrkr_obj * importing * et_nrkr_ranges = lat_new_objects_range * exceptions * patch_hist_not_found = 1 * invalid_patch = 2 * others = 3.

KEDR_COPA_GET_DEPENDANT * call function 'KEDR_COPA_GET_DEPENDANT' * exporting * i_erkrs = g_erkrs * i_tab_sources = lt_tab_sources[] * i_cuobj = ls_derivation_global-cuobj * i_direct_dep_only = 'X' * importing * e_tab_targets = lt_tab_targets.

COPA_GET_SETTLEMENT_STRUCTURE





call function 'COPA_GET_SETTLEMENT_STRUCTURE' exporting i_erkrs = g_erkrs i_vrgng = 'RFBU' i_hkont = is_cobl-hkont i_kokrs = is_cobl-kokrs importing e_ersch = l_ersch e_erzuo = l_erzuo tables t_tkb9f = lt_tkb9f exceptions incomplete_structure = 1 error_structure = 2 others = 3.

KEDR_COPA_DERIVE call function 'KEDR_COPA_DERIVE' exporting i_erkrs = g_erkrs i_item = ls_item0 i_tab_exceptions = lt_fix_field_kedr[] i_derivation_date = i_date i_derive_anyway = ' ' i_trace_mode = is_status_flags-derive_trace i_global_fields = ls_derivation_global importing e_item = ls_item0 e_tab_fields_modified = lt_tab_fields_modified[] e_tab_used_source_fields = lt_tab_used_source_fields[] exceptions derivation_failed = 4 others = 4.

KEDR_COPA_DERIVE call function 'KEDR_COPA_DERIVE' exporting i_erkrs = g_erkrs i_item = las_item0_old i_derivation_date = i_date i_derive_anyway = ' ' i_global_fields = ls_derivation_global importing e_item = ls_item0_cmp.

KEDR_COPA_DERIVE call function 'KEDR_COPA_DERIVE' exporting i_erkrs = g_erkrs i_item = ls_item0 i_tab_exceptions = lt_fix_field_kedr[] i_derivation_date = i_date i_derive_anyway = x_derive_ff i_trace_mode = is_status_flags-derive_trace i_global_fields = ls_derivation_global importing e_item = ls_item0 e_tab_fields_modified = lt_tab_fields_modified[] e_tab_used_source_fields = lt_tab_used_source_fields[] exceptions derivation_failed = 4 others = 4.

COPA_COMPARE_ITEMS call function 'COPA_COMPARE_ITEMS' exporting i_erkrs = g_erkrs i_item_one = ls_item_one i_item_two = ls_item_two i_compare_fields = 'Z' importing et_field = gt_field_derived exceptions others = 1.

KEDR_COPA_DERIVE call function 'KEDR_COPA_DERIVE' exporting i_erkrs = g_erkrs i_item = las_item0_old * I_TAB_EXCEPTIONS = LT_FIX_FIELD_KEDR[] i_derivation_date = i_date i_derive_anyway = x_derive_ff i_global_fields = ls_derivation_global importing e_item = ls_item0_cmp e_tab_fields_modified = lt_tab_fields_modified[] e_tab_used_source_fields = lt_tab_used_source_fields[].

KEDR_COPA_GET_DEPENDANT call function 'KEDR_COPA_GET_DEPENDANT' exporting i_erkrs = g_erkrs i_tab_sources = it_tab_sources i_cuobj = is_derivation_global-cuobj i_direct_dep_only = 'X' importing e_tab_targets = et_tab_targets.

KEDR_COPA_DERIVE call function 'KEDR_COPA_DERIVE' exporting i_erkrs = g_erkrs i_item = i_item0 i_tab_exceptions = it_fix_field i_derivation_date = i_date i_global_fields = is_derivation_global i_derive_anyway = i_derive_ff i_trace_mode = 'S' exceptions derivation_failed = 4 others = 4.

KEDR_TRACE_WRITE call function 'KEDR_TRACE_WRITE'.

K_KOKRS_READ call function 'K_KOKRS_READ' exporting gjahr = xs_cobl-gjahr kokrs = xs_cobl-kokrs importing e_tka00 = ls_tka00.

RKE_CMP_CRITERIA_FOR_ACCTNR call function 'RKE_CMP_CRITERIA_FOR_ACCTNR' exporting i_erkrs = g_erkrs i_pa_type = '1' i_ce4_rec = ls_ce4_cmp importing e_rc = l_rc_cmp.

RKE_GET_ACCTNR call function 'RKE_GET_ACCTNR' exporting i_erkrs = g_erkrs i_vorgang = xs_cobl-vorgn i_ergbr = ls_tka00-ergbr " HW 657844 importing e_delkey = e_delkey tables object_table = lt_ce4.

RKE_NOACCT_READ_MEMID CALL FUNCTION 'RKE_NOACCT_READ_MEMID' EXCEPTIONS NOACCT_IS_ACTIVE = 1.

COPA_PUT_MANUAL_CHARACTERISTIC call function 'COPA_PUT_MANUAL_CHARACTERISTIC' exporting i_erkrs = g_erkrs i_acctnr = l_paobjnr it_fieldname = gt_fields_manual exceptions error = 1 others = 2.

RKE_TEMP_SEGMENT call function 'RKE_TEMP_SEGMENT' exporting i_erkrs = g_erkrs i_opcode = 'H' changing x_s_ce4 = lt_ce4.

COPCA_ACTIVE_ACT call function 'COPCA_ACTIVE_ACT' exporting gjahr = xs_cobl-gjahr kokrs = xs_cobl-kokrs pcrch = '2' exceptions copca_not_active = 1 kokrs_not_found = 2 wrong_parameter_pcrch = 3 no_currency_found = 4 others = 5.

FAGL_PRCTR_KOKRS_ACTIVE_ACT CALL FUNCTION 'FAGL_PRCTR_KOKRS_ACTIVE_ACT' EXPORTING GJAHR = xs_cobl-gjahr KOKRS = xs_cobl-kokrs PCRCH = '2' EXCEPTIONS COPCA_NOT_ACTIVE = 1 FLEXGL_NOT_ACTIVE = 2 OTHERS = 3.

COPA_PROFITABILITY_SEGMENT call function 'COPA_PROFITABILITY_SEGMENT' exporting dialog = ' ' pruefen = 'X' i_cobl = is_cobl.

MESSAGE_STORE call function 'MESSAGE_STORE' exporting arbgb = i_msgid msgty = i_msgty txtnr = i_msgno msgv1 = i_msgv1 msgv2 = i_msgv2 msgv3 = i_msgv3 msgv4 = i_msgv4 exceptions not_active = 1.

RKE_GET_CRITERIA_FOR_ACCTNR call function 'RKE_GET_CRITERIA_FOR_ACCTNR' exporting i_erkrs = g_erkrs tables object_table = i_ce4 exceptions others = 2.




RKE_GET_CRITERIA_FOR_PAOBJNR * call function 'RKE_GET_CRITERIA_FOR_PAOBJNR' * exporting * erkrs = g_erkrs * tables * object_table = i_ce4 * exceptions * paobjnr_not_found = 1 * others = 2.

RKE_SEGMENTS_SPLIT_PREPARE call function 'RKE_SEGMENTS_SPLIT_PREPARE' exporting i_erkrs = g_erkrs i_pkgsiz = l_pkgsize importing e_handle = l_handle.

RKE_SEGMENTS_SPLIT_GET_PKG call function 'RKE_SEGMENTS_SPLIT_GET_PKG' exporting i_handle = l_handle importing e_paobjnr_low = l_paobjnr_low e_paobjnr_high = l_paobjnr_high exceptions no_more_data = 1.

RKE_SEGMENTS_SPLIT_PREPARE call function 'RKE_SEGMENTS_SPLIT_PREPARE' exporting i_erkrs = g_erkrs i_pkgsiz = l_pkgsize importing e_handle = l_handle.

RKE_SEGMENTS_SPLIT_GET_PKG call function 'RKE_SEGMENTS_SPLIT_GET_PKG' exporting i_handle = l_handle importing e_paobjnr_low = l_paobjnr_low e_paobjnr_high = l_paobjnr_high exceptions no_more_data = 1.

DDIF_NAMETAB_GET call function 'DDIF_NAMETAB_GET' exporting tabname = l_name tables dfies_tab = lt_ce4flag_nametab exceptions not_found = 1 others = 2.

COPA_POST_MANUAL_CHARACTERISTI call function 'COPA_POST_MANUAL_CHARACTERISTI' exporting i_erkrs = 'BCCA' is_ce4flag = int_ce4flag exceptions others = 1.

KEDR_COPA_PSEG_GUESS_MFLAGS call function 'KEDR_COPA_PSEG_GUESS_MFLAGS' exporting i_erkrs = g_erkrs i_ce4_old = is_ce4_old i_derivation_date_old = i_acct_budat i_ce4_current_sender = is_ce4_sender i_derivation_date_new = sy-datum i_global_fields = is_derivation_global i_tab_exceptions = lt_fix_field_kedr[] changing x_gt_criteria = xt_criteria[] exceptions failed = 1 others = 2.

RKE_FILL_FIELD_TABLE call function 'RKE_FILL_FIELD_TABLE' exporting erkrs = erkrs tabname = 'CE0BCCA' tables fieldtab = lt_dbtable.

KEDR_COPA_DERIVE call function 'KEDR_COPA_DERIVE' exporting i_erkrs = 'BCCA' i_item = ls_item0 i_tab_exceptions = lt_fix_field_kedr[] i_derivation_date = i_datum i_derive_anyway = l_derive_anyway importing e_item = ls_item0 exceptions others = 1.

RKE_CHECK_ORG_ELEMENTS call function 'RKE_CHECK_ORG_ELEMENTS' exporting datum = i_datum bukrs = ls_ce4_data-bukrs erkrs = 'BCCA' gsber = ls_ce4_data-gsber kokrs = ls_ce4_data-kokrs prctr = ls_ce4_data-prctr vkorg = ls_ce4_data-vkorg vtweg = ls_ce4_data-vtweg spart = ls_ce4_data-spart werks = ls_ce4_data-werks exceptions error_message = 1.

RKE_GET_ACCTNR call function 'RKE_GET_ACCTNR' exporting i_erkrs = 'BCCA' tables object_table = lt_ce4[].

RKE_GET_CE4KEY call function 'RKE_GET_CE4KEY' exporting i_erkrs = 'BCCA' I_APPLY_CCU = summ_mode tables object_table = lt_ce4[].



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