SAP Reports / Programs

RKEPCU40 SAP ABAP Report - Post SD Billing Documents







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

OCN3 - FI-LC: Repost SD data
1KE9 - Post Data SD -> EC-PCA
OKBC - Transfer SD Documents to CO
GCU5 - Subsequent Posting of Data frm Sales


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 RKEPCU40. "Basic submit
SUBMIT RKEPCU40 AND RETURN. "Return to original report after report execution complete
SUBMIT RKEPCU40 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: VTWEG = Distribution Channel
Selection Text: VKORG = Sales Organization
Selection Text: VBELN = Billing Document Number
Selection Text: T_LEDGER = Target Ledger
Selection Text: TESTLAUF = Test Run
Selection Text: STORNO = Reverse
Selection Text: SPART = Division
Selection Text: PRUEFEN = Check for Existing Records
Selection Text: PROTFLAG = Log
Selection Text: LOESCH = Delete Old Data
Selection Text: FKDAT = Billing Date
Selection Text: BUKRS = Company Code
Title: Post SD Billing Documents
Text Symbol: 110 = Processing Options
Text Symbol: 010 = Number of Billing Documents Read:
Text Symbol: 020 = No. of Items Transferred:
Text Symbol: 025 = Number of Items Not Transferred:
Text Symbol: 027 = Number of Cancelled Items:
Text Symbol: 028 = Number of Messages
Text Symbol: 030 = No. of Items with Errors:
Text Symbol: 040 = Billing Document
Text Symbol: 050 = Error Text
Text Symbol: 060 = Item
Text Symbol: 070 = Sales Order
Text Symbol: 075 = Profit Ctr
Text Symbol: 080 = Test Run:
Text Symbol: 090 = Update:
Text Symbol: 100 = Billing Document


INCLUDES used within this REPORT RKEPCU40

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:

POPUP_DISPLAY_TEXT CALL FUNCTION 'POPUP_DISPLAY_TEXT' EXPORTING POPUP_TITLE = ' ' TEXT_OBJECT = 'FI_GLX_GI_RGUREC_T_LEDGER'.

G_DISPLAY_LEDGERS_FOR_TABLE CALL FUNCTION 'G_DISPLAY_LEDGERS_FOR_TABLE' EXPORTING GAPPL = 'FI' GSUBAPPL = 'SL' ONLY_FREE_LEDGERS = 'X' IMPORTING PICKED_LEDGER = T_LEDGER EXCEPTIONS NO_LEDGER_FOUND = 1.

POPUP_DISPLAY_TEXT CALL FUNCTION 'POPUP_DISPLAY_TEXT' EXPORTING POPUP_TITLE = ' ' TEXT_OBJECT = 'FM_HELP_ON_STORNO'.

G_ADMI_AUTHORITY_CHECK CALL FUNCTION 'G_ADMI_AUTHORITY_CHECK' EXPORTING ACTIVITY = '13' "Datenübernahme EXCEPTIONS NOT_AUTHORIZED = 04.

FIKRS_GET_FROM_BUKRS_RANGES CALL FUNCTION 'FIKRS_GET_FROM_BUKRS_RANGES' TABLES I_T_BUKRS = BUKRS O_T_FIKRS = L_T_FIKRS EXCEPTIONS NO_FIKRS_FOUND = 1 OTHERS = 2.

FMAU_AUTHORITY_FIFM * CALL FUNCTION 'FMAU_AUTHORITY_FIFM' * EXPORTING * I_ACTVT = FMAU_AC_INI * I_AUTH_OBJECT = 'F_FICB_FKR' * I_FIKRS = L_T_FIKRS-FIKRS * I_MSGTY = 'E'.

FM_AUTH_CHECK_FM_AREA CALL FUNCTION 'FM_AUTH_CHECK_FM_AREA' EXPORTING I_FIKRS = L_T_FIKRS-FIKRS I_ACTVT = FMAU_AC_INI I_MSGTY = 'E'.

G_TRACE_START CALL FUNCTION 'G_TRACE_START' EXCEPTIONS TRACE_ALREADY_ON = 1 OTHERS = 2.

REPOSTING_REVENUES CALL FUNCTION 'REPOSTING_REVENUES' EXPORTING I_TEST = TESTLAUF I_PROT = PROTFLAG I_PRUEF = PRUEFEN I_COMP = COMPONENT I_STORNO = STORNO * 3.1H

HELPSCREEN_NA_CREATE CALL FUNCTION 'HELPSCREEN_NA_CREATE' EXPORTING MELDUNG = ERR_TAB-TEXT MELD_ID = ERR_TAB-MSGID MELD_NR = ERR_TAB-MSGNO MSGV1 = ERR_TAB-MSGV1 MSGV2 = ERR_TAB-MSGV2 MSGV3 = ERR_TAB-MSGV3 MSGV4 = ERR_TAB-MSGV4 TITEL = TITEL.



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