SAP BORRS_SIMULATE_ETA_CALCULATION Function Module for NOTRANSL: Simulation der ETA-Kalkulation für eine individuelle Route









BORRS_SIMULATE_ETA_CALCULATION is a standard borrs simulate eta calculation 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: Simulation der ETA-Kalkulation für eine individuelle Route 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 simulate eta calculation FM, simply by entering the name BORRS_SIMULATE_ETA_CALCULATION 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_SIMULATE_ETA_CALCULATION 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_SIMULATE_ETA_CALCULATION'"NOTRANSL: Simulation der ETA-Kalkulation für eine individuelle Route
EXPORTING
IF_ROUTE = "Route
* IF_TIMESTAMP = "TimeStamp
* IF_BYPASS_SELECTION = ' ' "
* IF_ARR_DEPRT_START_END = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* INT_TVRO = "Generated Table for View
* IF_BYPASS_ALL_SCREENS = ' ' "
* IF_POINT_FROM = "Departure Point
* IF_POINT_TO = "Destination point
* IF_WAITTIME_FROM = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* IF_WAITTIME_TO = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* IF_DIRECTION = '1' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* IF_NO_TIMES_BACKWARD = ' ' "
* IF_DATELOCAL = "Predefined Type
* IF_TIMELOCAL = "Predefined Type

IMPORTING
ET_POINTTIMES = "

CHANGING
CT_BALM = "

TABLES
* INT_TVRAB = "Generated Table for View
* INT_TVKN = "Generated Table for View

EXCEPTIONS
FATAL_ERROR = 1
.



IMPORTING Parameters details for BORRS_SIMULATE_ETA_CALCULATION

IF_ROUTE - Route

Data type: TVRO-ROUTE
Optional: No
Call by Reference: No ( called with pass by value option)

IF_TIMESTAMP - TimeStamp

Data type: TSTR_TIMESTAMP
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_BYPASS_SELECTION -

Data type: BORRS_XFLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_ARR_DEPRT_START_END - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: BORRS_XFLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

INT_TVRO - Generated Table for View

Data type: V_TVRO_COM
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_BYPASS_ALL_SCREENS -

Data type: BORRS_XFLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_POINT_FROM - Departure Point

Data type: TVRAB-KNANF
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_POINT_TO - Destination point

Data type: TVRAB-KNEND
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_WAITTIME_FROM - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: BORRS_XFLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_WAITTIME_TO - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: BORRS_XFLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_DIRECTION - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: BORRS_XFLAG
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_NO_TIMES_BACKWARD -

Data type: BORRS_XFLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_DATELOCAL - Predefined Type

Data type: D
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_TIMELOCAL - Predefined Type

Data type: T
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for BORRS_SIMULATE_ETA_CALCULATION

ET_POINTTIMES -

Data type: BORRS_POINTTIMETAB
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for BORRS_SIMULATE_ETA_CALCULATION

CT_BALM -

Data type: BORRS_BALMTAB
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for BORRS_SIMULATE_ETA_CALCULATION

INT_TVRAB - Generated Table for View

Data type: V_TVRAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

INT_TVKN - Generated Table for View

Data type: V_TVKN_COM
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

FATAL_ERROR - Fatal Errors

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for BORRS_SIMULATE_ETA_CALCULATION 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, "   
lt_int_tvrab  TYPE STANDARD TABLE OF V_TVRAB, "   
lv_fatal_error  TYPE V_TVRAB, "   
lv_et_pointtimes  TYPE BORRS_POINTTIMETAB, "   
lv_if_timestamp  TYPE TSTR_TIMESTAMP, "   
lv_if_bypass_selection  TYPE BORRS_XFLAG, "   ' '
lv_if_arr_deprt_start_end  TYPE BORRS_XFLAG, "   ' '
lv_int_tvro  TYPE V_TVRO_COM, "   
lv_if_bypass_all_screens  TYPE BORRS_XFLAG, "   ' '
lt_int_tvkn  TYPE STANDARD TABLE OF V_TVKN_COM, "   
lv_if_point_from  TYPE TVRAB-KNANF, "   
lv_if_point_to  TYPE TVRAB-KNEND, "   
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_SIMULATE_ETA_CALCULATION'  "NOTRANSL: Simulation der ETA-Kalkulation für eine individuelle Route
    EXPORTING
         IF_ROUTE = lv_if_route
         IF_TIMESTAMP = lv_if_timestamp
         IF_BYPASS_SELECTION = lv_if_bypass_selection
         IF_ARR_DEPRT_START_END = lv_if_arr_deprt_start_end
         INT_TVRO = lv_int_tvro
         IF_BYPASS_ALL_SCREENS = lv_if_bypass_all_screens
         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
         ET_POINTTIMES = lv_et_pointtimes
    CHANGING
         CT_BALM = lv_ct_balm
    TABLES
         INT_TVRAB = lt_int_tvrab
         INT_TVKN = lt_int_tvkn
    EXCEPTIONS
        FATAL_ERROR = 1
. " BORRS_SIMULATE_ETA_CALCULATION




ABAP code using 7.40 inline data declarations to call FM BORRS_SIMULATE_ETA_CALCULATION

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).
 
 
 
 
 
DATA(ld_if_bypass_selection) = ' '.
 
DATA(ld_if_arr_deprt_start_end) = ' '.
 
 
DATA(ld_if_bypass_all_screens) = ' '.
 
 
"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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!