HSAPNAT0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for PY_SA_HSAPNAT0
If you would like to execute this report or see the full code listing simply enter HSAPNAT0 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_HSAPNAT0 - Nationality Report
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: P_DFDEST = D .
Selection Text: P_DFFORM = D .
Title: Nationality Report(GOSI Form 2)
Text Symbol: 003 = Spool Information
Text Symbol: 014 = Selected Employees
Text Symbol: 015 = Employee Processing Errors
Text Symbol: 016 = Succesfully Processed Employees
Text Symbol: 017 = General Error Messages
Text Symbol: 018 = Log
Text Symbol: 019 = Spool Number
Text Symbol: 020 = Period
Text Symbol: 021 = Month/Year
Text Symbol: 022 = Exclusions
Text Symbol: 091 = PDF Form Name
Text Symbol: S01 = Additional parameters
INCLUDE HSAPNAT0_TOP . " GLOBAL DATA
INCLUDE HSAPNAT0_F01. " FORM-ROUTINES
INCLUDE HSAPXXX0_PDF.
INCLUDE HSAPNAT0_DATA.
INCLUDE HSAPNAT0_AUNIT.
No SAP DATABASE tables are accessed within this REPORT code!
No SAP FUNCTION MODULES are executed within this report code!
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.