SAP SD_COND_DATE_TO_DEFAULT Function Module for NOTRANSL: T685 Datum bis Vorschlag
SD_COND_DATE_TO_DEFAULT is a standard sd cond date to default 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: T685 Datum bis Vorschlag 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 cond date to default FM, simply by entering the name SD_COND_DATE_TO_DEFAULT into the relevant SAP transaction such as SE37 or SE38.
Function Group: V15E
Program Name: SAPLV15E
Main Program: SAPLV15E
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SD_COND_DATE_TO_DEFAULT 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_COND_DATE_TO_DEFAULT'"NOTRANSL: T685 Datum bis Vorschlag.
EXPORTING
DTD_DATAB = "Date from
DTD_DATBI = "Date to
DTD_DATVO = "Date proposal from T685
* DTB_KALID = ' ' "
IMPORTING
DTD_DATBI = "Date to
EXCEPTIONS
CALENDAR_BUFFER_NOT_LOADABLE = 1 DATE_AFTER_RANGE = 2 FACTORY_CALENDAR_NOT_FOUND = 3
IMPORTING Parameters details for SD_COND_DATE_TO_DEFAULT
DTD_DATAB - Date from
Data type: VAKE-DATABOptional: No
Call by Reference: No ( called with pass by value option)
DTD_DATBI - Date to
Data type: VAKE-DATBIOptional: No
Call by Reference: No ( called with pass by value option)
DTD_DATVO - Date proposal from T685
Data type: T685-DATVOOptional: No
Call by Reference: No ( called with pass by value option)
DTB_KALID -
Data type: KONA-IDENT2Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SD_COND_DATE_TO_DEFAULT
DTD_DATBI - Date to
Data type: VAKE-DATBIOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CALENDAR_BUFFER_NOT_LOADABLE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DATE_AFTER_RANGE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FACTORY_CALENDAR_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SD_COND_DATE_TO_DEFAULT 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_dtd_datab | TYPE VAKE-DATAB, " | |||
| lv_dtd_datbi | TYPE VAKE-DATBI, " | |||
| lv_calendar_buffer_not_loadable | TYPE VAKE, " | |||
| lv_dtd_datbi | TYPE VAKE-DATBI, " | |||
| lv_date_after_range | TYPE VAKE, " | |||
| lv_dtd_datvo | TYPE T685-DATVO, " | |||
| lv_factory_calendar_not_found | TYPE T685, " | |||
| lv_dtb_kalid | TYPE KONA-IDENT2. " ' ' |
|   CALL FUNCTION 'SD_COND_DATE_TO_DEFAULT' "NOTRANSL: T685 Datum bis Vorschlag |
| EXPORTING | ||
| DTD_DATAB | = lv_dtd_datab | |
| DTD_DATBI | = lv_dtd_datbi | |
| DTD_DATVO | = lv_dtd_datvo | |
| DTB_KALID | = lv_dtb_kalid | |
| IMPORTING | ||
| DTD_DATBI | = lv_dtd_datbi | |
| EXCEPTIONS | ||
| CALENDAR_BUFFER_NOT_LOADABLE = 1 | ||
| DATE_AFTER_RANGE = 2 | ||
| FACTORY_CALENDAR_NOT_FOUND = 3 | ||
| . " SD_COND_DATE_TO_DEFAULT | ||
ABAP code using 7.40 inline data declarations to call FM SD_COND_DATE_TO_DEFAULT
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 DATAB FROM VAKE INTO @DATA(ld_dtd_datab). | ||||
| "SELECT single DATBI FROM VAKE INTO @DATA(ld_dtd_datbi). | ||||
| "SELECT single DATBI FROM VAKE INTO @DATA(ld_dtd_datbi). | ||||
| "SELECT single DATVO FROM T685 INTO @DATA(ld_dtd_datvo). | ||||
| "SELECT single IDENT2 FROM KONA INTO @DATA(ld_dtb_kalid). | ||||
| DATA(ld_dtb_kalid) | = ' '. | |||
Search for further information about these or an SAP related objects