Ansicht
Dokumentation

BAPI_HU_CREATE - Create handling unit with items

BAPI_HU_CREATE - Create handling unit with items

Vendor Master (General Section)   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this method to create non-assigned handling units without stock information. These handling units may also be created with items, if you like. Serial numbers can also be included for each handling-unit item at this point.
You can also create nested handling units by accessing this method more than once.

Example

Creating a non-assigned handling unit with packaging material PALLET with a "Planned HU" physical status:

HEADERPROPOSAL: pack_mat = 'PALETTE'
,,,,,,,, hu_status_init,,= 'A'.

Following access of the above method (example 1), the return parameter HUKEY returns the ID of the handling unit that was created in the KEY = ID1 field. To pack the handling unit that was just created in another handling unit, call up the BAPI_HU_CREATE method again with the following import parameters:

IHEADERPROPOSAL: pack_mat = 'CONTAINER'
ITEMPROPOS AL: hu_item_type = '3'

,,,,,,,, lower_level_key = ID1

You have now created a nested handling unit (a pallet inside a container).

Notes

Further information

For a more exact description of how a parameter is to be filled in, refer to the documentation for the parameter in question.





Parameters

CWM_HUITEM
CWM_ITEMSPROPOSAL
HEADERPROPOSAL
HUHEADER
HUITEM
HUKEY
ITEMSPROPOSAL
ITEMSSERIALNO
RETURN

Exceptions

Function Group

HU_BASIC_BAPIS

Vendor Master (General Section)   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 2292 Date: 20240523 Time: 091706     sap01-206 ( 35 ms )