RGPSA_CALC_FORMS is a standard ABAP INCLUDE 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 RGPSA_CALC_FORMS into the relevant SAP transactions such as SE38 or SE80
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.
Title: Include for global used forms
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
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.
PSA_GET_LEDGER_CURRENCY call function 'PSA_GET_LEDGER_CURRENCY' EXPORTING i_bukrs = p_bukrs TABLES t_ledger = iledger t_curr = icurr EXCEPTIONS source_not_defined = 1 currency_not_defined = 2 others = 3.
G_POSTING_DATE_OF_PERIOD_GET call function 'G_POSTING_DATE_OF_PERIOD_GET' exporting period = l_poper variant = w_periv year = it8psa_input-psc_year importing to_date = l_convert_date.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = l_convert_date FOREIGN_AMOUNT = l_cur_amount FOREIGN_CURRENCY = it8psa_input-psc_currency LOCAL_CURRENCY = i_unit-psc_currency IMPORTING LOCAL_AMOUNT = l_Loc_Amount.
VALID_EQUITY_GROUP call function 'VALID_EQUITY_GROUP' exporting bldat = f_bldat budat = f_budat bukrs = f_bukrs coobjtype = 'KS' etype = f_etype vname = f_vname * WARN = ' ' importing egrup = f_eqgrp exceptions no_entry = 1 * OBJ_ART_UNKNOWN = 2 * WARNING = 3 * OTHERS = 4 .
PSA_CALC_COMBINED_TOTALS call function 'PSA_CALC_COMBINED_TOTALS' EXPORTING i_period = bill_period i_year = p_year i_bukrs = p_bukrs i_psc = unit-psc_name i_product = unit-psc_product i_vname = unit-vname i_eqgrp = unit-eqgrp i_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 i_date = p_budat IMPORTING e_result = result TABLES t_t8psa_comb = it8psa_comb t_curr = icurr EXCEPTIONS incomplete_input = 1 incorrect_input = 2 others = 3.
PSA_GET_COST_INPUT call function 'PSA_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.
PSA_MOVE_COST call function 'PSA_MOVE_COST' EXPORTING ig_result = g_result IMPORTING eg_result = g_result EXCEPTIONS others = 1.
UNIT_CONVERSION_SIMPLE call function 'UNIT_CONVERSION_SIMPLE' EXPORTING input = l_sum_volume unit_in = l_puom unit_out = l_cuom IMPORTING output = i_prod_sum-psc_volume EXCEPTIONS CONVERSION_NOT_FOUND = 1 DIVISION_BY_ZERO = 2 INPUT_INVALID = 3 OUTPUT_INVALID = 4 OVERFLOW = 5 TYPE_INVALID = 6 UNITS_MISSING = 7 UNIT_IN_NOT_FOUND = 8 UNIT_OUT_NOT_FOUND = 9 OTHERS = 10.
G_PERIODS_OF_YEAR_GET call function 'G_PERIODS_OF_YEAR_GET' EXPORTING variant = t001-periv year = l_prev_year IMPORTING last_normal_period = l_prev_year_np TABLES i_periods = i_prev_periods EXCEPTIONS variant_not_defined = 1 year_not_defined = 2 others = 3.
UNIT_CONVERSION_SIMPLE call function 'UNIT_CONVERSION_SIMPLE' EXPORTING input = l_sum_volume unit_in = l_puom unit_out = l_cuom IMPORTING output = l_cvt_volume EXCEPTIONS CONVERSION_NOT_FOUND = 1 DIVISION_BY_ZERO = 2 INPUT_INVALID = 3 OUTPUT_INVALID = 4 OVERFLOW = 5 TYPE_INVALID = 6 UNITS_MISSING = 7 UNIT_IN_NOT_FOUND = 8 UNIT_OUT_NOT_FOUND = 9 OTHERS = 10.
PSA_GET_PROD_MONTH_BY_MONTH call function 'PSA_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_t8psa_input = it8psa_input exceptions incomplete_input = 1 others = 2.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RGPSA_CALC_FORMS - Include for global used forms RGPSA_CALC_CREATE_LEDGER - Create the ledger entries including partner split RGPSA_CALC_ACTUAL - PSA Calculation - Actual RGPSA_CALC_ACTUAL - PSA Calculation - Actual RGPSA_CALCULATE_VOLUME - Include for calculate volumes for sliding scales RGPSA_BCF - Year End Carry Forward Selection Screen