SAP FT_MAT_PLANT_DATA_COMPARE Function Module for NOTRANSL: AUßenhandel: Materialstamm: Werksübergreifender Datenvergleich
FT_MAT_PLANT_DATA_COMPARE is a standard ft mat plant data compare 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: Materialstamm: Werksübergreifender Datenvergleich 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 mat plant data compare FM, simply by entering the name FT_MAT_PLANT_DATA_COMPARE into the relevant SAP transaction such as SE37 or SE38.
Function Group: VFTM
Program Name: SAPLVFTM
Main Program:
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FT_MAT_PLANT_DATA_COMPARE 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_MAT_PLANT_DATA_COMPARE'"NOTRANSL: AUßenhandel: Materialstamm: Werksübergreifender Datenvergleich.
EXPORTING
I_MERK_STATUS = "Maintenance Status
* I_CHECK_STEUC = ' ' "Check: Control Code
* I_CHECK_HERKL = ' ' "Check: Country of Origin
* I_CHECK_HERKR = ' ' "Generic Type
* I_CHECK_MOWNR = ' ' "Check EU Market Products List Number
* I_CHECK_MOGRU = ' ' "Check: EU Market Products Group
* I_CHECK_PRENC = ' ' "Generic Type
* I_CHECK_PRENO = ' ' "Generic Type
* I_CHECK_PREND = ' ' "Generic Type
* I_MAT_KTEXT = ' ' "Generic Type
I_ERSDA = "Mat. created as of
I_LVORM = "Flag Material for Deletion at Client Level
I_ITARK = "Military goods
I_EINK = "Generic Type
I_VERTR = "Generic Type
* I_CHECK_STAWN = 'X' "Generic Type
* I_CHECK_MTVER = ' ' "Generic Type
* I_CHECK_CASNR = ' ' "Generic Type
TABLES
T_RANGE_LAND = "Country
T_RANGE_HERKL = "Country of Departure
T_RANGE_HERKR = "Region of Origin
T_RANGE_MOWNR = "EU market products list number
T_RANGE_MOGRU = "CAP products group
T_RANGE_PRENC = "ExemptionCertificate
T_RANGE_PRENO = "Exemption cert. no.
T_RANGE_PREND = "Issue date of exempt. cert.
T_ANALYSE = "Foreign Trade: Analysis Result for an SD Document
T_RANGE_WERK = "Plant
T_RANGE_MATNR = "Material
T_RANGE_VKORG = "Sales Organization
T_RANGE_VTWEG = "Distribution Channel
T_RANGE_STAWN = "Commodity Code
T_RANGE_MTVER = "Export/import group
T_RANGE_CASNR = "CAS no.
T_RANGE_STEUC = "Control Code
EXCEPTIONS
NO_DATA_SELECTED = 1
IMPORTING Parameters details for FT_MAT_PLANT_DATA_COMPARE
I_MERK_STATUS - Maintenance Status
Data type: MARC-PSTATOptional: No
Call by Reference: No ( called with pass by value option)
I_CHECK_STEUC - Check: Control Code
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CHECK_HERKL - Check: Country of Origin
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CHECK_HERKR - Generic Type
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CHECK_MOWNR - Check EU Market Products List Number
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CHECK_MOGRU - Check: EU Market Products Group
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CHECK_PRENC - Generic Type
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CHECK_PRENO - Generic Type
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CHECK_PREND - Generic Type
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MAT_KTEXT - Generic Type
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ERSDA - Mat. created as of
Data type: MARAV-ERSDAOptional: No
Call by Reference: No ( called with pass by value option)
I_LVORM - Flag Material for Deletion at Client Level
Data type: MARA-LVORMOptional: No
Call by Reference: No ( called with pass by value option)
I_ITARK - Military goods
Data type: MARC-ITARKOptional: No
Call by Reference: No ( called with pass by value option)
I_EINK - Generic Type
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
I_VERTR - Generic Type
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
I_CHECK_STAWN - Generic Type
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CHECK_MTVER - Generic Type
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CHECK_CASNR - Generic Type
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FT_MAT_PLANT_DATA_COMPARE
T_RANGE_LAND - Country
Data type: VFTM_RANGE_LANDOptional: No
Call by Reference: No ( called with pass by value option)
T_RANGE_HERKL - Country of Departure
Data type: VFTM_RANGE_HERKLOptional: No
Call by Reference: No ( called with pass by value option)
T_RANGE_HERKR - Region of Origin
Data type: VFTM_RANGE_HERKROptional: No
Call by Reference: No ( called with pass by value option)
T_RANGE_MOWNR - EU market products list number
Data type: VFTM_RANGE_MOWNROptional: No
Call by Reference: No ( called with pass by value option)
T_RANGE_MOGRU - CAP products group
Data type: VFTM_RANGE_MOGRUOptional: No
Call by Reference: No ( called with pass by value option)
T_RANGE_PRENC - ExemptionCertificate
Data type: VFTM_RANGE_PRENCOptional: No
Call by Reference: No ( called with pass by value option)
T_RANGE_PRENO - Exemption cert. no.
Data type: VFTM_RANGE_PRENOOptional: No
Call by Reference: No ( called with pass by value option)
T_RANGE_PREND - Issue date of exempt. cert.
Data type: VFTM_RANGE_PRENDOptional: No
Call by Reference: No ( called with pass by value option)
T_ANALYSE - Foreign Trade: Analysis Result for an SD Document
Data type: VBEXANOptional: No
Call by Reference: No ( called with pass by value option)
T_RANGE_WERK - Plant
Data type: VFTM_RANGE_WERKOptional: No
Call by Reference: No ( called with pass by value option)
T_RANGE_MATNR - Material
Data type: VFTM_RANGE_MATERIALOptional: No
Call by Reference: No ( called with pass by value option)
T_RANGE_VKORG - Sales Organization
Data type: VFTM_RANGE_VKORGOptional: No
Call by Reference: No ( called with pass by value option)
T_RANGE_VTWEG - Distribution Channel
Data type: VFTM_RANGE_VTWEGOptional: No
Call by Reference: No ( called with pass by value option)
T_RANGE_STAWN - Commodity Code
Data type: VFTM_RANGE_STAWNOptional: No
Call by Reference: No ( called with pass by value option)
T_RANGE_MTVER - Export/import group
Data type: VFTM_RANGE_MTVEROptional: No
Call by Reference: No ( called with pass by value option)
T_RANGE_CASNR - CAS no.
Data type: VFTM_RANGE_CASNROptional: No
Call by Reference: No ( called with pass by value option)
T_RANGE_STEUC - Control Code
Data type: VFTM_RANGE_STEUCOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_DATA_SELECTED - No data corresponds to the selection criteria
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FT_MAT_PLANT_DATA_COMPARE 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: | ||||
| lt_t_range_land | TYPE STANDARD TABLE OF VFTM_RANGE_LAND, " | |||
| lv_i_merk_status | TYPE MARC-PSTAT, " | |||
| lv_no_data_selected | TYPE MARC, " | |||
| lv_i_check_steuc | TYPE C, " ' ' | |||
| lt_t_range_herkl | TYPE STANDARD TABLE OF VFTM_RANGE_HERKL, " | |||
| lv_i_check_herkl | TYPE C, " ' ' | |||
| lt_t_range_herkr | TYPE STANDARD TABLE OF VFTM_RANGE_HERKR, " | |||
| lv_i_check_herkr | TYPE C, " ' ' | |||
| lt_t_range_mownr | TYPE STANDARD TABLE OF VFTM_RANGE_MOWNR, " | |||
| lv_i_check_mownr | TYPE C, " ' ' | |||
| lt_t_range_mogru | TYPE STANDARD TABLE OF VFTM_RANGE_MOGRU, " | |||
| lv_i_check_mogru | TYPE C, " ' ' | |||
| lt_t_range_prenc | TYPE STANDARD TABLE OF VFTM_RANGE_PRENC, " | |||
| lv_i_check_prenc | TYPE C, " ' ' | |||
| lt_t_range_preno | TYPE STANDARD TABLE OF VFTM_RANGE_PRENO, " | |||
| lv_i_check_preno | TYPE C, " ' ' | |||
| lt_t_range_prend | TYPE STANDARD TABLE OF VFTM_RANGE_PREND, " | |||
| lt_t_analyse | TYPE STANDARD TABLE OF VBEXAN, " | |||
| lv_i_check_prend | TYPE C, " ' ' | |||
| lv_i_mat_ktext | TYPE C, " ' ' | |||
| lv_i_ersda | TYPE MARAV-ERSDA, " | |||
| lt_t_range_werk | TYPE STANDARD TABLE OF VFTM_RANGE_WERK, " | |||
| lv_i_lvorm | TYPE MARA-LVORM, " | |||
| lt_t_range_matnr | TYPE STANDARD TABLE OF VFTM_RANGE_MATERIAL, " | |||
| lv_i_itark | TYPE MARC-ITARK, " | |||
| lt_t_range_vkorg | TYPE STANDARD TABLE OF VFTM_RANGE_VKORG, " | |||
| lv_i_eink | TYPE C, " | |||
| lt_t_range_vtweg | TYPE STANDARD TABLE OF VFTM_RANGE_VTWEG, " | |||
| lv_i_vertr | TYPE C, " | |||
| lt_t_range_stawn | TYPE STANDARD TABLE OF VFTM_RANGE_STAWN, " | |||
| lv_i_check_stawn | TYPE C, " 'X' | |||
| lt_t_range_mtver | TYPE STANDARD TABLE OF VFTM_RANGE_MTVER, " | |||
| lv_i_check_mtver | TYPE C, " ' ' | |||
| lt_t_range_casnr | TYPE STANDARD TABLE OF VFTM_RANGE_CASNR, " | |||
| lv_i_check_casnr | TYPE C, " ' ' | |||
| lt_t_range_steuc | TYPE STANDARD TABLE OF VFTM_RANGE_STEUC. " |
|   CALL FUNCTION 'FT_MAT_PLANT_DATA_COMPARE' "NOTRANSL: AUßenhandel: Materialstamm: Werksübergreifender Datenvergleich |
| EXPORTING | ||
| I_MERK_STATUS | = lv_i_merk_status | |
| I_CHECK_STEUC | = lv_i_check_steuc | |
| I_CHECK_HERKL | = lv_i_check_herkl | |
| I_CHECK_HERKR | = lv_i_check_herkr | |
| I_CHECK_MOWNR | = lv_i_check_mownr | |
| I_CHECK_MOGRU | = lv_i_check_mogru | |
| I_CHECK_PRENC | = lv_i_check_prenc | |
| I_CHECK_PRENO | = lv_i_check_preno | |
| I_CHECK_PREND | = lv_i_check_prend | |
| I_MAT_KTEXT | = lv_i_mat_ktext | |
| I_ERSDA | = lv_i_ersda | |
| I_LVORM | = lv_i_lvorm | |
| I_ITARK | = lv_i_itark | |
| I_EINK | = lv_i_eink | |
| I_VERTR | = lv_i_vertr | |
| I_CHECK_STAWN | = lv_i_check_stawn | |
| I_CHECK_MTVER | = lv_i_check_mtver | |
| I_CHECK_CASNR | = lv_i_check_casnr | |
| TABLES | ||
| T_RANGE_LAND | = lt_t_range_land | |
| T_RANGE_HERKL | = lt_t_range_herkl | |
| T_RANGE_HERKR | = lt_t_range_herkr | |
| T_RANGE_MOWNR | = lt_t_range_mownr | |
| T_RANGE_MOGRU | = lt_t_range_mogru | |
| T_RANGE_PRENC | = lt_t_range_prenc | |
| T_RANGE_PRENO | = lt_t_range_preno | |
| T_RANGE_PREND | = lt_t_range_prend | |
| T_ANALYSE | = lt_t_analyse | |
| T_RANGE_WERK | = lt_t_range_werk | |
| T_RANGE_MATNR | = lt_t_range_matnr | |
| T_RANGE_VKORG | = lt_t_range_vkorg | |
| T_RANGE_VTWEG | = lt_t_range_vtweg | |
| T_RANGE_STAWN | = lt_t_range_stawn | |
| T_RANGE_MTVER | = lt_t_range_mtver | |
| T_RANGE_CASNR | = lt_t_range_casnr | |
| T_RANGE_STEUC | = lt_t_range_steuc | |
| EXCEPTIONS | ||
| NO_DATA_SELECTED = 1 | ||
| . " FT_MAT_PLANT_DATA_COMPARE | ||
ABAP code using 7.40 inline data declarations to call FM FT_MAT_PLANT_DATA_COMPARE
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 PSTAT FROM MARC INTO @DATA(ld_i_merk_status). | ||||
| DATA(ld_i_check_steuc) | = ' '. | |||
| DATA(ld_i_check_herkl) | = ' '. | |||
| DATA(ld_i_check_herkr) | = ' '. | |||
| DATA(ld_i_check_mownr) | = ' '. | |||
| DATA(ld_i_check_mogru) | = ' '. | |||
| DATA(ld_i_check_prenc) | = ' '. | |||
| DATA(ld_i_check_preno) | = ' '. | |||
| DATA(ld_i_check_prend) | = ' '. | |||
| DATA(ld_i_mat_ktext) | = ' '. | |||
| "SELECT single ERSDA FROM MARAV INTO @DATA(ld_i_ersda). | ||||
| "SELECT single LVORM FROM MARA INTO @DATA(ld_i_lvorm). | ||||
| "SELECT single ITARK FROM MARC INTO @DATA(ld_i_itark). | ||||
| DATA(ld_i_check_stawn) | = 'X'. | |||
| DATA(ld_i_check_mtver) | = ' '. | |||
| DATA(ld_i_check_casnr) | = ' '. | |||
Search for further information about these or an SAP related objects