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
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.
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)
INCLUDE ODTF_REPL_CC_CSV_TOP.
INCLUDE ODTF_REPL_CC_CSV_SEL.
No SAP DATABASE tables are accessed within this REPORT code!
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.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
ODTF_REPL_CC_CSV - Extract Cost Centers from ERP for Replication to Employee Central ODTF_REPL_CC_CSV - Extract Cost Centers from ERP for Replication to Employee Central ODTF_REPL_CC - Cost Center Distribution ODTF_REPL_CC - Cost Center Distribution ODQ_TASK - Program for Executing a Task ODQ_TASK - Program for Executing a Task