SAP LFA1_MATERIAL_TREX_TRIGGER Function Module for Lieferant: Änderungszeiger für TREX schreiben
LFA1_MATERIAL_TREX_TRIGGER is a standard lfa1 material trex trigger SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Lieferant: Änderungszeiger für TREX schreiben 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 lfa1 material trex trigger FM, simply by entering the name LFA1_MATERIAL_TREX_TRIGGER into the relevant SAP transaction such as SE37 or SE38.
Function Group: WSD_TREX_ENH
Program Name: SAPLWSD_TREX_ENH
Main Program: SAPLWSD_TREX_ENH
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function LFA1_MATERIAL_TREX_TRIGGER 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 'LFA1_MATERIAL_TREX_TRIGGER'"Lieferant: Änderungszeiger für TREX schreiben.
EXPORTING
* I_LFA1 = "Vendor Master (General Section)
* UPD_LFB1 = "Type of Change to LFB1
* UPD_LFB5 = "Type of Change to LFB5
* UPD_LFBK = "Type of Change to LFBK
* UPD_LFBW = "Type of Change to LFBW
* UPD_LFEI = "Type of Change to LFEI
* UPD_LFLR = "Type of Change to LFLR
* UPD_LFM1 = "Type of Change to LFM1
* UPD_LFM2 = "Type of Change to LFM2
* UPD_LFZA = "Type of Change to LFZA
* UPD_WYT1 = "Type of Change to WYT1
* I_LFA1_OLD = "Vendor Master (General Section) Old Status
* UPD_WYT1T = "Type of Change to WYT1T
* UPD_WYT3 = "Type of Change to WYT3
* I_ADD_ON_DATA = "Add-On Data Changed in Vendor Master
* I_LFB1 = "Vendor Master (Company Code)
* I_LFB1_OLD = "Vendor Master (Company Code) Old Status
* I_LFM1 = "Vendor Master Purchasing Organization Data
* I_LFM1_OLD = "Vendor Master Purchasing Organization Data Old Status
* UPD_LFA1 = "Type of Change to LFA1
* UPD_LFAS = "Type of Change to LFAS
* UPD_LFAT = "Type of Change to LFAT
TABLES
* T_XLFAS = "VAT Registration Numbers
* T_YLFBW = "Withholding Tax Types Old Status
* T_XLFEI = "Preference for Import and Export
* T_YLFEI = "Preference for Import and Export Old Status
* T_XLFLR = "Supply Regions
* T_YLFLR = "Supply Regions Old Status
* T_XLFM2 = "Purchasing Different Data Retention
* T_YLFM2 = "Purchasing Different Data Retention Old Status
* T_XLFZA = "Alternative Payee
* T_YLFZA = "Alternative Payee Old Status
* T_XWYT1 = "Vendor Sub-Range
* T_YLFAS = "EU Tax Numbers Old Status
* T_YWYT1 = "Vendor Sub-Range Old Status
* T_XWYT1T = "Vendor Sub-Range Description
* T_YWYT1T = "Vendor Sub-Range Description Old Status
* T_XWYT3 = "Partner Functions
* T_YWYT3 = "Partner Functions Old Status
* T_XLFAT = "Tax Groupings
* T_YLFAT = "Tax Groupings Old Status
* T_XLFB5 = "Dunning Data
* T_YLFB5 = "Dunning Data Old Status
* T_XLFBK = "Bank Details
* T_YLFBK = "Bank Details Old Status
* T_XLFBW = "Withholding Tax Types
IMPORTING Parameters details for LFA1_MATERIAL_TREX_TRIGGER
I_LFA1 - Vendor Master (General Section)
Data type: LFA1Optional: Yes
Call by Reference: No ( called with pass by value option)
UPD_LFB1 - Type of Change to LFB1
Data type: CDPOS-CHNGINDOptional: Yes
Call by Reference: No ( called with pass by value option)
UPD_LFB5 - Type of Change to LFB5
Data type: CDPOS-CHNGINDOptional: Yes
Call by Reference: No ( called with pass by value option)
UPD_LFBK - Type of Change to LFBK
Data type: CDPOS-CHNGINDOptional: Yes
Call by Reference: No ( called with pass by value option)
UPD_LFBW - Type of Change to LFBW
Data type: CDPOS-CHNGINDOptional: Yes
Call by Reference: No ( called with pass by value option)
UPD_LFEI - Type of Change to LFEI
Data type: CDPOS-CHNGINDOptional: Yes
Call by Reference: No ( called with pass by value option)
UPD_LFLR - Type of Change to LFLR
Data type: CDPOS-CHNGINDOptional: Yes
Call by Reference: No ( called with pass by value option)
UPD_LFM1 - Type of Change to LFM1
Data type: CDPOS-CHNGINDOptional: Yes
Call by Reference: No ( called with pass by value option)
UPD_LFM2 - Type of Change to LFM2
Data type: CDPOS-CHNGINDOptional: Yes
Call by Reference: No ( called with pass by value option)
UPD_LFZA - Type of Change to LFZA
Data type: CDPOS-CHNGINDOptional: Yes
Call by Reference: No ( called with pass by value option)
UPD_WYT1 - Type of Change to WYT1
Data type: CDPOS-CHNGINDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_LFA1_OLD - Vendor Master (General Section) Old Status
Data type: LFA1Optional: Yes
Call by Reference: No ( called with pass by value option)
UPD_WYT1T - Type of Change to WYT1T
Data type: CDPOS-CHNGINDOptional: Yes
Call by Reference: No ( called with pass by value option)
UPD_WYT3 - Type of Change to WYT3
Data type: CDPOS-CHNGINDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ADD_ON_DATA - Add-On Data Changed in Vendor Master
Data type: VEND_ADD_ON_DATAOptional: Yes
Call by Reference: No ( called with pass by value option)
I_LFB1 - Vendor Master (Company Code)
Data type: LFB1Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LFB1_OLD - Vendor Master (Company Code) Old Status
Data type: LFB1Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LFM1 - Vendor Master Purchasing Organization Data
Data type: LFM1Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LFM1_OLD - Vendor Master Purchasing Organization Data Old Status
Data type: LFM1Optional: Yes
Call by Reference: No ( called with pass by value option)
UPD_LFA1 - Type of Change to LFA1
Data type: CDPOS-CHNGINDOptional: Yes
Call by Reference: No ( called with pass by value option)
UPD_LFAS - Type of Change to LFAS
Data type: CDPOS-CHNGINDOptional: Yes
Call by Reference: No ( called with pass by value option)
UPD_LFAT - Type of Change to LFAT
Data type: CDPOS-CHNGINDOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for LFA1_MATERIAL_TREX_TRIGGER
T_XLFAS - VAT Registration Numbers
Data type: FLFASOptional: Yes
Call by Reference: No ( called with pass by value option)
T_YLFBW - Withholding Tax Types Old Status
Data type: FLFBWOptional: Yes
Call by Reference: No ( called with pass by value option)
T_XLFEI - Preference for Import and Export
Data type: FLFEIOptional: Yes
Call by Reference: No ( called with pass by value option)
T_YLFEI - Preference for Import and Export Old Status
Data type: FLFEIOptional: Yes
Call by Reference: No ( called with pass by value option)
T_XLFLR - Supply Regions
Data type: FLFLROptional: Yes
Call by Reference: No ( called with pass by value option)
T_YLFLR - Supply Regions Old Status
Data type: FLFLROptional: Yes
Call by Reference: No ( called with pass by value option)
T_XLFM2 - Purchasing Different Data Retention
Data type: FLFM2Optional: Yes
Call by Reference: No ( called with pass by value option)
T_YLFM2 - Purchasing Different Data Retention Old Status
Data type: FLFM2Optional: Yes
Call by Reference: No ( called with pass by value option)
T_XLFZA - Alternative Payee
Data type: FLFZAOptional: Yes
Call by Reference: No ( called with pass by value option)
T_YLFZA - Alternative Payee Old Status
Data type: FLFZAOptional: Yes
Call by Reference: No ( called with pass by value option)
T_XWYT1 - Vendor Sub-Range
Data type: FWYT1Optional: Yes
Call by Reference: No ( called with pass by value option)
T_YLFAS - EU Tax Numbers Old Status
Data type: FLFASOptional: Yes
Call by Reference: No ( called with pass by value option)
T_YWYT1 - Vendor Sub-Range Old Status
Data type: FWYT1Optional: Yes
Call by Reference: No ( called with pass by value option)
T_XWYT1T - Vendor Sub-Range Description
Data type: FWYT1TOptional: Yes
Call by Reference: No ( called with pass by value option)
T_YWYT1T - Vendor Sub-Range Description Old Status
Data type: FWYT1TOptional: Yes
Call by Reference: No ( called with pass by value option)
T_XWYT3 - Partner Functions
Data type: FWYT3Optional: Yes
Call by Reference: No ( called with pass by value option)
T_YWYT3 - Partner Functions Old Status
Data type: FWYT3Optional: Yes
Call by Reference: No ( called with pass by value option)
T_XLFAT - Tax Groupings
Data type: FLFATOptional: Yes
Call by Reference: No ( called with pass by value option)
T_YLFAT - Tax Groupings Old Status
Data type: FLFATOptional: Yes
Call by Reference: No ( called with pass by value option)
T_XLFB5 - Dunning Data
Data type: FLFB5Optional: Yes
Call by Reference: No ( called with pass by value option)
T_YLFB5 - Dunning Data Old Status
Data type: FLFB5Optional: Yes
Call by Reference: No ( called with pass by value option)
T_XLFBK - Bank Details
Data type: FLFBKOptional: Yes
Call by Reference: No ( called with pass by value option)
T_YLFBK - Bank Details Old Status
Data type: FLFBKOptional: Yes
Call by Reference: No ( called with pass by value option)
T_XLFBW - Withholding Tax Types
Data type: FLFBWOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for LFA1_MATERIAL_TREX_TRIGGER 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_lfa1 | TYPE LFA1, " | |||
| lt_t_xlfas | TYPE STANDARD TABLE OF FLFAS, " | |||
| lt_t_ylfbw | TYPE STANDARD TABLE OF FLFBW, " | |||
| lv_upd_lfb1 | TYPE CDPOS-CHNGIND, " | |||
| lt_t_xlfei | TYPE STANDARD TABLE OF FLFEI, " | |||
| lv_upd_lfb5 | TYPE CDPOS-CHNGIND, " | |||
| lt_t_ylfei | TYPE STANDARD TABLE OF FLFEI, " | |||
| lv_upd_lfbk | TYPE CDPOS-CHNGIND, " | |||
| lt_t_xlflr | TYPE STANDARD TABLE OF FLFLR, " | |||
| lv_upd_lfbw | TYPE CDPOS-CHNGIND, " | |||
| lt_t_ylflr | TYPE STANDARD TABLE OF FLFLR, " | |||
| lv_upd_lfei | TYPE CDPOS-CHNGIND, " | |||
| lt_t_xlfm2 | TYPE STANDARD TABLE OF FLFM2, " | |||
| lv_upd_lflr | TYPE CDPOS-CHNGIND, " | |||
| lt_t_ylfm2 | TYPE STANDARD TABLE OF FLFM2, " | |||
| lv_upd_lfm1 | TYPE CDPOS-CHNGIND, " | |||
| lt_t_xlfza | TYPE STANDARD TABLE OF FLFZA, " | |||
| lv_upd_lfm2 | TYPE CDPOS-CHNGIND, " | |||
| lt_t_ylfza | TYPE STANDARD TABLE OF FLFZA, " | |||
| lv_upd_lfza | TYPE CDPOS-CHNGIND, " | |||
| lt_t_xwyt1 | TYPE STANDARD TABLE OF FWYT1, " | |||
| lv_upd_wyt1 | TYPE CDPOS-CHNGIND, " | |||
| lt_t_ylfas | TYPE STANDARD TABLE OF FLFAS, " | |||
| lv_i_lfa1_old | TYPE LFA1, " | |||
| lt_t_ywyt1 | TYPE STANDARD TABLE OF FWYT1, " | |||
| lv_upd_wyt1t | TYPE CDPOS-CHNGIND, " | |||
| lt_t_xwyt1t | TYPE STANDARD TABLE OF FWYT1T, " | |||
| lv_upd_wyt3 | TYPE CDPOS-CHNGIND, " | |||
| lt_t_ywyt1t | TYPE STANDARD TABLE OF FWYT1T, " | |||
| lv_i_add_on_data | TYPE VEND_ADD_ON_DATA, " | |||
| lt_t_xwyt3 | TYPE STANDARD TABLE OF FWYT3, " | |||
| lt_t_ywyt3 | TYPE STANDARD TABLE OF FWYT3, " | |||
| lv_i_lfb1 | TYPE LFB1, " | |||
| lt_t_xlfat | TYPE STANDARD TABLE OF FLFAT, " | |||
| lt_t_ylfat | TYPE STANDARD TABLE OF FLFAT, " | |||
| lv_i_lfb1_old | TYPE LFB1, " | |||
| lv_i_lfm1 | TYPE LFM1, " | |||
| lt_t_xlfb5 | TYPE STANDARD TABLE OF FLFB5, " | |||
| lt_t_ylfb5 | TYPE STANDARD TABLE OF FLFB5, " | |||
| lv_i_lfm1_old | TYPE LFM1, " | |||
| lt_t_xlfbk | TYPE STANDARD TABLE OF FLFBK, " | |||
| lv_upd_lfa1 | TYPE CDPOS-CHNGIND, " | |||
| lt_t_ylfbk | TYPE STANDARD TABLE OF FLFBK, " | |||
| lv_upd_lfas | TYPE CDPOS-CHNGIND, " | |||
| lt_t_xlfbw | TYPE STANDARD TABLE OF FLFBW, " | |||
| lv_upd_lfat | TYPE CDPOS-CHNGIND. " |
|   CALL FUNCTION 'LFA1_MATERIAL_TREX_TRIGGER' "Lieferant: Änderungszeiger für TREX schreiben |
| EXPORTING | ||
| I_LFA1 | = lv_i_lfa1 | |
| UPD_LFB1 | = lv_upd_lfb1 | |
| UPD_LFB5 | = lv_upd_lfb5 | |
| UPD_LFBK | = lv_upd_lfbk | |
| UPD_LFBW | = lv_upd_lfbw | |
| UPD_LFEI | = lv_upd_lfei | |
| UPD_LFLR | = lv_upd_lflr | |
| UPD_LFM1 | = lv_upd_lfm1 | |
| UPD_LFM2 | = lv_upd_lfm2 | |
| UPD_LFZA | = lv_upd_lfza | |
| UPD_WYT1 | = lv_upd_wyt1 | |
| I_LFA1_OLD | = lv_i_lfa1_old | |
| UPD_WYT1T | = lv_upd_wyt1t | |
| UPD_WYT3 | = lv_upd_wyt3 | |
| I_ADD_ON_DATA | = lv_i_add_on_data | |
| I_LFB1 | = lv_i_lfb1 | |
| I_LFB1_OLD | = lv_i_lfb1_old | |
| I_LFM1 | = lv_i_lfm1 | |
| I_LFM1_OLD | = lv_i_lfm1_old | |
| UPD_LFA1 | = lv_upd_lfa1 | |
| UPD_LFAS | = lv_upd_lfas | |
| UPD_LFAT | = lv_upd_lfat | |
| TABLES | ||
| T_XLFAS | = lt_t_xlfas | |
| T_YLFBW | = lt_t_ylfbw | |
| T_XLFEI | = lt_t_xlfei | |
| T_YLFEI | = lt_t_ylfei | |
| T_XLFLR | = lt_t_xlflr | |
| T_YLFLR | = lt_t_ylflr | |
| T_XLFM2 | = lt_t_xlfm2 | |
| T_YLFM2 | = lt_t_ylfm2 | |
| T_XLFZA | = lt_t_xlfza | |
| T_YLFZA | = lt_t_ylfza | |
| T_XWYT1 | = lt_t_xwyt1 | |
| T_YLFAS | = lt_t_ylfas | |
| T_YWYT1 | = lt_t_ywyt1 | |
| T_XWYT1T | = lt_t_xwyt1t | |
| T_YWYT1T | = lt_t_ywyt1t | |
| T_XWYT3 | = lt_t_xwyt3 | |
| T_YWYT3 | = lt_t_ywyt3 | |
| T_XLFAT | = lt_t_xlfat | |
| T_YLFAT | = lt_t_ylfat | |
| T_XLFB5 | = lt_t_xlfb5 | |
| T_YLFB5 | = lt_t_ylfb5 | |
| T_XLFBK | = lt_t_xlfbk | |
| T_YLFBK | = lt_t_ylfbk | |
| T_XLFBW | = lt_t_xlfbw | |
| . " LFA1_MATERIAL_TREX_TRIGGER | ||
ABAP code using 7.40 inline data declarations to call FM LFA1_MATERIAL_TREX_TRIGGER
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 CHNGIND FROM CDPOS INTO @DATA(ld_upd_lfb1). | ||||
| "SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_lfb5). | ||||
| "SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_lfbk). | ||||
| "SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_lfbw). | ||||
| "SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_lfei). | ||||
| "SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_lflr). | ||||
| "SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_lfm1). | ||||
| "SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_lfm2). | ||||
| "SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_lfza). | ||||
| "SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_wyt1). | ||||
| "SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_wyt1t). | ||||
| "SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_wyt3). | ||||
| "SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_lfa1). | ||||
| "SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_lfas). | ||||
| "SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_upd_lfat). | ||||
Search for further information about these or an SAP related objects