REKCOPA1 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Using this function you can update invoiced billing documents periodically and copy them into CO-PA, according to consumption month...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 REKCOPA1 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
EI72 - CO-PA: Statistical Update
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: BUDAT = Posting date
Selection Text: CCOUNTER = Commit after
Selection Text: DATUM = Termination date
Selection Text: LAUFZ = Check runtime
Selection Text: OPBEL = Invoicing document
Selection Text: S_FIKEY = Reconciliation Key
Selection Text: TIME = Termination time
Title: Transfer Billing Data to CO-PA According to Consumption Month
Text Symbol: 000 = Processing terminated (see log)
Text Symbol: 001 = CO-PA update
Text Symbol: 002 = Processing completed (see log)
Text Symbol: 004 = General selections
Text Symbol: 008 = Commit Counter
Text Symbol: 009 = Billing document(s)
Text Symbol: 010 = Simulation run
Text Symbol: 012 = End of runtime
Text Symbol: 013 = Log
INCLUDE MEAMAC00. " MAKROS
INCLUDE MEAPROT0. " PROTOKOLL
No SAP DATABASE tables are accessed within this REPORT code!
ISU_DB_EITCOPA_SELECT CALL FUNCTION 'ISU_DB_EITCOPA_SELECT' TABLES xt_opbel = tab_opbel xt_budat = tab_budat xt_fikey = tab_fikey yt_eitcopa = t_eitcopa EXCEPTIONS not_found = 1 system_error = 2 not_qualified = 3 OTHERS = 4.
ISU_INV_PF_STATUS_HANDLE CALL FUNCTION 'ISU_INV_PF_STATUS_HANDLE' EXPORTING x_handle = g_handle TABLES t_opbel = t_opbel EXCEPTIONS iu_error = 1 system_error = 2 not_qualified = 3 OTHERS = 4.
FKK_FIKEY_GET_STATUS CALL FUNCTION 'FKK_FIKEY_GET_STATUS' EXPORTING i_fikey = t_eitcopa-fikey IMPORTING e_xclos = h_xclos EXCEPTIONS error_message = 1.
ISU_S_DB_BILL_SINGLE CALL FUNCTION 'ISU_S_DB_BILL_SINGLE' EXPORTING x_belnr = x_belnr x_read_ercho = ' ' x_read_erchr = ' ' x_read_erchv = ' ' x_read_erchu = ' ' x_read_erchp = ' ' CHANGING y_bill = wa_bill_doc EXCEPTIONS not_found = 1 system_error = 2 not_qualified = 3 OTHERS = 4.
ISU_PREPARE_QUANT_FOR_UIS CALL FUNCTION 'ISU_PREPARE_QUANT_FOR_UIS' EXPORTING x_obj = wa_bill_doc IMPORTING y_obj = wa_bill_doc EXCEPTIONS general_fault = 1 OTHERS = 2.
ISU_STATS_BILL_DIVIDE_BY_MONTH CALL FUNCTION 'ISU_STATS_BILL_DIVIDE_BY_MONTH' EXPORTING x_erch = wa_bill_doc-erch x_erchz = h_erchz TABLES ty_erchz = t_erchz EXCEPTIONS general_fault = 1 OTHERS = 2.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = x_budat foreign_amount = sumtab-nettobtr foreign_currency = sumtab-waers local_currency = h_erkrs_waers IMPORTING local_amount = sumtab-nettobtr EXCEPTIONS error_message = 1 OTHERS = 2.
ISU_COPA_GENERAL_DATA_CHECK CALL FUNCTION 'ISU_COPA_GENERAL_DATA_CHECK' EXPORTING x_bukrs = p_bukrs IMPORTING y_erkrs = p_erkrs y_xstatist_update = x_update TABLES ty_te760 = ite760 EXCEPTIONS not_erkrs_active = 1 general_fault = 2 OTHERS = 3.
FKK_COMP_CODE_DATA CALL FUNCTION 'FKK_COMP_CODE_DATA' EXPORTING i_bukrs = p_bukrs IMPORTING e_t001 = wa_t001.
RKE_GET_REC_WAERS CALL FUNCTION 'RKE_GET_REC_WAERS' EXPORTING i_erkrs = p_erkrs i_paledger = '01' i_bukrs = p_bukrs IMPORTING e_rec_waers = ierkrs-waers EXCEPTIONS OTHERS = 1.
ISU_DB_TE761_SINGLE CALL FUNCTION 'ISU_DB_TE761_SINGLE' EXPORTING x_erkrs = p_erkrs IMPORTING y_te761 = wa_te761 EXCEPTIONS OTHERS = 1.
G_PERIOD_GET CALL FUNCTION 'G_PERIOD_GET' EXPORTING date = p_budat variant = ierkrs-periv IMPORTING period = wa_pop-period year = wa_pop-year.
ISU_DB_TE540C_SINGLE CALL FUNCTION 'ISU_DB_TE540C_SINGLE' EXPORTING x_stgrqnt = p_stgrqnt x_erkrs = p_erkrs TABLES t_te540c = ite540c.
ISU_DB_TE541C_SINGLE CALL FUNCTION 'ISU_DB_TE541C_SINGLE' EXPORTING x_stgramt = p_stgramt x_erkrs = p_erkrs TABLES t_te541c = ite541c.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
REKCOPA1 - Transfer Billing Data to CO-PA According to Consumption Month REKCOPA1 - Transfer Billing Data to CO-PA According to Consumption Month REKCOLLBIGEN - Generate Collective Bill for Single Items W/O Reference to C. Bill REKCOLLBIGEN - Generate Collective Bill for Single Items W/O Reference to C. Bill REKBONUS - Program for Object Type EKBONUS: Rebate Arrangement (Purchasing) REKBONUS - Program for Object Type EKBONUS: Rebate Arrangement (Purchasing)