RGPSA_CALC_REV_MAIN 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_REV_MAIN 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: Main Processing for PSA Calculation Reversal
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.
PSA_CHECK_PROC_AUTHORITY CALL FUNCTION 'PSA_CHECK_PROC_AUTHORITY' "HJ200210 EXPORTING PROCESS_CODE = w_process_code BUKRS = tpsahd_rev-bukrs PSC_NAME = tpsahd_rev-psc_name ACTVT = w_actvt * IMPORTING * AUTH_RC = * EXCEPTIONS * NO_PROC_AUTH = 1 * ONLY_DISPLAY = 2 * NO_AUTHORITY = 3 * OTHERS = 4 .
PSA_JVPSC01T_REVERSE call function 'PSA_JVPSC01T_REVERSE' "921034 EXPORTING next_period = next_period TABLES tpsahd = tpsahd.
PSA_DOCUMENT_POST call function 'PSA_DOCUMENT_POST' EXPORTING reversal = yes TABLES tpsahd = tpsahd tpsait = tpsait tpsacr = tpsacr tpsahd_rev = tpsahd_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 = TPSAHD_REV EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.
PSA_PRELIMINARY_POST_UPDATE CALL FUNCTION 'PSA_PRELIMINARY_POST_UPDATE' EXPORTING I_REVERSAL = 'X' TABLES It8psa_prepost = it8psa_prepost EXCEPTIONS POSTING_FAILED = 1 WRONG_TRANSACTION = 2 OTHERS = 3.
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_REV_MAIN - Main Processing for PSA Calculation Reversal RGPSA_CALC_REV_ACTUAL - PSA calculation reversal RGPSA_CALC_REV_ACTUAL - PSA calculation reversal RGPSA_CALC_PSA_FORMS - Include for global used forms for PSA enhancements RGPSA_CALC_PROCESS_MAIN_ALV - PSA Calculation Process RGPSA_CALC_PROCESS_MAIN - PSA Calculation Process