SAP Reports / Programs | Payroll | Kingdom of Saudi Arabia | Kingdom of Saudi Arabia Public Sector(PY-SA-PS) SAP PY

PSAIPSR2 SAP ABAP INCLUDE - Include PSAIPSR2







PSAIPSR2 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 PSAIPSR2 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 PSAIPSR2. "Basic submit
SUBMIT PSAIPSR2 AND RETURN. "Return to original report after report execution complete
SUBMIT PSAIPSR2 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 PSAIPSR2


INCLUDES used within this REPORT PSAIPSR2

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:

RP_NUMBER_OF_WAGETYPES_0008 CALL FUNCTION 'RP_NUMBER_OF_WAGETYPES_0008' IMPORTING wt_count = gv_number_wagetypes.

RP_SET_NAME_FORMAT CALL FUNCTION 'RP_SET_NAME_FORMAT' EXPORTING repid = sy-repid IMPORTING format = gv_name_format.

RH_GET_PLVAR CALL FUNCTION 'RH_GET_PLVAR' IMPORTING plvar = gv_plvar * WFPLVAR = EXCEPTIONS no_plvar = 1 OTHERS = 2.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = progress_text EXCEPTIONS OTHERS = 1.

HR_READ_FOREIGN_OBJECT_TEXT CALL FUNCTION 'HR_READ_FOREIGN_OBJECT_TEXT' EXPORTING otype = is_otype objid = is_objid begda = inc_date endda = p0008-endda * reference_date = iv_p0001-begda IMPORTING * short_text = plans_short object_text = cv_object_stext * return = read_return EXCEPTIONS nothing_found = 1 wrong_objecttype = 2 missing_costcenter_data = 3 missing_object_id = 4 OTHERS = 5.

RH_PM_READ_INFTY CALL FUNCTION 'RH_PM_READ_INFTY' EXPORTING act_plvar = gv_plvar act_otype = gc_otype act_objid = ls_objid act_begda = inc_date act_endda = p0008-endda * ACT_ISTAT = '1' act_infty = '1643' * ACT_SUBTY = * AUTHORITY = 'DISP' TABLES innnn = lt_p1643 EXCEPTIONS no_active_plvar = 1 object_not_found = 2 nothing_found = 3 OTHERS = 4.

HR_ENTRY_DATE CALL FUNCTION 'HR_ENTRY_DATE' EXPORTING persnr = iv_pernr IMPORTING entrydate = cv_hire_date * TABLES * ENTRY_DATES = lt_entry_dates EXCEPTIONS entry_date_not_found = 1 pernr_not_assigned = 2 OTHERS = 3.

RP_EDIT_NAME CALL FUNCTION 'RP_EDIT_NAME' EXPORTING format = gv_name_format langu = sy-langu molga = gs_t001p-molga pp0002 = ls_p0002 tclas = gc_tclas IMPORTING edit_name = lv_edit_name retcode = lv_subrc.

HR_PBS_GET_APPRAISAL_RESULTS CALL FUNCTION 'HR_PBS_GET_APPRAISAL_RESULTS' EXPORTING pernr = pernr-pernr begda = inc_date IMPORTING ev_result1 = lv_app_res.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = pernr-pernr infty = '3329' begda = lv_dis_begda endda = lv_dis_endda TABLES infty_tab = lt_p3329 EXCEPTIONS infty_not_found = 1 OTHERS = 2.



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