SAP Reports / Programs

REKCOPA1 SAP ABAP Report - Transfer Billing Data to CO-PA According to Consumption Month







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


Transaction Code(s):

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

EI72 - CO-PA: Statistical Update


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 REKCOPA1. "Basic submit
SUBMIT REKCOPA1 AND RETURN. "Return to original report after report execution complete
SUBMIT REKCOPA1 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: 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


INCLUDES used within this REPORT REKCOPA1

INCLUDE MEAMAC00. " MAKROS
INCLUDE MEAPROT0. " PROTOKOLL


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:

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.



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