SAP FT_VEND_DECL_SD_GET_DATA Function Module for NOTRANSL: Außenhandel: Daten für SD-seitige LE selektieren
FT_VEND_DECL_SD_GET_DATA is a standard ft vend decl sd get data 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: Daten für SD-seitige LE selektieren 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 vend decl sd get data FM, simply by entering the name FT_VEND_DECL_SD_GET_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: VFLS
Program Name: SAPLVFLS
Main Program: SAPLVFLS
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FT_VEND_DECL_SD_GET_DATA 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_VEND_DECL_SD_GET_DATA'"NOTRANSL: Außenhandel: Daten für SD-seitige LE selektieren.
EXPORTING
I_CHKFK = "Materials from billing documents
TABLES
I_WERKS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_MATNR = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_KUNNR = "
I_ERDAT = "
I_GZOLX = "
E_HEADER = "Material Data
E_ITEMS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_MTART = "
EXCEPTIONS
NO_DATA = 1 DATA_LOCKED = 2 INTERNAL_ENQUEUE_ERROR = 3
IMPORTING Parameters details for FT_VEND_DECL_SD_GET_DATA
I_CHKFK - Materials from billing documents
Data type: FTPRE-P_CHKFKOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FT_VEND_DECL_SD_GET_DATA
I_WERKS - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: VFLS_WERKS_RANGEOptional: No
Call by Reference: No ( called with pass by value option)
I_MATNR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: VFLS_MATNR_RANGEOptional: No
Call by Reference: No ( called with pass by value option)
I_KUNNR -
Data type: VFLS_KUNNR_RANGEOptional: No
Call by Reference: No ( called with pass by value option)
I_ERDAT -
Data type: VFLS_ERDAT_RANGEOptional: No
Call by Reference: No ( called with pass by value option)
I_GZOLX -
Data type: VFLS_GZOLX_RANGEOptional: No
Call by Reference: Yes
E_HEADER - Material Data
Data type: VFLS_ITAB_HEADER_SDOptional: No
Call by Reference: No ( called with pass by value option)
E_ITEMS - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: VFLS_ITAB_ITEMS_SDOptional: No
Call by Reference: No ( called with pass by value option)
I_MTART -
Data type: VFLS_MTART_RANGEOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_DATA - No data selected
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DATA_LOCKED - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ENQUEUE_ERROR - Internal Error from Enqueue Server
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FT_VEND_DECL_SD_GET_DATA 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_chkfk | TYPE FTPRE-P_CHKFK, " | |||
| lt_i_werks | TYPE STANDARD TABLE OF VFLS_WERKS_RANGE, " | |||
| lv_no_data | TYPE VFLS_WERKS_RANGE, " | |||
| lt_i_matnr | TYPE STANDARD TABLE OF VFLS_MATNR_RANGE, " | |||
| lv_data_locked | TYPE VFLS_MATNR_RANGE, " | |||
| lt_i_kunnr | TYPE STANDARD TABLE OF VFLS_KUNNR_RANGE, " | |||
| lv_internal_enqueue_error | TYPE VFLS_KUNNR_RANGE, " | |||
| lt_i_erdat | TYPE STANDARD TABLE OF VFLS_ERDAT_RANGE, " | |||
| lt_i_gzolx | TYPE STANDARD TABLE OF VFLS_GZOLX_RANGE, " | |||
| lt_e_header | TYPE STANDARD TABLE OF VFLS_ITAB_HEADER_SD, " | |||
| lt_e_items | TYPE STANDARD TABLE OF VFLS_ITAB_ITEMS_SD, " | |||
| lt_i_mtart | TYPE STANDARD TABLE OF VFLS_MTART_RANGE. " |
|   CALL FUNCTION 'FT_VEND_DECL_SD_GET_DATA' "NOTRANSL: Außenhandel: Daten für SD-seitige LE selektieren |
| EXPORTING | ||
| I_CHKFK | = lv_i_chkfk | |
| TABLES | ||
| I_WERKS | = lt_i_werks | |
| I_MATNR | = lt_i_matnr | |
| I_KUNNR | = lt_i_kunnr | |
| I_ERDAT | = lt_i_erdat | |
| I_GZOLX | = lt_i_gzolx | |
| E_HEADER | = lt_e_header | |
| E_ITEMS | = lt_e_items | |
| I_MTART | = lt_i_mtart | |
| EXCEPTIONS | ||
| NO_DATA = 1 | ||
| DATA_LOCKED = 2 | ||
| INTERNAL_ENQUEUE_ERROR = 3 | ||
| . " FT_VEND_DECL_SD_GET_DATA | ||
ABAP code using 7.40 inline data declarations to call FM FT_VEND_DECL_SD_GET_DATA
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 P_CHKFK FROM FTPRE INTO @DATA(ld_i_chkfk). | ||||
Search for further information about these or an SAP related objects