SAP FT_GET_VARIANT_VALUES Function Module for NOTRANSL: Außenhandel: Lesen der Parameter und Sel. Options aus Varianten
FT_GET_VARIANT_VALUES is a standard ft get variant values 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: Lesen der Parameter und Sel. Options aus Varianten 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 ft get variant values FM, simply by entering the name FT_GET_VARIANT_VALUES into the relevant SAP transaction such as SE37 or SE38.
Function Group: VFBS
Program Name: SAPLVFBS
Main Program: SAPLVFBS
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FT_GET_VARIANT_VALUES 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 'FT_GET_VARIANT_VALUES'"NOTRANSL: Außenhandel: Lesen der Parameter und Sel. Options aus Varianten.
EXPORTING
I_REPORT = "Report Name
I_VARIANT = "Variant Name
TABLES
* E_S_RANGE_ILAND = "
* E_S_RANGE_WERKS = "
* E_S_RANGE_RESWK = "
* E_S_RANGE_MBLNR = "
* E_S_RANGE_MJAHR = "
* E_S_RANGE_VGART = "
* E_S_RANGE_BUDAT = "
* E_S_RANGE_BWART = "
* E_S_RANGE_GRUND = "
* E_S_RANGE_ELAND = "
* E_S_RANGE_VBELN = "
* E_S_RANGE_EBELN = "
* E_S_RANGE_FKART = "
* E_S_RANGE_FKDAT = "
* E_S_RANGE_VKORG = "
* E_S_RANGE_RFBSK = "
* E_S_RANGE_KU_RG = "
* E_S_RANGE_KU_AG = "
* E_S_RANGE_KU_WE = "
* E_S_RANGE_VSTEL = "
* E_S_RANGE_LFART = "
* E_S_RANGE_ERDAT = "
* E_S_RANGE_BUKRS = "
* E_S_RANGE_BSART = "
* E_S_RANGE_ERNAM = "
* E_S_RANGE_BEDAT = "
* E_S_RANGE_EKORG = "
* E_S_RANGE_LIFNR = "
* E_S_RANGE_LLIEF = "
EXCEPTIONS
VARIANT_NON_EXISTENT = 1 REPORT_NOT_SUPPORTED = 2 CONVERSION_CONFLICT = 3
IMPORTING Parameters details for FT_GET_VARIANT_VALUES
I_REPORT - Report Name
Data type: RSVAR-REPORTOptional: No
Call by Reference: No ( called with pass by value option)
I_VARIANT - Variant Name
Data type: RSVAR-VARIANTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FT_GET_VARIANT_VALUES
E_S_RANGE_ILAND -
Data type: VFBS_RANGE_ILANDOptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_WERKS -
Data type: VFBS_RANGE_WERKSOptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_RESWK -
Data type: VFBS_RANGE_RESWKOptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_MBLNR -
Data type: VFBS_RANGE_MBLNROptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_MJAHR -
Data type: VFBS_RANGE_MJAHROptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_VGART -
Data type: VFBS_RANGE_VGARTOptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_BUDAT -
Data type: VFBS_RANGE_BUDATOptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_BWART -
Data type: VFBS_RANGE_BWARTOptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_GRUND -
Data type: VFBS_RANGE_GRUNDOptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_ELAND -
Data type: VFBS_RANGE_ELANDOptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_VBELN -
Data type: VFBS_RANGE_VBELNOptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_EBELN -
Data type: VFBS_RANGE_EBELNOptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_FKART -
Data type: VFBS_RANGE_FKARTOptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_FKDAT -
Data type: VFBS_RANGE_FKDATOptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_VKORG -
Data type: VFBS_RANGE_VKORGOptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_RFBSK -
Data type: VFBS_RANGE_RFBSKOptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_KU_RG -
Data type: VFBS_RANGE_KU_RGOptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_KU_AG -
Data type: VFBS_RANGE_KU_AGOptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_KU_WE -
Data type: VFBS_RANGE_KU_WEOptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_VSTEL -
Data type: VFBS_RANGE_VSTELOptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_LFART -
Data type: VFBS_RANGE_LFARTOptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_ERDAT -
Data type: VFBS_RANGE_ERDATOptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_BUKRS -
Data type: VFBS_RANGE_BUKRSOptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_BSART -
Data type: VFBS_RANGE_BSARTOptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_ERNAM -
Data type: VFBS_RANGE_ERNAMOptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_BEDAT -
Data type: VFBS_RANGE_BEDATOptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_EKORG -
Data type: VFBS_RANGE_EKORGOptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_LIFNR -
Data type: VFBS_RANGE_LIFNROptional: Yes
Call by Reference: No ( called with pass by value option)
E_S_RANGE_LLIEF -
Data type: VFBS_RANGE_LLIEFOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
VARIANT_NON_EXISTENT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
REPORT_NOT_SUPPORTED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CONVERSION_CONFLICT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FT_GET_VARIANT_VALUES 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_i_report | TYPE RSVAR-REPORT, " | |||
| lt_e_s_range_iland | TYPE STANDARD TABLE OF VFBS_RANGE_ILAND, " | |||
| lv_variant_non_existent | TYPE VFBS_RANGE_ILAND, " | |||
| lt_e_s_range_werks | TYPE STANDARD TABLE OF VFBS_RANGE_WERKS, " | |||
| lt_e_s_range_reswk | TYPE STANDARD TABLE OF VFBS_RANGE_RESWK, " | |||
| lt_e_s_range_mblnr | TYPE STANDARD TABLE OF VFBS_RANGE_MBLNR, " | |||
| lt_e_s_range_mjahr | TYPE STANDARD TABLE OF VFBS_RANGE_MJAHR, " | |||
| lt_e_s_range_vgart | TYPE STANDARD TABLE OF VFBS_RANGE_VGART, " | |||
| lt_e_s_range_budat | TYPE STANDARD TABLE OF VFBS_RANGE_BUDAT, " | |||
| lt_e_s_range_bwart | TYPE STANDARD TABLE OF VFBS_RANGE_BWART, " | |||
| lt_e_s_range_grund | TYPE STANDARD TABLE OF VFBS_RANGE_GRUND, " | |||
| lt_e_s_range_eland | TYPE STANDARD TABLE OF VFBS_RANGE_ELAND, " | |||
| lt_e_s_range_vbeln | TYPE STANDARD TABLE OF VFBS_RANGE_VBELN, " | |||
| lv_i_variant | TYPE RSVAR-VARIANT, " | |||
| lt_e_s_range_ebeln | TYPE STANDARD TABLE OF VFBS_RANGE_EBELN, " | |||
| lv_report_not_supported | TYPE VFBS_RANGE_EBELN, " | |||
| lt_e_s_range_fkart | TYPE STANDARD TABLE OF VFBS_RANGE_FKART, " | |||
| lt_e_s_range_fkdat | TYPE STANDARD TABLE OF VFBS_RANGE_FKDAT, " | |||
| lt_e_s_range_vkorg | TYPE STANDARD TABLE OF VFBS_RANGE_VKORG, " | |||
| lt_e_s_range_rfbsk | TYPE STANDARD TABLE OF VFBS_RANGE_RFBSK, " | |||
| lt_e_s_range_ku_rg | TYPE STANDARD TABLE OF VFBS_RANGE_KU_RG, " | |||
| lt_e_s_range_ku_ag | TYPE STANDARD TABLE OF VFBS_RANGE_KU_AG, " | |||
| lt_e_s_range_ku_we | TYPE STANDARD TABLE OF VFBS_RANGE_KU_WE, " | |||
| lt_e_s_range_vstel | TYPE STANDARD TABLE OF VFBS_RANGE_VSTEL, " | |||
| lt_e_s_range_lfart | TYPE STANDARD TABLE OF VFBS_RANGE_LFART, " | |||
| lt_e_s_range_erdat | TYPE STANDARD TABLE OF VFBS_RANGE_ERDAT, " | |||
| lt_e_s_range_bukrs | TYPE STANDARD TABLE OF VFBS_RANGE_BUKRS, " | |||
| lv_conversion_conflict | TYPE VFBS_RANGE_BUKRS, " | |||
| lt_e_s_range_bsart | TYPE STANDARD TABLE OF VFBS_RANGE_BSART, " | |||
| lt_e_s_range_ernam | TYPE STANDARD TABLE OF VFBS_RANGE_ERNAM, " | |||
| lt_e_s_range_bedat | TYPE STANDARD TABLE OF VFBS_RANGE_BEDAT, " | |||
| lt_e_s_range_ekorg | TYPE STANDARD TABLE OF VFBS_RANGE_EKORG, " | |||
| lt_e_s_range_lifnr | TYPE STANDARD TABLE OF VFBS_RANGE_LIFNR, " | |||
| lt_e_s_range_llief | TYPE STANDARD TABLE OF VFBS_RANGE_LLIEF. " |
|   CALL FUNCTION 'FT_GET_VARIANT_VALUES' "NOTRANSL: Außenhandel: Lesen der Parameter und Sel. Options aus Varianten |
| EXPORTING | ||
| I_REPORT | = lv_i_report | |
| I_VARIANT | = lv_i_variant | |
| TABLES | ||
| E_S_RANGE_ILAND | = lt_e_s_range_iland | |
| E_S_RANGE_WERKS | = lt_e_s_range_werks | |
| E_S_RANGE_RESWK | = lt_e_s_range_reswk | |
| E_S_RANGE_MBLNR | = lt_e_s_range_mblnr | |
| E_S_RANGE_MJAHR | = lt_e_s_range_mjahr | |
| E_S_RANGE_VGART | = lt_e_s_range_vgart | |
| E_S_RANGE_BUDAT | = lt_e_s_range_budat | |
| E_S_RANGE_BWART | = lt_e_s_range_bwart | |
| E_S_RANGE_GRUND | = lt_e_s_range_grund | |
| E_S_RANGE_ELAND | = lt_e_s_range_eland | |
| E_S_RANGE_VBELN | = lt_e_s_range_vbeln | |
| E_S_RANGE_EBELN | = lt_e_s_range_ebeln | |
| E_S_RANGE_FKART | = lt_e_s_range_fkart | |
| E_S_RANGE_FKDAT | = lt_e_s_range_fkdat | |
| E_S_RANGE_VKORG | = lt_e_s_range_vkorg | |
| E_S_RANGE_RFBSK | = lt_e_s_range_rfbsk | |
| E_S_RANGE_KU_RG | = lt_e_s_range_ku_rg | |
| E_S_RANGE_KU_AG | = lt_e_s_range_ku_ag | |
| E_S_RANGE_KU_WE | = lt_e_s_range_ku_we | |
| E_S_RANGE_VSTEL | = lt_e_s_range_vstel | |
| E_S_RANGE_LFART | = lt_e_s_range_lfart | |
| E_S_RANGE_ERDAT | = lt_e_s_range_erdat | |
| E_S_RANGE_BUKRS | = lt_e_s_range_bukrs | |
| E_S_RANGE_BSART | = lt_e_s_range_bsart | |
| E_S_RANGE_ERNAM | = lt_e_s_range_ernam | |
| E_S_RANGE_BEDAT | = lt_e_s_range_bedat | |
| E_S_RANGE_EKORG | = lt_e_s_range_ekorg | |
| E_S_RANGE_LIFNR | = lt_e_s_range_lifnr | |
| E_S_RANGE_LLIEF | = lt_e_s_range_llief | |
| EXCEPTIONS | ||
| VARIANT_NON_EXISTENT = 1 | ||
| REPORT_NOT_SUPPORTED = 2 | ||
| CONVERSION_CONFLICT = 3 | ||
| . " FT_GET_VARIANT_VALUES | ||
ABAP code using 7.40 inline data declarations to call FM FT_GET_VARIANT_VALUES
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 REPORT FROM RSVAR INTO @DATA(ld_i_report). | ||||
| "SELECT single VARIANT FROM RSVAR INTO @DATA(ld_i_variant). | ||||
Search for further information about these or an SAP related objects