SAP Reports / Programs

ODTF_REPL_CC_CSV SAP ABAP Report - Extract Cost Centers from ERP for Replication to Employee Central







ODTF_REPL_CC_CSV is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report exports the cost center master data from the SAP system into a CSV file, which can be used to import the data into SucessFactors Employee Central...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter ODTF_REPL_CC_CSV 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 ODTF_REPL_CC_CSV. "Basic submit
SUBMIT ODTF_REPL_CC_CSV AND RETURN. "Return to original report after report execution complete
SUBMIT ODTF_REPL_CC_CSV 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: BUKRS_SO = D .
Selection Text: DATBI_SO = D .
Selection Text: DATUM = D .
Selection Text: GSBER_SO = D .
Selection Text: KOKRS = D .
Selection Text: KOKRS_SO = D .
Selection Text: KOSAR_SO = D .
Selection Text: KOSTL_SO = D .
Selection Text: KSTGR_SO = D .
Selection Text: POST_ALW = Only FI postings allowed CCs
Selection Text: PRCTR_SO = D .
Selection Text: P_CHDOC = Read cost c. change documents
Selection Text: P_FNAME = D .
Selection Text: WERKS_SO = D .
Title: Extract Cost Centers from ERP for Replication to Employee Central
Text Symbol: BCC = Cost Centers
Text Symbol: BCE = CSV Export
Text Symbol: BCP = Delta Replication Settings
Text Symbol: LG1 = Write Error Log for Skipped Data Sets
Text Symbol: TST = Test Mode (List selected data only)


INCLUDES used within this REPORT ODTF_REPL_CC_CSV

INCLUDE ODTF_REPL_CC_CSV_TOP.
INCLUDE ODTF_REPL_CC_CSV_SEL.


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:

K_GROUP_SELECT CALL FUNCTION 'K_GROUP_SELECT' EXPORTING field_name = 'KOSTL' searchfld = ld_searchfield * searchfld_input = space * set = kstgr_so-low IMPORTING set_name = kstgr_so-low EXCEPTIONS no_set_picked = 1 OTHERS = 2.

KD_GET_FILENAME_ON_F4 CALL FUNCTION 'KD_GET_FILENAME_ON_F4' EXPORTING static = 'X' mask = ',*.csv,*.csv.'

ODTF_CC_GET_PERNR_FOR_USER * CALL FUNCTION 'ODTF_CC_GET_PERNR_FOR_USER' * EXPORTING * user = -verak_user * IMPORTING * pernr = lv_assigned_manager_id.

ODTF_REPL_CC_WRITE_CSV_CONTENT CALL FUNCTION 'ODTF_REPL_CC_WRITE_CSV_CONTENT' EXPORTING it_cost_center_badi = gt_cost_center_badi.

ODTF_CC_CSV_READ_TEMPLATE CALL FUNCTION 'ODTF_CC_CSV_READ_TEMPLATE' EXPORTING iv_full_path = gv_full_path IMPORTING et_columns = lt_columns ev_descriptions = lv_descriptions EXCEPTIONS file_upload_error = 1 OTHERS = 3.

ODTF_CC_CSV_BUILD_TEMPLATE CALL FUNCTION 'ODTF_CC_CSV_BUILD_TEMPLATE' IMPORTING et_columns = lt_columns ev_descriptions = lv_descriptions.

ODTF_CC_CSV_FROM_ITAB CALL FUNCTION 'ODTF_CC_CSV_FROM_ITAB' EXPORTING it_cost_centers = gt_cost_center_badi it_columns = lt_columns iv_descriptions = lv_descriptions IMPORTING et_csv_data = lt_csv_data.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = gv_full_path show_transfer_status = abap_false * confirm_overwrite = 'X' TABLES data_tab = lt_csv_data EXCEPTIONS OTHERS = 22.

ODTF_REPL_CC_CHECK_DATA_CSV CALL FUNCTION 'ODTF_REPL_CC_CHECK_DATA_CSV' EXPORTING iv_write_log = p_log CHANGING ct_cost_center_badi = gt_cost_center_badi.



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