SAP BAPI_INSPLOT_GETLIST Function Module for Select Inspection Lots
BAPI_INSPLOT_GETLIST is a standard bapi insplot getlist SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Select Inspection Lots 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 bapi insplot getlist FM, simply by entering the name BAPI_INSPLOT_GETLIST into the relevant SAP transaction such as SE37 or SE38.
Function Group: 2045
Program Name: SAPL2045
Main Program: SAPL2045
Appliation area: Q
Release date: 18-Aug-1997
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_INSPLOT_GETLIST 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 'BAPI_INSPLOT_GETLIST'"Select Inspection Lots.
EXPORTING
* MATERIAL = "Material Number
* PLANT = "Plant
* PO_NUMBER = "Purchasing Document
* PO_ITEM = "Item in Purchasing Document
* MAT_DOC = "Material Document
* MATDOC_ITM = "Item in Material Document
* DELIV_NUMB = "Delivery
* DELIV_ITEM = "Delivery Item
* MANUFACTURER = "Manufacturer
* STATUS_CREATED = 'X' "Use Created Lots
* STATUS_RELEASED = 'X' "Use Released Lots
* BATCH = "Batch Number
* STATUS_UD = 'X' "Use Lots with Usage Decision
* SELECTION_ID = ' ' "Status Selection Profile
* MATERIAL_EVG = "Long Material Number
* ORDER = "Order Number
* VERSION = "Production Version
* RS_ORDER = "Production Version Number
* VENDOR = "Vendor Number
* CUSTOMER = "Customer Number
* MAX_ROWS = 100 "Upper Limit for Number of Inspection Lots
* CREAT_DAT = "Start Date for Selection
IMPORTING
RETURN = "Return Value
TABLES
INSPLOT_LIST = "List of Inspection Lots
IMPORTING Parameters details for BAPI_INSPLOT_GETLIST
MATERIAL - Material Number
Data type: BAPI2045L1-MATERIALOptional: Yes
Call by Reference: No ( called with pass by value option)
PLANT - Plant
Data type: BAPI2045L1-PLANTOptional: Yes
Call by Reference: No ( called with pass by value option)
PO_NUMBER - Purchasing Document
Data type: BAPI2045L1-PO_NUMBEROptional: Yes
Call by Reference: No ( called with pass by value option)
PO_ITEM - Item in Purchasing Document
Data type: BAPI2045L1-PO_ITEMOptional: Yes
Call by Reference: No ( called with pass by value option)
MAT_DOC - Material Document
Data type: BAPI2045L1-MAT_DOCOptional: Yes
Call by Reference: No ( called with pass by value option)
MATDOC_ITM - Item in Material Document
Data type: BAPI2045L1-MATDOC_ITMOptional: Yes
Call by Reference: No ( called with pass by value option)
DELIV_NUMB - Delivery
Data type: BAPI2045L1-DELIV_NUMBOptional: Yes
Call by Reference: No ( called with pass by value option)
DELIV_ITEM - Delivery Item
Data type: BAPI2045L1-DELIV_ITEMOptional: Yes
Call by Reference: No ( called with pass by value option)
MANUFACTURER - Manufacturer
Data type: BAPI2045D_IL0-MANUFACTUREROptional: Yes
Call by Reference: No ( called with pass by value option)
STATUS_CREATED - Use Created Lots
Data type: BAPI2045AS-STATUS_CREATEDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
STATUS_RELEASED - Use Released Lots
Data type: BAPI2045AS-STATUS_RELEASEDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
BATCH - Batch Number
Data type: BAPI2045L1-BATCHOptional: Yes
Call by Reference: No ( called with pass by value option)
STATUS_UD - Use Lots with Usage Decision
Data type: BAPI2045AS-STATUS_UDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SELECTION_ID - Status Selection Profile
Data type: BAPI2045AS-SELECTION_IDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MATERIAL_EVG - Long Material Number
Data type: BAPIMGVMATNROptional: Yes
Call by Reference: No ( called with pass by value option)
ORDER - Order Number
Data type: BAPI2045L1-ORDER_NOOptional: Yes
Call by Reference: No ( called with pass by value option)
VERSION - Production Version
Data type: BAPI2045D_IL0-VERSIONOptional: Yes
Call by Reference: No ( called with pass by value option)
RS_ORDER - Production Version Number
Data type: BAPIQMSTI7-RD_HDR_NOOptional: Yes
Call by Reference: No ( called with pass by value option)
VENDOR - Vendor Number
Data type: BAPI2045L1-VENDOROptional: Yes
Call by Reference: No ( called with pass by value option)
CUSTOMER - Customer Number
Data type: BAPI2045L1-CUSTOMEROptional: Yes
Call by Reference: No ( called with pass by value option)
MAX_ROWS - Upper Limit for Number of Inspection Lots
Data type: BAPI2045S1-MAXROWSDefault: 100
Optional: Yes
Call by Reference: No ( called with pass by value option)
CREAT_DAT - Start Date for Selection
Data type: BAPI2045L1-CREAT_DATOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_INSPLOT_GETLIST
RETURN - Return Value
Data type: BAPIRETURN1Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_INSPLOT_GETLIST
INSPLOT_LIST - List of Inspection Lots
Data type: BAPI2045L1Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_INSPLOT_GETLIST 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_return | TYPE BAPIRETURN1, " | |||
| lv_material | TYPE BAPI2045L1-MATERIAL, " | |||
| lt_insplot_list | TYPE STANDARD TABLE OF BAPI2045L1, " | |||
| lv_plant | TYPE BAPI2045L1-PLANT, " | |||
| lv_po_number | TYPE BAPI2045L1-PO_NUMBER, " | |||
| lv_po_item | TYPE BAPI2045L1-PO_ITEM, " | |||
| lv_mat_doc | TYPE BAPI2045L1-MAT_DOC, " | |||
| lv_matdoc_itm | TYPE BAPI2045L1-MATDOC_ITM, " | |||
| lv_deliv_numb | TYPE BAPI2045L1-DELIV_NUMB, " | |||
| lv_deliv_item | TYPE BAPI2045L1-DELIV_ITEM, " | |||
| lv_manufacturer | TYPE BAPI2045D_IL0-MANUFACTURER, " | |||
| lv_status_created | TYPE BAPI2045AS-STATUS_CREATED, " 'X' | |||
| lv_status_released | TYPE BAPI2045AS-STATUS_RELEASED, " 'X' | |||
| lv_batch | TYPE BAPI2045L1-BATCH, " | |||
| lv_status_ud | TYPE BAPI2045AS-STATUS_UD, " 'X' | |||
| lv_selection_id | TYPE BAPI2045AS-SELECTION_ID, " SPACE | |||
| lv_material_evg | TYPE BAPIMGVMATNR, " | |||
| lv_order | TYPE BAPI2045L1-ORDER_NO, " | |||
| lv_version | TYPE BAPI2045D_IL0-VERSION, " | |||
| lv_rs_order | TYPE BAPIQMSTI7-RD_HDR_NO, " | |||
| lv_vendor | TYPE BAPI2045L1-VENDOR, " | |||
| lv_customer | TYPE BAPI2045L1-CUSTOMER, " | |||
| lv_max_rows | TYPE BAPI2045S1-MAXROWS, " 100 | |||
| lv_creat_dat | TYPE BAPI2045L1-CREAT_DAT. " |
|   CALL FUNCTION 'BAPI_INSPLOT_GETLIST' "Select Inspection Lots |
| EXPORTING | ||
| MATERIAL | = lv_material | |
| PLANT | = lv_plant | |
| PO_NUMBER | = lv_po_number | |
| PO_ITEM | = lv_po_item | |
| MAT_DOC | = lv_mat_doc | |
| MATDOC_ITM | = lv_matdoc_itm | |
| DELIV_NUMB | = lv_deliv_numb | |
| DELIV_ITEM | = lv_deliv_item | |
| MANUFACTURER | = lv_manufacturer | |
| STATUS_CREATED | = lv_status_created | |
| STATUS_RELEASED | = lv_status_released | |
| BATCH | = lv_batch | |
| STATUS_UD | = lv_status_ud | |
| SELECTION_ID | = lv_selection_id | |
| MATERIAL_EVG | = lv_material_evg | |
| ORDER | = lv_order | |
| VERSION | = lv_version | |
| RS_ORDER | = lv_rs_order | |
| VENDOR | = lv_vendor | |
| CUSTOMER | = lv_customer | |
| MAX_ROWS | = lv_max_rows | |
| CREAT_DAT | = lv_creat_dat | |
| IMPORTING | ||
| RETURN | = lv_return | |
| TABLES | ||
| INSPLOT_LIST | = lt_insplot_list | |
| . " BAPI_INSPLOT_GETLIST | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_INSPLOT_GETLIST
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.| "SELECT single MATERIAL FROM BAPI2045L1 INTO @DATA(ld_material). | ||||
| "SELECT single PLANT FROM BAPI2045L1 INTO @DATA(ld_plant). | ||||
| "SELECT single PO_NUMBER FROM BAPI2045L1 INTO @DATA(ld_po_number). | ||||
| "SELECT single PO_ITEM FROM BAPI2045L1 INTO @DATA(ld_po_item). | ||||
| "SELECT single MAT_DOC FROM BAPI2045L1 INTO @DATA(ld_mat_doc). | ||||
| "SELECT single MATDOC_ITM FROM BAPI2045L1 INTO @DATA(ld_matdoc_itm). | ||||
| "SELECT single DELIV_NUMB FROM BAPI2045L1 INTO @DATA(ld_deliv_numb). | ||||
| "SELECT single DELIV_ITEM FROM BAPI2045L1 INTO @DATA(ld_deliv_item). | ||||
| "SELECT single MANUFACTURER FROM BAPI2045D_IL0 INTO @DATA(ld_manufacturer). | ||||
| "SELECT single STATUS_CREATED FROM BAPI2045AS INTO @DATA(ld_status_created). | ||||
| DATA(ld_status_created) | = 'X'. | |||
| "SELECT single STATUS_RELEASED FROM BAPI2045AS INTO @DATA(ld_status_released). | ||||
| DATA(ld_status_released) | = 'X'. | |||
| "SELECT single BATCH FROM BAPI2045L1 INTO @DATA(ld_batch). | ||||
| "SELECT single STATUS_UD FROM BAPI2045AS INTO @DATA(ld_status_ud). | ||||
| DATA(ld_status_ud) | = 'X'. | |||
| "SELECT single SELECTION_ID FROM BAPI2045AS INTO @DATA(ld_selection_id). | ||||
| DATA(ld_selection_id) | = ' '. | |||
| "SELECT single ORDER_NO FROM BAPI2045L1 INTO @DATA(ld_order). | ||||
| "SELECT single VERSION FROM BAPI2045D_IL0 INTO @DATA(ld_version). | ||||
| "SELECT single RD_HDR_NO FROM BAPIQMSTI7 INTO @DATA(ld_rs_order). | ||||
| "SELECT single VENDOR FROM BAPI2045L1 INTO @DATA(ld_vendor). | ||||
| "SELECT single CUSTOMER FROM BAPI2045L1 INTO @DATA(ld_customer). | ||||
| "SELECT single MAXROWS FROM BAPI2045S1 INTO @DATA(ld_max_rows). | ||||
| DATA(ld_max_rows) | = 100. | |||
| "SELECT single CREAT_DAT FROM BAPI2045L1 INTO @DATA(ld_creat_dat). | ||||
Search for further information about these or an SAP related objects