SAP SLS_PR_GET_QTRANSFER_PROT Function Module for Get Batch Qualification Transfer Protocol
SLS_PR_GET_QTRANSFER_PROT is a standard sls pr get qtransfer prot SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get Batch Qualification Transfer Protocol processing and below is the pattern details for this FM, 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 sls pr get qtransfer prot FM, simply by entering the name SLS_PR_GET_QTRANSFER_PROT into the relevant SAP transaction such as SE37 or SE38.
Function Group: SLSR
Program Name: SAPLSLSR
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SLS_PR_GET_QTRANSFER_PROT 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 'SLS_PR_GET_QTRANSFER_PROT'"Get Batch Qualification Transfer Protocol.
EXPORTING
P_PLVAR = "PAW - Plan Variant (for HR reference use)
P_EVENT_ID = "PAW - Event ID
P_NO_TEM = "PAW - Event either from TEM or not
* P_LAST_ATTEMPT_ONLY = 'X' "Flag indicating whether only last attempt shall be selected
* P_AUTHORIZE = "Authorization flag (Y='yes', N='no')
TABLES
P_QPROT = "PAW - Qualification Generation Log
EXCEPTIONS
NO_PROTOCOL_ENTRIES_FOUND = 1 ERROR_DURING_SLS_QPROT_SELECT = 2 EVENT_ID_NOT_SPECIFIED = 3 AUTHORIZATION_NOT_POSSIBLE = 4 ACCESS_TO_EVENT_DATA_DENIED = 5
IMPORTING Parameters details for SLS_PR_GET_QTRANSFER_PROT
P_PLVAR - PAW - Plan Variant (for HR reference use)
Data type: LS_PLVAROptional: No
Call by Reference: Yes
P_EVENT_ID - PAW - Event ID
Data type: LS_EVEIDOptional: No
Call by Reference: Yes
P_NO_TEM - PAW - Event either from TEM or not
Data type: LS_NOTEMOptional: No
Call by Reference: Yes
P_LAST_ATTEMPT_ONLY - Flag indicating whether only last attempt shall be selected
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: Yes
P_AUTHORIZE - Authorization flag (Y='yes', N='no')
Data type: CHAR1Optional: Yes
Call by Reference: Yes
TABLES Parameters details for SLS_PR_GET_QTRANSFER_PROT
P_QPROT - PAW - Qualification Generation Log
Data type: SLS_QPROTOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_PROTOCOL_ENTRIES_FOUND - No protocol records found for given specification
Data type:Optional: No
Call by Reference: Yes
ERROR_DURING_SLS_QPROT_SELECT - An error occured during selection of table SLS_QPROT
Data type:Optional: No
Call by Reference: Yes
EVENT_ID_NOT_SPECIFIED - Event IDs needed for selection have not been specified
Data type:Optional: No
Call by Reference: Yes
AUTHORIZATION_NOT_POSSIBLE - Authorization was not possible !
Data type:Optional: No
Call by Reference: Yes
ACCESS_TO_EVENT_DATA_DENIED - Access to data for specified event is denied.
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SLS_PR_GET_QTRANSFER_PROT 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_p_plvar | TYPE LS_PLVAR, " | |||
| lt_p_qprot | TYPE STANDARD TABLE OF SLS_QPROT, " | |||
| lv_no_protocol_entries_found | TYPE SLS_QPROT, " | |||
| lv_p_event_id | TYPE LS_EVEID, " | |||
| lv_error_during_sls_qprot_select | TYPE LS_EVEID, " | |||
| lv_p_no_tem | TYPE LS_NOTEM, " | |||
| lv_event_id_not_specified | TYPE LS_NOTEM, " | |||
| lv_p_last_attempt_only | TYPE CHAR1, " 'X' | |||
| lv_authorization_not_possible | TYPE CHAR1, " | |||
| lv_p_authorize | TYPE CHAR1, " | |||
| lv_access_to_event_data_denied | TYPE CHAR1. " |
|   CALL FUNCTION 'SLS_PR_GET_QTRANSFER_PROT' "Get Batch Qualification Transfer Protocol |
| EXPORTING | ||
| P_PLVAR | = lv_p_plvar | |
| P_EVENT_ID | = lv_p_event_id | |
| P_NO_TEM | = lv_p_no_tem | |
| P_LAST_ATTEMPT_ONLY | = lv_p_last_attempt_only | |
| P_AUTHORIZE | = lv_p_authorize | |
| TABLES | ||
| P_QPROT | = lt_p_qprot | |
| EXCEPTIONS | ||
| NO_PROTOCOL_ENTRIES_FOUND = 1 | ||
| ERROR_DURING_SLS_QPROT_SELECT = 2 | ||
| EVENT_ID_NOT_SPECIFIED = 3 | ||
| AUTHORIZATION_NOT_POSSIBLE = 4 | ||
| ACCESS_TO_EVENT_DATA_DENIED = 5 | ||
| . " SLS_PR_GET_QTRANSFER_PROT | ||
ABAP code using 7.40 inline data declarations to call FM SLS_PR_GET_QTRANSFER_PROT
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.| DATA(ld_p_last_attempt_only) | = 'X'. | |||
Search for further information about these or an SAP related objects