SAP Reports / Programs | Cross-Application Components | Joint Venture und Production Sharing Accounting(CA-JVA) SAP CA

RGPSC_CALC SAP ABAP Report - PSC Calculation Program







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

PSCCA - PSC calculation


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. "Basic submit
SUBMIT RGPSC_CALC AND RETURN. "Return to original report after report execution complete
SUBMIT RGPSC_CALC 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: S_VNAME = Venture
Selection Text: S_PSCGR = PSC group
Selection Text: S_PSC = PSC Name
Selection Text: S_PROD = PSC product
Selection Text: S_ETYPE = Equity Type
Selection Text: P_YEAR = Fiscal year
Selection Text: P_VOL = Volume
Selection Text: P_TEST = Test run/Print/Recalculation
Selection Text: P_REV = Revenue
Selection Text: P_PERIOD = Period
Selection Text: P_EGP = Report Layout: by Equity Group
Selection Text: P_COMPL = Check for PSC group complete
Selection Text: P_CLC = Report Layout: by Calc. Catgry
Selection Text: P_BUKRS = Company code
Selection Text: P_BUDAT = Posting date
Title: PSC Calculation Program
Text Symbol: VNM = Venture
Text Symbol: UNT = Units
Text Symbol: TYP = Step Description
Text Symbol: TPR = Total production
Text Symbol: TOT = ******* Totals ********
Text Symbol: TO1 = *** Totals ***
Text Symbol: TAM = Total amt
Text Symbol: STP = Step
Text Symbol: SCR = Selection criteria
Text Symbol: RPT = Reporting
Text Symbol: ROY = Royalty
Text Symbol: RAT = Rate
Text Symbol: PVL = Production volume
Text Symbol: PTO = to
Text Symbol: PSC = PSC
Text Symbol: PRO = Processing options
Text Symbol: PRD = Product
Text Symbol: 001 = Total Equity Group
Text Symbol: 002 = Total Product
Text Symbol: 003 = Total Type
Text Symbol: AJT = Adjustments / Transfers
Text Symbol: BAS = Calculation Basis





Text Symbol: CAM = Contractor share
Text Symbol: CCR = Cost Cap Remaining Production
Text Symbol: CCT = Cost Cap Total Production
Text Symbol: CFW = (cf)
Text Symbol: CLC = Report Layout: by Calculation Type
Text Symbol: CST = Costs
Text Symbol: EGR = Equity Grp
Text Symbol: EPR = Excess Profit
Text Symbol: EQ2 = EGrp
Text Symbol: EXN = Excess Net
Text Symbol: FRM = from
Text Symbol: FRO = fr
Text Symbol: FWD = Cost carry over
Text Symbol: GAM = Government share
Text Symbol: GRP = PSC group
Text Symbol: HCC = Cost cap
Text Symbol: HCF = Cost to be carried forward
Text Symbol: HPR = Distribution of production
Text Symbol: OCS = Other Costs
Text Symbol: OLD = b/f
Text Symbol: PD1 = Production
Text Symbol: PDT = Posting details
Text Symbol: PER = Period
Text Symbol: PEX = Profit Excluding Excess Profit
Text Symbol: PIN = Profit Including Excess Profit
Text Symbol: PPU = Price per unit
Text Symbol: PR1 = Production


INCLUDES used within this REPORT RGPSC_CALC

INCLUDE RGPSC_CALCTOP.
INCLUDE RGPSC_CALCSCR.
INCLUDE RGPSC_GLOBAL_FORMS.
INCLUDE RGPSC_FORMS_46B.
INCLUDE RGPSC_CALC_PRINT.


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:

PSC_CLEAR_GROUP_RES call function 'PSC_CLEAR_GROUP_RES'.

PSC_CLEAR_GROUP_RES call function 'PSC_CLEAR_GROUP_RES'.

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_GET_LEDGER_CURRENCY call function 'PSC_GET_LEDGER_CURRENCY' exporting i_bukrs = p_bukrs i_source = t8pscsrc-source tables t_ledger = iledger t_curr = icurr exceptions source_not_defined = 1 currency_not_defined = 2 others = 3.

PSC_PASS_GROUP_RES call function 'PSC_PASS_GROUP_RES' exporting i_psc_group_res = group_res.

PSC_CALC_COMBINED_TOTALS call function 'PSC_CALC_COMBINED_TOTALS' exporting i_period = bill_period i_year = p_year i_bukrs = p_bukrs i_psc = unit-psc_name i_psc_prod = unit-psc_product i_psc_vname = unit-vname i_psc_eqgrp = unit-eqgrp i_psc_etype = unit-etype i_calc_step = unit-psc_calc_step i_calc_type = unit-psc_calc_type i_result = result i_prod_uom = w_prod_uom i_curr = icurr-curr "HJ46B i_date = p_budat "HJ46B importing e_result = result tables t_t8psccomb = it8psccomb "HJ46B t_curr = icurr "HJ46B exceptions incomplete_input = 1 incorrect_input = 2 others = 3.

PSC_MOVE_COST call function 'PSC_MOVE_COST' exporting ig_result = g_result importing eg_result = g_result exceptions others = 1.

PSC_GET_PROD_MONTH_BY_MONTH call function 'PSC_GET_PROD_MONTH_BY_MONTH' exporting i_bukrs = p_bukrs i_psc = unit-psc_name i_product = unit-psc_product i_vname = unit-vname i_etype = unit-etype i_bfreq = unit-psc_bill_freq i_curt = icurr-curt i_curr = icurr-curr i_per_from = unit-per_old i_year_from = unit-year_old i_per_to = bill_period i_year_to = p_year i_date = p_budat * i_btu_factor = unit-btu_factor importing e_result = result tables t_curr = icurr t_t8pscinput = it8pscinput exceptions incomplete_input = 1 others = 2.

PSC_GET_PRODUCTION_SINGLE * CALL FUNCTION 'PSC_GET_PRODUCTION_SINGLE' * EXPORTING * I_BUKRS = P_BUKRS * I_PSC = UNIT-PSC_NAME * I_PRODUCT = UNIT-PSC_PRODUCT * I_VNAME = UNIT-VNAME * I_ETYPE = UNIT-ETYPE * I_BFREQ = UNIT-PSC_BILL_FREQ * I_CURT = ICURR-CURT * I_CURR = ICURR-CURR * I_PER = bill_period * I_YEAR = P_YEAR * I_DATE = P_BUDAT * i_days_per_month = days_per_month * i_days_per_quarter = days_per_quarter * i_days_per_semi = days_per_semi * i_days_per_year = days_per_year * i_btu_factor = unit-btu_factor * IMPORTING * E_RESULT = RESULT * TABLES * T_CURR = ICURR * EXCEPTIONS * INCOMPLETE_INPUT = 1 * OTHERS = 2.

PSC_GET_COST_INPUT call function 'PSC_GET_COST_INPUT' exporting i_period = bill_period i_year = p_year i_bukrs = p_bukrs i_psc = unit-psc_name i_psc_prod = unit-psc_product i_vname = unit-vname i_eqgrp = unit-eqgrp i_per_from = unit-per_old i_year_from = unit-year_old i_result = result importing e_result = result tables t_curr = icurr exceptions others = 1.

PSC_DOCUMENT_POST call function 'PSC_DOCUMENT_POST' tables tpschd = tpschd tpscit = tpscit tpsccr = tpsccr exceptions no_document_header = 1 multiple_document_headers = 2 number_not_found = 3 others = 4.

VALID_EQUITY_GROUP call function 'VALID_EQUITY_GROUP' exporting bldat = w_lastday budat = sy-datum bukrs = p_bukrs coobjtype = 'KS' etype = i_unit-etype vname = i_unit-vname * WARN = ' ' importing egrup = i_unit-eqgrp exceptions no_entry = 1 * OBJ_ART_UNKNOWN = 2 * WARNING = 3 * OTHERS = 4 .



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