SAP Function Modules

MATERIAL_CHANGED_ORG_LEVELS_RT SAP Function module







MATERIAL_CHANGED_ORG_LEVELS_RT 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_CHANGED_ORG_LEVELS_RT into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM MATERIAL_CHANGED_ORG_LEVELS_RT - MATERIAL CHANGED ORG LEVELS RT





CALL FUNCTION 'MATERIAL_CHANGED_ORG_LEVELS_RT' "
* EXPORTING
*   flg_uebernahme = SPACE      " t130f-kzref
  IMPORTING
    ref_mara_changed =          " sy-datar
    ref_maw1_changed =          " sy-datar
* TABLES
*   e_changed_matnr =           " pre03
*   e_changed_werks =           " pre01
*   e_changed_bwkey =           " pre17
*   e_changed_vtlin =           " pre10
*   e_changed_lgnum =           " pre12
*   i_matnr_tab =               " pre03
*   i_ueb_mara =                " mara_ueb      Couple of Fields Added to MARA
*   i_ueb_ktext_f =             " sktext_f      Descriptions with Administration Info (Full Key)
*   i_ueb_marc =                " marc_ueb      Field TRANC Added to MARC
*   i_ueb_mard =                " mard_ueb      Field TRANC Added to MARD
*   i_ueb_meinh_f =             " smeinh_f      Units of Measure with Administration Info (Full Key)
*   i_ueb_mea1_f =              " mea2          Internal Management of EANs for Material: ALE Retail
*   i_ueb_mbew =                " mbew_ueb      Field TRANC Added to MBEW
*   i_ueb_mvke =                " mvke_ueb      Field TRANC Added to MVKE
*   i_ueb_steuertab_f =         " msteuer_f     SD Taxes with Management Information (Full Key)
*   i_ueb_mlgn =                " mlgn_ueb      Field TRANC Added to MLGN
*   i_ueb_mlgt =                " mlgt_ueb      Field TRANC Added to MLGT
*   i_ueb_mpgd =                " mpgd_ueb      Field TRANC Added to MPGD
*   i_ueb_mfhm =                " mfhm_ueb      Field TRANC Added to MFHM
*   i_ueb_mpop =                " mpop_ueb      Field TRANC Added to MPOP
*   i_ueb_steummtab_f =         " msteumm_f     MM Taxes with Management Information (Full Key)
*   i_ueb_ges_verbtab_f =       " sverbtab_f    Consumption Values With Administrative Info (Full Key)
*   i_ueb_ung_verbtab_f =       " sverbtab_f    Consumption Values With Administrative Info (Full Key)
*   i_ueb_prowf_f =             " prowfa_f      Forecast Values with Administration Info (Full Key)
*   i_ueb_tltx1_f =             " ltx1          Data Transfer: Long Texts Data Division
*   i_ueb_texttab_del =         " ltx1          Data Transfer: Long Texts Data Division
*   i_ueb_maw1 =                " maw1_ueb      MAW1 for Data Transfer by ALE (Extended to Include TRANC)
*   i_ueb_mamt_f =              " mamt_ueb      MAMT for Data Transfer by ALE (Extended to Include TRANC)
*   i_ueb_mlea_f =              " mlea_ueb      Vendor-Specific EANs: Data Transfer
*   i_ueb_malg_f =              " malg_ueb      MALG for Data Transfer by ALE (Extended to Include TRANC)
*   i_ueb_wlk2 =                " wlk2_ueb      WLK2 for Data Transfer by ALE Extended to Include TRANC
*   i_ueb_var_tab =             " svartab       Structure for the Header Data of a Variant
*   i_ueb_vtl_tab =             " svtltab       Distribution Chains for Retail Material Maintenance
*   i_ueb_werks_tab =           " pre01         Help Structure for Mass Access to Material
*   i_ueb_lgort_tab =           " pre08         Transfer Structure for Pre-Fetch when Reading Material
*   i_ueb_lgnum_tab =           " pre12         Help Structure: Key MLGN (Without Client)
*   i_ueb_lgtyp_tab =           " pre13         Help Structure: Key MLGT (Without Client)
*   i_ueb_bwkey_tab =           " pre04         Transfer Structure for Prefetch When Reading Material
*   i_ueb_ausp_tab =            " sauspw        Retail Data Transfer: Characteristic Value Assignment
*   i_dia_marc =                " marc          Plant Data for Material
*   i_dia_mfhm =                " mfhm          Production Resource Tool (PRT) Fields in the Material Master
*   i_dia_mpgd =                " mpgd          Change-Document Structure for Material Master/Product Group
*   i_dia_mpop =                " mpop          Forecast Parameters
*   i_dia_mard =                " mard          Storage Location Data For Material
*   i_dia_mbew =                " mbew          Material Valuation
*   i_dia_mlgn =                " mlgn          Material Data For Each Warehouse Number
*   i_dia_mlgt =                " mlgt          Material Data For Each Storage Type
*   i_dia_mvke =                " mvke          Sales Data for Material
*   i_dia_wlk2 =                " wlk2          Article Master Data SAP Retail / Part POS Control Data
    .  "  MATERIAL_CHANGED_ORG_LEVELS_RT

ABAP code example for Function Module MATERIAL_CHANGED_ORG_LEVELS_RT





The ABAP code below is a full code listing to execute function module MATERIAL_CHANGED_ORG_LEVELS_RT 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:
ld_ref_mara_changed  TYPE SY-DATAR ,
ld_ref_maw1_changed  TYPE SY-DATAR ,
it_e_changed_matnr  TYPE STANDARD TABLE OF PRE03,"TABLES PARAM
wa_e_changed_matnr  LIKE LINE OF it_e_changed_matnr ,
it_e_changed_werks  TYPE STANDARD TABLE OF PRE01,"TABLES PARAM
wa_e_changed_werks  LIKE LINE OF it_e_changed_werks ,
it_e_changed_bwkey  TYPE STANDARD TABLE OF PRE17,"TABLES PARAM
wa_e_changed_bwkey  LIKE LINE OF it_e_changed_bwkey ,
it_e_changed_vtlin  TYPE STANDARD TABLE OF PRE10,"TABLES PARAM
wa_e_changed_vtlin  LIKE LINE OF it_e_changed_vtlin ,
it_e_changed_lgnum  TYPE STANDARD TABLE OF PRE12,"TABLES PARAM
wa_e_changed_lgnum  LIKE LINE OF it_e_changed_lgnum ,
it_i_matnr_tab  TYPE STANDARD TABLE OF PRE03,"TABLES PARAM
wa_i_matnr_tab  LIKE LINE OF it_i_matnr_tab ,
it_i_ueb_mara  TYPE STANDARD TABLE OF MARA_UEB,"TABLES PARAM
wa_i_ueb_mara  LIKE LINE OF it_i_ueb_mara ,
it_i_ueb_ktext_f  TYPE STANDARD TABLE OF SKTEXT_F,"TABLES PARAM
wa_i_ueb_ktext_f  LIKE LINE OF it_i_ueb_ktext_f ,
it_i_ueb_marc  TYPE STANDARD TABLE OF MARC_UEB,"TABLES PARAM
wa_i_ueb_marc  LIKE LINE OF it_i_ueb_marc ,
it_i_ueb_mard  TYPE STANDARD TABLE OF MARD_UEB,"TABLES PARAM
wa_i_ueb_mard  LIKE LINE OF it_i_ueb_mard ,
it_i_ueb_meinh_f  TYPE STANDARD TABLE OF SMEINH_F,"TABLES PARAM
wa_i_ueb_meinh_f  LIKE LINE OF it_i_ueb_meinh_f ,
it_i_ueb_mea1_f  TYPE STANDARD TABLE OF MEA2,"TABLES PARAM
wa_i_ueb_mea1_f  LIKE LINE OF it_i_ueb_mea1_f ,
it_i_ueb_mbew  TYPE STANDARD TABLE OF MBEW_UEB,"TABLES PARAM
wa_i_ueb_mbew  LIKE LINE OF it_i_ueb_mbew ,
it_i_ueb_mvke  TYPE STANDARD TABLE OF MVKE_UEB,"TABLES PARAM
wa_i_ueb_mvke  LIKE LINE OF it_i_ueb_mvke ,
it_i_ueb_steuertab_f  TYPE STANDARD TABLE OF MSTEUER_F,"TABLES PARAM
wa_i_ueb_steuertab_f  LIKE LINE OF it_i_ueb_steuertab_f ,
it_i_ueb_mlgn  TYPE STANDARD TABLE OF MLGN_UEB,"TABLES PARAM
wa_i_ueb_mlgn  LIKE LINE OF it_i_ueb_mlgn ,
it_i_ueb_mlgt  TYPE STANDARD TABLE OF MLGT_UEB,"TABLES PARAM
wa_i_ueb_mlgt  LIKE LINE OF it_i_ueb_mlgt ,
it_i_ueb_mpgd  TYPE STANDARD TABLE OF MPGD_UEB,"TABLES PARAM
wa_i_ueb_mpgd  LIKE LINE OF it_i_ueb_mpgd ,
it_i_ueb_mfhm  TYPE STANDARD TABLE OF MFHM_UEB,"TABLES PARAM
wa_i_ueb_mfhm  LIKE LINE OF it_i_ueb_mfhm ,
it_i_ueb_mpop  TYPE STANDARD TABLE OF MPOP_UEB,"TABLES PARAM
wa_i_ueb_mpop  LIKE LINE OF it_i_ueb_mpop ,
it_i_ueb_steummtab_f  TYPE STANDARD TABLE OF MSTEUMM_F,"TABLES PARAM
wa_i_ueb_steummtab_f  LIKE LINE OF it_i_ueb_steummtab_f ,
it_i_ueb_ges_verbtab_f  TYPE STANDARD TABLE OF SVERBTAB_F,"TABLES PARAM
wa_i_ueb_ges_verbtab_f  LIKE LINE OF it_i_ueb_ges_verbtab_f ,
it_i_ueb_ung_verbtab_f  TYPE STANDARD TABLE OF SVERBTAB_F,"TABLES PARAM
wa_i_ueb_ung_verbtab_f  LIKE LINE OF it_i_ueb_ung_verbtab_f ,
it_i_ueb_prowf_f  TYPE STANDARD TABLE OF PROWFA_F,"TABLES PARAM
wa_i_ueb_prowf_f  LIKE LINE OF it_i_ueb_prowf_f ,
it_i_ueb_tltx1_f  TYPE STANDARD TABLE OF LTX1,"TABLES PARAM
wa_i_ueb_tltx1_f  LIKE LINE OF it_i_ueb_tltx1_f ,
it_i_ueb_texttab_del  TYPE STANDARD TABLE OF LTX1,"TABLES PARAM
wa_i_ueb_texttab_del  LIKE LINE OF it_i_ueb_texttab_del ,
it_i_ueb_maw1  TYPE STANDARD TABLE OF MAW1_UEB,"TABLES PARAM
wa_i_ueb_maw1  LIKE LINE OF it_i_ueb_maw1 ,
it_i_ueb_mamt_f  TYPE STANDARD TABLE OF MAMT_UEB,"TABLES PARAM
wa_i_ueb_mamt_f  LIKE LINE OF it_i_ueb_mamt_f ,
it_i_ueb_mlea_f  TYPE STANDARD TABLE OF MLEA_UEB,"TABLES PARAM
wa_i_ueb_mlea_f  LIKE LINE OF it_i_ueb_mlea_f ,
it_i_ueb_malg_f  TYPE STANDARD TABLE OF MALG_UEB,"TABLES PARAM
wa_i_ueb_malg_f  LIKE LINE OF it_i_ueb_malg_f ,
it_i_ueb_wlk2  TYPE STANDARD TABLE OF WLK2_UEB,"TABLES PARAM
wa_i_ueb_wlk2  LIKE LINE OF it_i_ueb_wlk2 ,
it_i_ueb_var_tab  TYPE STANDARD TABLE OF SVARTAB,"TABLES PARAM
wa_i_ueb_var_tab  LIKE LINE OF it_i_ueb_var_tab ,
it_i_ueb_vtl_tab  TYPE STANDARD TABLE OF SVTLTAB,"TABLES PARAM
wa_i_ueb_vtl_tab  LIKE LINE OF it_i_ueb_vtl_tab ,
it_i_ueb_werks_tab  TYPE STANDARD TABLE OF PRE01,"TABLES PARAM
wa_i_ueb_werks_tab  LIKE LINE OF it_i_ueb_werks_tab ,
it_i_ueb_lgort_tab  TYPE STANDARD TABLE OF PRE08,"TABLES PARAM
wa_i_ueb_lgort_tab  LIKE LINE OF it_i_ueb_lgort_tab ,
it_i_ueb_lgnum_tab  TYPE STANDARD TABLE OF PRE12,"TABLES PARAM
wa_i_ueb_lgnum_tab  LIKE LINE OF it_i_ueb_lgnum_tab ,
it_i_ueb_lgtyp_tab  TYPE STANDARD TABLE OF PRE13,"TABLES PARAM
wa_i_ueb_lgtyp_tab  LIKE LINE OF it_i_ueb_lgtyp_tab ,
it_i_ueb_bwkey_tab  TYPE STANDARD TABLE OF PRE04,"TABLES PARAM
wa_i_ueb_bwkey_tab  LIKE LINE OF it_i_ueb_bwkey_tab ,
it_i_ueb_ausp_tab  TYPE STANDARD TABLE OF SAUSPW,"TABLES PARAM
wa_i_ueb_ausp_tab  LIKE LINE OF it_i_ueb_ausp_tab ,
it_i_dia_marc  TYPE STANDARD TABLE OF MARC,"TABLES PARAM
wa_i_dia_marc  LIKE LINE OF it_i_dia_marc ,
it_i_dia_mfhm  TYPE STANDARD TABLE OF MFHM,"TABLES PARAM
wa_i_dia_mfhm  LIKE LINE OF it_i_dia_mfhm ,
it_i_dia_mpgd  TYPE STANDARD TABLE OF MPGD,"TABLES PARAM
wa_i_dia_mpgd  LIKE LINE OF it_i_dia_mpgd ,
it_i_dia_mpop  TYPE STANDARD TABLE OF MPOP,"TABLES PARAM
wa_i_dia_mpop  LIKE LINE OF it_i_dia_mpop ,
it_i_dia_mard  TYPE STANDARD TABLE OF MARD,"TABLES PARAM
wa_i_dia_mard  LIKE LINE OF it_i_dia_mard ,
it_i_dia_mbew  TYPE STANDARD TABLE OF MBEW,"TABLES PARAM
wa_i_dia_mbew  LIKE LINE OF it_i_dia_mbew ,
it_i_dia_mlgn  TYPE STANDARD TABLE OF MLGN,"TABLES PARAM
wa_i_dia_mlgn  LIKE LINE OF it_i_dia_mlgn ,
it_i_dia_mlgt  TYPE STANDARD TABLE OF MLGT,"TABLES PARAM
wa_i_dia_mlgt  LIKE LINE OF it_i_dia_mlgt ,
it_i_dia_mvke  TYPE STANDARD TABLE OF MVKE,"TABLES PARAM
wa_i_dia_mvke  LIKE LINE OF it_i_dia_mvke ,
it_i_dia_wlk2  TYPE STANDARD TABLE OF WLK2,"TABLES PARAM
wa_i_dia_wlk2  LIKE LINE OF it_i_dia_wlk2 .


SELECT single KZREF
FROM T130F
INTO @DATA(ld_flg_uebernahme).


"populate fields of struture and append to itab
append wa_e_changed_matnr to it_e_changed_matnr.

"populate fields of struture and append to itab
append wa_e_changed_werks to it_e_changed_werks.

"populate fields of struture and append to itab
append wa_e_changed_bwkey to it_e_changed_bwkey.

"populate fields of struture and append to itab
append wa_e_changed_vtlin to it_e_changed_vtlin.

"populate fields of struture and append to itab
append wa_e_changed_lgnum to it_e_changed_lgnum.

"populate fields of struture and append to itab
append wa_i_matnr_tab to it_i_matnr_tab.

"populate fields of struture and append to itab
append wa_i_ueb_mara to it_i_ueb_mara.

"populate fields of struture and append to itab
append wa_i_ueb_ktext_f to it_i_ueb_ktext_f.

"populate fields of struture and append to itab
append wa_i_ueb_marc to it_i_ueb_marc.

"populate fields of struture and append to itab
append wa_i_ueb_mard to it_i_ueb_mard.

"populate fields of struture and append to itab
append wa_i_ueb_meinh_f to it_i_ueb_meinh_f.

"populate fields of struture and append to itab
append wa_i_ueb_mea1_f to it_i_ueb_mea1_f.

"populate fields of struture and append to itab
append wa_i_ueb_mbew to it_i_ueb_mbew.

"populate fields of struture and append to itab
append wa_i_ueb_mvke to it_i_ueb_mvke.

"populate fields of struture and append to itab
append wa_i_ueb_steuertab_f to it_i_ueb_steuertab_f.

"populate fields of struture and append to itab
append wa_i_ueb_mlgn to it_i_ueb_mlgn.

"populate fields of struture and append to itab
append wa_i_ueb_mlgt to it_i_ueb_mlgt.

"populate fields of struture and append to itab
append wa_i_ueb_mpgd to it_i_ueb_mpgd.

"populate fields of struture and append to itab
append wa_i_ueb_mfhm to it_i_ueb_mfhm.

"populate fields of struture and append to itab
append wa_i_ueb_mpop to it_i_ueb_mpop.

"populate fields of struture and append to itab
append wa_i_ueb_steummtab_f to it_i_ueb_steummtab_f.

"populate fields of struture and append to itab
append wa_i_ueb_ges_verbtab_f to it_i_ueb_ges_verbtab_f.

"populate fields of struture and append to itab
append wa_i_ueb_ung_verbtab_f to it_i_ueb_ung_verbtab_f.

"populate fields of struture and append to itab
append wa_i_ueb_prowf_f to it_i_ueb_prowf_f.

"populate fields of struture and append to itab
append wa_i_ueb_tltx1_f to it_i_ueb_tltx1_f.

"populate fields of struture and append to itab
append wa_i_ueb_texttab_del to it_i_ueb_texttab_del.

"populate fields of struture and append to itab
append wa_i_ueb_maw1 to it_i_ueb_maw1.

"populate fields of struture and append to itab
append wa_i_ueb_mamt_f to it_i_ueb_mamt_f.

"populate fields of struture and append to itab
append wa_i_ueb_mlea_f to it_i_ueb_mlea_f.

"populate fields of struture and append to itab
append wa_i_ueb_malg_f to it_i_ueb_malg_f.

"populate fields of struture and append to itab
append wa_i_ueb_wlk2 to it_i_ueb_wlk2.

"populate fields of struture and append to itab
append wa_i_ueb_var_tab to it_i_ueb_var_tab.

"populate fields of struture and append to itab
append wa_i_ueb_vtl_tab to it_i_ueb_vtl_tab.

"populate fields of struture and append to itab
append wa_i_ueb_werks_tab to it_i_ueb_werks_tab.

"populate fields of struture and append to itab
append wa_i_ueb_lgort_tab to it_i_ueb_lgort_tab.

"populate fields of struture and append to itab
append wa_i_ueb_lgnum_tab to it_i_ueb_lgnum_tab.

"populate fields of struture and append to itab
append wa_i_ueb_lgtyp_tab to it_i_ueb_lgtyp_tab.

"populate fields of struture and append to itab
append wa_i_ueb_bwkey_tab to it_i_ueb_bwkey_tab.

"populate fields of struture and append to itab
append wa_i_ueb_ausp_tab to it_i_ueb_ausp_tab.

"populate fields of struture and append to itab
append wa_i_dia_marc to it_i_dia_marc.

"populate fields of struture and append to itab
append wa_i_dia_mfhm to it_i_dia_mfhm.

"populate fields of struture and append to itab
append wa_i_dia_mpgd to it_i_dia_mpgd.

"populate fields of struture and append to itab
append wa_i_dia_mpop to it_i_dia_mpop.

"populate fields of struture and append to itab
append wa_i_dia_mard to it_i_dia_mard.

"populate fields of struture and append to itab
append wa_i_dia_mbew to it_i_dia_mbew.

"populate fields of struture and append to itab
append wa_i_dia_mlgn to it_i_dia_mlgn.

"populate fields of struture and append to itab
append wa_i_dia_mlgt to it_i_dia_mlgt.

"populate fields of struture and append to itab
append wa_i_dia_mvke to it_i_dia_mvke.

"populate fields of struture and append to itab
append wa_i_dia_wlk2 to it_i_dia_wlk2. . CALL FUNCTION 'MATERIAL_CHANGED_ORG_LEVELS_RT' * EXPORTING * flg_uebernahme = ld_flg_uebernahme IMPORTING ref_mara_changed = ld_ref_mara_changed ref_maw1_changed = ld_ref_maw1_changed * TABLES * e_changed_matnr = it_e_changed_matnr * e_changed_werks = it_e_changed_werks * e_changed_bwkey = it_e_changed_bwkey * e_changed_vtlin = it_e_changed_vtlin * e_changed_lgnum = it_e_changed_lgnum * i_matnr_tab = it_i_matnr_tab * i_ueb_mara = it_i_ueb_mara * i_ueb_ktext_f = it_i_ueb_ktext_f * i_ueb_marc = it_i_ueb_marc * i_ueb_mard = it_i_ueb_mard * i_ueb_meinh_f = it_i_ueb_meinh_f * i_ueb_mea1_f = it_i_ueb_mea1_f * i_ueb_mbew = it_i_ueb_mbew * i_ueb_mvke = it_i_ueb_mvke * i_ueb_steuertab_f = it_i_ueb_steuertab_f * i_ueb_mlgn = it_i_ueb_mlgn * i_ueb_mlgt = it_i_ueb_mlgt * i_ueb_mpgd = it_i_ueb_mpgd * i_ueb_mfhm = it_i_ueb_mfhm * i_ueb_mpop = it_i_ueb_mpop * i_ueb_steummtab_f = it_i_ueb_steummtab_f * i_ueb_ges_verbtab_f = it_i_ueb_ges_verbtab_f * i_ueb_ung_verbtab_f = it_i_ueb_ung_verbtab_f * i_ueb_prowf_f = it_i_ueb_prowf_f * i_ueb_tltx1_f = it_i_ueb_tltx1_f * i_ueb_texttab_del = it_i_ueb_texttab_del * i_ueb_maw1 = it_i_ueb_maw1 * i_ueb_mamt_f = it_i_ueb_mamt_f * i_ueb_mlea_f = it_i_ueb_mlea_f * i_ueb_malg_f = it_i_ueb_malg_f * i_ueb_wlk2 = it_i_ueb_wlk2 * i_ueb_var_tab = it_i_ueb_var_tab * i_ueb_vtl_tab = it_i_ueb_vtl_tab * i_ueb_werks_tab = it_i_ueb_werks_tab * i_ueb_lgort_tab = it_i_ueb_lgort_tab * i_ueb_lgnum_tab = it_i_ueb_lgnum_tab * i_ueb_lgtyp_tab = it_i_ueb_lgtyp_tab * i_ueb_bwkey_tab = it_i_ueb_bwkey_tab * i_ueb_ausp_tab = it_i_ueb_ausp_tab * i_dia_marc = it_i_dia_marc * i_dia_mfhm = it_i_dia_mfhm * i_dia_mpgd = it_i_dia_mpgd * i_dia_mpop = it_i_dia_mpop * i_dia_mard = it_i_dia_mard * i_dia_mbew = it_i_dia_mbew * i_dia_mlgn = it_i_dia_mlgn * i_dia_mlgt = it_i_dia_mlgt * i_dia_mvke = it_i_dia_mvke * i_dia_wlk2 = it_i_dia_wlk2 . " MATERIAL_CHANGED_ORG_LEVELS_RT
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_ref_mara_changed  TYPE SY-DATAR ,
ld_flg_uebernahme  TYPE T130F-KZREF ,
it_e_changed_matnr  TYPE STANDARD TABLE OF PRE03 ,
wa_e_changed_matnr  LIKE LINE OF it_e_changed_matnr,
ld_ref_maw1_changed  TYPE SY-DATAR ,
it_e_changed_werks  TYPE STANDARD TABLE OF PRE01 ,
wa_e_changed_werks  LIKE LINE OF it_e_changed_werks,
it_e_changed_bwkey  TYPE STANDARD TABLE OF PRE17 ,
wa_e_changed_bwkey  LIKE LINE OF it_e_changed_bwkey,
it_e_changed_vtlin  TYPE STANDARD TABLE OF PRE10 ,
wa_e_changed_vtlin  LIKE LINE OF it_e_changed_vtlin,
it_e_changed_lgnum  TYPE STANDARD TABLE OF PRE12 ,
wa_e_changed_lgnum  LIKE LINE OF it_e_changed_lgnum,
it_i_matnr_tab  TYPE STANDARD TABLE OF PRE03 ,
wa_i_matnr_tab  LIKE LINE OF it_i_matnr_tab,
it_i_ueb_mara  TYPE STANDARD TABLE OF MARA_UEB ,
wa_i_ueb_mara  LIKE LINE OF it_i_ueb_mara,
it_i_ueb_ktext_f  TYPE STANDARD TABLE OF SKTEXT_F ,
wa_i_ueb_ktext_f  LIKE LINE OF it_i_ueb_ktext_f,
it_i_ueb_marc  TYPE STANDARD TABLE OF MARC_UEB ,
wa_i_ueb_marc  LIKE LINE OF it_i_ueb_marc,
it_i_ueb_mard  TYPE STANDARD TABLE OF MARD_UEB ,
wa_i_ueb_mard  LIKE LINE OF it_i_ueb_mard,
it_i_ueb_meinh_f  TYPE STANDARD TABLE OF SMEINH_F ,
wa_i_ueb_meinh_f  LIKE LINE OF it_i_ueb_meinh_f,
it_i_ueb_mea1_f  TYPE STANDARD TABLE OF MEA2 ,
wa_i_ueb_mea1_f  LIKE LINE OF it_i_ueb_mea1_f,
it_i_ueb_mbew  TYPE STANDARD TABLE OF MBEW_UEB ,
wa_i_ueb_mbew  LIKE LINE OF it_i_ueb_mbew,
it_i_ueb_mvke  TYPE STANDARD TABLE OF MVKE_UEB ,
wa_i_ueb_mvke  LIKE LINE OF it_i_ueb_mvke,
it_i_ueb_steuertab_f  TYPE STANDARD TABLE OF MSTEUER_F ,
wa_i_ueb_steuertab_f  LIKE LINE OF it_i_ueb_steuertab_f,
it_i_ueb_mlgn  TYPE STANDARD TABLE OF MLGN_UEB ,
wa_i_ueb_mlgn  LIKE LINE OF it_i_ueb_mlgn,
it_i_ueb_mlgt  TYPE STANDARD TABLE OF MLGT_UEB ,
wa_i_ueb_mlgt  LIKE LINE OF it_i_ueb_mlgt,
it_i_ueb_mpgd  TYPE STANDARD TABLE OF MPGD_UEB ,
wa_i_ueb_mpgd  LIKE LINE OF it_i_ueb_mpgd,
it_i_ueb_mfhm  TYPE STANDARD TABLE OF MFHM_UEB ,
wa_i_ueb_mfhm  LIKE LINE OF it_i_ueb_mfhm,
it_i_ueb_mpop  TYPE STANDARD TABLE OF MPOP_UEB ,
wa_i_ueb_mpop  LIKE LINE OF it_i_ueb_mpop,
it_i_ueb_steummtab_f  TYPE STANDARD TABLE OF MSTEUMM_F ,
wa_i_ueb_steummtab_f  LIKE LINE OF it_i_ueb_steummtab_f,
it_i_ueb_ges_verbtab_f  TYPE STANDARD TABLE OF SVERBTAB_F ,
wa_i_ueb_ges_verbtab_f  LIKE LINE OF it_i_ueb_ges_verbtab_f,
it_i_ueb_ung_verbtab_f  TYPE STANDARD TABLE OF SVERBTAB_F ,
wa_i_ueb_ung_verbtab_f  LIKE LINE OF it_i_ueb_ung_verbtab_f,
it_i_ueb_prowf_f  TYPE STANDARD TABLE OF PROWFA_F ,
wa_i_ueb_prowf_f  LIKE LINE OF it_i_ueb_prowf_f,
it_i_ueb_tltx1_f  TYPE STANDARD TABLE OF LTX1 ,
wa_i_ueb_tltx1_f  LIKE LINE OF it_i_ueb_tltx1_f,
it_i_ueb_texttab_del  TYPE STANDARD TABLE OF LTX1 ,
wa_i_ueb_texttab_del  LIKE LINE OF it_i_ueb_texttab_del,
it_i_ueb_maw1  TYPE STANDARD TABLE OF MAW1_UEB ,
wa_i_ueb_maw1  LIKE LINE OF it_i_ueb_maw1,
it_i_ueb_mamt_f  TYPE STANDARD TABLE OF MAMT_UEB ,
wa_i_ueb_mamt_f  LIKE LINE OF it_i_ueb_mamt_f,
it_i_ueb_mlea_f  TYPE STANDARD TABLE OF MLEA_UEB ,
wa_i_ueb_mlea_f  LIKE LINE OF it_i_ueb_mlea_f,
it_i_ueb_malg_f  TYPE STANDARD TABLE OF MALG_UEB ,
wa_i_ueb_malg_f  LIKE LINE OF it_i_ueb_malg_f,
it_i_ueb_wlk2  TYPE STANDARD TABLE OF WLK2_UEB ,
wa_i_ueb_wlk2  LIKE LINE OF it_i_ueb_wlk2,
it_i_ueb_var_tab  TYPE STANDARD TABLE OF SVARTAB ,
wa_i_ueb_var_tab  LIKE LINE OF it_i_ueb_var_tab,
it_i_ueb_vtl_tab  TYPE STANDARD TABLE OF SVTLTAB ,
wa_i_ueb_vtl_tab  LIKE LINE OF it_i_ueb_vtl_tab,
it_i_ueb_werks_tab  TYPE STANDARD TABLE OF PRE01 ,
wa_i_ueb_werks_tab  LIKE LINE OF it_i_ueb_werks_tab,
it_i_ueb_lgort_tab  TYPE STANDARD TABLE OF PRE08 ,
wa_i_ueb_lgort_tab  LIKE LINE OF it_i_ueb_lgort_tab,
it_i_ueb_lgnum_tab  TYPE STANDARD TABLE OF PRE12 ,
wa_i_ueb_lgnum_tab  LIKE LINE OF it_i_ueb_lgnum_tab,
it_i_ueb_lgtyp_tab  TYPE STANDARD TABLE OF PRE13 ,
wa_i_ueb_lgtyp_tab  LIKE LINE OF it_i_ueb_lgtyp_tab,
it_i_ueb_bwkey_tab  TYPE STANDARD TABLE OF PRE04 ,
wa_i_ueb_bwkey_tab  LIKE LINE OF it_i_ueb_bwkey_tab,
it_i_ueb_ausp_tab  TYPE STANDARD TABLE OF SAUSPW ,
wa_i_ueb_ausp_tab  LIKE LINE OF it_i_ueb_ausp_tab,
it_i_dia_marc  TYPE STANDARD TABLE OF MARC ,
wa_i_dia_marc  LIKE LINE OF it_i_dia_marc,
it_i_dia_mfhm  TYPE STANDARD TABLE OF MFHM ,
wa_i_dia_mfhm  LIKE LINE OF it_i_dia_mfhm,
it_i_dia_mpgd  TYPE STANDARD TABLE OF MPGD ,
wa_i_dia_mpgd  LIKE LINE OF it_i_dia_mpgd,
it_i_dia_mpop  TYPE STANDARD TABLE OF MPOP ,
wa_i_dia_mpop  LIKE LINE OF it_i_dia_mpop,
it_i_dia_mard  TYPE STANDARD TABLE OF MARD ,
wa_i_dia_mard  LIKE LINE OF it_i_dia_mard,
it_i_dia_mbew  TYPE STANDARD TABLE OF MBEW ,
wa_i_dia_mbew  LIKE LINE OF it_i_dia_mbew,
it_i_dia_mlgn  TYPE STANDARD TABLE OF MLGN ,
wa_i_dia_mlgn  LIKE LINE OF it_i_dia_mlgn,
it_i_dia_mlgt  TYPE STANDARD TABLE OF MLGT ,
wa_i_dia_mlgt  LIKE LINE OF it_i_dia_mlgt,
it_i_dia_mvke  TYPE STANDARD TABLE OF MVKE ,
wa_i_dia_mvke  LIKE LINE OF it_i_dia_mvke,
it_i_dia_wlk2  TYPE STANDARD TABLE OF WLK2 ,
wa_i_dia_wlk2  LIKE LINE OF it_i_dia_wlk2.


SELECT single KZREF
FROM T130F
INTO ld_flg_uebernahme.


"populate fields of struture and append to itab
append wa_e_changed_matnr to it_e_changed_matnr.

"populate fields of struture and append to itab
append wa_e_changed_werks to it_e_changed_werks.

"populate fields of struture and append to itab
append wa_e_changed_bwkey to it_e_changed_bwkey.

"populate fields of struture and append to itab
append wa_e_changed_vtlin to it_e_changed_vtlin.

"populate fields of struture and append to itab
append wa_e_changed_lgnum to it_e_changed_lgnum.

"populate fields of struture and append to itab
append wa_i_matnr_tab to it_i_matnr_tab.

"populate fields of struture and append to itab
append wa_i_ueb_mara to it_i_ueb_mara.

"populate fields of struture and append to itab
append wa_i_ueb_ktext_f to it_i_ueb_ktext_f.

"populate fields of struture and append to itab
append wa_i_ueb_marc to it_i_ueb_marc.

"populate fields of struture and append to itab
append wa_i_ueb_mard to it_i_ueb_mard.

"populate fields of struture and append to itab
append wa_i_ueb_meinh_f to it_i_ueb_meinh_f.

"populate fields of struture and append to itab
append wa_i_ueb_mea1_f to it_i_ueb_mea1_f.

"populate fields of struture and append to itab
append wa_i_ueb_mbew to it_i_ueb_mbew.

"populate fields of struture and append to itab
append wa_i_ueb_mvke to it_i_ueb_mvke.

"populate fields of struture and append to itab
append wa_i_ueb_steuertab_f to it_i_ueb_steuertab_f.

"populate fields of struture and append to itab
append wa_i_ueb_mlgn to it_i_ueb_mlgn.

"populate fields of struture and append to itab
append wa_i_ueb_mlgt to it_i_ueb_mlgt.

"populate fields of struture and append to itab
append wa_i_ueb_mpgd to it_i_ueb_mpgd.

"populate fields of struture and append to itab
append wa_i_ueb_mfhm to it_i_ueb_mfhm.

"populate fields of struture and append to itab
append wa_i_ueb_mpop to it_i_ueb_mpop.

"populate fields of struture and append to itab
append wa_i_ueb_steummtab_f to it_i_ueb_steummtab_f.

"populate fields of struture and append to itab
append wa_i_ueb_ges_verbtab_f to it_i_ueb_ges_verbtab_f.

"populate fields of struture and append to itab
append wa_i_ueb_ung_verbtab_f to it_i_ueb_ung_verbtab_f.

"populate fields of struture and append to itab
append wa_i_ueb_prowf_f to it_i_ueb_prowf_f.

"populate fields of struture and append to itab
append wa_i_ueb_tltx1_f to it_i_ueb_tltx1_f.

"populate fields of struture and append to itab
append wa_i_ueb_texttab_del to it_i_ueb_texttab_del.

"populate fields of struture and append to itab
append wa_i_ueb_maw1 to it_i_ueb_maw1.

"populate fields of struture and append to itab
append wa_i_ueb_mamt_f to it_i_ueb_mamt_f.

"populate fields of struture and append to itab
append wa_i_ueb_mlea_f to it_i_ueb_mlea_f.

"populate fields of struture and append to itab
append wa_i_ueb_malg_f to it_i_ueb_malg_f.

"populate fields of struture and append to itab
append wa_i_ueb_wlk2 to it_i_ueb_wlk2.

"populate fields of struture and append to itab
append wa_i_ueb_var_tab to it_i_ueb_var_tab.

"populate fields of struture and append to itab
append wa_i_ueb_vtl_tab to it_i_ueb_vtl_tab.

"populate fields of struture and append to itab
append wa_i_ueb_werks_tab to it_i_ueb_werks_tab.

"populate fields of struture and append to itab
append wa_i_ueb_lgort_tab to it_i_ueb_lgort_tab.

"populate fields of struture and append to itab
append wa_i_ueb_lgnum_tab to it_i_ueb_lgnum_tab.

"populate fields of struture and append to itab
append wa_i_ueb_lgtyp_tab to it_i_ueb_lgtyp_tab.

"populate fields of struture and append to itab
append wa_i_ueb_bwkey_tab to it_i_ueb_bwkey_tab.

"populate fields of struture and append to itab
append wa_i_ueb_ausp_tab to it_i_ueb_ausp_tab.

"populate fields of struture and append to itab
append wa_i_dia_marc to it_i_dia_marc.

"populate fields of struture and append to itab
append wa_i_dia_mfhm to it_i_dia_mfhm.

"populate fields of struture and append to itab
append wa_i_dia_mpgd to it_i_dia_mpgd.

"populate fields of struture and append to itab
append wa_i_dia_mpop to it_i_dia_mpop.

"populate fields of struture and append to itab
append wa_i_dia_mard to it_i_dia_mard.

"populate fields of struture and append to itab
append wa_i_dia_mbew to it_i_dia_mbew.

"populate fields of struture and append to itab
append wa_i_dia_mlgn to it_i_dia_mlgn.

"populate fields of struture and append to itab
append wa_i_dia_mlgt to it_i_dia_mlgt.

"populate fields of struture and append to itab
append wa_i_dia_mvke to it_i_dia_mvke.

"populate fields of struture and append to itab
append wa_i_dia_wlk2 to it_i_dia_wlk2.

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_CHANGED_ORG_LEVELS_RT or its description.