SAP Function CHECK_INFO_APAR_HOST - Determination of the PTF status

Parameter Reference Type Length Default Optional Text
HOSTNAME DB4HOST C 32 mySAP ERP, Name des Applikationsservers
OS_RELEASE AS4OSREL C 6 System: Operating system
PATHNAME APARPATH C 64 INFOAPAR_PATH X Pathname of INFO-APAR file in IFS

Parameter Reference Length Optional Text
PTF_STATUS AS4ALVPTF 221 AS/400: PTF-Status

Exception Text
API_ERROR Internal error
CANNOT_PARSE_INFOAPAR
WRONG_INFOAPAR INFO-APAR file is not valid for this OS-release

Functionality
This OS/400-specific function module evaluates the PTF status on anyhost of mySAP ERP. You specify the host on which the check is to beperformed in HOSTNAME.

Example
For an example of how to call the function module see RSDSAS4_PTF_ANA.

Notes
The table parameter PTF_STATUS is filled with the contents of the InfoAPAR file and provides information about the status of any PTF in theInfo APAR. The following statuses can be distinguished:
'0' The PTF has never been loaded.
'1' The PTF has been loaded.
'2' The PTF has been applied.
'3' The PTF has been applied permanently.
'4' The PTF has been permanently removed.
'5' The PTF is damaged. An error occurred when applying the PTF. Youhave to be reload and reapply the PTF.
'6' The PTF is superseded. Another PTF with a more recent fix for theproblem is available on the system.
'L' The licensed product for this PTF has not been installed.
'N' The PTF could not be found.
'E' An error occurred when determining the PTF status.
Only points '2', '3', '6' and 'L' do not represent problems.
The optional parameter PATHNAME is used to specify the path of the InfoAPAR file in the IFS. The default is: '/usr/sap/trans/config'.

Further information
Parameter