SAP Reports / Programs

RGPSC_CALC_REV SAP ABAP Report - PSC calculation reversal







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

PSCREV - PSC calculation reversal


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 RGPSC_CALC_REV. "Basic submit
SUBMIT RGPSC_CALC_REV AND RETURN. "Return to original report after report execution complete
SUBMIT RGPSC_CALC_REV 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: P_BUKRS = Company code
Selection Text: P_PERIOD = Period
Selection Text: P_TEST = Test run
Selection Text: P_YEAR = Fiscal year
Selection Text: S_EQGRP = Equity Group
Selection Text: S_PROD = PSC product
Selection Text: S_PSC = Production sharing contract
Selection Text: S_PSCGR = PSC group
Selection Text: S_VNAME = Venture
Title: PSC calculation reversal
Text Symbol: CCD = Company code
Text Symbol: HDR = Reversal of PSC documents
Text Symbol: PDT =
Text Symbol: PER = Period
Text Symbol: PRD = Product
Text Symbol: PRO =
Text Symbol: PSC = PSC
Text Symbol: SCR =


INCLUDES used within this REPORT RGPSC_CALC_REV

INCLUDE RGPSC_CALC_REVTOP .
INCLUDE RGPSC_CALC_REVSCR .


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:

G_PERIODS_OF_YEAR_GET CALL FUNCTION 'G_PERIODS_OF_YEAR_GET' EXPORTING VARIANT = T001-PERIV YEAR = P_YEAR IMPORTING LAST_NORMAL_PERIOD = NEXT_PERIOD TABLES I_PERIODS = I_PERIODS EXCEPTIONS VARIANT_NOT_DEFINED = 1 YEAR_NOT_DEFINED = 2 OTHERS = 3.

PSC_DOCUMENT_POST CALL FUNCTION 'PSC_DOCUMENT_POST' EXPORTING REVERSAL = 'X' TABLES TPSCHD = TPSCHD TPSCHD_REV = TPSCHD_REV2 EXCEPTIONS NO_DOCUMENT_HEADER = 1 MULTIPLE_DOCUMENT_HEADERS = 2 NUMBER_NOT_FOUND = 3 OTHERS = 4.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = L_REPID I_STRUCTURE_NAME = L_STRUC * IS_LAYOUT = * IT_FIELDCAT = * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' * I_SAVE = ' ' * IS_VARIANT = ' ' IT_EVENTS = IT_EVENTS * IT_EVENT_EXIT = * IS_PRINT = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES T_OUTTAB = TPSCHD_REV EXCEPTIONS PROGRAM_ERROR = 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 RGPSC_CALC_REV or its description.