SAP FT_CONTROL_BAFA_DATA_SELECT Function Module for NOTRANSL: Außenhandel: Gesetzliche Kontrolle: Datenselektion: BAFA-Diskett









FT_CONTROL_BAFA_DATA_SELECT is a standard ft control bafa data 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: Gesetzliche Kontrolle: Datenselektion: BAFA-Diskett 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 bafa data select FM, simply by entering the name FT_CONTROL_BAFA_DATA_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_BAFA_DATA_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_BAFA_DATA_SELECT'"NOTRANSL: Außenhandel: Gesetzliche Kontrolle: Datenselektion: BAFA-Diskett
EXPORTING
I_GEGRU = "Legal Regulation
I_MLAND = "Decl.Ctry
* I_MSG = "
I_NEW_STRUCTURE = "

TABLES
* T_RANGE_GEART = "License type
* T_VBAK = "Sales Document: Header Data
* T_VBAP = "Sales Document: Item Data
* T_VBPA = "Sales Document: Partner
* T_VBEX = "
* T_EMBK = "
* T_MARC = "Plant Data for Material
* T_T605 = "Business trans.type
* T_T606V = "Legal Control: Export Control Class Descriptions
* T_MAKT = "Material Descriptions
* T_ADDR_VAL = "
* T_RANGE_GENNR = "
* T_RANGE_EXGEN = "External license number
* T_RANGE_WERKS = "Plant
* T_RANGE_BUKRS = "Company Code
T_RANGE_ERDAT = "Document Date
* T_RANGE_KUNNR = "Sold-To Party
T_RANGE_ALNUM = "Material classification
* T_RANGE_EXART = "

EXCEPTIONS
NO_DATA_SELECTED = 1 NO_DATA_AUTHORITY_CHECK = 2
.



IMPORTING Parameters details for FT_CONTROL_BAFA_DATA_SELECT

I_GEGRU - Legal Regulation

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

I_MLAND - Decl.Ctry

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

I_MSG -

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

I_NEW_STRUCTURE -

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

TABLES Parameters details for FT_CONTROL_BAFA_DATA_SELECT

T_RANGE_GEART - License type

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

T_VBAK - Sales Document: Header Data

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

T_VBAP - Sales Document: Item Data

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

T_VBPA - Sales Document: Partner

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

T_VBEX -

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

T_EMBK -

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

T_MARC - Plant Data for Material

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

T_T605 - Business trans.type

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

T_T606V - Legal Control: Export Control Class Descriptions

Data type: T606V
Optional: Yes
Call by Reference: Yes

T_MAKT - Material Descriptions

Data type: MAKT
Optional: Yes
Call by Reference: Yes

T_ADDR_VAL -

Data type: ADDR1_VAL
Optional: Yes
Call by Reference: Yes

T_RANGE_GENNR -

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

T_RANGE_EXGEN - External license number

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

T_RANGE_WERKS - Plant

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

T_RANGE_BUKRS - Company Code

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

T_RANGE_ERDAT - Document Date

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

T_RANGE_KUNNR - Sold-To Party

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

T_RANGE_ALNUM - Material classification

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

T_RANGE_EXART -

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

EXCEPTIONS details

NO_DATA_SELECTED -

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_BAFA_DATA_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, "   
lt_t_vbak  TYPE STANDARD TABLE OF VBAK, "   
lt_t_vbap  TYPE STANDARD TABLE OF VBAP, "   
lt_t_vbpa  TYPE STANDARD TABLE OF VBPA, "   
lt_t_vbex  TYPE STANDARD TABLE OF VBEX, "   
lt_t_embk  TYPE STANDARD TABLE OF EMBK, "   
lt_t_marc  TYPE STANDARD TABLE OF MARC, "   
lt_t_t605  TYPE STANDARD TABLE OF T605, "   
lt_t_t606v  TYPE STANDARD TABLE OF T606V, "   
lt_t_makt  TYPE STANDARD TABLE OF MAKT, "   
lt_t_addr_val  TYPE STANDARD TABLE OF ADDR1_VAL, "   
lv_i_mland  TYPE T005-LAND1, "   
lt_t_range_gennr  TYPE STANDARD TABLE OF VFCS_RANGE_GENNR, "   
lv_no_data_authority_check  TYPE VFCS_RANGE_GENNR, "   
lv_i_msg  TYPE FTSEL-SHOW_MSG, "   
lt_t_range_exgen  TYPE STANDARD TABLE OF VFCS_RANGE_EXGEN, "   
lt_t_range_werks  TYPE STANDARD TABLE OF VFCS_RANGE_WERKS, "   
lv_i_new_structure  TYPE VFCS_RANGE_WERKS, "   
lt_t_range_bukrs  TYPE STANDARD TABLE OF VFCS_RANGE_BUKRS, "   
lt_t_range_erdat  TYPE STANDARD TABLE OF VFCS_RANGE_ERDAT, "   
lt_t_range_kunnr  TYPE STANDARD TABLE OF VFCS_RANGE_KUNNR, "   
lt_t_range_alnum  TYPE STANDARD TABLE OF VFCS_RANGE_ALNUM, "   
lt_t_range_exart  TYPE STANDARD TABLE OF VFCS_RANGE_EXART. "   

  CALL FUNCTION 'FT_CONTROL_BAFA_DATA_SELECT'  "NOTRANSL: Außenhandel: Gesetzliche Kontrolle: Datenselektion: BAFA-Diskett
    EXPORTING
         I_GEGRU = lv_i_gegru
         I_MLAND = lv_i_mland
         I_MSG = lv_i_msg
         I_NEW_STRUCTURE = lv_i_new_structure
    TABLES
         T_RANGE_GEART = lt_t_range_geart
         T_VBAK = lt_t_vbak
         T_VBAP = lt_t_vbap
         T_VBPA = lt_t_vbpa
         T_VBEX = lt_t_vbex
         T_EMBK = lt_t_embk
         T_MARC = lt_t_marc
         T_T605 = lt_t_t605
         T_T606V = lt_t_t606v
         T_MAKT = lt_t_makt
         T_ADDR_VAL = lt_t_addr_val
         T_RANGE_GENNR = lt_t_range_gennr
         T_RANGE_EXGEN = lt_t_range_exgen
         T_RANGE_WERKS = lt_t_range_werks
         T_RANGE_BUKRS = lt_t_range_bukrs
         T_RANGE_ERDAT = lt_t_range_erdat
         T_RANGE_KUNNR = lt_t_range_kunnr
         T_RANGE_ALNUM = lt_t_range_alnum
         T_RANGE_EXART = lt_t_range_exart
    EXCEPTIONS
        NO_DATA_SELECTED = 1
        NO_DATA_AUTHORITY_CHECK = 2
. " FT_CONTROL_BAFA_DATA_SELECT




ABAP code using 7.40 inline data declarations to call FM FT_CONTROL_BAFA_DATA_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 LAND1 FROM T005 INTO @DATA(ld_i_mland).
 
 
 
"SELECT single SHOW_MSG FROM FTSEL INTO @DATA(ld_i_msg).
 
 
 
 
 
 
 
 
 


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!