SAP SD_NEXT_ACTION_DATE_ORDER Function Module for NOTRANSL: Kredit: Ermitteln nächstes Versandatum eines Auftrages
SD_NEXT_ACTION_DATE_ORDER is a standard sd next action date order 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: Kredit: Ermitteln nächstes Versandatum eines Auftrages 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 next action date order FM, simply by entering the name SD_NEXT_ACTION_DATE_ORDER into the relevant SAP transaction such as SE37 or SE38.
Function Group: VKMP
Program Name: SAPLVKMP
Main Program: SAPLVKMP
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SD_NEXT_ACTION_DATE_ORDER 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_NEXT_ACTION_DATE_ORDER'"NOTRANSL: Kredit: Ermitteln nächstes Versandatum eines Auftrages.
EXPORTING
* I_HORIZON = ' ' "
* I_HORIZON_ACTIVE = ' ' "
* OLFMNG_ERMITTELN = 'X' "Open qty of VBEPVB has to be determined
XVBAK = "Order header is new
* I_HORIZON_DATE = "
* IV_SORTED = ' ' "
IMPORTING
CMNGV = "Next planned shipping date
CMNUP = "Next check
TABLES
XVBAP = "Order item is new
XVBEP = "Order schedule lines are new
XVBFA = "Order flow is new
XVBUK = "Order header status is new
XVBUP = "Order item status is new
IMPORTING Parameters details for SD_NEXT_ACTION_DATE_ORDER
I_HORIZON -
Data type: T691F-WSWINDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_HORIZON_ACTIVE -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OLFMNG_ERMITTELN - Open qty of VBEPVB has to be determined
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
XVBAK - Order header is new
Data type: VBAKOptional: No
Call by Reference: No ( called with pass by value option)
I_HORIZON_DATE -
Data type: SY-DATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_SORTED -
Data type: BOOLEANDefault: SPACE
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for SD_NEXT_ACTION_DATE_ORDER
CMNGV - Next planned shipping date
Data type: VBAK-CMNGVOptional: No
Call by Reference: No ( called with pass by value option)
CMNUP - Next check
Data type: VBAK-CMNUPOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SD_NEXT_ACTION_DATE_ORDER
XVBAP - Order item is new
Data type: VBAPVBOptional: No
Call by Reference: No ( called with pass by value option)
XVBEP - Order schedule lines are new
Data type: VBEPVBOptional: No
Call by Reference: No ( called with pass by value option)
XVBFA - Order flow is new
Data type: VBFAVBOptional: No
Call by Reference: No ( called with pass by value option)
XVBUK - Order header status is new
Data type: VBUKVBOptional: No
Call by Reference: No ( called with pass by value option)
XVBUP - Order item status is new
Data type: VBUPVBOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SD_NEXT_ACTION_DATE_ORDER 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_cmngv | TYPE VBAK-CMNGV, " | |||
| lt_xvbap | TYPE STANDARD TABLE OF VBAPVB, " | |||
| lv_i_horizon | TYPE T691F-WSWIN, " SPACE | |||
| lv_cmnup | TYPE VBAK-CMNUP, " | |||
| lt_xvbep | TYPE STANDARD TABLE OF VBEPVB, " | |||
| lv_i_horizon_active | TYPE VBEPVB, " SPACE | |||
| lt_xvbfa | TYPE STANDARD TABLE OF VBFAVB, " | |||
| lv_olfmng_ermitteln | TYPE VBFAVB, " 'X' | |||
| lv_xvbak | TYPE VBAK, " | |||
| lt_xvbuk | TYPE STANDARD TABLE OF VBUKVB, " | |||
| lt_xvbup | TYPE STANDARD TABLE OF VBUPVB, " | |||
| lv_i_horizon_date | TYPE SY-DATUM, " | |||
| lv_iv_sorted | TYPE BOOLEAN. " SPACE |
|   CALL FUNCTION 'SD_NEXT_ACTION_DATE_ORDER' "NOTRANSL: Kredit: Ermitteln nächstes Versandatum eines Auftrages |
| EXPORTING | ||
| I_HORIZON | = lv_i_horizon | |
| I_HORIZON_ACTIVE | = lv_i_horizon_active | |
| OLFMNG_ERMITTELN | = lv_olfmng_ermitteln | |
| XVBAK | = lv_xvbak | |
| I_HORIZON_DATE | = lv_i_horizon_date | |
| IV_SORTED | = lv_iv_sorted | |
| IMPORTING | ||
| CMNGV | = lv_cmngv | |
| CMNUP | = lv_cmnup | |
| TABLES | ||
| XVBAP | = lt_xvbap | |
| XVBEP | = lt_xvbep | |
| XVBFA | = lt_xvbfa | |
| XVBUK | = lt_xvbuk | |
| XVBUP | = lt_xvbup | |
| . " SD_NEXT_ACTION_DATE_ORDER | ||
ABAP code using 7.40 inline data declarations to call FM SD_NEXT_ACTION_DATE_ORDER
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 CMNGV FROM VBAK INTO @DATA(ld_cmngv). | ||||
| "SELECT single WSWIN FROM T691F INTO @DATA(ld_i_horizon). | ||||
| DATA(ld_i_horizon) | = ' '. | |||
| "SELECT single CMNUP FROM VBAK INTO @DATA(ld_cmnup). | ||||
| DATA(ld_i_horizon_active) | = ' '. | |||
| DATA(ld_olfmng_ermitteln) | = 'X'. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_horizon_date). | ||||
| DATA(ld_iv_sorted) | = ' '. | |||
Search for further information about these or an SAP related objects