SAP Reports / Programs

RCOPCA20 SAP ABAP Report - Transfer Prices: Reconciliation with Quantity-Based Planning







RCOPCA20 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The plan reconciliation program is used in quantity-based planning...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 RCOPCA20 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 RCOPCA20. "Basic submit
SUBMIT RCOPCA20 AND RETURN. "Return to original report after report execution complete
SUBMIT RCOPCA20 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Plan reconciliation of activity and cost relationships with TPs
Selection Text: CURABOX = In group currency
Selection Text: CURBBOX = In group currency/thousands
Selection Text: CURCBOX = In group currency/millions
Selection Text: EPRCTR = Partner profit center
Selection Text: INPUTBOX = Viewpoint of partner prof. ctr
Selection Text: OUTPTBOX = Viewpoint of profit center
Selection Text: POPER = Posting period
Selection Text: RACCT = Revenue accounts
Selection Text: RPRCTR = D Profit center
Selection Text: RVERS = Plan version
Selection Text: RYEAR = D Fiscal year
Selection Text: SACCT = Cost accounts
Selection Text: SET_EPR = or partner profit center set
Selection Text: SET_RAC = or revenue account set
Selection Text: SET_RPR = or profit center set
Selection Text: SET_SAC = or cost account set
Title: Transfer Prices: Reconciliation with Quantity-Based Planning
Text Symbol: 105 = Chart of accts not found
Text Symbol: 104 = Upon accessing set manager
Text Symbol: 103 = Error in the list output
Text Symbol: 102 = Selected line not found
Text Symbol: 101 = Do not enter any balance sheet accounts as criteria
Text Symbol: 100 = General Selection Parameters
Text Symbol: 090 = Partner Profit Center
Text Symbol: 080 = Profit Center
Text Symbol: 070 = Revenue Accounts
Text Symbol: 067 = No valid chart of accounts found
Text Symbol: 066 = Accounts
Text Symbol: 001 = PrCtr
Text Symbol: 002 = Profit center
Text Symbol: 003 = P.PrCtr
Text Symbol: 004 = Partner profit center
Text Symbol: 010 = Controlling area
Text Symbol: 011 = Fiscal year
Text Symbol: 012 = Currncy
Text Symbol: 013 = Plan vers.
Text Symbol: 014 = Value





Text Symbol: 020 = Done
Text Symbol: 021 = Revenues
Text Symbol: 022 = GCAct
Text Symbol: 023 = Costs
Text Symbol: 024 = Var.
Text Symbol: 025 = Variances
Text Symbol: 026 = Variance in %
Text Symbol: 027 = Var.%
Text Symbol: 030 = Report Variant
Text Symbol: 040 = Value
Text Symbol: 041 = Thousands
Text Symbol: 042 = In millions
Text Symbol: 045 = Accounts
Text Symbol: 050 = Totals
Text Symbol: 060 = Selection of Accounts
Text Symbol: 061 = Account selection
Text Symbol: 062 = Cost/revenue accounts
Text Symbol: 063 = Name
Text Symbol: 064 = Account name
Text Symbol: 065 = Sel.


INCLUDES used within this REPORT RCOPCA20

INCLUDE PCACONS3.


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:

K_KOKRS_SET CALL FUNCTION 'K_KOKRS_SET' EXPORTING DISPLAY = ' ' IMPORTING E_KOKRS = KOKRS EXCEPTIONS NOT_FOUND = 01.

K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING KOKRS = KOKRS IMPORTING E_TKA01 = TKA01 EXCEPTIONS NOT_FOUND = 01.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = G_REPID I_CALLBACK_USER_COMMAND = G_USER_COMMAND IS_LAYOUT = GT_LAYOUT IT_FIELDCAT = GT_FIELDCAT IT_SORT = GT_SORT I_SAVE = 'A' IT_EVENTS = T_EVENTS TABLES T_OUTTAB = GT_OUTTAB.

G_SET_GET_ID_FROM_NAME CALL FUNCTION 'G_SET_GET_ID_FROM_NAME' EXPORTING KOKRS = KOKRS KTOPL = KTOPL SHORTNAME = P_SET OLD_SETID = P_SETID IMPORTING NEW_SETID = P_SETID.

G_SET_INSERT CALL FUNCTION 'G_SET_INSERT' EXPORTING SETNAME = U_SETID IMPORTING HEADER = HEADER INDEX = SETINDEX.

G_SET_GET_NEXT CALL FUNCTION 'G_SET_GET_NEXT' EXPORTING CONTROL_BLOCK = CONTROL_BLOCK INDEX = SETINDEX IMPORTING HEADER = HEADER EXCEPTIONS END_OF_SETS = 1.

G_SET_GET_NEXT CALL FUNCTION 'G_SET_GET_NEXT' EXPORTING CONTROL_BLOCK = CONTROL_BLOCK INDEX = SETINDEX IMPORTING HEADER = HEADER EXCEPTIONS END_OF_SETS = 1.

G_CONTROL_BLOCK_RESET CALL FUNCTION 'G_CONTROL_BLOCK_RESET' EXPORTING CONTROL_BLOCK = CONTROL_BLOCK.






G_INTERVAL_GET_NEXT CALL FUNCTION 'G_INTERVAL_GET_NEXT' EXPORTING CONTROL_BLOCK = CONTROL_BLOCK INDEX = SETINDEX IMPORTING ENTRY = ENTRY EXCEPTIONS END_OF_INTERVALS = 1.

G_INTERVAL_GET_NEXT CALL FUNCTION 'G_INTERVAL_GET_NEXT' EXPORTING CONTROL_BLOCK = CONTROL_BLOCK INDEX = SETINDEX IMPORTING ENTRY = ENTRY EXCEPTIONS END_OF_INTERVALS = 1.

G_CONTROL_BLOCK_RESET CALL FUNCTION 'G_CONTROL_BLOCK_RESET' EXPORTING CONTROL_BLOCK = CONTROL_BLOCK.

K_PCA_RESP_AUTHORITY_CHECK CALL FUNCTION 'K_PCA_RESP_AUTHORITY_CHECK' EXPORTING I_KOKRS = KOKRS I_PRCTR = RPRCTR i_kstar = racct " note 313327 I_VORGN = 'REPP' I_ACTVT = ACTVT I_NO_DIALOG_MESSAGE = 'X' EXCEPTIONS NO_AUTHORITY = 1 DATA_MISSING = 2 OTHERS = 3.

K_REPO_PCA_AUTHORITY_CHECK CALL FUNCTION 'K_REPO_PCA_AUTHORITY_CHECK' EXPORTING ACTVT = ACTVT PRCTR = EPRCTR PRCTR_FLAG = 'X' RLDNR = RLDNR EXCEPTIONS SYSTEM_ERROR = 01 USER_NOT_AUTHORIZED = 02.

K_PCA_RESP_AUTHORITY_CHECK CALL FUNCTION 'K_PCA_RESP_AUTHORITY_CHECK' EXPORTING I_KOKRS = KOKRS I_PRCTR = RPRCTR i_kstar = racct " note 313327 I_VORGN = 'REPP' I_ACTVT = ACTVT I_NO_DIALOG_MESSAGE = 'X' EXCEPTIONS NO_AUTHORITY = 1 DATA_MISSING = 2 OTHERS = 3.

K_GROUP_SELECT CALL FUNCTION 'K_GROUP_SELECT' EXPORTING CLASS = LOC_SET_CLASS FIELD_NAME = LOC_FIELDNAME * searchfield = kokrs TABLE = 'GLPCT' TYPELIST = 'BS' KOKRS = '0001' * kokrs = kokrs KTOPL = 'INT' IMPORTING * class_name = set_class SET_NAME = LOC_SETID * setid = loc_setid EXCEPTIONS NO_SET_PICKED = 1 OTHERS = 2.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING IT_LIST_COMMENTARY = T_LISTHEADER[] EXCEPTIONS OTHERS = 1.

REUSE_ALV_POPUP_TO_SELECT CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT' EXPORTING I_TITLE = TEXT-045 I_SELECTION = 'X' I_ZEBRA = SPACE I_CHECKBOX_FIELDNAME = 'CHECK' I_SCROLL_TO_SEL_LINE = 'X' I_TABNAME = 'PP_OUTTAB' IT_FIELDCAT = PP_FIELDCAT[] IMPORTING E_EXIT = G_EXIT TABLES T_OUTTAB = PP_OUTTAB EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

K_RACCT_VALUES_GET CALL FUNCTION 'K_RACCT_VALUES_GET' EXPORTING I_KOKRS = KOKRS I_TEXTFLAG = 'X' TABLES T_KONTO = LOC_ITRACCT EXCEPTIONS NO_VALUES_FOUND = 1 OTHERS = 2.



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