Bdc Program for MM01 Tcode

download Bdc Program for MM01 Tcode

of 21

  • date post

    11-Apr-2015
  • Category

    Documents

  • view

    1.253
  • download

    3

Embed Size (px)

Transcript of Bdc Program for MM01 Tcode

Tutorial - BDC Program to Upload Material Master Data (MM01)REPORT ZIMMC001. ************************************************************************ * DATA DECLARATION * ************************************************************************ *-----------------------------------* Type Declaration of the Structure. *-----------------------------------TYPES: BEGIN OF TY_SAVE_INDEX, IDNO TYPE I, " SAVE Index END OF TY_SAVE_INDEX. TYPES: BEGIN OF TY_TABDATA, * :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: * Create Material (Initial Screen). * :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: MATNR(18) TYPE C, " Material Number. MBRSH(01) TYPE C, " Industry Sector. MTART(04) TYPE C, " Material Type. * :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: * Organizational Levels. * :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: WERKS(04) TYPE C, " Plant. LGORT(04) TYPE C, " Storage Location. VKORG(04) TYPE C, " Sales Organization. VTWEG(02) TYPE C, " Distribution Channel. * :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: * Sales Org. 1 : Tax Classification. * :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: TAXKM1(01) TYPE C, " Tax classification material 1. TAXKM2(01) TYPE C, " Tax classification material 2. TAXKM3(01) TYPE C, " Tax classification material 3. TAXKM4(01) TYPE C, " Tax classification material 4. TAXKM5(01) TYPE C, " Tax classification material 5. * :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: * Additional Data - UoM. * :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: UMREN1(06) TYPE C, " Denominator for Conversion to Base Units of Measure 1. MEINH1(03) TYPE C, " Alternative Unit of Measure for Stockkeeping Unit 1. UMREZ1(06) TYPE C, " Numerator for Conversion to Base Units of Measure 1. * .......................................................................................... UMREN2(06) TYPE C, " Denominator for Conversion to Base Units of Measure 2. MEINH2(03) TYPE C, " Alternative Unit of Measure for Stockkeeping Unit 2. UMREZ2(06) TYPE C, " Numerator for Conversion to Base Units of Measure 2. * .......................................................................................... UMREN3(06) TYPE C, " Denominator for Conversion to Base Units of Measure 3. MEINH3(03) TYPE C, " Alternative Unit of Measure for Stockkeeping Unit 3. UMREZ3(06) TYPE C, " Numerator for Conversion to Base Units of Measure 3. * .......................................................................................... UMREN4(06) TYPE C, " Denominator for Conversion to Base Units of Measure 4.

*

* * *

* * *

* * *

* * * * * *

* * * * * *

MEINH4(03) TYPE C, " Alternative Unit of Measure for Stockkeeping Unit 4. UMREZ4(06) TYPE C, " Numerator for Conversion to Base Units of Measure 4. .......................................................................................... UMREN5(06) TYPE C, " Denominator for Conversion to Base Units of Measure 5. MEINH5(03) TYPE C, " Alternative Unit of Measure for Stockkeeping Unit 5. UMREZ5(06) TYPE C, " Numerator for Conversion to Base Units of Measure 5. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Sales Org. 1 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: VRKME(03) TYPE C, " Sales unit. DWERK(04) TYPE C, " Delivering Plant (Own or External). :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Sales Org. 2 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: VERSG(01) TYPE C, " Material statistics group. KTGRM(02) TYPE C, " Account assignment group for this material. MTPOS(04) TYPE C, " Item category group from material master. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: General/Plant. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: BRGEW(17) TYPE C, " Gross weight. NTGEW(17) TYPE C, " Net weight. MTVFP(02) TYPE C, " Checking Group for Availability Check. TRAGR(04) TYPE C, " Transportation group LADGR(04) TYPE C, " Loading group. PRCTR(10) TYPE C, " Profit Center. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Foreign Trade Export. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: HERKL(03) TYPE C, " Country of origin of the material. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Purchasing. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: BSTME(03) TYPE C, " Order unit. KAUTB(01) TYPE C, " Indicator: "automatic purchase order allowed". XCHPF(01) TYPE C, " Batch management requirement indicator. EKGRP(03) TYPE C, " Purchasing Group. WEBAZ(03) TYPE C, " Goods receipt processing time in days. EKWSL(04) TYPE C, " Purchasing Value Key. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Purch.Order Text. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: PTEXT(40) TYPE C, " Purchase Order Text. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: MRP 1 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: DISGR(04) TYPE C, " MRP Group. DISMM(02) TYPE C, " MRP Type. MINBE(17) TYPE C, " Reorder point. DISPO(03) TYPE C, " MRP Controller. DISLS(02) TYPE C, " Lot size (materials planning). BSTFE(17) TYPE C, " Fixed lot size. BSTMI(17) TYPE C, " Minimum lot size. BSTMA(17) TYPE C, " Maximum lot size.

* * *

* * *

* * *

* * *

* * *

* * *

*

AUSSS(06) TYPE C, " Assembly scrap in percent. BSTRF(17) TYPE C, " Rounding value for purchase order quantity. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: MRP 2 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: BESKZ(01) TYPE C, " Procurement Type. SOBSL(02) TYPE C, " Special procurement type. LGPRO(04) TYPE C, " Issue Storage Location. RGEKZ(01) TYPE C, " Indicator: Backflush. LGFSB(04) TYPE C, " Default storage location for external procurement. DZEIT(03) TYPE C, " In-house production time. PLIFZ(03) TYPE C, " Planned delivery time in days. MRPPP(03) TYPE C, " PPC planning calendar. FHORI(03) TYPE C, " Scheduling Margin Key for Floats. EISBE(17) TYPE C, " Safety stock. WEBAZ1(03) TYPE C, " Goods receipt processing time in days. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: MRP 3 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: STRGR(02) TYPE C, " Planning strategy group. VRMOD(01) TYPE C, " Consumption mode. VINT1(03) TYPE C, " Consumption period: backward. VINT2(03) TYPE C, " Consumption period: forward. MISKZ(01) TYPE C, " Mixed MRP indicator. MTVFP1(02) TYPE C, " Checking Group for Availability Check. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: MRP 4 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ALTSL(01) TYPE C, " Method for Selecting Alternative Bills of Material. KAUSF(06) TYPE C, " Component scrap in percent. SBDKZ(01) TYPE C, " Dependent requirements ind. for individual and coll. reqmts. SAUFT(01) TYPE C, " Ind.: Repetitive mfg allowed. SFEPR(04) TYPE C, " Repetitive manufacturing profile. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Work Scheduling. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: FRTME(03) TYPE C, " Production unit. FEVOR(03) TYPE C, " Production scheduler. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Plant Data / Stor. 1 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: AUSME(03) TYPE C, " Unit of issue. MHDRZ(05) TYPE C, " Minimum remaining shelf life. MHDHB(05) TYPE C, " Total shelf life. IPRKZ(01) TYPE C, " Period indicator for shelf life expiration date. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Quality Management. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: WEBAZ2(03) TYPE C, " Goods receipt processing time in days. QMPUR(01) TYPE C, " QM in Procurement is Active. SSQSS(08) TYPE C, " Control Key for Quality Management in Procurement. QZGTP(04) TYPE C, " Certificate Type. QMATV(01) TYPE C, " Inspection Setup Exists for Material/Plant. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

* *

Inspection Setup Data. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ART1(08) TYPE C, " Inspection Type 1. AKTIV1(01) TYPE C, " Inspection Type - Material Combination is Active 1. ART2(08) TYPE C, " Inspection Type 2. AKTIV2(01) TYPE C, " Inspection Type - Material Combination is Active 2. ART3(08) TYPE C, " Inspection Type 3. AKTIV3(01) TYPE C, " Inspection Type - Material Combination is Active 3. ART4(08) TYPE C, " Inspection Type 4. AKTIV4(01) TYPE C, " Inspection Type - Material Combination is Active 4. * :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: * Accounting 1. * :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: BKLAS(04) TYPE C, " Valuation Class. VPRSV(01) TYPE C, " Price Control Indicator. P