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

BAPI_SHIPMENT_CHANGE Change Shipment

Changes the header data, delivery items, stages, deadlines and handling units of an existing shipment (VT02N); for each data table a separate ACTION table specifies whether rows are added, changed or deleted. It is used in interfaces that post status and date information (start of loading, shipment completion) from logistics service providers into SAP. Fill the matching ACTION structure for every field you want to change and call BAPI_TRANSACTION_COMMIT when there are no errors.

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

Importing parameters

ParameterTypeDescriptionRequired
HEADERDATABAPISHIPMENTHEADERShipment header dataYes
HEADERDATAACTIONBAPISHIPMENTHEADERACTIONHeader change indicatorsYes
TECHNCONTROLBAPISHIPMENTCONTROLTechnical control data—

Tables parameters

ParameterTypeDescriptionRequired
HEADERDEADLINEBAPISHIPMENTHEADERDEADLINEHeader deadlines—
HEADERDEADLINEACTIONBAPISHIPMENTHEADERDEADLINEACTHeader deadline change indicators—
ITEMDATABAPISHIPMENTITEMShipment items (deliveries)—
ITEMDATAACTIONBAPISHIPMENTITEMACTIONItem change indicators—
STAGEDATABAPISHIPMENTSTAGEShipment stages—
STAGEDATAACTIONBAPISHIPMENTSTAGEACTIONStage change indicators—
STAGEDEADLINEBAPISHIPMENTSTAGEDEADLINEStage deadlines—
STAGEDEADLINEACTIONBAPISHIPMENTSTAGEDEADLINEACTStage deadline change indicators—
ITEMONSTAGEBAPISHIPMENTITEMONSTAGEItems on stage—
ITEMONSTAGEACTIONBAPISHIPMENTITEMONSTAGEACTIONItems on stage change indicators—
HDUNHEADERBAPISHIPMENTHDUNHEADERHandling unit headers—
HDUNHEADERACTIONBAPISHIPMENTHDUNHEADERACTIONHandling unit header change indicators—
ADDRESSBAPISHIPMENTADDRESSAddresses—
ADDRESSACTIONBAPISHIPMENTADDRESSACTIONAddress change indicators—
RETURNBAPIRET2Return messagesYes

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_CHANGE'
  EXPORTING
    headerdata = lv_headerdata
    headerdataaction = lv_headerdataaction
  TABLES
    headerdeadline = lt_headerdeadline
    headerdeadlineaction = lt_headerdeadlineaction
    itemdata = lt_itemdata
    itemdataaction = lt_itemdataaction
    stagedata = lt_stagedata
    stagedataaction = lt_stagedataaction
    stagedeadline = lt_stagedeadline
    stagedeadlineaction = lt_stagedeadlineaction
    itemonstage = lt_itemonstage
    itemonstageaction = lt_itemonstageaction.

Related tables

Solutions using this function

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