SAP EXIT_SAPL0VRF_001 Function Module for Customer-Specific Route Determination
EXIT_SAPL0VRF_001 is a standard exit sapl0vrf 001 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Customer-Specific Route Determination 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 exit sapl0vrf 001 FM, simply by entering the name EXIT_SAPL0VRF_001 into the relevant SAP transaction such as SE37 or SE38.
Function Group: XV00
Program Name: SAPLXV00
Main Program:
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EXIT_SAPL0VRF_001 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 'EXIT_SAPL0VRF_001'"Customer-Specific Route Determination.
EXPORTING
* I_VBAK = "Order Header
* I_VBKD = "Order Commercial Data
* I_VBAP = "Order Item
* I_LIKP = "Delivery Header
IMPORTING
E_ROUTE = "Route Found
CHANGING
C_ALAND = "Country of Departure
C_FLAG_INCR_GRULG = "Flag: Increase Weight Group if no Route
C_AZONE = "Departure Zone
C_LLAND = "Destination Country
C_LZONE = "Destination Zone
C_VSBED = "Shipping Conditions
C_TRAGR = "Transportation Group
C_GRULG = "Weight Group
C_FLAG_GEN_VT = "Flag: Route Determination with Generic Shipping Requirements/Transport. Group
C_FLAG_GEN_GRULG = "Flag: Route Determination With Generic Weight Group
TABLES
* C_PROT = "Log Table
* I_VBPA = "Sales Partners
* I_LIPS = "SD document: Delivery: Item data
EXCEPTIONS
NO_ROUTE_FOUND = 1 CONTINUE_WITH_STANDARD = 2
Related Function Modules
Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.SD_F4_HELP_COUNTRY_ZONE NOTRANSL: F4-Hilfe für Land und Zone
SD_ROUTE_DETERMINATION Route Determination
SD_ROUTE_DET_LOG NOTRANSL: Protokollsatz zur Routenfindung schreiben
VIEWFRAME_V_TROLZ00 NOTRANSL: erweiterte Tabellenpflege obere Ebene
VIEWFRAME_V_TROLZ01 NOTRANSL: erweiterte Tabellenpflege obere Ebene
VIEWFRAME_V_TROLZ02 NOTRANSL: erweiterte Tabellenpflege obere Ebene
VIEWFRAME_V_TROLZI
VIEWPROC_V_TROLZ00 NOTRANSL: erweiterte Tabellenpflege untere Ebene
VIEWPROC_V_TROLZ01 NOTRANSL: erweiterte Tabellenpflege untere Ebene
VIEWPROC_V_TROLZ02 NOTRANSL: erweiterte Tabellenpflege untere Ebene
VIEWPROC_V_TROLZI
IMPORTING Parameters details for EXIT_SAPL0VRF_001
I_VBAK - Order Header
Data type: VBAKOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VBKD - Order Commercial Data
Data type: VBKDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VBAP - Order Item
Data type: VBAPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_LIKP - Delivery Header
Data type: LIKPOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EXIT_SAPL0VRF_001
E_ROUTE - Route Found
Data type: TROLZ-ROUTEOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for EXIT_SAPL0VRF_001
C_ALAND - Country of Departure
Data type: TROLZ-ALANDOptional: No
Call by Reference: Yes
C_FLAG_INCR_GRULG - Flag: Increase Weight Group if no Route
Data type: RV56A-SELKZOptional: No
Call by Reference: Yes
C_AZONE - Departure Zone
Data type: TROLZ-AZONEOptional: No
Call by Reference: Yes
C_LLAND - Destination Country
Data type: TROLZ-LLANDOptional: No
Call by Reference: Yes
C_LZONE - Destination Zone
Data type: TROLZ-LZONEOptional: No
Call by Reference: Yes
C_VSBED - Shipping Conditions
Data type: TROLZ-VSBEDOptional: No
Call by Reference: Yes
C_TRAGR - Transportation Group
Data type: TROLZ-TRAGROptional: No
Call by Reference: Yes
C_GRULG - Weight Group
Data type: TROLZ-GRULGOptional: No
Call by Reference: Yes
C_FLAG_GEN_VT - Flag: Route Determination with Generic Shipping Requirements/Transport. Group
Data type: RV56A-SELKZOptional: No
Call by Reference: Yes
C_FLAG_GEN_GRULG - Flag: Route Determination With Generic Weight Group
Data type: RV56A-SELKZOptional: No
Call by Reference: Yes
TABLES Parameters details for EXIT_SAPL0VRF_001
C_PROT - Log Table
Data type: SPROT_UOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VBPA - Sales Partners
Data type: VBPAOptional: Yes
Call by Reference: No ( called with pass by value option)
I_LIPS - SD document: Delivery: Item data
Data type: LIPSVBOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_ROUTE_FOUND - No Route Found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CONTINUE_WITH_STANDARD - Continue Route Determination With Standard Procedure
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EXIT_SAPL0VRF_001 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: | ||||
| lt_c_prot | TYPE STANDARD TABLE OF SPROT_U, " | |||
| lv_i_vbak | TYPE VBAK, " | |||
| lv_c_aland | TYPE TROLZ-ALAND, " | |||
| lv_e_route | TYPE TROLZ-ROUTE, " | |||
| lv_no_route_found | TYPE TROLZ, " | |||
| lv_c_flag_incr_grulg | TYPE RV56A-SELKZ, " | |||
| lv_i_vbkd | TYPE VBKD, " | |||
| lt_i_vbpa | TYPE STANDARD TABLE OF VBPA, " | |||
| lv_c_azone | TYPE TROLZ-AZONE, " | |||
| lv_continue_with_standard | TYPE TROLZ, " | |||
| lt_i_lips | TYPE STANDARD TABLE OF LIPSVB, " | |||
| lv_i_vbap | TYPE VBAP, " | |||
| lv_c_lland | TYPE TROLZ-LLAND, " | |||
| lv_i_likp | TYPE LIKP, " | |||
| lv_c_lzone | TYPE TROLZ-LZONE, " | |||
| lv_c_vsbed | TYPE TROLZ-VSBED, " | |||
| lv_c_tragr | TYPE TROLZ-TRAGR, " | |||
| lv_c_grulg | TYPE TROLZ-GRULG, " | |||
| lv_c_flag_gen_vt | TYPE RV56A-SELKZ, " | |||
| lv_c_flag_gen_grulg | TYPE RV56A-SELKZ. " |
|   CALL FUNCTION 'EXIT_SAPL0VRF_001' "Customer-Specific Route Determination |
| EXPORTING | ||
| I_VBAK | = lv_i_vbak | |
| I_VBKD | = lv_i_vbkd | |
| I_VBAP | = lv_i_vbap | |
| I_LIKP | = lv_i_likp | |
| IMPORTING | ||
| E_ROUTE | = lv_e_route | |
| CHANGING | ||
| C_ALAND | = lv_c_aland | |
| C_FLAG_INCR_GRULG | = lv_c_flag_incr_grulg | |
| C_AZONE | = lv_c_azone | |
| C_LLAND | = lv_c_lland | |
| C_LZONE | = lv_c_lzone | |
| C_VSBED | = lv_c_vsbed | |
| C_TRAGR | = lv_c_tragr | |
| C_GRULG | = lv_c_grulg | |
| C_FLAG_GEN_VT | = lv_c_flag_gen_vt | |
| C_FLAG_GEN_GRULG | = lv_c_flag_gen_grulg | |
| TABLES | ||
| C_PROT | = lt_c_prot | |
| I_VBPA | = lt_i_vbpa | |
| I_LIPS | = lt_i_lips | |
| EXCEPTIONS | ||
| NO_ROUTE_FOUND = 1 | ||
| CONTINUE_WITH_STANDARD = 2 | ||
| . " EXIT_SAPL0VRF_001 | ||
ABAP code using 7.40 inline data declarations to call FM EXIT_SAPL0VRF_001
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 ALAND FROM TROLZ INTO @DATA(ld_c_aland). | ||||
| "SELECT single ROUTE FROM TROLZ INTO @DATA(ld_e_route). | ||||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_c_flag_incr_grulg). | ||||
| "SELECT single AZONE FROM TROLZ INTO @DATA(ld_c_azone). | ||||
| "SELECT single LLAND FROM TROLZ INTO @DATA(ld_c_lland). | ||||
| "SELECT single LZONE FROM TROLZ INTO @DATA(ld_c_lzone). | ||||
| "SELECT single VSBED FROM TROLZ INTO @DATA(ld_c_vsbed). | ||||
| "SELECT single TRAGR FROM TROLZ INTO @DATA(ld_c_tragr). | ||||
| "SELECT single GRULG FROM TROLZ INTO @DATA(ld_c_grulg). | ||||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_c_flag_gen_vt). | ||||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_c_flag_gen_grulg). | ||||
Search for further information about these or an SAP related objects