HSAPWPR0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for PY_SA_HSAPWPR0 Human Resources -> Payroll -> Asia/Pacific -> Saudi Arabia -> Information System -> Other Government Forms -> Work Permit Request – Form No...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 HSAPWPR0 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
PY_SA_HSAPWPR0 - Work Permit Request
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.
Selection Text: SCHEMA = Payroll Schema
Selection Text: P_OTHER = Manually Input
Selection Text: P_LAT = D .
Selection Text: P_EXCL = D .
Selection Text: P_DFFORM = Logical Form Name
Selection Text: P_ARA = D .
Selection Text: P_3YEAR = 3 Year
Selection Text: P_2YEAR = 2 Year
Selection Text: P_1YEAR = 1 Year
Title: Work Permit Request - Form No. 2/4/1
Text Symbol: N04 = Error Messages
Text Symbol: N03 = Warning Messages
Text Symbol: N02 = Successfully Processed Employees
Text Symbol: N01 = Selection Statistics
Text Symbol: L02 = Application Log
Text Symbol: B01 = Print PDF
Text Symbol: 030 = Input other year
Text Symbol: 029 = Year
Text Symbol: 028 = Years
Text Symbol: 027 = Others
Text Symbol: 026 = 3 Years
Text Symbol: 025 = 2 Years
Text Symbol: 024 = 1 Year
Text Symbol: 023 = Work Permit Duration
Text Symbol: 022 = Unsuccessfully Processed Employees
Text Symbol: 021 = Select one record for printing
Text Symbol: 020 = Excluded Employees
Text Symbol: 019 = Spool Number
Text Symbol: 018 = Log
Text Symbol: 017 = General Error Messages
Text Symbol: 016 = Successfully Processed Employees
Text Symbol: 015 = Employee Processing Errors
Text Symbol: 014 = Selected Employees
Text Symbol: 010 = PDF Options
Text Symbol: 007 = Personal Information
Text Symbol: 002 = Schema for Payroll Simulation Run
Text Symbol: 001 = Report Exclusions
INCLUDE HSAPWPR0_TOP.
No SAP DATABASE tables are accessed within this REPORT code!
RPY_MESSAGE_COMPOSE CALL FUNCTION 'RPY_MESSAGE_COMPOSE' EXPORTING message_id = '3G' message_number = '166' IMPORTING message_text = titel EXCEPTIONS OTHERS = 0.
F4_POPUP_SCHEMA CALL FUNCTION 'F4_POPUP_SCHEMA' EXPORTING molga = gc_molga titel = titel IMPORTING sname = schema.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.