SAP SD_DEADLINE_MAINTAIN_NEW Function Module for NOTRANSL: Termine: neue Pflegefunktion mit Terminsegment
SD_DEADLINE_MAINTAIN_NEW is a standard sd deadline maintain new 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: Termine: neue Pflegefunktion mit Terminsegment 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 maintain new FM, simply by entering the name SD_DEADLINE_MAINTAIN_NEW 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_MAINTAIN_NEW 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_MAINTAIN_NEW'"NOTRANSL: Termine: neue Pflegefunktion mit Terminsegment.
EXPORTING
* I_DEADLINE_NO = ' ' "Deadline Object
* I_HANDLE = ' ' "
* I_DDL_EXIST = ' ' "
* I_DOCNUM = ' ' "
* I_TABLE_APPL = ' ' "Application Object
* OPT_DISPLAY = 'X' "
IMPORTING
E_DEADLINE_NO = "
E_HANDLE = "
E_DDL_EXIST = "
E_PRESSED_FCODE = "Function Code
E_LEAVE_TRANSACTION = "
E_CHANGE = "
E_SAVE = "
CHANGING
OBJ_WA = "
EXCEPTIONS
INVALID_TCODE = 1 NO_DEADLINES = 2 APP_ANCHOR_ERROR = 3 TSEG_CUST_ERROR = 4
IMPORTING Parameters details for SD_DEADLINE_MAINTAIN_NEW
I_DEADLINE_NO - Deadline Object
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_DDL_EXIST -
Data type: LIKP-TSEGFLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DOCNUM -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TABLE_APPL - Application Object
Data type: TTSEGOBJE-TABL_APPDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OPT_DISPLAY -
Data type: RV56A-SELKZDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SD_DEADLINE_MAINTAIN_NEW
E_DEADLINE_NO -
Data type: CAUFVD-AUFNROptional: No
Call by Reference: No ( called with pass by value option)
E_HANDLE -
Data type: TSEGHDLHDROptional: No
Call by Reference: No ( called with pass by value option)
E_DDL_EXIST -
Data type: LIKP-TSEGFLOptional: No
Call by Reference: No ( called with pass by value option)
E_PRESSED_FCODE - Function Code
Data type: SY-UCOMMOptional: No
Call by Reference: No ( called with pass by value option)
E_LEAVE_TRANSACTION -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
E_CHANGE -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
E_SAVE -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for SD_DEADLINE_MAINTAIN_NEW
OBJ_WA -
Data type:Optional: No
Call by Reference: Yes
EXCEPTIONS details
INVALID_TCODE - Invalid transaction code
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
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)
TSEG_CUST_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SD_DEADLINE_MAINTAIN_NEW 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_obj_wa | TYPE STRING, " | |||
| lv_e_deadline_no | TYPE CAUFVD-AUFNR, " | |||
| lv_invalid_tcode | TYPE CAUFVD, " | |||
| lv_i_deadline_no | TYPE CAUFVD-AUFNR, " SPACE | |||
| lv_e_handle | TYPE TSEGHDLHDR, " | |||
| lv_i_handle | TYPE TSEGHDLHDR, " SPACE | |||
| lv_no_deadlines | TYPE TSEGHDLHDR, " | |||
| lv_e_ddl_exist | TYPE LIKP-TSEGFL, " | |||
| lv_i_ddl_exist | TYPE LIKP-TSEGFL, " SPACE | |||
| lv_app_anchor_error | TYPE LIKP, " | |||
| lv_i_docnum | TYPE C, " SPACE | |||
| lv_e_pressed_fcode | TYPE SY-UCOMM, " | |||
| lv_tseg_cust_error | TYPE SY, " | |||
| lv_i_table_appl | TYPE TTSEGOBJE-TABL_APP, " SPACE | |||
| lv_e_leave_transaction | TYPE C, " | |||
| lv_e_change | TYPE C, " | |||
| lv_opt_display | TYPE RV56A-SELKZ, " 'X' | |||
| lv_e_save | TYPE C. " |
|   CALL FUNCTION 'SD_DEADLINE_MAINTAIN_NEW' "NOTRANSL: Termine: neue Pflegefunktion mit Terminsegment |
| EXPORTING | ||
| I_DEADLINE_NO | = lv_i_deadline_no | |
| I_HANDLE | = lv_i_handle | |
| I_DDL_EXIST | = lv_i_ddl_exist | |
| I_DOCNUM | = lv_i_docnum | |
| I_TABLE_APPL | = lv_i_table_appl | |
| OPT_DISPLAY | = lv_opt_display | |
| IMPORTING | ||
| E_DEADLINE_NO | = lv_e_deadline_no | |
| E_HANDLE | = lv_e_handle | |
| E_DDL_EXIST | = lv_e_ddl_exist | |
| E_PRESSED_FCODE | = lv_e_pressed_fcode | |
| E_LEAVE_TRANSACTION | = lv_e_leave_transaction | |
| E_CHANGE | = lv_e_change | |
| E_SAVE | = lv_e_save | |
| CHANGING | ||
| OBJ_WA | = lv_obj_wa | |
| EXCEPTIONS | ||
| INVALID_TCODE = 1 | ||
| NO_DEADLINES = 2 | ||
| APP_ANCHOR_ERROR = 3 | ||
| TSEG_CUST_ERROR = 4 | ||
| . " SD_DEADLINE_MAINTAIN_NEW | ||
ABAP code using 7.40 inline data declarations to call FM SD_DEADLINE_MAINTAIN_NEW
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_e_deadline_no). | ||||
| "SELECT single AUFNR FROM CAUFVD INTO @DATA(ld_i_deadline_no). | ||||
| DATA(ld_i_deadline_no) | = ' '. | |||
| DATA(ld_i_handle) | = ' '. | |||
| "SELECT single TSEGFL FROM LIKP INTO @DATA(ld_e_ddl_exist). | ||||
| "SELECT single TSEGFL FROM LIKP INTO @DATA(ld_i_ddl_exist). | ||||
| DATA(ld_i_ddl_exist) | = ' '. | |||
| DATA(ld_i_docnum) | = ' '. | |||
| "SELECT single UCOMM FROM SY INTO @DATA(ld_e_pressed_fcode). | ||||
| "SELECT single TABL_APP FROM TTSEGOBJE INTO @DATA(ld_i_table_appl). | ||||
| DATA(ld_i_table_appl) | = ' '. | |||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_opt_display). | ||||
| DATA(ld_opt_display) | = 'X'. | |||
Search for further information about these or an SAP related objects