SAP Reports / Programs | Personnel Management | Compensation Management | Personnel Cost Planning(PA-CM-CP) SAP PA

RHPP25PD SAP ABAP Report - Personnel Cost Planning: Display/Delete Payroll Results







RHPP25PD is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The results of Payroll Accounting must be formatted in a particular way for Personnel Cost Planning...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RHPP25PD 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 RHPP25PD. "Basic submit
SUBMIT RHPP25PD AND RETURN. "Return to original report after report execution complete
SUBMIT RHPP25PD 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: FDELETE = Delete w/o displaying first
Title: Personnel Cost Planning: Display/Delete Payroll Results
Text Symbol: T03 = to
Text Symbol: T01 = Deletion of payroll data in period
Text Symbol: SIM = Simulation
Text Symbol: PAY = Payroll results for personnel cost planning
Text Symbol: DEL = 'Delete'
Text Symbol: BER = No authorization
Text Symbol: ABZ = Period:
Text Symbol: ABR = Payroll results of
Text Symbol: ABN = Payroll results not available
Text Symbol: ABJ = Payroll results available
Text Symbol: ABD = Delete personnel cost planning?
Text Symbol: 005 = No data found
Text Symbol: 003 = Data has not been deleted
Text Symbol: 002 = Data has been deleted


INCLUDES used within this REPORT RHPP25PD

INCLUDE RHODAT00.
INCLUDE RHPP25M0.
INCLUDE RHOINI00.


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:

HR_PC_VNAME_CHECK_AUTHORITY CALL FUNCTION 'HR_PC_VNAME_CHECK_AUTHORITY' EXPORTING FCODE = C_AUTH_DELETEPR EXCEPTIONS NO_AUTHORIZATION = 1 NO_FCODE_AUTH = 2 WRONG_PASSWORD = 3 OTHERS = 4.

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' I_CALLBACK_PROGRAM = REPID I_CALLBACK_PF_STATUS_SET = 'PERNR_SET_PF_STATUS' I_CALLBACK_USER_COMMAND = 'PERNR_USER_COMMAND' IS_LAYOUT = PERNR_LAYOUT IT_FIELDCAT = PERNR_FIELDS * IT_EXCLUDING = * IT_SPECIAL_GROUPS = IT_SORT = PERNR_SORT * IS_VARIANT = ' ' IT_EVENTS = PERNR_EVENTS * IT_EVENT_EXIT = I_TABNAME_HEADER = C_PERNR_MASTER_TAB_NAME I_TABNAME_ITEM = C_PERNR_SLAVE_TAB_NAME * I_STRUCTURE_NAME_HEADER = * I_STRUCTURE_NAME_ITEM = IS_KEYINFO = PERNR_KEYINFO * IS_PRINT = TABLES T_OUTTAB_HEADER = PERNR_MASTER T_OUTTAB_ITEM = PERNR_SLAVE EXCEPTIONS PROGRAM_ERROR = 0 OTHERS = 0.

RH_DELETE_STORED_PAYROLL_RSLTS CALL FUNCTION 'RH_DELETE_STORED_PAYROLL_RSLTS' EXPORTING ACT_BEGDA = BEGDA ACT_ENDDA = ENDDA ACT_PERNR = PERNR EXCEPTIONS AUTHORITY_CHECK = 0 DB_ERROR = 0.

RH_CHECK_PAYROLL_EXPORT CALL FUNCTION 'RH_CHECK_PAYROLL_EXPORT' EXPORTING ACT_PERNR = PERNR ACT_BEGDA = BEGDA ACT_ENDDA = ENDDA TABLES PERNR_ADMIN = ADMIN_TAB EXCEPTIONS OVERWRITE_CONFLICT = 0 "don't check this exception! OTHERS = 0.

RH_READ_STORED_PAYROLL_RESULTS CALL FUNCTION 'RH_READ_STORED_PAYROLL_RESULTS' EXPORTING ACT_BEGDA = BEGDA ACT_ENDDA = ENDDA ACT_PERNR = PERNR TABLES PPCPA_TAB = PAYRO_SLAVE PPCPD_TAB = PAYRO_MASTER EXCEPTIONS AUTHORITY_CHECK = 1 NO_DATA_FOUND = 2 OTHERS = 3.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' I_CALLBACK_PROGRAM = REPID * I_CALLBACK_PF_STATUS_SET = ' ' * I_CALLBACK_USER_COMMAND = ' ' * IS_LAYOUT = IT_FIELDCAT = PAYRO_FIELDS IT_SORT = PAYRO_SORT IT_EVENTS = PAYRO_EVENTS * IT_EVENT_EXIT = * IS_PRINT = * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES T_OUTTAB = PAYRO_SLAVE EXCEPTIONS PROGRAM_ERROR = 0 OTHERS = 0.

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' I_CALLBACK_PROGRAM = REPID * i_callback_pf_status_set = * i_callback_user_command = * is_layout = payro_layout IT_FIELDCAT = PAYRO_FIELDS * IT_EXCLUDING = * IT_SPECIAL_GROUPS = IT_SORT = PAYRO_SORT * IT_FILTER = IT_EVENTS = PAYRO_EVENTS * IT_EVENT_EXIT = I_TABNAME_HEADER = C_PAYRO_MASTER_TAB_NAME I_TABNAME_ITEM = C_PAYRO_SLAVE_TAB_NAME * I_STRUCTURE_NAME_HEADER = * I_STRUCTURE_NAME_ITEM = IS_KEYINFO = PAYRO_KEYINFO * IS_PRINT = TABLES T_OUTTAB_HEADER = PAYRO_MASTER T_OUTTAB_ITEM = PAYRO_SLAVE EXCEPTIONS PROGRAM_ERROR = 0 OTHERS = 0.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING IT_LIST_COMMENTARY = PAYRO_HEADER[] EXCEPTIONS OTHERS = 0.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING IT_LIST_COMMENTARY = PERNR_HEADER[] EXCEPTIONS OTHERS = 0.

REUSE_ALV_COMMENTARY_WRITE * call function 'REUSE_ALV_COMMENTARY_WRITE' * exporting * it_list_commentary = pernr_endlist[] * exceptions * others = 0.

RH_READ_STORED_PAYROLL_RESULTS CALL FUNCTION 'RH_READ_STORED_PAYROLL_RESULTS' EXPORTING ACT_BEGDA = BEGDA ACT_ENDDA = ENDDA ACT_PERNR = PERNR_MASTER-PERNR IMPORTING MAX_DATE = PERNR_MASTER-ENDDA MIN_DATE = PERNR_MASTER-BEGDA TABLES PPCPA_TAB = PAYROLL_TAB PPCPD_TAB = ADMIN_TAB EXCEPTIONS AUTHORITY_CHECK = 1 NO_DATA_FOUND = 2 OTHERS = 3.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING TEXTLINE1 = 'Abrechnungsergebnisse der'(ABR) TEXTLINE2 = 'Personalkostenplanung löschen?'(ABD) TITEL = TEXT-DEL IMPORTING ANSWER = TANSWER.



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