SAP PA_SINGLE_PACKAGE_CHECK Function Module for
PA_SINGLE_PACKAGE_CHECK is a standard pa single package check SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for pa single package check FM, simply by entering the name PA_SINGLE_PACKAGE_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: PA_PACKAGE_CHECKS
Program Name: SAPLPA_PACKAGE_CHECKS
Main Program: SAPLPA_PACKAGE_CHECKS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PA_SINGLE_PACKAGE_CHECK pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'PA_SINGLE_PACKAGE_CHECK'".
EXPORTING
I_CLIENT_PGMID = "
I_CLIENT_OBJ_TYPE = "
I_CLIENT_OBJ_KEY = "
I_SERVER_PGMID = "
I_SERVER_OBJ_TYPE = "
I_SERVER_OBJ_KEY = "
* I_SERVER_SUB_TYPE = "Workbench: Internal type (w/o directory)
* I_SERVER_SUB_KEY = "Compound component name or alias
* I_PURPOSE = "Degree of Use
IMPORTING
E_CLIENT_OBJ_PACKAGE = "
E_SERVER_OBJ_PACKAGE = "
E_SEVERITY = "
E_REASON = "Reason for Error Severity
E_MESSAGE = "Structure of Message Variables
EXCEPTIONS
CLIENT_PACKAGE_NOT_FOUND = 1 SERVER_PACKAGE_NOT_FOUND = 2 CLIENT_HIERARCHY_LOOP = 3 SERVER_HIERARCHY_LOOP = 4
IMPORTING Parameters details for PA_SINGLE_PACKAGE_CHECK
I_CLIENT_PGMID -
Data type: PGMIDOptional: No
Call by Reference: Yes
I_CLIENT_OBJ_TYPE -
Data type: TROBJTYPEOptional: No
Call by Reference: Yes
I_CLIENT_OBJ_KEY -
Data type: ELEMGENKEYOptional: No
Call by Reference: Yes
I_SERVER_PGMID -
Data type: PGMIDOptional: No
Call by Reference: Yes
I_SERVER_OBJ_TYPE -
Data type: TROBJTYPEOptional: No
Call by Reference: Yes
I_SERVER_OBJ_KEY -
Data type: ELEMGENKEYOptional: No
Call by Reference: Yes
I_SERVER_SUB_TYPE - Workbench: Internal type (w/o directory)
Data type: SEU_STYPEOptional: Yes
Call by Reference: Yes
I_SERVER_SUB_KEY - Compound component name or alias
Data type: SEOCPDLONGOptional: Yes
Call by Reference: Yes
I_PURPOSE - Degree of Use
Data type: USEPURPOSEOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for PA_SINGLE_PACKAGE_CHECK
E_CLIENT_OBJ_PACKAGE -
Data type: DEVCLASSOptional: No
Call by Reference: Yes
E_SERVER_OBJ_PACKAGE -
Data type: DEVCLASSOptional: No
Call by Reference: Yes
E_SEVERITY -
Data type: ERRSEVRTYOptional: No
Call by Reference: Yes
E_REASON - Reason for Error Severity
Data type: PAKREASOptional: No
Call by Reference: Yes
E_MESSAGE - Structure of Message Variables
Data type: SYMSGOptional: No
Call by Reference: Yes
EXCEPTIONS details
CLIENT_PACKAGE_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
SERVER_PACKAGE_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
CLIENT_HIERARCHY_LOOP -
Data type:Optional: No
Call by Reference: Yes
SERVER_HIERARCHY_LOOP -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for PA_SINGLE_PACKAGE_CHECK Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_i_client_pgmid | TYPE PGMID, " | |||
| lv_e_client_obj_package | TYPE DEVCLASS, " | |||
| lv_client_package_not_found | TYPE DEVCLASS, " | |||
| lv_i_client_obj_type | TYPE TROBJTYPE, " | |||
| lv_e_server_obj_package | TYPE DEVCLASS, " | |||
| lv_server_package_not_found | TYPE DEVCLASS, " | |||
| lv_e_severity | TYPE ERRSEVRTY, " | |||
| lv_i_client_obj_key | TYPE ELEMGENKEY, " | |||
| lv_client_hierarchy_loop | TYPE ELEMGENKEY, " | |||
| lv_e_reason | TYPE PAKREAS, " | |||
| lv_i_server_pgmid | TYPE PGMID, " | |||
| lv_server_hierarchy_loop | TYPE PGMID, " | |||
| lv_e_message | TYPE SYMSG, " | |||
| lv_i_server_obj_type | TYPE TROBJTYPE, " | |||
| lv_i_server_obj_key | TYPE ELEMGENKEY, " | |||
| lv_i_server_sub_type | TYPE SEU_STYPE, " | |||
| lv_i_server_sub_key | TYPE SEOCPDLONG, " | |||
| lv_i_purpose | TYPE USEPURPOSE. " |
|   CALL FUNCTION 'PA_SINGLE_PACKAGE_CHECK' " |
| EXPORTING | ||
| I_CLIENT_PGMID | = lv_i_client_pgmid | |
| I_CLIENT_OBJ_TYPE | = lv_i_client_obj_type | |
| I_CLIENT_OBJ_KEY | = lv_i_client_obj_key | |
| I_SERVER_PGMID | = lv_i_server_pgmid | |
| I_SERVER_OBJ_TYPE | = lv_i_server_obj_type | |
| I_SERVER_OBJ_KEY | = lv_i_server_obj_key | |
| I_SERVER_SUB_TYPE | = lv_i_server_sub_type | |
| I_SERVER_SUB_KEY | = lv_i_server_sub_key | |
| I_PURPOSE | = lv_i_purpose | |
| IMPORTING | ||
| E_CLIENT_OBJ_PACKAGE | = lv_e_client_obj_package | |
| E_SERVER_OBJ_PACKAGE | = lv_e_server_obj_package | |
| E_SEVERITY | = lv_e_severity | |
| E_REASON | = lv_e_reason | |
| E_MESSAGE | = lv_e_message | |
| EXCEPTIONS | ||
| CLIENT_PACKAGE_NOT_FOUND = 1 | ||
| SERVER_PACKAGE_NOT_FOUND = 2 | ||
| CLIENT_HIERARCHY_LOOP = 3 | ||
| SERVER_HIERARCHY_LOOP = 4 | ||
| . " PA_SINGLE_PACKAGE_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM PA_SINGLE_PACKAGE_CHECK
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.Search for further information about these or an SAP related objects