BAPI_SHIPMENT_CREATE Create Shipment
Creates a new shipment (VT01N) with header data, delivery items, stages, deadlines and handling units and returns the shipment number. It is used in interfaces that transfer plans from transportation planning systems or carrier portals into SAP. Pass mandatory header fields such as shipment type and transportation planning point in HEADERDATA, list the deliveries in ITEMDATA and call BAPI_TRANSACTION_COMMIT when there are no errors.
- Function group
- V56I_BAPI
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| HEADERDATA | BAPISHIPMENTHEADER | Shipment header data | Yes |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| TRANSPORT | BAPISHIPMENTIDS-SHIPMENTNUM | Created shipment number |
| SHIPMENTGUID | BAPISHIPMENTIDS-GUID | Shipment GUID |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| HEADERDEADLINE | BAPISHIPMENTHEADERDEADLINE | Header deadlines | — |
| ITEMDATA | BAPISHIPMENTITEM | Shipment items (deliveries) | — |
| STAGEDATA | BAPISHIPMENTSTAGE | Shipment stages | — |
| STAGEDEADLINE | BAPISHIPMENTSTAGEDEADLINE | Stage deadlines | — |
| ITEMONSTAGE | BAPISHIPMENTITEMONSTAGE | Items on stage | — |
| ADDRESS | BAPISHIPMENTADDRESS | Addresses | — |
| HDUNHEADER | BAPISHIPMENTHDUNHEADER | Handling unit headers | — |
| HDUNITEM | BAPISHIPMENTHDUNITEM | Handling unit items | — |
| RETURN | BAPIRET2 | Return messages | Yes |
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_SHIPMENT_CREATE'
EXPORTING
headerdata = lv_headerdata
IMPORTING
transport = lv_transport
shipmentguid = lv_shipmentguid
TABLES
headerdeadline = lt_headerdeadline
itemdata = lt_itemdata
stagedata = lt_stagedata
stagedeadline = lt_stagedeadline
itemonstage = lt_itemonstage
address = lt_address
hdunheader = lt_hdunheader
hdunitem = lt_hdunitem
return = lt_return.Related tables
Solutions using this function
Export Container Load Volume and Weight Planning Program
A custom program that calculates the gross weight and volume of export deliveries ready for loading from carton, roll or pallet dimensions, …
Vehicle Loading and Shipment Planning Program (Domestic and Export)
A custom planning program that groups deliveries ready for shipping by route and destination and proposes loads based on the weight, volume and pallet …
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.