SAP SD_DEADLINE_MIGRATION Function Module for NOTRANSL: Umsetzung der Versandtermine im Dialog
SD_DEADLINE_MIGRATION is a standard sd deadline migration 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: Umsetzung der Versandtermine im Dialog 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 deadline migration FM, simply by entering the name SD_DEADLINE_MIGRATION into the relevant SAP transaction such as SE37 or SE38.
Function Group: V51T
Program Name: SAPLV51T
Main Program: SAPLV51T
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SD_DEADLINE_MIGRATION 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_DEADLINE_MIGRATION'"NOTRANSL: Umsetzung der Versandtermine im Dialog.
EXPORTING
* I_DEADLINE_NO = ' ' "
* I_HANDLE = ' ' "
* I_TABLE_APPL = ' ' "
I_OBJ_WA = "
IMPORTING
E_HANDLE = "
E_DEADLINE_NO = "
CHANGING
TSEG_DATA = "
EXCEPTIONS
NO_DEADLINES = 1 APP_ANCHOR_ERROR = 2
IMPORTING Parameters details for SD_DEADLINE_MIGRATION
I_DEADLINE_NO -
Data type: CAUFVD-AUFNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_HANDLE -
Data type: TSEGHDLHDRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TABLE_APPL -
Data type: TTSEGOBJE-TABL_APPDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OBJ_WA -
Data type:Optional: No
Call by Reference: Yes
EXPORTING Parameters details for SD_DEADLINE_MIGRATION
E_HANDLE -
Data type: TSEGHDLHDROptional: No
Call by Reference: No ( called with pass by value option)
E_DEADLINE_NO -
Data type: LIKP-TERNROptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for SD_DEADLINE_MIGRATION
TSEG_DATA -
Data type: TSEG_VTSEGTABOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_DEADLINES - No Dates Exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
APP_ANCHOR_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SD_DEADLINE_MIGRATION 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_e_handle | TYPE TSEGHDLHDR, " | |||
| lv_tseg_data | TYPE TSEG_VTSEGTAB, " | |||
| lv_no_deadlines | TYPE TSEG_VTSEGTAB, " | |||
| lv_i_deadline_no | TYPE CAUFVD-AUFNR, " SPACE | |||
| lv_i_handle | TYPE TSEGHDLHDR, " SPACE | |||
| lv_e_deadline_no | TYPE LIKP-TERNR, " | |||
| lv_app_anchor_error | TYPE LIKP, " | |||
| lv_i_table_appl | TYPE TTSEGOBJE-TABL_APP, " SPACE | |||
| lv_i_obj_wa | TYPE TTSEGOBJE. " |
|   CALL FUNCTION 'SD_DEADLINE_MIGRATION' "NOTRANSL: Umsetzung der Versandtermine im Dialog |
| EXPORTING | ||
| I_DEADLINE_NO | = lv_i_deadline_no | |
| I_HANDLE | = lv_i_handle | |
| I_TABLE_APPL | = lv_i_table_appl | |
| I_OBJ_WA | = lv_i_obj_wa | |
| IMPORTING | ||
| E_HANDLE | = lv_e_handle | |
| E_DEADLINE_NO | = lv_e_deadline_no | |
| CHANGING | ||
| TSEG_DATA | = lv_tseg_data | |
| EXCEPTIONS | ||
| NO_DEADLINES = 1 | ||
| APP_ANCHOR_ERROR = 2 | ||
| . " SD_DEADLINE_MIGRATION | ||
ABAP code using 7.40 inline data declarations to call FM SD_DEADLINE_MIGRATION
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 AUFNR FROM CAUFVD INTO @DATA(ld_i_deadline_no). | ||||
| DATA(ld_i_deadline_no) | = ' '. | |||
| DATA(ld_i_handle) | = ' '. | |||
| "SELECT single TERNR FROM LIKP INTO @DATA(ld_e_deadline_no). | ||||
| "SELECT single TABL_APP FROM TTSEGOBJE INTO @DATA(ld_i_table_appl). | ||||
| DATA(ld_i_table_appl) | = ' '. | |||
Search for further information about these or an SAP related objects