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
| Parameter | Type | Description | Required |
|---|---|---|---|
| I_TKNUM | VTTK-TKNUM | Shipment number | Yes |
| I_STATUS | VTTK-STTRG | Status to be set | Yes |
| OPT_DIALOG | RV56A-SELKZ | Run in dialog mode | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| E_SAVE_LOG | C | Save log indicator |
Changing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| C_ERROR_WARNING_OCCURED | C | Error/warning occurred indicator | Yes |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| C_LOGFILE | SPROT_U | Processing log | Yes |
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.