SD Function module Used the same way in S/4HANA

SD_SHIPMENT_STATUS_SET Set Status in Shipment

Sets one of the statuses of a shipment such as planning, check-in, loading start/end, shipment completion, shipment start/end, and runs the processing linked to that status (e.g. triggering goods issue). It is used in programs that automate the transportation flow and in handheld terminal applications. Pass the status value according to the VTTK-STTRG codes, read the log from the C_LOGFILE table and handle the STATUS_NOT_SET exception.

Function group
V56C
Remote-enabled (RFC)
No
Type
Function module

Importing parameters

ParameterTypeDescriptionRequired
I_TKNUMVTTK-TKNUMShipment numberYes
I_STATUSVTTK-STTRGStatus to be setYes
OPT_DIALOGRV56A-SELKZRun in dialog mode—

Exporting parameters

ParameterTypeDescription
E_SAVE_LOGCSave log indicator

Changing parameters

ParameterTypeDescriptionRequired
C_ERROR_WARNING_OCCUREDCError/warning occurred indicatorYes

Tables parameters

ParameterTypeDescriptionRequired
C_LOGFILESPROT_UProcessing logYes

Exceptions

  • STATUS_NOT_SET — Status not set

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 'SD_SHIPMENT_STATUS_SET'
  EXPORTING
    i_tknum = lv_i_tknum
    i_status = lv_i_status
  IMPORTING
    e_save_log = lv_e_save_log
  CHANGING
    c_error_warning_occured = lv_c_error_warning_occured
  TABLES
    c_logfile = lt_c_logfile
  EXCEPTIONS
    status_not_set = 1
    OTHERS = 2.

Related tables

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