SAP Reports / Programs | Enterprise Controlling | Profit Center Accounting(EC-PCA) SAP EC

RECPCSF2 SAP ABAP INCLUDE - EC-PCA: Data Selection for CO Plan Data Transfer







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


Text pool values


Title: EC-PCA: Data Selection for CO Plan Data Transfer


INCLUDES used within this REPORT RECPCSF2

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:

COPCA_SELECTION_TEST_CO_PLAN CALL FUNCTION 'COPCA_SELECTION_TEST_CO_PLAN' EXPORTING i_cobk = cobk i_coeja = icoeja i_pcbel = gv-pcbel IMPORTING e_rc = result TABLES i_coiob = i_coiob.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' EXPORTING i_identification = msg_identification IMPORTING e_identification = msg_identification.

K_OBJECTS_MASTER_READ CALL FUNCTION 'K_OBJECTS_MASTER_READ' TABLES coiob_tab = help_coiob i_periods = iperiods EXCEPTIONS error_occurs = 1 wrong_object = 2 OTHERS = 3.

K_OBJECTS_MASTER_READ CALL FUNCTION 'K_OBJECTS_MASTER_READ' TABLES coiob_tab = help_coiob i_periods = iperiods EXCEPTIONS error_occurs = 1 wrong_object = 2 OTHERS = 3.

G_PCA_NACHBUCHEN_PLAN_START CALL FUNCTION 'G_PCA_NACHBUCHEN_PLAN_START'.

G_PCA_FROM_CO_PLAN_UPDATE CALL FUNCTION 'G_PCA_FROM_CO_PLAN_UPDATE' TABLES t_cobk = gi_cobk t_coeja = icoeja t_coiob = i_coiob t_ledger = gt_gledger t_periods = iperiods.

G_PCA_NACHBUCHEN_PLAN_ENDE CALL FUNCTION 'G_PCA_NACHBUCHEN_PLAN_ENDE'.

COPCA_SELECTION_TEST_CO_PLAN * CALL FUNCTION 'COPCA_SELECTION_TEST_CO_PLAN' * EXPORTING * I_COBK = COBK * I_COEJA = ICOEJA * I_PCBEL = GV-PCBEL * IMPORTING * E_RC = RESULT * TABLES * I_COIOB = I_COIOB.

MESSAGES_INITIALIZE * CALL FUNCTION 'MESSAGES_INITIALIZE' * EXPORTING * I_IDENTIFICATION = MSG_IDENTIFICATION * IMPORTING * E_IDENTIFICATION = MSG_IDENTIFICATION.

K_OBJECTS_MASTER_READ * CALL FUNCTION 'K_OBJECTS_MASTER_READ' * TABLES * COIOB_TAB = HELP_COIOB * I_PERIODS = IPERIODS * EXCEPTIONS * ERROR_OCCURS = 1 * WRONG_OBJECT = 2 * OTHERS = 3.

K_OBJECTS_MASTER_READ * CALL FUNCTION 'K_OBJECTS_MASTER_READ' * TABLES * COIOB_TAB = HELP_COIOB * I_PERIODS = IPERIODS * EXCEPTIONS * ERROR_OCCURS = 1 * WRONG_OBJECT = 2 * OTHERS = 3.

G_PCA_NACHBUCHEN_PLAN_START * CALL FUNCTION 'G_PCA_NACHBUCHEN_PLAN_START'.

G_PCA_FROM_CO_PLAN_UPDATE * CALL FUNCTION 'G_PCA_FROM_CO_PLAN_UPDATE' * TABLES * T_COBK = GI_COBK * T_COEJA = ICOEJA * T_COIOB = I_COIOB * T_LEDGER = GT_GLEDGER * T_PERIODS = IPERIODS.

G_PCA_NACHBUCHEN_PLAN_ENDE * CALL FUNCTION 'G_PCA_NACHBUCHEN_PLAN_ENDE'.

G_POSTING_DATE_OF_PERIOD_GET CALL FUNCTION 'G_POSTING_DATE_OF_PERIOD_GET' EXPORTING period = cobk-perab " statt PERBI variant = gv-lmona year = cobk-gjahr IMPORTING from_date = cobk-budat last_normal_period = last_normal_period to_date = to_date.

OBJECT_KEY_GET CALL FUNCTION 'OBJECT_KEY_GET' TABLES onr_tab = i_ionra.

K_RECONCILIATION_OBJECT CALL FUNCTION 'K_RECONCILIATION_OBJECT' EXPORTING i_ionrao = i_ionrao IMPORTING owaer = i_coiob-owaer.

COPCA_COIOB_HOART_SET * call function 'COPCA_COIOB_HOART_SET' "note 303288 "5.0

COPCA_COIOB_HOART_SET





CALL FUNCTION 'COPCA_COIOB_HOART_SET' "note 303288 "5.0a

G_POSTING_DATE_OF_PERIOD_GET CALL FUNCTION 'G_POSTING_DATE_OF_PERIOD_GET' EXPORTING period = fil_ptable-buper variant = gv-lmona year = cobk-gjahr IMPORTING from_date = fil_ptable-datab last_normal_period = last_normal_period to_date = fil_ptable-datbi.

COPCA_SELECTION_TEST_CO_PLAN CALL FUNCTION 'COPCA_SELECTION_TEST_CO_PLAN' EXPORTING i_cobk = sel_cobk i_coeja = sel_coeja i_pcbel = sel_pcbel IMPORTING e_rc = result TABLES i_coiob = sel_coiob.

K_ORDER_READ * call function 'K_ORDER_READ' * exporting * aufnr = rea_aufnr * importing * bukrs = aufk-bukrs * gsber = aufk-gsber * owaer = aufk-waers * prctr = aufk-prctr * stakz = aufk-astkz * exceptions * not_found = 1.

RK_KOSTL_READ * call function 'RK_KOSTL_READ' * exporting * datum = rea_budat * kokrs = rea_kokrs * kostl = rea_kostl * importing * bukrs = csks-bukrs * gsber = csks-gsber * owaer = csks-waers * stakz = csks-stakz * xcsksv = csksv * exceptions * kostl_not_found = 1.

CJPN_GET_PROFIT_CENTER_FOR_WBS * call function 'CJPN_GET_PROFIT_CENTER_FOR_WBS' * exporting * i_pspnr = rea_pspnr * importing * e_prctr = prctr * e_kont_prps = prps * exceptions * input_error = 01 * profit_center_not_found = 02 * psp_hierarchy_error = 03 * psp_not_found = 04.

CJDW_PRPS_SELECT_SINGLE ** CALL FUNCTION 'CJDW_PRPS_SELECT_SINGLE' ** EXPORTING ** POSNR = REA_PSPNR ** IMPORTING ** E_PRPS = PRPS ** EXCEPTIONS ** MISSING_PARAMETER = 4 ** NOT_FOUND = 8.

K_OBJECTS_MASTER_READ * call function 'K_OBJECTS_MASTER_READ' ** EXPORTING ** MAX_ERROR = 8 * tables * coiob_tab = help_coiob * i_periods = h_periods * exceptions * error_occurs = 1 * wrong_object = 2 * others = 3.

K_OBJECTS_MASTER_READ * call function 'K_OBJECTS_MASTER_READ' * exporting * max_error = 8 * tables * coiob_tab = help_coiob * i_periods = h_periods * exceptions * error_occurs = 1 * wrong_object = 2 * others = 3.

K_OBJECTS_MASTER_READ CALL FUNCTION 'K_OBJECTS_MASTER_READ' EXPORTING max_error = 8 TABLES * coiob_tab = lth_coiob "note 303288 "5.0a

G_NACHBUCHEN_START CALL FUNCTION 'G_NACHBUCHEN_START'.

G_SET_TARGET_LEDGER CALL FUNCTION 'G_SET_TARGET_LEDGER' EXPORTING t_ledger = target_ledgers.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' EXPORTING i_identification = msg_identification IMPORTING e_identification = msg_identification.

G_COBK_HEADER CALL FUNCTION 'G_COBK_HEADER' EXPORTING i_cobk = it_cobk i_kwaer = tka01-waers i_tka01 = tka01 i_twaer = tka01-waers TABLES t_bukrs = bukrs_tab EXCEPTIONS OTHERS = 1.

G_GIVE_GLEDGER CALL FUNCTION 'G_GIVE_GLEDGER' EXPORTING no_refresh = true TABLES iledger = iledger.

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS i_message = 1 w_message = 2 e_message = 3 a_message = 4 OTHERS = 8.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = it_mesg.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' EXPORTING i_identification = msg_identification IMPORTING e_identification = msg_identification.

G_COEJA_CHECK CALL FUNCTION 'G_COEJA_CHECK' TABLES i_cobk = it_cobk i_coeja = it_coeja i_coiob = it_coiob i_periods = it_periods.

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS i_message = 1 w_message = 2 e_message = 3 a_message = 4 OTHERS = 8.




MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = it_mesg.

G_COEJA_UPDATE CALL FUNCTION 'G_COEJA_UPDATE' TABLES i_cobk = it_cobk i_coeja = it_coeja i_coiob = it_coiob.

G_NACHBUCHEN_ENDE CALL FUNCTION 'G_NACHBUCHEN_ENDE'.

K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING kokrs = cobk-kokrs IMPORTING e_tka01 = ls_tka01 EXCEPTIONS not_found = 1 not_found_gjahr = 2 OTHERS = 3.

G_POSTING_DATE_OF_YEAR_GET CALL FUNCTION 'G_POSTING_DATE_OF_YEAR_GET' EXPORTING variant = lsd_periv year = cobk-gjahr IMPORTING from_date = lsd_firstday to_date = lsd_lastday EXCEPTIONS variant_not_defined = 1 year_not_defined = 2 others = 3.

G_PERIOD_GET CALL FUNCTION 'G_PERIOD_GET' EXPORTING date = ld_merge_first variant = lsd_periv IMPORTING period = cobk-perab EXCEPTIONS ledger_not_assigned_to_company = 1 period_not_defined = 2 variant_not_defined = 3 OTHERS = 4.



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