SAP RV_FTT_GOV_PLANTS_SELECT Function Module for NOTRANSL: Außenhandel: Meldungen an Behörden: Wertehilfe für Werke
RV_FTT_GOV_PLANTS_SELECT is a standard rv ftt gov plants select 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: Außenhandel: Meldungen an Behörden: Wertehilfe für Werke 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 rv ftt gov plants select FM, simply by entering the name RV_FTT_GOV_PLANTS_SELECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: V50G
Program Name: SAPLV50G
Main Program: SAPLV50G
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RV_FTT_GOV_PLANTS_SELECT 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 'RV_FTT_GOV_PLANTS_SELECT'"NOTRANSL: Außenhandel: Meldungen an Behörden: Wertehilfe für Werke.
EXPORTING
I_BUKRS = "Company Code
* I_COUNTRY = "Country
* REDUCE_ONLY = ' ' "
IMPORTING
E_WERKSLOW = "
E_BUKRS = "
E_COUNTRY = "
TABLES
PLANTS = "
* T_BUKRS = "
EXCEPTIONS
DIALOG_CANCELED = 1
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_SAPLV50G_001 Periodic declarations: User exit data selection: Selection
EXIT_SAPLV50G_002 Periodic declarations: User exit data selection: DB update
IMPORTING Parameters details for RV_FTT_GOV_PLANTS_SELECT
I_BUKRS - Company Code
Data type: T001-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_COUNTRY - Country
Data type: T001-LAND1Optional: Yes
Call by Reference: No ( called with pass by value option)
REDUCE_ONLY -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RV_FTT_GOV_PLANTS_SELECT
E_WERKSLOW -
Data type: T001W-WERKSOptional: No
Call by Reference: No ( called with pass by value option)
E_BUKRS -
Data type: T001-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
E_COUNTRY -
Data type: T001-LAND1Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RV_FTT_GOV_PLANTS_SELECT
PLANTS -
Data type: V50G_T_RANGE_WERKSOptional: No
Call by Reference: No ( called with pass by value option)
T_BUKRS -
Data type: V50G_T_RANGE_BUKRSOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
DIALOG_CANCELED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RV_FTT_GOV_PLANTS_SELECT 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_plants | TYPE STANDARD TABLE OF V50G_T_RANGE_WERKS, " | |||
| lv_i_bukrs | TYPE T001-BUKRS, " | |||
| lv_e_werkslow | TYPE T001W-WERKS, " | |||
| lv_dialog_canceled | TYPE T001W, " | |||
| lv_e_bukrs | TYPE T001-BUKRS, " | |||
| lt_t_bukrs | TYPE STANDARD TABLE OF V50G_T_RANGE_BUKRS, " | |||
| lv_i_country | TYPE T001-LAND1, " | |||
| lv_e_country | TYPE T001-LAND1, " | |||
| lv_reduce_only | TYPE T001. " ' ' |
|   CALL FUNCTION 'RV_FTT_GOV_PLANTS_SELECT' "NOTRANSL: Außenhandel: Meldungen an Behörden: Wertehilfe für Werke |
| EXPORTING | ||
| I_BUKRS | = lv_i_bukrs | |
| I_COUNTRY | = lv_i_country | |
| REDUCE_ONLY | = lv_reduce_only | |
| IMPORTING | ||
| E_WERKSLOW | = lv_e_werkslow | |
| E_BUKRS | = lv_e_bukrs | |
| E_COUNTRY | = lv_e_country | |
| TABLES | ||
| PLANTS | = lt_plants | |
| T_BUKRS | = lt_t_bukrs | |
| EXCEPTIONS | ||
| DIALOG_CANCELED = 1 | ||
| . " RV_FTT_GOV_PLANTS_SELECT | ||
ABAP code using 7.40 inline data declarations to call FM RV_FTT_GOV_PLANTS_SELECT
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 BUKRS FROM T001 INTO @DATA(ld_i_bukrs). | ||||
| "SELECT single WERKS FROM T001W INTO @DATA(ld_e_werkslow). | ||||
| "SELECT single BUKRS FROM T001 INTO @DATA(ld_e_bukrs). | ||||
| "SELECT single LAND1 FROM T001 INTO @DATA(ld_i_country). | ||||
| "SELECT single LAND1 FROM T001 INTO @DATA(ld_e_country). | ||||
| DATA(ld_reduce_only) | = ' '. | |||
Search for further information about these or an SAP related objects