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

RGPSA_CALC_PSA_FORMS SAP ABAP INCLUDE - Include for global used forms for PSA enhancements







RGPSA_CALC_PSA_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_PSA_FORMS 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 RGPSA_CALC_PSA_FORMS. "Basic submit
SUBMIT RGPSA_CALC_PSA_FORMS AND RETURN. "Return to original report after report execution complete
SUBMIT RGPSA_CALC_PSA_FORMS VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Include for global used forms for PSA enhancements


INCLUDES used within this REPORT RGPSA_CALC_PSA_FORMS

No INCLUDES are used within this REPORT code!


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:

PSA_PASS_UNIT_DATA call function 'PSA_PASS_UNIT_DATA' tables i_unit = unit i_t8psa_csa = it8psa_csa.

PSA_PASS_GROUP_RES call function 'PSA_PASS_GROUP_RES' EXPORTING i_psc_group_res = group_res.

PSA_DOCUMENT_POST call function 'PSA_DOCUMENT_POST' TABLES tpsahd = tpsahd tpsait = tpsait tpsacr = tpsacr EXCEPTIONS no_document_header = 1 multiple_document_headers = 2 number_not_found = 3 others = 4.

PSA_INITIALISE_GLOBAL_DATA CALL FUNCTION 'PSA_INITIALISE_GLOBAL_DATA' EXPORTING I_BUKRS = p_bukrs I_YEAR = p_year I_POPER = l_poper I_BUDAT = p_budat I_TEST_RUN = no I_POSTED = w_posted i_rvers = w_rvers i_rrcty = w_rrcty.

PSA_CALC_EQUAL_PRIO_PERCENTAGE CALL FUNCTION 'PSA_CALC_EQUAL_PRIO_PERCENTAGE' EXPORTING I_PERIOD = bill_period I_YEAR = p_year I_BUKRS = p_bukrs I_PSC_CALC_TYPE = w_psc_calc_type I_PSC_CALC_STEP = w_psc_calc_step I_RESULT = result I_UNIT_REC = unit.

PSA_CHECK_REP_AUTHORITY CALL FUNCTION 'PSA_CHECK_REP_AUTHORITY' EXPORTING BUKRS = tpsahd-bukrs PSC_NAME = tpsahd-psc_name ACTVT = 'A5' PRODUCT = tpsahd-psc_product RLDNR = tpsahd-rldnr "FV200211 RRCTY = tpsahd-rrcty "FV200211 RVERS = tpsahd-rvers "FV200211 * TERM = "FV200211 * IMPORTING * AUTH_RC = * EXCEPTIONS * NO_AUTHORITY = 1 * OTHERS = 2 .

G_POSTING_DATE_OF_PERIOD_GET call function 'G_POSTING_DATE_OF_PERIOD_GET' exporting period = w_period variant = t001-periv year = w_year importing * FROM_DATE = * LAST_NORMAL_PERIOD = to_date = w_budat * FROM_DATE_ORIG = exceptions period_not_defined = 1 variant_not_defined = 2 others = 3.

GUI_DOWNLOAD * CALL FUNCTION 'GUI_DOWNLOAD' * EXPORTING ** BIN_FILESIZE = * FILENAME = w_filename * FILETYPE = 'ASC' * APPEND = 'X' ** WRITE_FIELD_SEPARATOR = ' ' ** HEADER = '00' ** TRUNC_TRAILING_BLANKS = ' ' ** WRITE_LF = 'X' ** COL_SELECT = ' ' ** COL_SELECT_MASK = ' ' * IMPORTING * FILELENGTH = l_bytes * TABLES * DATA_TAB = group_res * EXCEPTIONS * FILE_WRITE_ERROR = 1 * NO_BATCH = 2 * GUI_REFUSE_FILETRANSFER = 3 * INVALID_TYPE = 4 * NO_AUTHORITY = 5 * UNKNOWN_ERROR = 6 * HEADER_NOT_ALLOWED = 7 * SEPARATOR_NOT_ALLOWED = 8 * FILESIZE_NOT_ALLOWED = 9 * HEADER_TOO_LONG = 10 * DP_ERROR_CREATE = 11 * DP_ERROR_SEND = 12 * DP_ERROR_WRITE = 13 * UNKNOWN_DP_ERROR = 14 * ACCESS_DENIED = 15 * DP_OUT_OF_MEMORY = 16 * DISK_FULL = 17 * DP_TIMEOUT = 18 * FILE_NOT_FOUND = 19 * DATAPROVIDER_EXCEPTION = 20 * CONTROL_FLUSH_ERROR = 21 * OTHERS = 22.

PSA_PRELIMINARY_POST_UPDATE CALL FUNCTION 'PSA_PRELIMINARY_POST_UPDATE' EXPORTING I_REVERSAL = ' ' TABLES It8psa_prepost = it8psa_prepost EXCEPTIONS POSTING_FAILED = 1 WRONG_TRANSACTION = 2 OTHERS = 3.



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