QM
BAPI
RFC
Used the same way in S/4HANA
BAPI_INSPLOT_GETDETAIL Read Inspection Lot Details and Usage Decision
Reads an inspection lot with general, inspection plan, stock, account assignment and usage decision data, plus system and user statuses. It is used in reports and interfaces that show lot status or forward quality results. Check RETURN; the function only reads data.
- Function group
- 2045
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| NUMBER | BAPI2045D_IL0-INSPLOT | Inspection lot number | Yes |
| LANGUAGE | BAPI2045LA | Language for texts | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| GENERAL_DATA | BAPI2045D_IL0 | General inspection lot data |
| TASK_LIST_DATA | BAPI2045D_IL1 | Inspection plan data |
| STOCK_DATA | BAPI2045D_IL2 | Stock posting data |
| ACCOUNTING_DATA | BAPI2045D_IL3 | Account assignment data |
| USAGE_DECISION_DATA | BAPI2045D_IL4 | Usage decision data |
| CUSTOMER_INCLUDE_DATA | BAPI2045CI | Customer-specific fields |
| RETURN | BAPIRETURN1 | Return messages |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| SYSTEM_STATUS | BAPI2045SS | System statuses | — |
| USER_STATUS | BAPI2045US | User statuses | — |
| MATERIAL_DOCUMENTS | BAPI2045MD | Related material documents | — |
Call template (ABAP)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
CALL FUNCTION 'BAPI_INSPLOT_GETDETAIL'
EXPORTING
number = lv_number
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.Related tables
Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.