Fonction SAP BAPI_HU_PACK - BAPI for Packing an Item into an HU

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
HUKEY BAPIHUKEY-HU_EXID C 20 External Handling Unit Identification
ITEMPROPOSAL BAPIHUITMPROPOSAL u 236 Default for HU Item Creation

Paramètre Reférence Type Long. Description
HUHEADER BAPIHUHEADER u 724 Handling Unit Header
HUITEM BAPIHUITEM u 384 Handling Unit Item That Was Created

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 Return Parameters
SERIALNUMBERS BAPIHUITMSERIAL 90 X Serial Numbers for a Handling Unit Item

Functionality
Packing in a handling unit. If the handling unit already contains thematerial that is to be packed with the same stock category, theexisting item is increased by the corresponding quantity. If thematerial that is to be packed does not exist yet in the handling unit(or if the object that is to be packed is a handling unit), the systemadds a new item.

Example
Handling unit 4712 is to be packed into a handling unit with externalidentification 4711.
HUKEY-HU_EXID = '4711'.
ITEMPROPOSAL:
,,,,,,,,HU_ITEM_TYPE = '3'.
,,,,,,,,LOWER_LEVEL_EXID = '4712'.
INCLUDE 'BAPI_HU_CREATE HUHEADER' OBJECT DOKU ID FU

Description
This structure returns the item data for the handling unit that wascreated.
INCLUDE 'BAPI_HU_DELETE HUKEY' OBJECT DOKU ID FU
INCLUDE 'BAPI_HU_CREATE ITEMSPROPOSAL' OBJECT DOKU ID FU
INCLUDE 'BAPI_HU_CREATE RETURN' OBJECT DOKU ID FU

Description
Table for including serial numbers for the proposed item.
SERIAL_NO : Field where you can enter the serial number.
The number of serial numbers in this table should agree with theNO_OF_SERIAL_NUMBERS field of the ITEMPROPOSAL import parameter. Theremust also be a plant specified for the proposed material.

1167867Debugging for handling unit BAPIs