SAP SD_SHIPMENT_STATUS_SET Function Module for NOTRANSL: Status is einem Transport setzen (z.B. Abfertigen)
SD_SHIPMENT_STATUS_SET is a standard sd shipment status set SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Status is einem Transport setzen (z.B. Abfertigen) processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for sd shipment status set FM, simply by entering the name SD_SHIPMENT_STATUS_SET into the relevant SAP transaction such as SE37 or SE38.
Function Group: V56C
Program Name: SAPLV56C
Main Program: SAPLV56C
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SD_SHIPMENT_STATUS_SET pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'SD_SHIPMENT_STATUS_SET'"NOTRANSL: Status is einem Transport setzen (z.B. Abfertigen).
EXPORTING
I_TKNUM = "Shipment Number
I_STATUS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OPT_DIALOG = 'X' "DE-EN-LANG-SWITCH-NO-TRANSLATION
IMPORTING
E_SAVE_LOG = "DE-EN-LANG-SWITCH-NO-TRANSLATION
CHANGING
C_ERROR_WARNING_OCCURED = "DE-EN-LANG-SWITCH-NO-TRANSLATION
TABLES
C_LOGFILE = "Log
EXCEPTIONS
STATUS_NOT_SET = 1
IMPORTING Parameters details for SD_SHIPMENT_STATUS_SET
I_TKNUM - Shipment Number
Data type: VTTK-TKNUMOptional: No
Call by Reference: No ( called with pass by value option)
I_STATUS - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: VTTK-STTRGOptional: No
Call by Reference: No ( called with pass by value option)
OPT_DIALOG - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: RV56A-SELKZDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SD_SHIPMENT_STATUS_SET
E_SAVE_LOG - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for SD_SHIPMENT_STATUS_SET
C_ERROR_WARNING_OCCURED - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: COptional: No
Call by Reference: Yes
TABLES Parameters details for SD_SHIPMENT_STATUS_SET
C_LOGFILE - Log
Data type: SPROT_UOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
STATUS_NOT_SET - Status could not be set
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SD_SHIPMENT_STATUS_SET Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_i_tknum | TYPE VTTK-TKNUM, " | |||
| lt_c_logfile | TYPE STANDARD TABLE OF SPROT_U, " | |||
| lv_e_save_log | TYPE C, " | |||
| lv_status_not_set | TYPE C, " | |||
| lv_c_error_warning_occured | TYPE C, " | |||
| lv_i_status | TYPE VTTK-STTRG, " | |||
| lv_opt_dialog | TYPE RV56A-SELKZ. " 'X' |
|   CALL FUNCTION 'SD_SHIPMENT_STATUS_SET' "NOTRANSL: Status is einem Transport setzen (z.B. Abfertigen) |
| EXPORTING | ||
| I_TKNUM | = lv_i_tknum | |
| I_STATUS | = lv_i_status | |
| OPT_DIALOG | = lv_opt_dialog | |
| 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 | ||
| . " SD_SHIPMENT_STATUS_SET | ||
ABAP code using 7.40 inline data declarations to call FM SD_SHIPMENT_STATUS_SET
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single TKNUM FROM VTTK INTO @DATA(ld_i_tknum). | ||||
| "SELECT single STTRG FROM VTTK INTO @DATA(ld_i_status). | ||||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_opt_dialog). | ||||
| DATA(ld_opt_dialog) | = 'X'. | |||
Search for further information about these or an SAP related objects