SAP ISU_FIND_ROUTE_OF_DAY Function Module for Find Route for Date and Service Type
ISU_FIND_ROUTE_OF_DAY is a standard isu find route of day SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Find Route for Date and Service Type 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 isu find route of day FM, simply by entering the name ISU_FIND_ROUTE_OF_DAY into the relevant SAP transaction such as SE37 or SE38.
Function Group: EEWA_ORDER_DISPO
Program Name: SAPLEEWA_ORDER_DISPO
Main Program: SAPLEEWA_ORDER_DISPO
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISU_FIND_ROUTE_OF_DAY 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 'ISU_FIND_ROUTE_OF_DAY'"Find Route for Date and Service Type.
EXPORTING
* X_DATE = "Date and Time, Current (Application Server) Date
* XMAXRECORDS = 300 "Restrict Length of List
* X_ROUTE = "Planned Waste Disposal Order Route
* X_NO_CALID = "
* X_ORDER_HEAD = "Header Table for Waste Disposal Order
TABLES
* XT_PRDSERVICE = "
YT_EWAROUTE = "Header Table of Route
* XT_ISUWA_EWAOBJH = "Table of History Data on Service Frequency
EXCEPTIONS
NOT_QUALIFIED = 1 NOT_FOUND = 2
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLEEWA_ORDER_DISPO_001 Display Message After Capacity Check
IMPORTING Parameters details for ISU_FIND_ROUTE_OF_DAY
X_DATE - Date and Time, Current (Application Server) Date
Data type: SY-DATUMOptional: Yes
Call by Reference: Yes
XMAXRECORDS - Restrict Length of List
Data type: DDSHMAXRECDefault: 300
Optional: Yes
Call by Reference: Yes
X_ROUTE - Planned Waste Disposal Order Route
Data type: EROUTEOptional: Yes
Call by Reference: Yes
X_NO_CALID -
Data type: KENNZXOptional: Yes
Call by Reference: Yes
X_ORDER_HEAD - Header Table for Waste Disposal Order
Data type: EWA_ORDER_HEADOptional: Yes
Call by Reference: Yes
TABLES Parameters details for ISU_FIND_ROUTE_OF_DAY
XT_PRDSERVICE -
Data type: TPRDCTAREASTYPEOptional: Yes
Call by Reference: Yes
YT_EWAROUTE - Header Table of Route
Data type: EWAROUTEOptional: No
Call by Reference: Yes
XT_ISUWA_EWAOBJH - Table of History Data on Service Frequency
Data type: ISUWA_T_EWAOBJHOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NOT_QUALIFIED -
Data type:Optional: No
Call by Reference: Yes
NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISU_FIND_ROUTE_OF_DAY 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_x_date | TYPE SY-DATUM, " | |||
| lv_not_qualified | TYPE SY, " | |||
| lt_xt_prdservice | TYPE STANDARD TABLE OF TPRDCTAREASTYPE, " | |||
| lv_not_found | TYPE TPRDCTAREASTYPE, " | |||
| lv_xmaxrecords | TYPE DDSHMAXREC, " 300 | |||
| lt_yt_ewaroute | TYPE STANDARD TABLE OF EWAROUTE, " | |||
| lv_x_route | TYPE EROUTE, " | |||
| lt_xt_isuwa_ewaobjh | TYPE STANDARD TABLE OF ISUWA_T_EWAOBJH, " | |||
| lv_x_no_calid | TYPE KENNZX, " | |||
| lv_x_order_head | TYPE EWA_ORDER_HEAD. " |
|   CALL FUNCTION 'ISU_FIND_ROUTE_OF_DAY' "Find Route for Date and Service Type |
| EXPORTING | ||
| X_DATE | = lv_x_date | |
| XMAXRECORDS | = lv_xmaxrecords | |
| X_ROUTE | = lv_x_route | |
| X_NO_CALID | = lv_x_no_calid | |
| X_ORDER_HEAD | = lv_x_order_head | |
| TABLES | ||
| XT_PRDSERVICE | = lt_xt_prdservice | |
| YT_EWAROUTE | = lt_yt_ewaroute | |
| XT_ISUWA_EWAOBJH | = lt_xt_isuwa_ewaobjh | |
| EXCEPTIONS | ||
| NOT_QUALIFIED = 1 | ||
| NOT_FOUND = 2 | ||
| . " ISU_FIND_ROUTE_OF_DAY | ||
ABAP code using 7.40 inline data declarations to call FM ISU_FIND_ROUTE_OF_DAY
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 DATUM FROM SY INTO @DATA(ld_x_date). | ||||
| DATA(ld_xmaxrecords) | = 300. | |||
Search for further information about these or an SAP related objects