SAP Function BAPI_HU_GETLIST - Read Handling Units from the Database

Parameter Reference Type Length Default Optional Text
NOTEXT BAPIHUCONTROL-FLAG_IF_WITH_TEXT C 1 SPACE X Indicator: Read Material Short Text
ONLYKEYS BAPIHUCONTROL-ONLY_KEYS C 1 'X' X Indicator: Key Only

Parameter Reference Length Optional Text
HIGHESTLEVEL BAPIHUINTERNAL 10 X Highest-Level HUs
HUHEADER BAPIHUHEADER 724 X Table of HU Headers
HUHISTORY BAPIHUHISTORY 56 X History Records of the HUs that Were Read
HUITEM BAPIHUITEM 384 X Table of HU Items
HUKEY BAPIHUKEY 20 X Key for the BOR: HU's External Number
HUNUMBERS BAPIHUNUMBER 20 X External Numbers of Requested HUs
HUOBJECTS BAPIHUOBJECT 22 X Object Description of the Handling Units to Be Processed
NOTFOUNDHUS BAPIHUNUMBER 20 X HUs That Were Not Found
RETURN BAPIRET2 548 Return Parameters

Functionality
This method returns all keys for the corresponding handling units orall headers and items including the higher- and lower-level handlingunits for a quantity of handling unit identificationsor for several objects.

Notes
If both import tables are entered, only one of the two are taken intoconsideration.
INCLUDE 'HU_GET_HUS IF_WITH_TEXT' OBJECT DOKU ID FU

Description
This indicator dictates whether the method returns only the keys or thedetailed data for the selected handling units.

Value range
space: the system returns detailed data
"X": the system returns the keys only

Default
"X"
INCLUDE 'HU_GET_HUS ET_HIGHEST_LEVELS' OBJECT DOKU ID
FU
INCLUDE 'BAPI_HU_CREATE HUHEADER' OBJECT DOKU ID FU

Description
History records for the desired HUs.
INCLUDE 'BAPI_HU_CREATE HUITEM' OBJECT DOKU ID FU

Description
Key of handling-unit instances that meet the selection criteria.
INCLUDE 'HU_GET_HUS IT_HUS' OBJECT DOKU ID FU

Description
Table that includes several object keys. A handling unit can beassigned to an object such as a production order, inbound delivery,outbound delivery, and so on. The OBJECT field should be filled in asfollows:
01,,Outbound delivery
02,,Sales document
03,,Inbound delivery
04,,Shipment
05,,WM transfer order
07,,Repetitive manufacturing
08,,Work order components
09,,Work order finished products
Example:
huobjects-object = '01', huobjects-objkey = '0080004711 '.
The system returns all handling units related to delivery 80004711.

Description
Table containing the HU identifications for which no handling unitswere found.
INCLUDE 'BAPI_HU_CREATE RETURN' OBJECT DOKU ID FU