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

RKEAE005 SAP ABAP Report - Prepare Subsequent Posting of Incoming Sales Orders to CO-PA







RKEAE005 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 RKEAE005 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

KE4F - Post Incoming Orders Subsequently


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 RKEAE005. "Basic submit
SUBMIT RKEAE005 AND RETURN. "Return to original report after report execution complete
SUBMIT RKEAE005 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: G_VTWEG = Distribution channel
Selection Text: G_VKORG = Sales organization
Selection Text: G_VBELN = Sales document
Selection Text: G_TEST = Test run
Selection Text: G_SPART = Division
Selection Text: G_LOG = Log
Selection Text: G_ERDAT = Created on
Title: Prepare Subsequent Posting of Incoming Sales Orders to CO-PA
Text Symbol: 090 = Update:
Text Symbol: 080 = Test run:
Text Symbol: 060 = Item
Text Symbol: 050 = Error text
Text Symbol: 040 = Sales doc
Text Symbol: 030 = Number of sales document items with errors:
Text Symbol: 021 = Number of sales document items updated:
Text Symbol: 020 = No. of sales doc. items with prof. segment:
Text Symbol: 010 = Number of sales documents read:
Text Symbol: 002 = Control Parameters
Text Symbol: 001 = Document


INCLUDES used within this REPORT RKEAE005

No INCLUDES are used within this REPORT code!


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:

RS_SET_SELSCREEN_STATUS call function 'RS_SET_SELSCREEN_STATUS' exporting p_status = 'KECA' p_program = 'COPA_COPY' tables p_exclude = lt_exclude.

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

RKE_REFRESH_PROTTAB * call function 'RKE_REFRESH_PROTTAB'.

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

SD_SALES_DOCUMENT_SAVE call function 'SD_SALES_DOCUMENT_SAVE' exporting synchron = ' ' status_buffer_refresh = 'X' requisition_buffer_refresh = 'X' exceptions error_message = 1 others = 2.

SD_SALES_DOCUMENT_READ call function 'SD_SALES_DOCUMENT_READ' exporting document_number = gs_document-vbeln exceptions error_message = 1 others = 2.

SD_SALES_ITEM_READ call function 'SD_SALES_ITEM_READ' exporting item_number = gs_document-posnr.

SD_SALES_DOCUMENT_PERFORM call function 'SD_SALES_DOCUMENT_PERFORM' exporting in_program = 'SAPFV45P' perform = 'VBAP_BEARBEITEN_VORBEREITEN' exceptions error_message = 1 others = 2.

SD_SALES_DOCUMENT_PERFORM call function 'SD_SALES_DOCUMENT_PERFORM' exporting in_program = 'SAPFV45P' perform = 'VBAP_FUELLEN' exceptions error_message = 1 others = 2.

SD_SALES_DOCUMENT_PERFORM call function 'SD_SALES_DOCUMENT_PERFORM' exporting in_program = 'SAPFV45P' perform = 'ERGEBNISOBJEKT_AKTUALISIEREN' exceptions error_message = 1 others = 2.

SD_SALES_DOCUMENT_PERFORM call function 'SD_SALES_DOCUMENT_PERFORM' exporting in_program = 'SAPFV45P' perform = 'AUFTEILUNGSREGEL_AKTUALISIEREN' exceptions error_message = 1 others = 2.

SD_SALES_DOCUMENT_PERFORM call function 'SD_SALES_DOCUMENT_PERFORM' exporting in_program = 'SAPFV45P' perform = 'XVBAP_AENDERN' exceptions error_message = 1 others = 2.

SD_SALES_DOCUMENT_SAVE call function 'SD_SALES_DOCUMENT_SAVE' exporting synchron = ' ' status_buffer_refresh = 'X' requisition_buffer_refresh = 'X' exceptions error_message = 1 others = 2.

COPA_SDTRACE_LOG_CREATE call function 'COPA_SDTRACE_LOG_CREATE' exporting show_detail = '' document_type = 'P' mode = g_mode tcode = 'KE4F' importing batch_log_handle = g_batch_log_handle tables document_messages = gt_document_messages.

COPA_SDTRACE_LOG_SHOW call function 'COPA_SDTRACE_LOG_SHOW' exporting show_detail = '' document_type = 'P' batch_log_handle = g_batch_log_handle i_tcode = 'KE4F' tables document_messages = gt_document_messages.

HELPSCREEN_NA_CREATE call function 'HELPSCREEN_NA_CREATE' exporting meldung = gs_error-text meld_id = gs_error-msgid meld_nr = gs_error-msgno msgv1 = gs_error-msgv1 msgv2 = gs_error-msgv2 msgv3 = gs_error-msgv3 msgv4 = gs_error-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 RKEAE005 or its description.