SAP FT_CONTROL_ASS_DOCS_SELECT Function Module for NOTRANSL: Außenhandel: Gesetzliche Kontrolle: Datenselektion: Zugeordnete









FT_CONTROL_ASS_DOCS_SELECT is a standard ft control ass docs 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: Zugeordnete 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 ass docs select FM, simply by entering the name FT_CONTROL_ASS_DOCS_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_ASS_DOCS_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_ASS_DOCS_SELECT'"NOTRANSL: Außenhandel: Gesetzliche Kontrolle: Datenselektion: Zugeordnete
EXPORTING
I_GEGRU = "Legal Regulation
* I_MSG = "
* I_GOODS_ISSUE = ' ' "

TABLES
* T_RANGE_GEART = "License type
* T_VBAP = "Sales Document: Item Data
* T_VBPA = "Sales Document: Partner
* T_VBKD = "
* T_VBEX = "
* T_EMBK = "
* T_DD07V = "
* 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_VBAK = "Sales Document: Header Data

EXCEPTIONS
NO_DATA_SELECTED = 1 NO_DATA_AUTHORITY_CHECK = 2
.



IMPORTING Parameters details for FT_CONTROL_ASS_DOCS_SELECT

I_GEGRU - Legal Regulation

Data type: EMBK-GEGRU
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_GOODS_ISSUE -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for FT_CONTROL_ASS_DOCS_SELECT

T_RANGE_GEART - License type

Data type: VFCS_RANGE_GEART
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_VBKD -

Data type: VBKD
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_DD07V -

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

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: Yes
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: 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)

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_ASS_DOCS_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_vbap  TYPE STANDARD TABLE OF VBAP, "   
lt_t_vbpa  TYPE STANDARD TABLE OF VBPA, "   
lt_t_vbkd  TYPE STANDARD TABLE OF VBKD, "   
lt_t_vbex  TYPE STANDARD TABLE OF VBEX, "   
lt_t_embk  TYPE STANDARD TABLE OF EMBK, "   
lt_t_dd07v  TYPE STANDARD TABLE OF DD07V, "   
lv_i_msg  TYPE FTSEL-SHOW_MSG, "   
lt_t_range_gennr  TYPE STANDARD TABLE OF VFCS_RANGE_GENNR, "   
lv_no_data_authority_check  TYPE VFCS_RANGE_GENNR, "   
lv_i_goods_issue  TYPE C, "   SPACE
lt_t_range_exgen  TYPE STANDARD TABLE OF VFCS_RANGE_EXGEN, "   
lt_t_range_werks  TYPE STANDARD TABLE OF 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_vbak  TYPE STANDARD TABLE OF VBAK. "   

  CALL FUNCTION 'FT_CONTROL_ASS_DOCS_SELECT'  "NOTRANSL: Außenhandel: Gesetzliche Kontrolle: Datenselektion: Zugeordnete
    EXPORTING
         I_GEGRU = lv_i_gegru
         I_MSG = lv_i_msg
         I_GOODS_ISSUE = lv_i_goods_issue
    TABLES
         T_RANGE_GEART = lt_t_range_geart
         T_VBAP = lt_t_vbap
         T_VBPA = lt_t_vbpa
         T_VBKD = lt_t_vbkd
         T_VBEX = lt_t_vbex
         T_EMBK = lt_t_embk
         T_DD07V = lt_t_dd07v
         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_VBAK = lt_t_vbak
    EXCEPTIONS
        NO_DATA_SELECTED = 1
        NO_DATA_AUTHORITY_CHECK = 2
. " FT_CONTROL_ASS_DOCS_SELECT




ABAP code using 7.40 inline data declarations to call FM FT_CONTROL_ASS_DOCS_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 SHOW_MSG FROM FTSEL INTO @DATA(ld_i_msg).
 
 
 
DATA(ld_i_goods_issue) = ' '.
 
 
 
 
 
 
 
 


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!