SAP DATE_OF_ADVANCE_CREATE Function Module for
DATE_OF_ADVANCE_CREATE is a standard date of advance create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 date of advance create FM, simply by entering the name DATE_OF_ADVANCE_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FV02
Program Name: SAPLFV02
Main Program: SAPLFV02
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function DATE_OF_ADVANCE_CREATE 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 'DATE_OF_ADVANCE_CREATE'".
EXPORTING
I_AMMRHY = "Payment frequency
* I_ATTRHY = 0 "Payment frequency
I_DPERENDE = "
* I_SVORSCH = 3 "
* I_ULTKZ = ' ' "
IMPORTING
E_DFAELL = "
EXCEPTIONS
ULTKZ_AND_NO_END_OF_MONTH = 1
IMPORTING Parameters details for DATE_OF_ADVANCE_CREATE
I_AMMRHY - Payment frequency
Data type: VTBKOND-AMMRHYOptional: No
Call by Reference: No ( called with pass by value option)
I_ATTRHY - Payment frequency
Data type: VTBKOND-ATTRHYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DPERENDE -
Data type: VTBKOND-DVALUTOptional: No
Call by Reference: No ( called with pass by value option)
I_SVORSCH -
Data type:Default: 3
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ULTKZ -
Data type: VTBKOND-SVULTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for DATE_OF_ADVANCE_CREATE
E_DFAELL -
Data type: VTBKOND-DFAELLOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ULTKZ_AND_NO_END_OF_MONTH -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DATE_OF_ADVANCE_CREATE 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_dfaell | TYPE VTBKOND-DFAELL, " | |||
lv_i_ammrhy | TYPE VTBKOND-AMMRHY, " | |||
lv_ultkz_and_no_end_of_month | TYPE VTBKOND, " | |||
lv_i_attrhy | TYPE VTBKOND-ATTRHY, " 0 | |||
lv_i_dperende | TYPE VTBKOND-DVALUT, " | |||
lv_i_svorsch | TYPE VTBKOND, " 3 | |||
lv_i_ultkz | TYPE VTBKOND-SVULT. " SPACE |
  CALL FUNCTION 'DATE_OF_ADVANCE_CREATE' " |
EXPORTING | ||
I_AMMRHY | = lv_i_ammrhy | |
I_ATTRHY | = lv_i_attrhy | |
I_DPERENDE | = lv_i_dperende | |
I_SVORSCH | = lv_i_svorsch | |
I_ULTKZ | = lv_i_ultkz | |
IMPORTING | ||
E_DFAELL | = lv_e_dfaell | |
EXCEPTIONS | ||
ULTKZ_AND_NO_END_OF_MONTH = 1 | ||
. " DATE_OF_ADVANCE_CREATE |
ABAP code using 7.40 inline data declarations to call FM DATE_OF_ADVANCE_CREATE
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 DFAELL FROM VTBKOND INTO @DATA(ld_e_dfaell). | ||||
"SELECT single AMMRHY FROM VTBKOND INTO @DATA(ld_i_ammrhy). | ||||
"SELECT single ATTRHY FROM VTBKOND INTO @DATA(ld_i_attrhy). | ||||
"SELECT single DVALUT FROM VTBKOND INTO @DATA(ld_i_dperende). | ||||
DATA(ld_i_svorsch) | = 3. | |||
"SELECT single SVULT FROM VTBKOND INTO @DATA(ld_i_ultkz). | ||||
DATA(ld_i_ultkz) | = ' '. | |||
Search for further information about these or an SAP related objects