SAP BORRS_ROUTE_SCHEDULING Function Module for Scheduling by route stage
BORRS_ROUTE_SCHEDULING is a standard borrs route scheduling SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Scheduling by route stage 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 borrs route scheduling FM, simply by entering the name BORRS_ROUTE_SCHEDULING into the relevant SAP transaction such as SE37 or SE38.
Function Group: BORRS
Program Name: SAPLBORRS
Main Program: SAPLBORRS
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BORRS_ROUTE_SCHEDULING 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 'BORRS_ROUTE_SCHEDULING'"Scheduling by route stage.
EXPORTING
IF_ROUTE = "Route
* IF_TIMESTAMP = "
* CS_ROUTEWA = "
* IF_POINT_FROM = "Departure Point
* IF_POINT_TO = "Destination point
* IF_WAITTIME_FROM = ' ' "
* IF_WAITTIME_TO = ' ' "
* IF_DIRECTION = '1' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* IF_NO_TIMES_BACKWARD = ' ' "
* IF_DATELOCAL = "Predefined Type
* IF_TIMELOCAL = "Predefined Type
IMPORTING
EF_DATELOCAL = "Predefined Type
EF_TIMELOCAL = "Predefined Type
EF_TIMESTAMP = "
ET_POINTTIMES = "
CHANGING
CT_BALM = "
EXCEPTIONS
FATAL_ERROR = 1
IMPORTING Parameters details for BORRS_ROUTE_SCHEDULING
IF_ROUTE - Route
Data type: TVRO-ROUTEOptional: No
Call by Reference: No ( called with pass by value option)
IF_TIMESTAMP -
Data type: TSTR_TIMESTAMPOptional: Yes
Call by Reference: No ( called with pass by value option)
CS_ROUTEWA -
Data type: BORRS_ROUTEWAOptional: Yes
Call by Reference: No ( called with pass by value option)
IF_POINT_FROM - Departure Point
Data type: TVRAB-KNANFOptional: Yes
Call by Reference: No ( called with pass by value option)
IF_POINT_TO - Destination point
Data type: TVRAB-KNENDOptional: Yes
Call by Reference: No ( called with pass by value option)
IF_WAITTIME_FROM -
Data type: BORRS_XFLAGDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IF_WAITTIME_TO -
Data type: BORRS_XFLAGDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IF_DIRECTION - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: BORRS_XFLAGDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IF_NO_TIMES_BACKWARD -
Data type: BORRS_XFLAGDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IF_DATELOCAL - Predefined Type
Data type: DOptional: Yes
Call by Reference: No ( called with pass by value option)
IF_TIMELOCAL - Predefined Type
Data type: TOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BORRS_ROUTE_SCHEDULING
EF_DATELOCAL - Predefined Type
Data type: DOptional: No
Call by Reference: No ( called with pass by value option)
EF_TIMELOCAL - Predefined Type
Data type: TOptional: No
Call by Reference: No ( called with pass by value option)
EF_TIMESTAMP -
Data type: TSTR_TIMESTAMPOptional: No
Call by Reference: No ( called with pass by value option)
ET_POINTTIMES -
Data type: BORRS_POINTTIMETABOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for BORRS_ROUTE_SCHEDULING
CT_BALM -
Data type: BORRS_BALMTABOptional: No
Call by Reference: Yes
EXCEPTIONS details
FATAL_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BORRS_ROUTE_SCHEDULING 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_ct_balm | TYPE BORRS_BALMTAB, " | |||
| lv_if_route | TYPE TVRO-ROUTE, " | |||
| lv_fatal_error | TYPE TVRO, " | |||
| lv_ef_datelocal | TYPE D, " | |||
| lv_if_timestamp | TYPE TSTR_TIMESTAMP, " | |||
| lv_cs_routewa | TYPE BORRS_ROUTEWA, " | |||
| lv_ef_timelocal | TYPE T, " | |||
| lv_if_point_from | TYPE TVRAB-KNANF, " | |||
| lv_if_point_to | TYPE TVRAB-KNEND, " | |||
| lv_ef_timestamp | TYPE TSTR_TIMESTAMP, " | |||
| lv_et_pointtimes | TYPE BORRS_POINTTIMETAB, " | |||
| lv_if_waittime_from | TYPE BORRS_XFLAG, " ' ' | |||
| lv_if_waittime_to | TYPE BORRS_XFLAG, " ' ' | |||
| lv_if_direction | TYPE BORRS_XFLAG, " '1' | |||
| lv_if_no_times_backward | TYPE BORRS_XFLAG, " ' ' | |||
| lv_if_datelocal | TYPE D, " | |||
| lv_if_timelocal | TYPE T. " |
|   CALL FUNCTION 'BORRS_ROUTE_SCHEDULING' "Scheduling by route stage |
| EXPORTING | ||
| IF_ROUTE | = lv_if_route | |
| IF_TIMESTAMP | = lv_if_timestamp | |
| CS_ROUTEWA | = lv_cs_routewa | |
| IF_POINT_FROM | = lv_if_point_from | |
| IF_POINT_TO | = lv_if_point_to | |
| IF_WAITTIME_FROM | = lv_if_waittime_from | |
| IF_WAITTIME_TO | = lv_if_waittime_to | |
| IF_DIRECTION | = lv_if_direction | |
| IF_NO_TIMES_BACKWARD | = lv_if_no_times_backward | |
| IF_DATELOCAL | = lv_if_datelocal | |
| IF_TIMELOCAL | = lv_if_timelocal | |
| IMPORTING | ||
| EF_DATELOCAL | = lv_ef_datelocal | |
| EF_TIMELOCAL | = lv_ef_timelocal | |
| EF_TIMESTAMP | = lv_ef_timestamp | |
| ET_POINTTIMES | = lv_et_pointtimes | |
| CHANGING | ||
| CT_BALM | = lv_ct_balm | |
| EXCEPTIONS | ||
| FATAL_ERROR = 1 | ||
| . " BORRS_ROUTE_SCHEDULING | ||
ABAP code using 7.40 inline data declarations to call FM BORRS_ROUTE_SCHEDULING
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 ROUTE FROM TVRO INTO @DATA(ld_if_route). | ||||
| "SELECT single KNANF FROM TVRAB INTO @DATA(ld_if_point_from). | ||||
| "SELECT single KNEND FROM TVRAB INTO @DATA(ld_if_point_to). | ||||
| DATA(ld_if_waittime_from) | = ' '. | |||
| DATA(ld_if_waittime_to) | = ' '. | |||
| DATA(ld_if_direction) | = '1'. | |||
| DATA(ld_if_no_times_backward) | = ' '. | |||
Search for further information about these or an SAP related objects