SAP Function BAPI_INSPLOT_SETUSAGEDECISION - Automatic Usage Decision

Parameter Reference Type Length Default Optional Text
LANGUAGE BAPI2045LA u 3 X Language (Non-ISO and ISO)
NUMBER BAPI2045UD-INSPLOT N 12 Inspection Lot
UD_DATA BAPI2045UD u 144 Data for Making Usage Decision

Parameter Reference Type Length Text
RETURN BAPIRETURN1 u 470 Message Structure
STOCK_DATA BAPI2045D_IL2 u 442 Stock Data for Inspection Lot
UD_RETURN_DATA BAPI2045UD_RETURN u 32 Return Values After Making Usage Decision

Parameter Reference Length Optional Text
SYSTEM_STATUS BAPI2045SS 39 X System Status for Inspection Lot
USER_STATUS BAPI2045US 49 X User Status for Inspection Lot

Functionality
Using this method, the system can make an automatic usage decision foran inspection lot.

Description
The system transfers the return values to this structure.
If the usage decision is made successfully, the system returns themessage number '050' (message class 'QV').

Description
This structure contains the stock-related data for the inspection lot.For example, it describes whether the inspection lot quantity is ininspection stock.

Description
Structure that contains the usage decision data after the method hasbeen called.

Description
The language key determines the language in which the system readslanguage-dependent texts (for example, for the system or userstatuses).
If a language key is not transferred, the system uses the logonlanguage.

Description
Identifies the inspection lot for which data isbeing read.

Description
Data for making the usage decision.

Description
This table contains all active system statuses for the inspection lotand the associated, language-dependent texts.
The language is specified by the LANGUAGE parameter.

Description
This table contains all active user statuses for the inspection lot andthe associated, language-dependent texts.
The language is specified by the LANGUAGE parameter.