SAP SLS_PR_GET_ITEM_RESULTS_VECTOR Function Module for Get Item Results Answer-vector for MC1, MCN, MCe, LC, Rating and Fill-In









SLS_PR_GET_ITEM_RESULTS_VECTOR is a standard sls pr get item results vector 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 Item Results Answer-vector for MC1, MCN, MCe, LC, Rating and Fill-In 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 item results vector FM, simply by entering the name SLS_PR_GET_ITEM_RESULTS_VECTOR 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_ITEM_RESULTS_VECTOR 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_ITEM_RESULTS_VECTOR'"Get Item Results Answer-vector for MC1, MCN, MCe, LC, Rating and Fill-In
TABLES
P_PETIDS = "PAW - Structure to hold PET IDs
P_ITEM_RESULTS = "PAW - Item Results with answer- and solution-vector

EXCEPTIONS
NO_PETID_SPECIFIED = 1 ERROR_SELECTING_RRATE = 10 ERROR_SELECTING_RLC = 11 ERROR_SELECTING_RFILL = 12 ERROR_DURING_RITEM_SELECT = 2 ERROR_SELECTING_ITEM_DETAILS = 3 ERROR_SELECTING_IMC = 4 ERROR_SELECTING_IRATE = 5 ERROR_SELECTING_ILC1 = 6 ERROR_SELECTING_ILC2 = 7 ERROR_SELECTING_IFILL = 8 ERROR_SELECTING_RMC = 9
.



TABLES Parameters details for SLS_PR_GET_ITEM_RESULTS_VECTOR

P_PETIDS - PAW - Structure to hold PET IDs

Data type: SLS_PETID
Optional: No
Call by Reference: Yes

P_ITEM_RESULTS - PAW - Item Results with answer- and solution-vector

Data type: SLS_IRES
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NO_PETID_SPECIFIED - No PETID specified for selection of Item Results

Data type:
Optional: No
Call by Reference: Yes

ERROR_SELECTING_RRATE - An error occured while selecting from table sls_rrate

Data type:
Optional: No
Call by Reference: Yes

ERROR_SELECTING_RLC - An error occured while selecting from table sls_rlc

Data type:
Optional: No
Call by Reference: Yes

ERROR_SELECTING_RFILL - An error occured while selecting from table sls_rfill

Data type:
Optional: No
Call by Reference: Yes

ERROR_DURING_RITEM_SELECT - An error occured while selecting Item Results table

Data type:
Optional: No
Call by Reference: Yes

ERROR_SELECTING_ITEM_DETAILS - An error occured while selecting from table sls_item

Data type:
Optional: No
Call by Reference: Yes

ERROR_SELECTING_IMC - An error occured while selecting from table sls_imc

Data type:
Optional: No
Call by Reference: Yes

ERROR_SELECTING_IRATE - An error occured while selecting from table sls_irate

Data type:
Optional: No
Call by Reference: Yes

ERROR_SELECTING_ILC1 - An error occured while selecting from table sls_ilc2

Data type:
Optional: No
Call by Reference: Yes

ERROR_SELECTING_ILC2 - An error occured while selecting from table sls_ilc2

Data type:
Optional: No
Call by Reference: Yes

ERROR_SELECTING_IFILL - An error occured while selecting from table sls_ifill

Data type:
Optional: No
Call by Reference: Yes

ERROR_SELECTING_RMC - An error occured while selecting from table sls_rmc

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SLS_PR_GET_ITEM_RESULTS_VECTOR 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:
lt_p_petids  TYPE STANDARD TABLE OF SLS_PETID, "   
lv_no_petid_specified  TYPE SLS_PETID, "   
lv_error_selecting_rrate  TYPE SLS_PETID, "   
lv_error_selecting_rlc  TYPE SLS_PETID, "   
lv_error_selecting_rfill  TYPE SLS_PETID, "   
lt_p_item_results  TYPE STANDARD TABLE OF SLS_IRES, "   
lv_error_during_ritem_select  TYPE SLS_IRES, "   
lv_error_selecting_item_details  TYPE SLS_IRES, "   
lv_error_selecting_imc  TYPE SLS_IRES, "   
lv_error_selecting_irate  TYPE SLS_IRES, "   
lv_error_selecting_ilc1  TYPE SLS_IRES, "   
lv_error_selecting_ilc2  TYPE SLS_IRES, "   
lv_error_selecting_ifill  TYPE SLS_IRES, "   
lv_error_selecting_rmc  TYPE SLS_IRES. "   

  CALL FUNCTION 'SLS_PR_GET_ITEM_RESULTS_VECTOR'  "Get Item Results Answer-vector for MC1, MCN, MCe, LC, Rating and Fill-In
    TABLES
         P_PETIDS = lt_p_petids
         P_ITEM_RESULTS = lt_p_item_results
    EXCEPTIONS
        NO_PETID_SPECIFIED = 1
        ERROR_SELECTING_RRATE = 10
        ERROR_SELECTING_RLC = 11
        ERROR_SELECTING_RFILL = 12
        ERROR_DURING_RITEM_SELECT = 2
        ERROR_SELECTING_ITEM_DETAILS = 3
        ERROR_SELECTING_IMC = 4
        ERROR_SELECTING_IRATE = 5
        ERROR_SELECTING_ILC1 = 6
        ERROR_SELECTING_ILC2 = 7
        ERROR_SELECTING_IFILL = 8
        ERROR_SELECTING_RMC = 9
. " SLS_PR_GET_ITEM_RESULTS_VECTOR




ABAP code using 7.40 inline data declarations to call FM SLS_PR_GET_ITEM_RESULTS_VECTOR

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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!