SAP Reports / Programs

FICPCD00 SAP ABAP Report - Download: Combinations of PrCtr/Comp. and Profit Center Hierarchies







FICPCD00 is a standard Executable ABAP Report 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 FICPCD00 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

CXNA - Download PCA Hierarchies


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


Text pool values


Selection Text: SO_RCOMP = D Company
Selection Text: SO_PRCTR = D Profit center
Selection Text: PA_PRCGR = Top profit center group
Selection Text: PA_KOKRS = D Controlling area
Selection Text: PA_FILE2 = Hierarchy info
Selection Text: PA_FILE1 = Org unit info
Selection Text: PA_DATBI = D Valid to
Selection Text: PA_DATAB = D Valid from
Title: Download: Combinations of PrCtr/Comp. and Profit Center Hierarchies
Text Symbol: T01 = Choose file on presentation server
Text Symbol: B11 = File names
Text Symbol: B10 = Organizational units


INCLUDES used within this REPORT FICPCD00

INCLUDE FICPCD0S.


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:

WS_FILENAME_GET CALL FUNCTION 'WS_FILENAME_GET' EXPORTING def_filename = g_initfile1 * DEF_PATH = ' ' mask = ',*.*,*.*.'

WS_FILENAME_GET CALL FUNCTION 'WS_FILENAME_GET' EXPORTING def_filename = g_initfile2 * DEF_PATH = ' ' mask = ',*.*,*.*.'

G_SET_ENCRYPT_SETID CALL FUNCTION 'G_SET_ENCRYPT_SETID' EXPORTING setclass = gsetc_profitcenter_setclass shortname = pa_prcgr kokrs = pa_kokrs IMPORTING setid = gd_set_34.

G_SET_GET_INFO CALL FUNCTION 'G_SET_GET_INFO' EXPORTING setname = gd_set_34 table = 'GLPCT' EXCEPTIONS set_not_found = 1.

FC_PRCTR_COCD_FROM_CEPC CALL FUNCTION 'FC_PRCTR_COCD_FROM_CEPC' EXPORTING e_kokrs = pa_kokrs e_date = pa_datbi "#EC DOM_EQUAL e_from_date = pa_datab "#EC DOM_EQUAL TABLES it_prctr_cocd = it_prctr_comp.

FC_AUTHCHECK_INTEGRATION CALL FUNCTION 'FC_AUTHCHECK_INTEGRATION' EXPORTING e_id = 'PRCTR' e_kokrs = pa_kokrs "mix200710 e_prctr = wa_prctr.

WS_DOWNLOAD * CALL FUNCTION 'WS_DOWNLOAD' * EXPORTING * filename = pa_file1 * filetype = 'ASC' * TABLES * data_tab = it_prctr_comp * EXCEPTIONS * file_open_error = 1 * file_write_error = 2 * invalid_filesize = 3 * invalid_type = 4 * no_batch = 5 * unknown_error = 6 * invalid_table_width = 7 * gui_refuse_filetransfer = 8 * customer_error = 9.

FC_PRCTR_HIERARCHY CALL FUNCTION 'FC_PRCTR_HIERARCHY' EXPORTING e_kokrs = pa_kokrs e_topnode = gd_set_34 "using CHAR34 SETID e_datbi = pa_datbi "wes030605 e_datab = pa_datab "wes030605 TABLES it_pca_hi = it_pca_hi EXCEPTIONS incorrect_coarea = 1 set_not_found = 2.

WS_DOWNLOAD * CALL FUNCTION 'WS_DOWNLOAD' * EXPORTING * filename = pa_file2 * filetype = 'ASC' * TABLES * data_tab = it_pca_hi * EXCEPTIONS * file_open_error = 1 * file_write_error = 2 * invalid_filesize = 3 * invalid_type = 4 * no_batch = 5 * unknown_error = 6 * invalid_table_width = 7 * gui_refuse_filetransfer = 8 * customer_error = 9.

FC_AUTHCHECK_INTEGRATION CALL FUNCTION 'FC_AUTHCHECK_INTEGRATION' EXPORTING e_id = 'KOKRS' e_kokrs = pa_kokrs.



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