SAP BAPI_INSPLOT_GETDETAIL Function Module for Load Detail Data and Usage Decision for Inspection Lot









BAPI_INSPLOT_GETDETAIL is a standard bapi insplot getdetail SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Load Detail Data and Usage Decision for Inspection Lot 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 getdetail FM, simply by entering the name BAPI_INSPLOT_GETDETAIL into the relevant SAP transaction such as SE37 or SE38.

Function Group: 2045
Program Name: SAPL2045
Main Program: SAPL2045
Appliation area: Q
Release date: 29-Apr-1998
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_INSPLOT_GETDETAIL 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_GETDETAIL'"Load Detail Data and Usage Decision for Inspection Lot
EXPORTING
NUMBER = "Inspection Lot
* LANGUAGE = "Language Key (Non-ISO and ISO)

IMPORTING
GENERAL_DATA = "General Data for Inspection Lot
TASK_LIST_DATA = "Task List Assignment for Inspection Lot
STOCK_DATA = "Stock Data for Inspection Lot
ACCOUNTING_DATA = "Account Assignment Data for Inspection Lot
USAGE_DECISION_DATA = "Usage Decision for the Inspection Lot
CUSTOMER_INCLUDE_DATA = "Customer Fields for Include CI_QALS
RETURN = "Return Values

TABLES
* SYSTEM_STATUS = "Inspection Lot System Status
* USER_STATUS = "User Status for the Inspection Lot
* MATERIAL_DOCUMENTS = "References Between Inspection Lots and Material Documents
.



IMPORTING Parameters details for BAPI_INSPLOT_GETDETAIL

NUMBER - Inspection Lot

Data type: BAPI2045D_IL0-INSPLOT
Optional: No
Call by Reference: No ( called with pass by value option)

LANGUAGE - Language Key (Non-ISO and ISO)

Data type: BAPI2045LA
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for BAPI_INSPLOT_GETDETAIL

GENERAL_DATA - General Data for Inspection Lot

Data type: BAPI2045D_IL0
Optional: No
Call by Reference: No ( called with pass by value option)

TASK_LIST_DATA - Task List Assignment for Inspection Lot

Data type: BAPI2045D_IL1
Optional: No
Call by Reference: No ( called with pass by value option)

STOCK_DATA - Stock Data for Inspection Lot

Data type: BAPI2045D_IL2
Optional: No
Call by Reference: No ( called with pass by value option)

ACCOUNTING_DATA - Account Assignment Data for Inspection Lot

Data type: BAPI2045D_IL3
Optional: No
Call by Reference: No ( called with pass by value option)

USAGE_DECISION_DATA - Usage Decision for the Inspection Lot

Data type: BAPI2045D_IL4
Optional: No
Call by Reference: No ( called with pass by value option)

CUSTOMER_INCLUDE_DATA - Customer Fields for Include CI_QALS

Data type: BAPI2045CI
Optional: No
Call by Reference: No ( called with pass by value option)

RETURN - Return Values

Data type: BAPIRETURN1
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for BAPI_INSPLOT_GETDETAIL

SYSTEM_STATUS - Inspection Lot System Status

Data type: BAPI2045SS
Optional: Yes
Call by Reference: No ( called with pass by value option)

USER_STATUS - User Status for the Inspection Lot

Data type: BAPI2045US
Optional: Yes
Call by Reference: No ( called with pass by value option)

MATERIAL_DOCUMENTS - References Between Inspection Lots and Material Documents

Data type: BAPI2045MD
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for BAPI_INSPLOT_GETDETAIL 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_number  TYPE BAPI2045D_IL0-INSPLOT, "   
lv_general_data  TYPE BAPI2045D_IL0, "   
lt_system_status  TYPE STANDARD TABLE OF BAPI2045SS, "   
lv_language  TYPE BAPI2045LA, "   
lt_user_status  TYPE STANDARD TABLE OF BAPI2045US, "   
lv_task_list_data  TYPE BAPI2045D_IL1, "   
lv_stock_data  TYPE BAPI2045D_IL2, "   
lt_material_documents  TYPE STANDARD TABLE OF BAPI2045MD, "   
lv_accounting_data  TYPE BAPI2045D_IL3, "   
lv_usage_decision_data  TYPE BAPI2045D_IL4, "   
lv_customer_include_data  TYPE BAPI2045CI, "   
lv_return  TYPE BAPIRETURN1. "   

  CALL FUNCTION 'BAPI_INSPLOT_GETDETAIL'  "Load Detail Data and Usage Decision for Inspection Lot
    EXPORTING
         NUMBER = lv_number
         LANGUAGE = lv_language
    IMPORTING
         GENERAL_DATA = lv_general_data
         TASK_LIST_DATA = lv_task_list_data
         STOCK_DATA = lv_stock_data
         ACCOUNTING_DATA = lv_accounting_data
         USAGE_DECISION_DATA = lv_usage_decision_data
         CUSTOMER_INCLUDE_DATA = lv_customer_include_data
         RETURN = lv_return
    TABLES
         SYSTEM_STATUS = lt_system_status
         USER_STATUS = lt_user_status
         MATERIAL_DOCUMENTS = lt_material_documents
. " BAPI_INSPLOT_GETDETAIL




ABAP code using 7.40 inline data declarations to call FM BAPI_INSPLOT_GETDETAIL

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 INSPLOT FROM BAPI2045D_IL0 INTO @DATA(ld_number).
 
 
 
 
 
 
 
 
 
 
 
 


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!