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

BAPI_INSPOPER_GETDETAIL Read Inspection Operation Details

Reads detail data of an inspection operation: characteristic requirements, recorded results, samples, single values and inspection points. It is used by result recording front ends and reports that compare specifications with results. Set only the READ_ flags you need to keep the call fast.

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

Importing parameters

ParameterTypeDescriptionRequired
INSPLOTBAPI2045L2-INSPLOTInspection lot numberYes
INSPOPERBAPI2045L2-INSPOPERInspection operation numberYes
READ_INSPPOINTSBAPI2045S1-IND_X_OR_BLANKRead inspection points—
READ_CHAR_REQUIREMENTSBAPI2045S1-IND_X_OR_BLANKRead characteristic requirements—
READ_CHAR_RESULTSBAPI2045S1-IND_X_OR_BLANKRead characteristic results—
READ_SAMPLE_RESULTSBAPI2045S1-IND_X_OR_BLANKRead sample results—
READ_SINGLE_RESULTSBAPI2045S1-IND_X_OR_BLANKRead single results—
INSPPOINT_FROMBAPI2045L4-INSPPOINTInspection point from—
MAX_INSPPOINTSBAPI2045S1-MAXROWSMaximum number of inspection points—
CHAR_FILTER_NOBAPI2045S1-FILTERCharacteristic filter—
CHAR_FILTER_TCODEBAPI2045S1-FILTER_TCODECharacteristic filter by transaction—

Exporting parameters

ParameterTypeDescription
OPERATIONBAPI2045L2Inspection operation data
INSPPOINT_REQUIREMENTSBAPI2045D5Inspection point requirements
RETURNBAPIRET2Return messages

Tables parameters

ParameterTypeDescriptionRequired
INSPPOINTSBAPI2045L4Inspection points—
CHAR_REQUIREMENTSBAPI2045D1Characteristic requirements—
CHAR_RESULTSBAPI2045D2Characteristic results—
SAMPLE_RESULTSBAPI2045D3Sample results—
SINGLE_RESULTSBAPI2045D4Single results—

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_INSPOPER_GETDETAIL'
  EXPORTING
    insplot = lv_insplot
    inspoper = lv_inspoper
  IMPORTING
    operation = lv_operation
    insppoint_requirements = lv_insppoint_requirements
    return = lv_return
  TABLES
    insppoints = lt_insppoints
    char_requirements = lt_char_requirements
    char_results = lt_char_results
    sample_results = lt_sample_results
    single_results = lt_single_results.

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