SAP Reports / Programs | Controlling | Profitability Analysis(CO-PA) SAP CO

RKEAE010 SAP ABAP Report - Transfer Sales Orders to Profitability Analysis







RKEAE010 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 RKEAE010 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 RKEAE010. "Basic submit
SUBMIT RKEAE010 AND RETURN. "Return to original report after report execution complete
SUBMIT RKEAE010 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: CHECK = Check for "already posted"
Selection Text: LOG = Log
Selection Text: NOBLOCK = No lock on sales documents
Selection Text: TEST = Test run
Title: Transfer Sales Orders to Profitability Analysis
Text Symbol: 010 = Number of sales documents read:
Text Symbol: 020 = Number of sales documents not processed:
Text Symbol: 030 = No. of sales documents transferred:
Text Symbol: 031 = Op.con.
Text Symbol: 040 = Number of sales document items transferred:
Text Symbol: 050 = No. of sales documents with errors:
Text Symbol: 060 = Sales doc
Text Symbol: 061 = Item
Text Symbol: 065 = CO-PA doc. no.
Text Symbol: 070 = Error text
Text Symbol: 080 = Retransfer sales orders - test run:
Text Symbol: 081 = Correct sales orders - test run:
Text Symbol: 090 = Retransfer sales orders - posting run:
Text Symbol: 091 = Correct sales orders - posting run:


INCLUDES used within this REPORT RKEAE010

INCLUDE RMCSSU01.
INCLUDE RMCSSU08.
INCLUDE VBRKDATA.
INCLUDE VBRPDATA.
INCLUDE KONVDATA.


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:

ENQUEUE_EVVBAKE call function 'ENQUEUE_EVVBAKE'.

ACC_INPUT_SALES_DOCUMENT_COMPO call function 'ACC_INPUT_SALES_DOCUMENT_COMPO' exporting i_comp = 'COPA' i_set = 'X'.

COPA_SD_DOCUMENT_CONTROL call function 'COPA_SD_DOCUMENT_CONTROL' exporting i_action = 'C'.

COPA_SD_DOCUMENT_CONTROL call function 'COPA_SD_DOCUMENT_CONTROL' exporting i_action = 'C' i_variable = 'ANALYSING_MODE'.

COPA_SD_DOCUMENT_CONTROL call function 'COPA_SD_DOCUMENT_CONTROL' exporting i_action = 'C' i_variable = 'SUBSEQUENT_POSTING'.

COPA_SD_DOCUMENT_CONTROL call function 'COPA_SD_DOCUMENT_CONTROL' exporting i_action = 'C' i_variable = 'TEST_RUN'.

COPA_SD_DOCUMENT_CONTROL call function 'COPA_SD_DOCUMENT_CONTROL' exporting i_action = 'C' i_variable = 'PROTOCOL'.

RKE_REFRESH_PROTTAB call function 'RKE_REFRESH_PROTTAB'.

COPA_DOCUMENT_TRACE call function 'COPA_DOCUMENT_TRACE' exporting i_action = 'IZ'.

COPA_DOCUMENT_TRACE call function 'COPA_DOCUMENT_TRACE' exporting i_action = 'IN'.

RV_XVBAPF_CREATE call function 'RV_XVBAPF_CREATE' exporting vbeln = vbak-vbeln tables fxvbapf = xvbapf fxvbfa = xvbfa.

SD_VBLB_READ call function 'SD_VBLB_READ' exporting i_document_number = xvbak-vbeln tables fxvblb = xvblb.

SD_VBEH_READ * call function 'SD_VBEH_READ' "JW HW512776 * exporting "JW HW512776 * i_document_number = xvbak-vbeln "JW HW512776 * tables "JW HW512776 * fxvbeh = xvbeh. "JW HW512776

SD_QUAN_VIS_DETERMINE_SUPPLIER call function 'SD_QUAN_VIS_DETERMINE_SUPPLIER' exporting i_generate_new = true i_vbeln = xvbak-vbeln tables fsvblb = xvblb fsxvbep = xvbep fsvbeh = xvbeh fsxvbap = xvbap.

MCV_STATISTICS_ORDER call function 'MCV_STATISTICS_ORDER' exporting modus = g_con_modus trtyp = 'V' xvbak = xvbak xvbak_updkz = con_updkz_insert yvbak = yvbak yvbak_updkz = space sprog = g_sprog srout = g_srout tables mcinf = mcinf vbapf = xvbapf xkomv = xkomv xvbap = xvbap xvbep = xvbep xvbfa = xvbfa xvbkd = xvbkd xvbpa = xvbpa xvbuk = xvbuk xvbup = xvbup yvbap = yvbap yvbep = yvbep yvbfa = yvbfa yvbkd = yvbkd yvbpa = yvbpa yvbuk = yvbuk yvbup = yvbup xfpla = xfpla yfpla = yfpla xfplt = xfplt yfplt = yfplt exceptions error_message = 4.

RKE_GIVE_PROTTAB call function 'RKE_GIVE_PROTTAB' tables protokolltabelle = gt_logtab.

DEQUEUE_EVVBAKE call function 'DEQUEUE_EVVBAKE'.

RKE_GIVE_PROTTAB call function 'RKE_GIVE_PROTTAB' tables protokolltabelle = gt_logtab exceptions others = 1.

COPA_DOCUMENT_TRACE





call function 'COPA_DOCUMENT_TRACE' exporting i_action = 'R' importing et_ad_trace = gt_log_bean exceptions trace_error = 1 others = 2.

COPA_SDTRACE_LOG_SEND_ITEMS call function 'COPA_SDTRACE_LOG_SEND_ITEMS' exporting i_tabname = g_tabname.

COPA_SDTRACE_LOG_CREATE call function 'COPA_SDTRACE_LOG_CREATE' exporting show_detail = log document_type = 'A' mode = g_mode tcode = g_tcode importing batch_log_handle = g_batch_log_handle tables document_messages = gt_document_messages valuation_messages = gt_log_bean.

COPA_SDTRACE_LOG_SHOW call function 'COPA_SDTRACE_LOG_SHOW' exporting show_detail = log document_type = 'A' mode = g_mode batch_log_handle = g_batch_log_handle i_tcode = g_tcode tables document_messages = gt_document_messages valuation_messages = gt_log_bean.

HELPSCREEN_NA_CREATE call function 'HELPSCREEN_NA_CREATE' exporting meldung = gt_err_tab-text meld_id = gt_err_tab-msgid meld_nr = gt_err_tab-msgno msgv1 = gt_err_tab-msgv1 msgv2 = gt_err_tab-msgv2 msgv3 = gt_err_tab-msgv3 msgv4 = gt_err_tab-msgv4 titel = g_title.

KPEP_MONI_INIT_RECORD call function 'KPEP_MONI_INIT_RECORD' exporting ls_detail = l_detail ls_witem = l_witem ls_appl = l_appl_param * LD_WORKLIST_FLAG = ' ' importing ls_key = e_schedman_key tables lt_selkrit = lt_selkrit.

KPEP_MONI_CLOSE_RECORD call function 'KPEP_MONI_CLOSE_RECORD' exporting ls_key = i_schedman_key ls_message = l_message changing ld_aplstat = l_state.



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