SAP FT_CONTROL_LICENSES_SELECT Function Module for NOTRANSL: Außenhandel: Gesetzl. Kontrolle: Datenselektion: Exist. Kontroll
FT_CONTROL_LICENSES_SELECT is a standard ft control licenses 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: Gesetzl. Kontrolle: Datenselektion: Exist. Kontroll 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 control licenses select FM, simply by entering the name FT_CONTROL_LICENSES_SELECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: VFCS
Program Name: SAPLVFCS
Main Program: SAPLVFCS
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function FT_CONTROL_LICENSES_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 'FT_CONTROL_LICENSES_SELECT'"NOTRANSL: Außenhandel: Gesetzl. Kontrolle: Datenselektion: Exist. Kontroll.
EXPORTING
I_GEGRU = "Legal Regulation
* I_HWTSP = "Maximum Amount Specified
* I_ANZCO = "Max. quantity specified
* I_AMILI = "Military use permitted
* I_EXTRA = "Decl. relevance EXTRASTAT
* I_KOBRA = "KOBRA declaration rel.
* I_SEDSP = "Relevance for SED/AERP
* I_PRZAB = "Open value percent. lower than/equal to
* I_ANZTG = "
* I_PARAG = "Sold-to party function for license
* I_PARWF = "Ship-to party function for license
* I_KNDSP = "
* I_PARRS = "
* I_PARRE = "Payer function for license
* I_PAREN = "Ultimate consignee function for license
* I_SEL_ALL = 'X' "
* I_LANGU = SY-LANGU "Language
* I_MSG = "Display Processing Steps
* I_PACKAGE_SIZE = "
* I_VBDSP = "Affiliated companies specified
* I_ADITI = "Partner function specified
* I_MATSP = "
* I_LNDCO = "Specific destination countries
* I_EXACO = "Transaction Type Specified
* I_BELSP = "Sales document specified
* I_TRMCO = "Specified term of payment
TABLES
* T_RANGE_GEART = "License type
* T_RANGE_ERNAM = "Created By
* T_RANGE_EXART = "Transaction Type
* T_RANGE_GENLA = "Dest. Country
* T_RANGE_VBELN = "Sales Document
* T_RANGE_ZTERM = "Terms of Payment Key
* T_EMBK = "License - Header data
* T_T606X = "Countries of Destination for License
* T_T606Y = "
* T_T606Z = "
* T_T606V = "
* T_RANGE_GENNR = "
* T_KNA1 = "Customer Master (General Part)
* T_T005T = "Country Names
* T_DD07V = "Fixed Values and Texts of Domains
* T_RANGE_EXGEN = "
* T_RANGE_GENDA = "Valid To Date
* T_RANGE_GENST = "License status
* T_RANGE_INDEI = "
* T_RANGE_BUKRS = "Company Code
* T_RANGE_KUNNR = "Customers
* T_RANGE_ALNUM = "Material classification
EXCEPTIONS
NO_DATA_SELECTED = 1 NO_DATA_AUTHORITY_CHECK = 2
IMPORTING Parameters details for FT_CONTROL_LICENSES_SELECT
I_GEGRU - Legal Regulation
Data type: EMBK-GEGRUOptional: No
Call by Reference: No ( called with pass by value option)
I_HWTSP - Maximum Amount Specified
Data type: T606-HWTSPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ANZCO - Max. quantity specified
Data type: T606-ANZCOOptional: Yes
Call by Reference: No ( called with pass by value option)
I_AMILI - Military use permitted
Data type: T606-AMILIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_EXTRA - Decl. relevance EXTRASTAT
Data type: T606-EXTRAOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KOBRA - KOBRA declaration rel.
Data type: T606-KOBRAOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SEDSP - Relevance for SED/AERP
Data type: T606-SEDSPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PRZAB - Open value percent. lower than/equal to
Data type: FTSEL-P_PRZABOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ANZTG -
Data type: FTSEL-P_ANZTGOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PARAG - Sold-to party function for license
Data type: T606Z-PARAGOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PARWF - Ship-to party function for license
Data type: T606Z-PARWFOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KNDSP -
Data type: T606-KNDSPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PARRS -
Data type: T606Z-PARRSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PARRE - Payer function for license
Data type: T606Z-PARREOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PAREN - Ultimate consignee function for license
Data type: T606Z-PARENOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SEL_ALL -
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LANGU - Language
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MSG - Display Processing Steps
Data type: FTSEL-SHOW_MSGOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PACKAGE_SIZE -
Data type: SY-TABIXOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VBDSP - Affiliated companies specified
Data type: T606-VBDSPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ADITI - Partner function specified
Data type: T606-ADITIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_MATSP -
Data type: T606-MATSPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_LNDCO - Specific destination countries
Data type: T606-LNDCOOptional: Yes
Call by Reference: No ( called with pass by value option)
I_EXACO - Transaction Type Specified
Data type: T606-EXACOOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BELSP - Sales document specified
Data type: T606-BELSPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TRMCO - Specified term of payment
Data type: T606-TRMCOOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FT_CONTROL_LICENSES_SELECT
T_RANGE_GEART - License type
Data type: VFCS_RANGE_GEARTOptional: Yes
Call by Reference: No ( called with pass by value option)
T_RANGE_ERNAM - Created By
Data type: VFCS_RANGE_ERNAMOptional: Yes
Call by Reference: No ( called with pass by value option)
T_RANGE_EXART - Transaction Type
Data type: VFCS_RANGE_EXARTOptional: Yes
Call by Reference: No ( called with pass by value option)
T_RANGE_GENLA - Dest. Country
Data type: VFCS_RANGE_GENLAOptional: Yes
Call by Reference: No ( called with pass by value option)
T_RANGE_VBELN - Sales Document
Data type: VFCS_RANGE_VBELNOptional: Yes
Call by Reference: No ( called with pass by value option)
T_RANGE_ZTERM - Terms of Payment Key
Data type: VFCS_RANGE_ZTERMOptional: Yes
Call by Reference: No ( called with pass by value option)
T_EMBK - License - Header data
Data type: EMBKOptional: Yes
Call by Reference: No ( called with pass by value option)
T_T606X - Countries of Destination for License
Data type: T606XOptional: Yes
Call by Reference: No ( called with pass by value option)
T_T606Y -
Data type: T606YOptional: Yes
Call by Reference: No ( called with pass by value option)
T_T606Z -
Data type: T606ZOptional: Yes
Call by Reference: No ( called with pass by value option)
T_T606V -
Data type: T606VOptional: Yes
Call by Reference: No ( called with pass by value option)
T_RANGE_GENNR -
Data type: VFCS_RANGE_GENNROptional: Yes
Call by Reference: No ( called with pass by value option)
T_KNA1 - Customer Master (General Part)
Data type: KNA1Optional: Yes
Call by Reference: No ( called with pass by value option)
T_T005T - Country Names
Data type: T005TOptional: Yes
Call by Reference: No ( called with pass by value option)
T_DD07V - Fixed Values and Texts of Domains
Data type: DD07VOptional: Yes
Call by Reference: No ( called with pass by value option)
T_RANGE_EXGEN -
Data type: VFCS_RANGE_EXGENOptional: Yes
Call by Reference: No ( called with pass by value option)
T_RANGE_GENDA - Valid To Date
Data type: VFCS_RANGE_GENDAOptional: Yes
Call by Reference: No ( called with pass by value option)
T_RANGE_GENST - License status
Data type: VFCS_RANGE_GENSTOptional: Yes
Call by Reference: No ( called with pass by value option)
T_RANGE_INDEI -
Data type: VFCS_RANGE_INDEIOptional: Yes
Call by Reference: No ( called with pass by value option)
T_RANGE_BUKRS - Company Code
Data type: VFCS_RANGE_BUKRSOptional: Yes
Call by Reference: No ( called with pass by value option)
T_RANGE_KUNNR - Customers
Data type: VFCS_RANGE_KUNNROptional: Yes
Call by Reference: No ( called with pass by value option)
T_RANGE_ALNUM - Material classification
Data type: VFCS_RANGE_ALNUMOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_DATA_SELECTED - No Data Found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_DATA_AUTHORITY_CHECK -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FT_CONTROL_LICENSES_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: | ||||
lv_i_gegru | TYPE EMBK-GEGRU, " | |||
lt_t_range_geart | TYPE STANDARD TABLE OF VFCS_RANGE_GEART, " | |||
lv_no_data_selected | TYPE VFCS_RANGE_GEART, " | |||
lv_i_hwtsp | TYPE T606-HWTSP, " | |||
lt_t_range_ernam | TYPE STANDARD TABLE OF VFCS_RANGE_ERNAM, " | |||
lv_i_anzco | TYPE T606-ANZCO, " | |||
lt_t_range_exart | TYPE STANDARD TABLE OF VFCS_RANGE_EXART, " | |||
lv_i_amili | TYPE T606-AMILI, " | |||
lt_t_range_genla | TYPE STANDARD TABLE OF VFCS_RANGE_GENLA, " | |||
lv_i_extra | TYPE T606-EXTRA, " | |||
lt_t_range_vbeln | TYPE STANDARD TABLE OF VFCS_RANGE_VBELN, " | |||
lv_i_kobra | TYPE T606-KOBRA, " | |||
lt_t_range_zterm | TYPE STANDARD TABLE OF VFCS_RANGE_ZTERM, " | |||
lt_t_embk | TYPE STANDARD TABLE OF EMBK, " | |||
lv_i_sedsp | TYPE T606-SEDSP, " | |||
lv_i_przab | TYPE FTSEL-P_PRZAB, " | |||
lt_t_t606x | TYPE STANDARD TABLE OF T606X, " | |||
lv_i_anztg | TYPE FTSEL-P_ANZTG, " | |||
lt_t_t606y | TYPE STANDARD TABLE OF T606Y, " | |||
lv_i_parag | TYPE T606Z-PARAG, " | |||
lt_t_t606z | TYPE STANDARD TABLE OF T606Z, " | |||
lv_i_parwf | TYPE T606Z-PARWF, " | |||
lt_t_t606v | TYPE STANDARD TABLE OF T606V, " | |||
lv_i_kndsp | TYPE T606-KNDSP, " | |||
lt_t_range_gennr | TYPE STANDARD TABLE OF VFCS_RANGE_GENNR, " | |||
lv_no_data_authority_check | TYPE VFCS_RANGE_GENNR, " | |||
lt_t_kna1 | TYPE STANDARD TABLE OF KNA1, " | |||
lv_i_parrs | TYPE T606Z-PARRS, " | |||
lv_i_parre | TYPE T606Z-PARRE, " | |||
lt_t_t005t | TYPE STANDARD TABLE OF T005T, " | |||
lv_i_paren | TYPE T606Z-PAREN, " | |||
lt_t_dd07v | TYPE STANDARD TABLE OF DD07V, " | |||
lv_i_sel_all | TYPE DD07V, " 'X' | |||
lv_i_langu | TYPE SY-LANGU, " SY-LANGU | |||
lv_i_msg | TYPE FTSEL-SHOW_MSG, " | |||
lv_i_package_size | TYPE SY-TABIX, " | |||
lv_i_vbdsp | TYPE T606-VBDSP, " | |||
lt_t_range_exgen | TYPE STANDARD TABLE OF VFCS_RANGE_EXGEN, " | |||
lv_i_aditi | TYPE T606-ADITI, " | |||
lt_t_range_genda | TYPE STANDARD TABLE OF VFCS_RANGE_GENDA, " | |||
lv_i_matsp | TYPE T606-MATSP, " | |||
lt_t_range_genst | TYPE STANDARD TABLE OF VFCS_RANGE_GENST, " | |||
lv_i_lndco | TYPE T606-LNDCO, " | |||
lt_t_range_indei | TYPE STANDARD TABLE OF VFCS_RANGE_INDEI, " | |||
lv_i_exaco | TYPE T606-EXACO, " | |||
lt_t_range_bukrs | TYPE STANDARD TABLE OF VFCS_RANGE_BUKRS, " | |||
lv_i_belsp | TYPE T606-BELSP, " | |||
lt_t_range_kunnr | TYPE STANDARD TABLE OF VFCS_RANGE_KUNNR, " | |||
lv_i_trmco | TYPE T606-TRMCO, " | |||
lt_t_range_alnum | TYPE STANDARD TABLE OF VFCS_RANGE_ALNUM. " |
  CALL FUNCTION 'FT_CONTROL_LICENSES_SELECT' "NOTRANSL: Außenhandel: Gesetzl. Kontrolle: Datenselektion: Exist. Kontroll |
EXPORTING | ||
I_GEGRU | = lv_i_gegru | |
I_HWTSP | = lv_i_hwtsp | |
I_ANZCO | = lv_i_anzco | |
I_AMILI | = lv_i_amili | |
I_EXTRA | = lv_i_extra | |
I_KOBRA | = lv_i_kobra | |
I_SEDSP | = lv_i_sedsp | |
I_PRZAB | = lv_i_przab | |
I_ANZTG | = lv_i_anztg | |
I_PARAG | = lv_i_parag | |
I_PARWF | = lv_i_parwf | |
I_KNDSP | = lv_i_kndsp | |
I_PARRS | = lv_i_parrs | |
I_PARRE | = lv_i_parre | |
I_PAREN | = lv_i_paren | |
I_SEL_ALL | = lv_i_sel_all | |
I_LANGU | = lv_i_langu | |
I_MSG | = lv_i_msg | |
I_PACKAGE_SIZE | = lv_i_package_size | |
I_VBDSP | = lv_i_vbdsp | |
I_ADITI | = lv_i_aditi | |
I_MATSP | = lv_i_matsp | |
I_LNDCO | = lv_i_lndco | |
I_EXACO | = lv_i_exaco | |
I_BELSP | = lv_i_belsp | |
I_TRMCO | = lv_i_trmco | |
TABLES | ||
T_RANGE_GEART | = lt_t_range_geart | |
T_RANGE_ERNAM | = lt_t_range_ernam | |
T_RANGE_EXART | = lt_t_range_exart | |
T_RANGE_GENLA | = lt_t_range_genla | |
T_RANGE_VBELN | = lt_t_range_vbeln | |
T_RANGE_ZTERM | = lt_t_range_zterm | |
T_EMBK | = lt_t_embk | |
T_T606X | = lt_t_t606x | |
T_T606Y | = lt_t_t606y | |
T_T606Z | = lt_t_t606z | |
T_T606V | = lt_t_t606v | |
T_RANGE_GENNR | = lt_t_range_gennr | |
T_KNA1 | = lt_t_kna1 | |
T_T005T | = lt_t_t005t | |
T_DD07V | = lt_t_dd07v | |
T_RANGE_EXGEN | = lt_t_range_exgen | |
T_RANGE_GENDA | = lt_t_range_genda | |
T_RANGE_GENST | = lt_t_range_genst | |
T_RANGE_INDEI | = lt_t_range_indei | |
T_RANGE_BUKRS | = lt_t_range_bukrs | |
T_RANGE_KUNNR | = lt_t_range_kunnr | |
T_RANGE_ALNUM | = lt_t_range_alnum | |
EXCEPTIONS | ||
NO_DATA_SELECTED = 1 | ||
NO_DATA_AUTHORITY_CHECK = 2 | ||
. " FT_CONTROL_LICENSES_SELECT |
ABAP code using 7.40 inline data declarations to call FM FT_CONTROL_LICENSES_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 GEGRU FROM EMBK INTO @DATA(ld_i_gegru). | ||||
"SELECT single HWTSP FROM T606 INTO @DATA(ld_i_hwtsp). | ||||
"SELECT single ANZCO FROM T606 INTO @DATA(ld_i_anzco). | ||||
"SELECT single AMILI FROM T606 INTO @DATA(ld_i_amili). | ||||
"SELECT single EXTRA FROM T606 INTO @DATA(ld_i_extra). | ||||
"SELECT single KOBRA FROM T606 INTO @DATA(ld_i_kobra). | ||||
"SELECT single SEDSP FROM T606 INTO @DATA(ld_i_sedsp). | ||||
"SELECT single P_PRZAB FROM FTSEL INTO @DATA(ld_i_przab). | ||||
"SELECT single P_ANZTG FROM FTSEL INTO @DATA(ld_i_anztg). | ||||
"SELECT single PARAG FROM T606Z INTO @DATA(ld_i_parag). | ||||
"SELECT single PARWF FROM T606Z INTO @DATA(ld_i_parwf). | ||||
"SELECT single KNDSP FROM T606 INTO @DATA(ld_i_kndsp). | ||||
"SELECT single PARRS FROM T606Z INTO @DATA(ld_i_parrs). | ||||
"SELECT single PARRE FROM T606Z INTO @DATA(ld_i_parre). | ||||
"SELECT single PAREN FROM T606Z INTO @DATA(ld_i_paren). | ||||
DATA(ld_i_sel_all) | = 'X'. | |||
"SELECT single LANGU FROM SY INTO @DATA(ld_i_langu). | ||||
DATA(ld_i_langu) | = SY-LANGU. | |||
"SELECT single SHOW_MSG FROM FTSEL INTO @DATA(ld_i_msg). | ||||
"SELECT single TABIX FROM SY INTO @DATA(ld_i_package_size). | ||||
"SELECT single VBDSP FROM T606 INTO @DATA(ld_i_vbdsp). | ||||
"SELECT single ADITI FROM T606 INTO @DATA(ld_i_aditi). | ||||
"SELECT single MATSP FROM T606 INTO @DATA(ld_i_matsp). | ||||
"SELECT single LNDCO FROM T606 INTO @DATA(ld_i_lndco). | ||||
"SELECT single EXACO FROM T606 INTO @DATA(ld_i_exaco). | ||||
"SELECT single BELSP FROM T606 INTO @DATA(ld_i_belsp). | ||||
"SELECT single TRMCO FROM T606 INTO @DATA(ld_i_trmco). | ||||
Search for further information about these or an SAP related objects