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

ParameterTypeDescriptionRequired
NUMBERBAPI2045D_IL0-INSPLOTInspection lot numberYes
LANGUAGEBAPI2045LALanguage for texts—

Exporting parameters

ParameterTypeDescription
GENERAL_DATABAPI2045D_IL0General inspection lot data
TASK_LIST_DATABAPI2045D_IL1Inspection plan data
STOCK_DATABAPI2045D_IL2Stock posting data
ACCOUNTING_DATABAPI2045D_IL3Account assignment data
USAGE_DECISION_DATABAPI2045D_IL4Usage decision data
CUSTOMER_INCLUDE_DATABAPI2045CICustomer-specific fields
RETURNBAPIRETURN1Return messages

Tables parameters

ParameterTypeDescriptionRequired
SYSTEM_STATUSBAPI2045SSSystem statuses—
USER_STATUSBAPI2045USUser statuses—
MATERIAL_DOCUMENTSBAPI2045MDRelated 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.

Request a custom report