QM BAPI RFC Used the same way in S/4HANA

BAPI_INSPLOT_SETUSAGEDECISION Set Usage Decision

Makes the usage decision for an inspection lot, like QA11, using the code and code group in UD_DATA, and can post the inspection stock. It is used by LIMS or automatic release programs once all results are recorded. Pass stock posting fields in UD_DATA if the stock must be moved, check RETURN and call BAPI_TRANSACTION_COMMIT.

Function group
2045
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
NUMBERBAPI2045UD-INSPLOTInspection lot numberYes
UD_DATABAPI2045UDUsage decision data (code, code group)Yes
LANGUAGEBAPI2045LALanguage for texts—

Exporting parameters

ParameterTypeDescription
UD_RETURN_DATABAPI2045UD_RETURNUsage decision result
STOCK_DATABAPI2045D_IL2Stock posting data of the decision
RETURNBAPIRETURN1Return messages

Tables parameters

ParameterTypeDescriptionRequired
SYSTEM_STATUSBAPI2045SSSystem statuses—
USER_STATUSBAPI2045USUser statuses—

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_SETUSAGEDECISION'
  EXPORTING
    number = lv_number
    ud_data = lv_ud_data
  IMPORTING
    ud_return_data = lv_ud_return_data
    stock_data = lv_stock_data
    return = lv_return
  TABLES
    system_status = lt_system_status
    user_status = lt_user_status.

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