SAP Function Modules

MATERIAL_TREX_TRIGGER SAP Function module







MATERIAL_TREX_TRIGGER is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name MATERIAL_TREX_TRIGGER into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: MGA_TREX
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM MATERIAL_TREX_TRIGGER - MATERIAL TREX TRIGGER





CALL FUNCTION 'MATERIAL_TREX_TRIGGER' "
* EXPORTING
*   i_mara_new =                " mara          Client-Specific Material Data (New Status)
*   i_mara_old =                " mara          Client-Specific Material Data (Old Status)
*   upd_mara =                  " cdpos-chngind  Type of Change Regarding MARA
*   i_marc_new =                " marc          Plant-Specific Material Data (New Status)
*   i_marc_old =                " marc          Plant-Specific Material Data (Old Status)
*   upd_marc =                  " cdpos-chngind  Type of Change Regarding MARC
*   i_mard_new =                " mard          Storage Location-Specific Material Data (New Status)
*   i_mard_old =                " mard          Storage Location-Specific Material Data (Old Status)
*   upd_mard =                  " cdpos-chngind  Type of Change Regarding MARD
*   i_mbew_new =                " mbew          Valuation Data (New Status)
*   i_mbew_old =                " mbew          Valuation Data (Old Status)
*   upd_mbew =                  " cdpos-chngind  Type of Change Regarding MBEW
*   i_mfhm_new =                " mfhm          Production Resource/Tool Data (New Status)
*   i_mfhm_old =                " mfhm          Production Resource/Tool Data (Old Status)
*   upd_mfhm =                  " cdpos-chngind  Type of Change Regarding MFHM
*   i_mlgn_new =                " mlgn          Warehouse Number-Specific Material Data (New Status)
*   i_mlgn_old =                " mlgn          Warehouse Number-Specific Material Data (Old Status)
*   upd_mlgn =                  " cdpos-chngind  Type of Change Regarding MLGN
*   i_mlgt_new =                " mlgt          Storage Type-Specific Material Data (New Status)
*   i_mlgt_old =                " mlgt          Storage Type-Specific Material Data (Old Status)
*   upd_mlgt =                  " cdpos-chngind  Type of Change Regarding MLGT
*   i_mpgd_new =                " mpgd          Planning Data (New Status)
*   i_mpgd_old =                " mpgd          Planning Data (Old Status)
*   upd_mpgd =                  " cdpos-chngind  Type of Change Regarding MPGD
*   i_mpop_new =                " mpop          Forecast Parameter (New Status)
*   i_mpop_old =                " mpop          Forecast Parameter (Old Status)
*   upd_mpop =                  " cdpos-chngind  Type of Change Regarding MPOP
*   i_mvke_new =                " mvke          Sales Data (New Status)
*   i_mvke_old =                " mvke          Sales Data (Old Status)
*   upd_mvke =                  " cdpos-chngind  Type of Change Regarding MVKE
*   upd_makt =                  " cdpos-chngind  Type of Change Regarding MAKT
*   upd_marm =                  " cdpos-chngind  Type of Change Regarding MARM
*   upd_mean =                  " cdpos-chngind  Type of Change Regarding MEAN
*   upd_mlan =                  " cdpos-chngind  Type of Change Regarding MLAN
*   upd_icdtxt_material =       " cdpos-chngind  Change Regarding Long Texts
*   upd_prow =                  " cdpos-chngind  Type of Change Regarding PROW
*   upd_gesv =                  " cdpos-chngind  Type of Change Regarding GESV
*   upd_ungv =                  " cdpos-chngind  Type of Change Regarding UNGV
*   upd_maex =                  " cdpos-chngind  Type of Change Regarding MAEX
*   upd_mape =                  " cdpos-chngind  Type of Change Regarding MAPE
*   upd_mkal =                  " cdpos-chngind  Type of Change Regarding MKAL
*   upd_qmat =                  " cdpos-chngind  Type of Change Regarding QMAT
*   fl_upd_task =               " xfeld         Checkbox
* TABLES
*   t_icdtxt_material =         " cdtxt         Key for Changed Long Texts
*   t_makt_new =                " xdmakt        Material Short Texts (New Status)
*   t_makt_old =                " xdmakt        Material Short Texts (New Status)
*   t_marm_new =                " xdmarm        Unit of Measure (New Status)
*   t_marm_old =                " xdmarm        Unit of Measure (Old Status)
*   t_mean_new =                " xdmean        International Article Number (New Status)
*   t_mean_old =                " xdmean        International Article Number (Old Status)
*   t_mlan_new =                " xdmlan        Tax Classifications (New Status)
*   t_mlan_old =                " xdmlan        Tax Classifications (Old Status)
*   t_maex_new =                " xdmaex        Export Control Data (New Status)
*   t_maex_old =                " xdmaex        Export Control Data (Old Status)
*   t_mape_new =                " xdmape        Material Short Texts (Old Status)
*   t_mape_old =                " xdmape        Customs Tariff Preference (Old Status)
*   t_mkal_new =                " xdmkal        Production Versions (New Status)
*   t_mkal_old =                " xdmkal        Production Versions (Old Status)
*   t_prow_new =                " xdprow        Forecast Values (New Status)
*   t_prow_old =                " xdprow        Forecast Values (Old Status)
*   t_qmat_new =                " xdqmat        QM Check Data (New Status)
*   t_qmat_old =                " xdqmat        QM Check Data (Old Status)
*   t_gesv_new =                " xdgesv        Total Consumption (New Status)
*   t_gesv_old =                " xdgesv        Total Consumption (Old Status)
*   t_ungv_new =                " xdungv        Unplanned Consumption (New Status)
*   t_ungv_old =                " xdungv        Unplanned Consumption (Old Status)
    .  "  MATERIAL_TREX_TRIGGER

ABAP code example for Function Module MATERIAL_TREX_TRIGGER





The ABAP code below is a full code listing to execute function module MATERIAL_TREX_TRIGGER including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_t_icdtxt_material  TYPE STANDARD TABLE OF CDTXT,"TABLES PARAM
wa_t_icdtxt_material  LIKE LINE OF it_t_icdtxt_material ,
it_t_makt_new  TYPE STANDARD TABLE OF XDMAKT,"TABLES PARAM
wa_t_makt_new  LIKE LINE OF it_t_makt_new ,
it_t_makt_old  TYPE STANDARD TABLE OF XDMAKT,"TABLES PARAM
wa_t_makt_old  LIKE LINE OF it_t_makt_old ,
it_t_marm_new  TYPE STANDARD TABLE OF XDMARM,"TABLES PARAM
wa_t_marm_new  LIKE LINE OF it_t_marm_new ,
it_t_marm_old  TYPE STANDARD TABLE OF XDMARM,"TABLES PARAM
wa_t_marm_old  LIKE LINE OF it_t_marm_old ,
it_t_mean_new  TYPE STANDARD TABLE OF XDMEAN,"TABLES PARAM
wa_t_mean_new  LIKE LINE OF it_t_mean_new ,
it_t_mean_old  TYPE STANDARD TABLE OF XDMEAN,"TABLES PARAM
wa_t_mean_old  LIKE LINE OF it_t_mean_old ,
it_t_mlan_new  TYPE STANDARD TABLE OF XDMLAN,"TABLES PARAM
wa_t_mlan_new  LIKE LINE OF it_t_mlan_new ,
it_t_mlan_old  TYPE STANDARD TABLE OF XDMLAN,"TABLES PARAM
wa_t_mlan_old  LIKE LINE OF it_t_mlan_old ,
it_t_maex_new  TYPE STANDARD TABLE OF XDMAEX,"TABLES PARAM
wa_t_maex_new  LIKE LINE OF it_t_maex_new ,
it_t_maex_old  TYPE STANDARD TABLE OF XDMAEX,"TABLES PARAM
wa_t_maex_old  LIKE LINE OF it_t_maex_old ,
it_t_mape_new  TYPE STANDARD TABLE OF XDMAPE,"TABLES PARAM
wa_t_mape_new  LIKE LINE OF it_t_mape_new ,
it_t_mape_old  TYPE STANDARD TABLE OF XDMAPE,"TABLES PARAM
wa_t_mape_old  LIKE LINE OF it_t_mape_old ,
it_t_mkal_new  TYPE STANDARD TABLE OF XDMKAL,"TABLES PARAM
wa_t_mkal_new  LIKE LINE OF it_t_mkal_new ,
it_t_mkal_old  TYPE STANDARD TABLE OF XDMKAL,"TABLES PARAM
wa_t_mkal_old  LIKE LINE OF it_t_mkal_old ,
it_t_prow_new  TYPE STANDARD TABLE OF XDPROW,"TABLES PARAM
wa_t_prow_new  LIKE LINE OF it_t_prow_new ,
it_t_prow_old  TYPE STANDARD TABLE OF XDPROW,"TABLES PARAM
wa_t_prow_old  LIKE LINE OF it_t_prow_old ,
it_t_qmat_new  TYPE STANDARD TABLE OF XDQMAT,"TABLES PARAM
wa_t_qmat_new  LIKE LINE OF it_t_qmat_new ,
it_t_qmat_old  TYPE STANDARD TABLE OF XDQMAT,"TABLES PARAM
wa_t_qmat_old  LIKE LINE OF it_t_qmat_old ,
it_t_gesv_new  TYPE STANDARD TABLE OF XDGESV,"TABLES PARAM
wa_t_gesv_new  LIKE LINE OF it_t_gesv_new ,
it_t_gesv_old  TYPE STANDARD TABLE OF XDGESV,"TABLES PARAM
wa_t_gesv_old  LIKE LINE OF it_t_gesv_old ,
it_t_ungv_new  TYPE STANDARD TABLE OF XDUNGV,"TABLES PARAM
wa_t_ungv_new  LIKE LINE OF it_t_ungv_new ,
it_t_ungv_old  TYPE STANDARD TABLE OF XDUNGV,"TABLES PARAM
wa_t_ungv_old  LIKE LINE OF it_t_ungv_old .

DATA(ld_i_mara_new) = 'Check type of data required'.
DATA(ld_i_mara_old) = 'Check type of data required'.

SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_mara).

DATA(ld_i_marc_new) = 'Check type of data required'.
DATA(ld_i_marc_old) = 'Check type of data required'.

SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_marc).

DATA(ld_i_mard_new) = 'Check type of data required'.
DATA(ld_i_mard_old) = 'Check type of data required'.

SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_mard).

DATA(ld_i_mbew_new) = 'Check type of data required'.
DATA(ld_i_mbew_old) = 'Check type of data required'.

SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_mbew).

DATA(ld_i_mfhm_new) = 'Check type of data required'.
DATA(ld_i_mfhm_old) = 'Check type of data required'.

SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_mfhm).

DATA(ld_i_mlgn_new) = 'Check type of data required'.
DATA(ld_i_mlgn_old) = 'Check type of data required'.

SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_mlgn).

DATA(ld_i_mlgt_new) = 'Check type of data required'.
DATA(ld_i_mlgt_old) = 'Check type of data required'.

SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_mlgt).

DATA(ld_i_mpgd_new) = 'Check type of data required'.
DATA(ld_i_mpgd_old) = 'Check type of data required'.

SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_mpgd).

DATA(ld_i_mpop_new) = 'Check type of data required'.
DATA(ld_i_mpop_old) = 'Check type of data required'.

SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_mpop).

DATA(ld_i_mvke_new) = 'Check type of data required'.
DATA(ld_i_mvke_old) = 'Check type of data required'.

SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_mvke).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_makt).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_marm).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_mean).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_mlan).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_icdtxt_material).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_prow).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_gesv).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_ungv).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_maex).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_mape).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_mkal).


SELECT single CHNGIND
FROM CDPOS
INTO @DATA(ld_upd_qmat).

DATA(ld_fl_upd_task) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_icdtxt_material to it_t_icdtxt_material.

"populate fields of struture and append to itab
append wa_t_makt_new to it_t_makt_new.

"populate fields of struture and append to itab
append wa_t_makt_old to it_t_makt_old.

"populate fields of struture and append to itab
append wa_t_marm_new to it_t_marm_new.

"populate fields of struture and append to itab
append wa_t_marm_old to it_t_marm_old.

"populate fields of struture and append to itab
append wa_t_mean_new to it_t_mean_new.

"populate fields of struture and append to itab
append wa_t_mean_old to it_t_mean_old.

"populate fields of struture and append to itab
append wa_t_mlan_new to it_t_mlan_new.

"populate fields of struture and append to itab
append wa_t_mlan_old to it_t_mlan_old.

"populate fields of struture and append to itab
append wa_t_maex_new to it_t_maex_new.

"populate fields of struture and append to itab
append wa_t_maex_old to it_t_maex_old.

"populate fields of struture and append to itab
append wa_t_mape_new to it_t_mape_new.

"populate fields of struture and append to itab
append wa_t_mape_old to it_t_mape_old.

"populate fields of struture and append to itab
append wa_t_mkal_new to it_t_mkal_new.

"populate fields of struture and append to itab
append wa_t_mkal_old to it_t_mkal_old.

"populate fields of struture and append to itab
append wa_t_prow_new to it_t_prow_new.

"populate fields of struture and append to itab
append wa_t_prow_old to it_t_prow_old.

"populate fields of struture and append to itab
append wa_t_qmat_new to it_t_qmat_new.

"populate fields of struture and append to itab
append wa_t_qmat_old to it_t_qmat_old.

"populate fields of struture and append to itab
append wa_t_gesv_new to it_t_gesv_new.

"populate fields of struture and append to itab
append wa_t_gesv_old to it_t_gesv_old.

"populate fields of struture and append to itab
append wa_t_ungv_new to it_t_ungv_new.

"populate fields of struture and append to itab
append wa_t_ungv_old to it_t_ungv_old. . CALL FUNCTION 'MATERIAL_TREX_TRIGGER' * EXPORTING * i_mara_new = ld_i_mara_new * i_mara_old = ld_i_mara_old * upd_mara = ld_upd_mara * i_marc_new = ld_i_marc_new * i_marc_old = ld_i_marc_old * upd_marc = ld_upd_marc * i_mard_new = ld_i_mard_new * i_mard_old = ld_i_mard_old * upd_mard = ld_upd_mard * i_mbew_new = ld_i_mbew_new * i_mbew_old = ld_i_mbew_old * upd_mbew = ld_upd_mbew * i_mfhm_new = ld_i_mfhm_new * i_mfhm_old = ld_i_mfhm_old * upd_mfhm = ld_upd_mfhm * i_mlgn_new = ld_i_mlgn_new * i_mlgn_old = ld_i_mlgn_old * upd_mlgn = ld_upd_mlgn * i_mlgt_new = ld_i_mlgt_new * i_mlgt_old = ld_i_mlgt_old * upd_mlgt = ld_upd_mlgt * i_mpgd_new = ld_i_mpgd_new * i_mpgd_old = ld_i_mpgd_old * upd_mpgd = ld_upd_mpgd * i_mpop_new = ld_i_mpop_new * i_mpop_old = ld_i_mpop_old * upd_mpop = ld_upd_mpop * i_mvke_new = ld_i_mvke_new * i_mvke_old = ld_i_mvke_old * upd_mvke = ld_upd_mvke * upd_makt = ld_upd_makt * upd_marm = ld_upd_marm * upd_mean = ld_upd_mean * upd_mlan = ld_upd_mlan * upd_icdtxt_material = ld_upd_icdtxt_material * upd_prow = ld_upd_prow * upd_gesv = ld_upd_gesv * upd_ungv = ld_upd_ungv * upd_maex = ld_upd_maex * upd_mape = ld_upd_mape * upd_mkal = ld_upd_mkal * upd_qmat = ld_upd_qmat * fl_upd_task = ld_fl_upd_task * TABLES * t_icdtxt_material = it_t_icdtxt_material * t_makt_new = it_t_makt_new * t_makt_old = it_t_makt_old * t_marm_new = it_t_marm_new * t_marm_old = it_t_marm_old * t_mean_new = it_t_mean_new * t_mean_old = it_t_mean_old * t_mlan_new = it_t_mlan_new * t_mlan_old = it_t_mlan_old * t_maex_new = it_t_maex_new * t_maex_old = it_t_maex_old * t_mape_new = it_t_mape_new * t_mape_old = it_t_mape_old * t_mkal_new = it_t_mkal_new * t_mkal_old = it_t_mkal_old * t_prow_new = it_t_prow_new * t_prow_old = it_t_prow_old * t_qmat_new = it_t_qmat_new * t_qmat_old = it_t_qmat_old * t_gesv_new = it_t_gesv_new * t_gesv_old = it_t_gesv_old * t_ungv_new = it_t_ungv_new * t_ungv_old = it_t_ungv_old . " MATERIAL_TREX_TRIGGER
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_i_mara_new  TYPE MARA ,
it_t_icdtxt_material  TYPE STANDARD TABLE OF CDTXT ,
wa_t_icdtxt_material  LIKE LINE OF it_t_icdtxt_material,
ld_i_mara_old  TYPE MARA ,
it_t_makt_new  TYPE STANDARD TABLE OF XDMAKT ,
wa_t_makt_new  LIKE LINE OF it_t_makt_new,
ld_upd_mara  TYPE CDPOS-CHNGIND ,
it_t_makt_old  TYPE STANDARD TABLE OF XDMAKT ,
wa_t_makt_old  LIKE LINE OF it_t_makt_old,
ld_i_marc_new  TYPE MARC ,
it_t_marm_new  TYPE STANDARD TABLE OF XDMARM ,
wa_t_marm_new  LIKE LINE OF it_t_marm_new,
ld_i_marc_old  TYPE MARC ,
it_t_marm_old  TYPE STANDARD TABLE OF XDMARM ,
wa_t_marm_old  LIKE LINE OF it_t_marm_old,
ld_upd_marc  TYPE CDPOS-CHNGIND ,
it_t_mean_new  TYPE STANDARD TABLE OF XDMEAN ,
wa_t_mean_new  LIKE LINE OF it_t_mean_new,
ld_i_mard_new  TYPE MARD ,
it_t_mean_old  TYPE STANDARD TABLE OF XDMEAN ,
wa_t_mean_old  LIKE LINE OF it_t_mean_old,
ld_i_mard_old  TYPE MARD ,
it_t_mlan_new  TYPE STANDARD TABLE OF XDMLAN ,
wa_t_mlan_new  LIKE LINE OF it_t_mlan_new,
ld_upd_mard  TYPE CDPOS-CHNGIND ,
it_t_mlan_old  TYPE STANDARD TABLE OF XDMLAN ,
wa_t_mlan_old  LIKE LINE OF it_t_mlan_old,
ld_i_mbew_new  TYPE MBEW ,
it_t_maex_new  TYPE STANDARD TABLE OF XDMAEX ,
wa_t_maex_new  LIKE LINE OF it_t_maex_new,
it_t_maex_old  TYPE STANDARD TABLE OF XDMAEX ,
wa_t_maex_old  LIKE LINE OF it_t_maex_old,
ld_i_mbew_old  TYPE MBEW ,
it_t_mape_new  TYPE STANDARD TABLE OF XDMAPE ,
wa_t_mape_new  LIKE LINE OF it_t_mape_new,
ld_upd_mbew  TYPE CDPOS-CHNGIND ,
it_t_mape_old  TYPE STANDARD TABLE OF XDMAPE ,
wa_t_mape_old  LIKE LINE OF it_t_mape_old,
ld_i_mfhm_new  TYPE MFHM ,
it_t_mkal_new  TYPE STANDARD TABLE OF XDMKAL ,
wa_t_mkal_new  LIKE LINE OF it_t_mkal_new,
ld_i_mfhm_old  TYPE MFHM ,
it_t_mkal_old  TYPE STANDARD TABLE OF XDMKAL ,
wa_t_mkal_old  LIKE LINE OF it_t_mkal_old,
ld_upd_mfhm  TYPE CDPOS-CHNGIND ,
it_t_prow_new  TYPE STANDARD TABLE OF XDPROW ,
wa_t_prow_new  LIKE LINE OF it_t_prow_new,
ld_i_mlgn_new  TYPE MLGN ,
it_t_prow_old  TYPE STANDARD TABLE OF XDPROW ,
wa_t_prow_old  LIKE LINE OF it_t_prow_old,
ld_i_mlgn_old  TYPE MLGN ,
it_t_qmat_new  TYPE STANDARD TABLE OF XDQMAT ,
wa_t_qmat_new  LIKE LINE OF it_t_qmat_new,
ld_upd_mlgn  TYPE CDPOS-CHNGIND ,
it_t_qmat_old  TYPE STANDARD TABLE OF XDQMAT ,
wa_t_qmat_old  LIKE LINE OF it_t_qmat_old,
ld_i_mlgt_new  TYPE MLGT ,
it_t_gesv_new  TYPE STANDARD TABLE OF XDGESV ,
wa_t_gesv_new  LIKE LINE OF it_t_gesv_new,
ld_i_mlgt_old  TYPE MLGT ,
it_t_gesv_old  TYPE STANDARD TABLE OF XDGESV ,
wa_t_gesv_old  LIKE LINE OF it_t_gesv_old,
ld_upd_mlgt  TYPE CDPOS-CHNGIND ,
it_t_ungv_new  TYPE STANDARD TABLE OF XDUNGV ,
wa_t_ungv_new  LIKE LINE OF it_t_ungv_new,
ld_i_mpgd_new  TYPE MPGD ,
it_t_ungv_old  TYPE STANDARD TABLE OF XDUNGV ,
wa_t_ungv_old  LIKE LINE OF it_t_ungv_old,
ld_i_mpgd_old  TYPE MPGD ,
ld_upd_mpgd  TYPE CDPOS-CHNGIND ,
ld_i_mpop_new  TYPE MPOP ,
ld_i_mpop_old  TYPE MPOP ,
ld_upd_mpop  TYPE CDPOS-CHNGIND ,
ld_i_mvke_new  TYPE MVKE ,
ld_i_mvke_old  TYPE MVKE ,
ld_upd_mvke  TYPE CDPOS-CHNGIND ,
ld_upd_makt  TYPE CDPOS-CHNGIND ,
ld_upd_marm  TYPE CDPOS-CHNGIND ,
ld_upd_mean  TYPE CDPOS-CHNGIND ,
ld_upd_mlan  TYPE CDPOS-CHNGIND ,
ld_upd_icdtxt_material  TYPE CDPOS-CHNGIND ,
ld_upd_prow  TYPE CDPOS-CHNGIND ,
ld_upd_gesv  TYPE CDPOS-CHNGIND ,
ld_upd_ungv  TYPE CDPOS-CHNGIND ,
ld_upd_maex  TYPE CDPOS-CHNGIND ,
ld_upd_mape  TYPE CDPOS-CHNGIND ,
ld_upd_mkal  TYPE CDPOS-CHNGIND ,
ld_upd_qmat  TYPE CDPOS-CHNGIND ,
ld_fl_upd_task  TYPE XFELD .

ld_i_mara_new = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_icdtxt_material to it_t_icdtxt_material.
ld_i_mara_old = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_makt_new to it_t_makt_new.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_mara.


"populate fields of struture and append to itab
append wa_t_makt_old to it_t_makt_old.
ld_i_marc_new = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_marm_new to it_t_marm_new.
ld_i_marc_old = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_marm_old to it_t_marm_old.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_marc.


"populate fields of struture and append to itab
append wa_t_mean_new to it_t_mean_new.
ld_i_mard_new = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_mean_old to it_t_mean_old.
ld_i_mard_old = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_mlan_new to it_t_mlan_new.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_mard.


"populate fields of struture and append to itab
append wa_t_mlan_old to it_t_mlan_old.
ld_i_mbew_new = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_maex_new to it_t_maex_new.

"populate fields of struture and append to itab
append wa_t_maex_old to it_t_maex_old.
ld_i_mbew_old = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_mape_new to it_t_mape_new.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_mbew.


"populate fields of struture and append to itab
append wa_t_mape_old to it_t_mape_old.
ld_i_mfhm_new = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_mkal_new to it_t_mkal_new.
ld_i_mfhm_old = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_mkal_old to it_t_mkal_old.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_mfhm.


"populate fields of struture and append to itab
append wa_t_prow_new to it_t_prow_new.
ld_i_mlgn_new = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_prow_old to it_t_prow_old.
ld_i_mlgn_old = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_qmat_new to it_t_qmat_new.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_mlgn.


"populate fields of struture and append to itab
append wa_t_qmat_old to it_t_qmat_old.
ld_i_mlgt_new = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_gesv_new to it_t_gesv_new.
ld_i_mlgt_old = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_gesv_old to it_t_gesv_old.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_mlgt.


"populate fields of struture and append to itab
append wa_t_ungv_new to it_t_ungv_new.
ld_i_mpgd_new = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_ungv_old to it_t_ungv_old.
ld_i_mpgd_old = 'Check type of data required'.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_mpgd.

ld_i_mpop_new = 'Check type of data required'.
ld_i_mpop_old = 'Check type of data required'.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_mpop.

ld_i_mvke_new = 'Check type of data required'.
ld_i_mvke_old = 'Check type of data required'.

SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_mvke.


SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_makt.


SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_marm.


SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_mean.


SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_mlan.


SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_icdtxt_material.


SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_prow.


SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_gesv.


SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_ungv.


SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_maex.


SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_mape.


SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_mkal.


SELECT single CHNGIND
FROM CDPOS
INTO ld_upd_qmat.

ld_fl_upd_task = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name MATERIAL_TREX_TRIGGER or its description.