Forecast parameters in BAPI_MATERIAL_SAVEDATA

Dear all,
for a material hot to change its forecast parameters through BAPI_MATERIAL_SAVEDATA?There are 3 tabs in forecasting
Exeute forecast,forecast values and consuption vals.
How can i select forecast values through the bapiand then make changes in Corr.FV,which is monthwise.My data will be in excel.so for tyhat reason how will i have to maintain my excel?

Hi,
          i doubt whether we have a field for Chapter ID in BAPI_MATERIAL_SAVEDATA,
you can maintain the same in the transaction J1ID.
Regards,
Anil

Similar Messages

  • BAPI_MATERIAL_MAINTAINDATA_RT reorder point & Forecast parameters

    Hi
    I use  BAPI_MATERIAL_MAINTAINDATA_RT for change reorder point and only this, but after run i see that the forecast parameters changed too.
    example code
    head-material = matnr.
    head-logst_view = 'X'.
    plant-material = matnr.
    plant-plant = werks.
    plant-reorder_pt = value.
    plantx-material = matnr.
    plantx-plant = werks.
    plantx-reorder_pt = 'X'.
    CALL function 'BAPI_MATERIAL_MAINTAINDATA_RT'
      EXPORTING
         headdata = head
      Importing
         return = return
    TABLES
       plantdata = plant
       plantdatax = plantx.
    I try to select/deselect auto_reset (reset forecast model automatically) but nothing was changed.
    Do you know what is wrong whit this??
    Best Regards
    Szymon Glapiak
    Edited by: Szymon Glapiak on Nov 4, 2008 6:20 PM

    Hi,
    You might need to check for an OSS Note for this BAPI.
    For detailed Desc of BAPI, Refer to http://abap.wikiprog.com/wiki/BAPI_MATERIAL_MAINTAINDATA_RT
    Or you can also use WE60 for IDOC ARTMAS01, the segment definition will help you to understand the BAPI parameters.

  • Upload Forecasting parameters on MRP area level

    Hi there,
    Is there a way I can automate via Bapi or Idoc, the upload of the forecasting parameters on MRP area level.
    The MRP area data is uploaded via IDOC /ISDFPS/MDMA but there is nothing foreseen for the forecast parameters.
    Parameters that should be uploaded are DPOP-KZINI and DPOP-PRMOD.
    Anyone an idea?

    Dear Essam,
    Please try the following procedure.
    1. Create Plan in flexible planning --> MC93 (In this step you create Sales plan in flexible planning )
    2.Sales plan verification transfer to active version--> MC8V (In this step you verify and transfer to active version)
    3.Transfer sales plan to production plan -->MC8Q  (In this step you transfer to sales plan to production plan)
    4.Create Inactive Demand in Demand Management -->MD61 (In this step you create Independent Requirement which can be
    simulative requirements. These requirements are set after analyzing sales forecast and production requirements together)
    I hope it may help you out..
    Feel free to ask.
    Thanks,
    Mohit

  • Forecast with flexible planning

    Hi,
    We are going to do forecast with flexible planning.I have created a new infostructure and the planning type.We have loaded the sales values into this infostructure manullay thru. a customised program and executed the forecast on these.I have few questions:
    1. Do i need to activate forecasting view in the material master? If it is, why?
    2. How many months of historical values i have to consider to calculate the next 12 months forecast and how frequently i have to update my infostructure and calculate the forecast?
    3. How the basic value/MAD/Error total will be calculated?
    4. when using the automatic model selection with procedure 2 ,it will come up with some model.Is there any way where we can see what the model it has selected and the forecast parameters?
    Please don't suggest the SAP help links.
    Thanks in advance,
    Kumar

    Hi,
    No need to create a forecasting view in the Material master.
    as you are using Infostructure, you are exepcted to use the Mass processing for Forecasting.
    Define a Forecasting Profile in MC94.
    create a Back ground job for executing the forecasting.
    Run the joob.
    regards
    Ratan

  • Forecast Initialization SCM

    Dear Sirs,
    In order to understood the best forecast parameters to be use on my data type, i'm studying analytic formula behind the SAP forecast process.
    i have found in this forum this link:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7a4025f8-0a01-0010-0fb2-b7ab22597675
    It is very useful to understand haw SAP work.
    The only think that i have not understood is initialization process.
    In particular:
    I'm using a Trend model whit first order exponential smoothing:
    We start with two parameters that are initialized:
    Basic Value and Trend Value
    Basic Value is initialized as the average of value in initialization period + Trend
    Trend value is initialized as follow in case of 3 value:
    Hist (3) - Hist (1)
              2
    The question is how is initialize the Trend value if Historical period is > 3?
    What happen at the initialization basic value and initialization trend value with 12 value as initialization?
    Thank you very much for your help!
    BR
    Andrea

    Hallo Shibu UP,
    Thank you very much for your answer.
    You are right, this is the Equation with 3 value as Initialization period.
    I need to understood the equation of Initialization with 4,5,6....12 values as Initialization period.(i think that Modeling of Ex-post forecast is the same)
    Initialization:
    B(4)=?
    T(4)=?
    Modelling:
    B(t) = (1 - α) * (B(t-1) + T(t-1)) + α * H(t)
    T(t) = (1 - β) * T(t-1) + β * (B(t) - B(t-1)) for t = 5,…,N
    Thank you very Much!!
    BR
    Andrea

  • MP30 material forecast and rouding values

    Hi Experts
    I need to rounding the values calculated for material forecast (MP30).
    This is because I've big amount as result and three decimal places has non sense.
    Does everibody has an idea how to solve the issue ???
    Thank-you in advance for your help.
    Claudio

    Hi,
    Configure the forecast profiles. IMG>Logistics General>LIS>Planning>Functions>Forecast>Maintain profiles. This is used as part of the SOP process,
    Forecast profiles combine forecast parameters which are often used together. Thus, they facilitate data entry since the user does not have to make the same settings every time he/she runs a forecast, but can simply choose a forecast profile.
    In the profile, maintain "places after pt". The number of decimal places saved for this key figure is the number of decimal places displayed in the planning table at the time of saving.
    Thanks.

  • Forecasting materials

    Hi all
    Some questions on forecasting
    1) When you do forecasting for a material is there a way you can change the forecast in mass like something similar to a planning table?
    d)  Is there a way you can d/load the forecast for a group of materials on a excel document?
    thanks a lot

    Dear,
    MPBT is used for background run and MP38 for mass forecast run. We run MP38 (program RMPROG01) in the background to calculate the reorder level and the safety stock level. On the basis of consumption value manitain in material master.
    use user exit MCP20001 to read non SAP data into planning table
    You can upload the forecast parameters from the excel sheet into SAP , using the BAPI "BAPISPP0007_FCST_PRF_CHANGE'
    Hope clear to you.
    Regards,
    R.Brahmankar

  • Getting error while calling this BAPI:Field MATNR has been transferred inco

    Hi,
    I have a rquirement to upload material master data into sap for Plant 1251.(For plant 1251 we need to upload both Basi veiw and Extended View).
    I am getting the following error while calling this BAPI.Field MATNR has been transferred inconsistently or is blank
    the errror is :Field MATNR has been transferred inconsistently or is blank.
    I have written the below logic in the program to upload material master data into SAP.
    Please help me out to resolve this issue.
    Thanks in advance.
    Program logic which i have wriiten in the program is
    LOOP AT it_rpt.
        CLEAR lwa_return.
        v_tabix  = sy-tabix.
        IF ( it_rpt-werks EQ p_werks AND
           it_rpt-matnr IS INITIAL ).
    retrieve internal number
          PERFORM get_internal_number USING lc_mtart
                                            lc_mbrsh
                                   CHANGING it_rpt-matnr.
        ENDIF.
        IF NOT it_rpt-matnr IS INITIAL.
          PERFORM convert_field_input CHANGING it_rpt-matnr.
        ENDIF.
    Header data
        CLEAR lwa_headdata.
        lwa_headdata-material                = it_rpt-matnr.
        lwa_headdata-ind_sector              = lc_mbrsh.
        lwa_headdata-matl_type               = lc_mtart.
        lwa_headdata-basic_view              = 'X'.
        IF NOT it_rpt-vkorg IS INITIAL.
          lwa_headdata-sales_view            = 'X'.
        ENDIF.
        lwa_headdata-purchase_view           = 'X'.
        lwa_headdata-mrp_view                = 'X'.
        lwa_headdata-storage_view            = 'X'.
        lwa_headdata-forecast_view           = 'X'.
        lwa_headdata-work_sched_view         = 'X'.
        lwa_headdata-account_view            = 'X'.
        lwa_headdata-cost_view               = 'X'.
    *Client data
        CLEAR: lwa_clientdata, lwa_clientdatax.
        IF it_rpt-werks EQ c_1251.
          lwa_clientdata-matl_group          = it_rpt-matkl.
          lwa_clientdata-old_mat_no          = it_rpt-bismt.
          lwa_clientdata-base_uom            = it_rpt-meins.
          lwa_clientdata-manu_mat            = it_rpt-mfrpn.
          lwa_clientdata-mfr_no              = it_rpt-mfrnr.
        ENDIF.
        lwa_clientdata-division              = it_rpt-spart.
        lwa_clientdata-unit_of_wt            = lc_gewei.
        lwa_clientdata-trans_grp             = lc_tragr.
        IF it_rpt-werks EQ c_1251.
          lwa_clientdatax-matl_group         = 'X'.
          lwa_clientdatax-old_mat_no         = 'X'.
          lwa_clientdatax-base_uom           = 'X'.
          lwa_clientdatax-manu_mat           = 'X'.
          lwa_clientdatax-mfr_no             = 'X'.
        ENDIF.
        lwa_clientdatax-unit_of_wt           = 'X'.
        lwa_clientdatax-trans_grp            = 'X'.
        lwa_clientdatax-division             = 'X'.
    Material Description
        IF it_rpt-werks EQ c_1251.
          lt_matdesc-langu           = sy-langu.
          lt_matdesc-matl_desc       = it_rpt-maktx.
          APPEND lt_matdesc.
        ENDIF.
    *Plant data
        CLEAR lwa_plantdata.
        lwa_plantdata-plant                  = it_rpt-werks.
        lwa_plantdata-availcheck             = lc_mtvfp.
        lwa_plantdata-mrp_type               = lc_dismm.
        lwa_plantdata-mrp_group              = lc_disgr.
        lwa_plantdata-auto_p_ord             = 'X'.
        lwa_plantdata-proc_type              = 'F'.
        IF it_rpt-werks EQ c_1251.
          it_rpt-prctr  = lc_prctr.                 "1252
        ELSEIF it_rpt-werks EQ c_1261.
          it_rpt-prctr  = lc_prctr1.                "1262
        ENDIF.
        lwa_plantdata-profit_ctr             = it_rpt-prctr.
        lwa_plantdata-period_ind             = lc_perkz.
        lwa_plantdata-max_stock              = it_rpt-stawn.
        lwa_plantdata-countryori             = it_rpt-herkl.
        lwa_plantdata-sloc_exprc             = it_rpt-lgfsb.
        CLEAR lwa_plantdatax.
        lwa_plantdatax-plant                 = it_rpt-werks.
        lwa_plantdatax-availcheck            = 'X'.
        lwa_plantdatax-mrp_type              = 'X'.
        lwa_plantdatax-mrp_group             = 'X'.
        lwa_plantdatax-auto_p_ord            = 'X'.
        lwa_plantdatax-proc_type             = 'X'.
        lwa_plantdatax-profit_ctr            = 'X'.
        lwa_plantdata-period_ind             = 'X'.
        lwa_plantdatax-max_stock             = 'X'.
        lwa_plantdatax-countryori            = 'X'.
        lwa_plantdatax-sloc_exprc            = 'X'.
    *Valuation data
        CLEAR lwa_valuationdata.
        lwa_valuationdata-val_area           = it_rpt-werks.
        lwa_valuationdata-price_ctrl         = lc_vprsv.
        lwa_valuationdata-price_unit         = lc_peinh.
        lwa_valuationdata-val_class          = it_rpt-bklas.
        CLEAR lwa_valuationdatax.
        lwa_valuationdatax-val_area          = it_rpt-werks.
        lwa_valuationdatax-price_ctrl        = 'X'.
        lwa_valuationdatax-price_unit        = 'X'.
        lwa_valuationdatax-val_class         = 'X'.
    *Storage location
        CLEAR lwa_storagelocation.
        lwa_storagelocation-plant            = it_rpt-werks.
        lwa_storagelocation-stge_loc         = it_rpt-lgort.
        CLEAR lwa_storagelocationx.
        lwa_storagelocationx-plant           = it_rpt-werks.
        lwa_storagelocationx-stge_loc        = it_rpt-lgort.
    *Tax Classifications
        IF it_rpt-werks EQ c_1251.
          it_rpt-tatyp = lc_tatyp.       "u2018MWSTu2019
        ELSEIF it_rpt-werks EQ c_1261.
          it_rpt-tatyp = lc_tatyp1.      "u2018UTXJu2019
        ENDIF.
        lt_taxclass-tax_type_1              = it_rpt-tatyp.
        lt_taxclass-taxclass_1              = lc_taxkm.
        lt_taxclass-tax_ind                 = lc_taxim.
        APPEND lt_taxclass.
    *Sales data
        CLEAR: lwa_salesdata, lwa_salesdatax.
        IF it_rpt-werks EQ c_1251.
          it_rpt-vkorg = lc_vkorg.
        ELSEIF it_rpt-werks EQ c_1261.
          it_rpt-vkorg = lc_vkorg1.
        ENDIF.
        lwa_salesdata-sales_org           = it_rpt-vkorg.
        lwa_salesdata-distr_chan          = lc_vtweg.
        lwa_salesdata-cash_disc           = lc_sktof.
        lwa_salesdata-item_cat            = lc_mtpos.
        lwa_salesdatax-sales_org          = it_rpt-vkorg.
        lwa_salesdatax-distr_chan         = lc_vtweg.
        lwa_salesdatax-cash_disc          = 'X'.
        lwa_salesdatax-item_cat           = 'X'.
    *Forecast parameters
        CLEAR: lwa_forecast, lwa_forecastx.
        lwa_forecast-plant                = it_rpt-werks.
        lwa_forecast-fore_model           = lc_prmod.
        lwa_forecast-fore_pds             = lc_anzpr.
        lwa_forecast-hist_vals            = lc_peran.
        lwa_forecastx-plant               = it_rpt-werks.
        lwa_forecastx-fore_model          = 'X'.
        lwa_forecastx-fore_pds            = 'X'.
        lwa_forecastx-hist_vals           = 'X'.
    Purchasing long text
        IF it_rpt-werks EQ c_1251.
          IF it_rpt-tdline1 <> ' '.
            lv_tdobject = 'MATERIAL'.
            lv_tdid     = 'BEST'.
            lv_tdname   =  it_rpt-matnr.
            PERFORM fill_longtext TABLES lt_longtext
                                  USING  lv_tdobject
                                         lv_tdname
                                         lv_tdid
                                         sy-langu
                                         it_rpt-tdline1.
          ENDIF.
    Basic long text
          IF it_rpt-tdline2 <> ' '.
            lv_tdobject = 'MATERIAL'.
            lv_tdid     = 'GRUN'.
            lv_tdname   =  it_rpt-matnr.
            PERFORM fill_longtext TABLES lt_longtext
                                  USING  lv_tdobject
                                         lv_tdname
                                         lv_tdid
                                         sy-langu
                                         it_rpt-tdline2.
          ENDIF.
    *Units of measure
          CLEAR : lt_uom,lt_uomx.
          lt_uom-alt_unit     = it_rpt-meins.
          lt_uom-alt_unit_iso = it_rpt-meins.
          lt_uom-unit_of_wt   = it_rpt-gewei.
          APPEND lt_uom.
          lt_uomx-alt_unit      = it_rpt-meins.
          lt_uomx-alt_unit_iso  = it_rpt-meins.
          lt_uomx-unit_of_wt    = 'X'.
          APPEND lt_uomx.
        ENDIF.
        CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
          EXPORTING
            headdata             = lwa_headdata
            clientdata           = lwa_clientdata
            clientdatax          = lwa_clientdatax
            plantdata            = lwa_plantdata
            plantdatax           = lwa_plantdatax
            forecastparameters   = lwa_forecast
            forecastparametersx  = lwa_forecastx
            storagelocationdata  = lwa_storagelocation
            storagelocationdatax = lwa_storagelocationx
            valuationdata        = lwa_valuationdata
            valuationdatax       = lwa_valuationdatax
            salesdata            = lwa_salesdata
            salesdatax           = lwa_salesdatax
          IMPORTING
            return               = lwa_return
          TABLES
            materialdescription  = lt_matdesc
            unitsofmeasure       = lt_uom
            unitsofmeasurex      = lt_uomx
            materiallongtext     = lt_longtext
            taxclassifications   = lt_taxclass
            returnmessages       = it_messages.
    Regards,
    Reddy

    Can you check with below code .
    CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
            EXPORTING
              INPUT        =  it_rpt-matnr       
    IMPORTING
              OUTPUT       =  it_rpt-matnr
            EXCEPTIONS
              LENGTH_ERROR = 1
              OTHERS       = 2.
          IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    Move  it_rpt-matnr to    lwa_headdata-material  .
    Regard's
    Smruti

  • BDC for MM01

    Hi all.
    I need BDC code for MM01,i need to populate values depending upon "Material type",Because view changing depending upon material type.
    please give me code for that.
    To be reward all helpfull answers.
    Regards.
    jay

    Hi,
    This is a BDC for MM for T-code MM01.I hope this will help u.
    Below is the coding.
    Reward if helpful.
    Regards,
    Seevangi
    REPORT  ZMMBDC_MATERIAL_MASTER_UPD
    LINE-SIZE 255 NO STANDARD PAGE HEADING LINE-COUNT 65.
    Tables
    Structure declaration
    Work Variables and internal tables
    Constants
    Parameters
    Events: Start-Of-Selection
    data : begin of i_mara occurs 0,
            matnr like mara-matnr,
           end of i_mara.
    data : begin of ty_matdata,
            matnr like mara-matnr,   "material number
            mbrsh like rmmg1-mbrsh,  "Industry sector
            mtart like rmmg1-mtart,  "Material Type
            werks like rmmg1-werks,  "Plant
            lgort like rmmg1-lgort,  "Storage Location
            vkorg like rmmg1-vkorg,  "Sales Organization
            vtweg like rmmg1-vtweg,  "Distribution Channel
            maktx like makt-maktx,   "Material Description (Short Text)
            meins like mara-meins,   "Base Unit of Measure
            matkl like mara-matkl,   "Material Group
            bismt like mara-bismt,   "Old material number
            spart like mara-spart,   "Division
            brgew(15) ," like mara-brgew,   "Gross Weight
            ntgew(15), " like mara-ntgew,   "Net Weight
            ekgrp like marc-ekgrp,   "Purchasing Group
            gewei like mara-gewei,   "Weight Unit
            klart like rmclf-klart,  "Class Type
            taxkm like MG03STEUER-TAXKM, "Tax classification material
            ladgr like marc-ladgr,   "Loading Group
            tragr like mara-tragr,   "Transportation Group
            dismm like marc-dismm, "MRP Type
            dispo like marc-dispo, "MRP Controller (Materials Planner)
            fhori like marc-fhori, "Scheduling margin key
            disls like marc-disls, " lot size
            prmod like mpop-prmod, "Forecast model
            peran(3)," like mpop-peran,   "Number of historical periods
            anzpr(3)," like mpop-anzpr,   "Number of forecast periods
            kzini like mpop-kzini,   "Initialization indicator
            siggr(9)," like mpop-siggr,   "Tracking limit
            autru like marc-autru,   "Reset Forecast Model Automatically
            modav like mpop-modav,   "Model selection procedure
            perkz like marc-perkz, "Period Indicator
            verpr(13), " like mbew-verpr, "Moving Average Price/Periodic Unit Price
            prctr like marc-prctr, "Profit Center
            mtvfp like marc-mtvfp, "Checking Group for Availability Check
            bklas like mbew-bklas, "Valuation Class
            vprsv like mbew-vprsv, "Price control indicator
            stprs(13) ," like mbew-stprs, "Standard price
            peinh(5) ,"like mbew-peinh, "Price Unit
           end of ty_matdata,
           begin of ty_matdata1,
           matnr like mara-matnr,   "material number
            mbrsh like rmmg1-mbrsh,  "Industry sector
            mtart like rmmg1-mtart,  "Material Type
            werks like rmmg1-werks,  "Plant
            lgort like rmmg1-lgort,  "Storage Location
            vkorg like rmmg1-vkorg,  "Sales Organization
            vtweg like rmmg1-vtweg,  "Distribution Channel
            maktx like makt-maktx,   "Material Description (Short Text)
            meins like mara-meins,   "Base Unit of Measure
            matkl like mara-matkl,   "Material Group
            bismt like mara-bismt,   "Old material number
            spart like mara-spart,   "Division
            brgew(15) ," like mara-brgew,   "Gross Weight
            ntgew(15), " like mara-ntgew,   "Net Weight
            ekgrp like marc-ekgrp,   "Purchasing Group
            gewei like mara-gewei,   "Weight Unit
            klart like rmclf-klart,  "Class Type
            taxkm like MG03STEUER-TAXKM, "Tax classification material
            ladgr like marc-ladgr,   "Loading Group
            tragr like mara-tragr,   "Transportation Group
            dismm like marc-dismm, "MRP Type
            dispo like marc-dispo, "MRP Controller (Materials Planner)
            fhori like marc-fhori, "Scheduling margin key
            prmod like mpop-prmod, "Forecast model
            peran(3)," like mpop-peran,   "Number of historical periods
            anzpr(3)," like mpop-anzpr,   "Number of forecast periods
            kzini like mpop-kzini,   "Initialization indicator
            siggr(9)," like mpop-siggr,   "Tracking limit
            autru like marc-autru,   "Reset Forecast Model Automatically
            modav like mpop-modav,   "Model selection procedure
            perkz like marc-perkz, "Period Indicator
            verpr(13), " like mbew-verpr, "Moving Average Price/Periodic Unit Price
            prctr like marc-prctr, "Profit Center
            mtvfp like marc-mtvfp, "Checking Group for Availability Check
            bklas like mbew-bklas, "Valuation Class
            vprsv like mbew-vprsv, "Price control indicator
            stprs(13) ," like mbew-stprs, "Standard price
            peinh(5) ,"like mbew-peinh, "Price Unit
            message like bapiret2-message, "Error Message.
           end of ty_matdata1,
           begin of ty_error,
             matnr like mara-matnr,
             mbrsh like rmmg1-mbrsh,  "Industry sector
             mtart like rmmg1-mtart,  "Material Type
             werks like rmmg1-werks,  "Plant
             message like bapiret2-message,
           end of ty_error.
          Data                     Begin with W_                        *
    data : i_matdata like standard table of ty_matdata with header line.
    BAPIMATHEAD - Header Segment with Control Information
    data : i_headdata like bapimathead occurs 0 with header line.
    bapi_makt - Material Descriptions.
    data : i_bapi_makt like bapi_makt occurs 0 with header line.
    *bapi_mlan - Tax data
    data : i_bapi_mlan like bapi_mlan occurs 0 with header line.
    bapi_mara - Material Data at Client Level.
    data : i_clientdata like bapi_mara occurs 0 with header line.
    bapi_marax - Checkbox Structure for BAPI_MARA.
    data : i_clientdatax like bapi_marax occurs 0 with header line.
    bapi_marc - Material Data at Plant Level.
    data : i_plantdata like bapi_marc occurs 0 with header line.
    bapi_marcx - Checkbox Structure for BAPI_MARA.
    data : i_plantdatax like bapi_marcx occurs 0 with header line.
    BAPI_MARD - Material Data at Storage Location Level.
    data : i_storagelocationdata like bapi_mard occurs 0 with header line.
    bapi_mardx - Checkbox Structure for BAPI_MARD
    data : i_storagelocationdatax like bapi_mardx occurs 0 with header line.
    *bapi_mpop - Forecast Parameters
    data : i_forcastingparameter like BAPI_MPOP occurs 0 with header line.
    *bapi_mpopx - Checkbox Structure for BAPI_MPOP
    data : i_forcastingparameterx like BAPI_MPOPX occurs 0 with header line.
    *bapi_mbew - Valuation Data
    data : i_valuationdata like BAPI_MBEW occurs 0 with header line.
    *bapi_mbewx - Checkbox Structure for BAPI_MBEW
    data : i_valuationdatax like BAPI_MBEWX occurs 0 with header line.
    *bapi_mvke - Sales Data
    data : i_salesdata like BAPI_MVKE occurs 0 with header line.
    *bapi_mvkex - Checkbox Structure for BAPI_MVKE
    data : i_salesdatax like BAPI_MVKEX occurs 0 with header line.
    bapiret2 - Return parameter
    data : i_return like bapiret2 occurs 0 with header line.
    Errors displayed on screen.
    data : i_error like standard table of ty_error with header line.
    *Error data to be loaded after correction.
    data : i_matdata1 like standard table of ty_matdata1 with header line.
    *bapi_marm - Unit of measure
    data : i_bapi_marm like bapi_marm occurs 0 with header line.
    *bapi_marmx - unit of measurex
    data : i_bapi_marmx like bapi_marmx occurs 0 with header line.
    To determine error.
    data : w_flg(1).
       S E L E C T I O N     S C R E E N / P A R A M E T E R S
    selection-screen: begin of block b1 with frame.
    parameters: p_file like rlgrap-filename obligatory.
    selection-screen: end of block b1.
    selection-screen skip 1.
    selection-screen: begin of block b2 with frame.
    parameters: p_file1 like rlgrap-filename .
    selection-screen: end of block b2.
              A T   S E L E C T I O N   S C R E E N
    at selection-screen on value-request for p_file.
    WS_FILENAME_GET - Determination of a file name on the presentation
    server using a file selection dialog.
      call function 'WS_FILENAME_GET'
    exporting
       def_filename           = '*.TXT'
       def_path               = 'C:\'
       mask                   = ',.TXT,.*.'
       mode                   = 'O'
      TITLE                  = ' '
       importing
         filename               = p_file
      RC                     =
    exceptions
       inv_winsys             = 1
       no_batch               = 2
       selection_cancel       = 3
       selection_error        = 4
       others                 = 5
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
                      T O P    O F     P A G E                          *
    top-of-page.
      skip.
      write : /01 'Material Number', 30 'Error Message'.
       S T  A R T   O F   S E L E C T I O N
    start-of-selection.
    perform read_data.
    perform create_material.
    perform display_error.
    *&      Form  read_data
          text
    -->  p1        text
    <--  p2        text
    form read_data.
    Uploads a file from the presentation server into an internal table.
    call function 'WS_UPLOAD'
           exporting
                codepage                = 'IBM'
                filename                = p_file
                filetype                = 'DAT'
           tables
                data_tab                = i_matdata
           exceptions
                conversion_error        = 1
                file_open_error         = 2
                file_read_error         = 3
                invalid_type            = 4
                no_batch                = 5
                unknown_error           = 6
                invalid_table_width     = 7
                gui_refuse_filetransfer = 8
                customer_error          = 9
                others                  = 10.
      if sy-subrc <> 0.
        write:/ 'File Not Uploaded'.
      endif.
    endform.                    " read_data
    *&      Form  create_material
          text
    -->  p1        text
    <--  p2        text
    form create_material.
    loop at i_matdata.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        INPUT         = i_matdata-matnr
    IMPORTING
       OUTPUT        = i_matdata-matnr.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        INPUT         = i_matdata-prctr
    IMPORTING
       OUTPUT        = i_matdata-prctr
    *select matnr from mara into table i_mara .
    *sort i_mara by matnr descending.
    *read table i_mara index 1.
    *i_mara-matnr = i_mara-matnr + 1.
    CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
      EXPORTING
        INPUT              =  i_mara-matnr
      IMPORTING
        OUTPUT             =  i_mara-matnr
      EXCEPTIONS
        LENGTH_ERROR       = 1
        OTHERS             = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
    EXPORTING
       INPUT              =  i_matdata-matnr
    IMPORTING
       OUTPUT             =  i_matdata-matnr
    EXCEPTIONS
       LENGTH_ERROR       = 1
       OTHERS             = 2
    *IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    i_headdata-material = i_matdata-matnr.
      i_headdata-material = i_mara-matnr.
      i_headdata-ind_sector = i_matdata-mbrsh.
      i_headdata-matl_type = i_matdata-mtart.
      i_headdata-basic_view = 'X'.
      i_headdata-mrp_view = 'X'.
      i_headdata-storage_view = 'X'.
      i_headdata-SALES_VIEW = 'X'.
      i_headdata-PURCHASE_VIEW = 'X'.
      i_headdata-FORECAST_VIEW = 'X'.
      i_headdata-ACCOUNT_VIEW = 'X'.
      i_headdata-COST_VIEW = 'X'.
      i_headdata-prt_view = 'X'.
      i_headdata-work_sched_view = 'X'.
      i_headdata-quality_view = 'X'.
      append i_headdata.
    clear i_headdata.
      i_bapi_makt-langu     = sy-langu.
      i_bapi_makt-matl_desc = i_matdata-maktx.
      append i_bapi_makt.
    clear i_bapi_makt.
      i_clientdata-matl_group = i_matdata-matkl.
      i_clientdata-old_mat_no = i_matdata-bismt.
      i_clientdata-base_uom = i_matdata-meins.
      i_clientdata-division = i_matdata-spart.
      i_clientdata-UNIT_OF_WT = i_matdata-gewei.
      i_clientdata-TRANS_GRP = i_matdata-tragr.
      i_clientdata-NET_WEIGHT = i_matdata-ntgew.
      append i_clientdata.
    clear i_clientdata.
      i_clientdatax-matl_group = 'X'.
      i_clientdatax-old_mat_no = 'X'.
      i_clientdatax-base_uom = 'X'.
      i_clientdatax-division = 'X'.
      i_clientdatax-UNIT_OF_WT = 'X'.
      i_clientdatax-TRANS_GRP = 'X'.
      i_clientdatax-NET_WEIGHT = 'X'.
      append i_clientdatax.
    clear i_clientdatax.
      i_plantdata-plant = i_matdata-werks.
      i_plantdata-mrp_type = i_matdata-dismm.
      i_plantdata-mrp_ctrler = i_matdata-dispo.
      i_plantdata-availcheck = i_matdata-mtvfp.
      i_plantdata-profit_ctr = i_matdata-prctr.
      i_plantdata-LOADINGGRP = i_matdata-ladgr.
      i_plantdata-PUR_GROUP = i_matdata-ekgrp.
      i_plantdata-AUTO_RESET = i_matdata-autru.
      i_plantdata-PERIOD_IND = i_matdata-perkz.
      i_plantdata-MRP_CTRLER = i_matdata-dispo.
      i_plantdata-SM_KEY = i_matdata-fhori.
      i_plantdata-LOTSIZEKEY = i_matdata-disls.
      append i_plantdata.
    clear i_plantdata.
      i_plantdatax-plant = i_plantdata-plant.
      i_plantdatax-mrp_type = 'X'.
      i_plantdatax-mrp_ctrler = 'X'.
      i_plantdatax-availcheck = 'X' .
      i_plantdatax-profit_ctr = 'X' .
      i_plantdatax-LOADINGGRP = 'X' .
      i_plantdatax-PUR_GROUP = 'X' .
      i_plantdatax-AUTO_RESET = 'X'.
      i_plantdatax-PERIOD_IND = 'X'.
      i_plantdatax-MRP_CTRLER = 'X'.
      i_plantdatax-SM_KEY = 'X'.
      i_plantdatax-LOTSIZEKEY = 'X'.
      append i_plantdatax.
    clear i_plantdatax.
      clear i_forcastingparameter.
      i_forcastingparameter-PLANT = i_matdata-werks.
      i_forcastingparameter-HIST_VALS = i_matdata-peran.
      i_forcastingparameter-FORE_PDS = i_matdata-anzpr.
      i_forcastingparameter-INITIALIZE = i_matdata-kzini.
      i_forcastingparameter-TRACKLIMIT = i_matdata-siggr.
      i_forcastingparameter-MODEL_SP = i_matdata-modav.
      i_forcastingparameter-FORE_MODEL = i_matdata-prmod.
      append i_forcastingparameter.
      clear i_forcastingparameterx.
      i_forcastingparameterx-PLANT = i_matdata-werks.
      i_forcastingparameterx-HIST_VALS = 'X'.
      i_forcastingparameterx-FORE_PDS = 'X'.
      i_forcastingparameterx-INITIALIZE = 'X'.
      i_forcastingparameterx-TRACKLIMIT = 'X'.
      i_forcastingparameterx-MODEL_SP = 'X'.
      i_forcastingparameterx-FORE_MODEL = 'X'.
      append i_forcastingparameterx.
      i_valuationdata-MOVING_PR = i_matdata-verpr.
      i_valuationdata-STD_PRICE = i_matdata-stprs.
      i_valuationdata-PRICE_CTRL = i_matdata-VPRSV.
      i_valuationdata-VAL_CLASS = i_matdata-bklas.
      i_valuationdata-PRICE_UNIT = i_matdata-peinh.
      i_valuationdata-VAL_AREA = i_matdata-werks.
      append i_valuationdata.
      i_valuationdatax-VAL_AREA = i_matdata-werks.
      i_valuationdatax-MOVING_PR = 'X'.
      i_valuationdatax-STD_PRICE = 'X'.
      i_valuationdatax-PRICE_CTRL = 'X'.
      i_valuationdatax-VAL_CLASS = 'X'.
      i_valuationdatax-PRICE_UNIT = 'X'.
      append i_valuationdatax.
      i_salesdata-SALES_ORG = i_matdata-vkorg.
      i_salesdata-DISTR_CHAN = i_matdata-vtweg.
      i_salesdata-DELY_UOM = i_matdata-meins.
      append i_salesdata.
      i_salesdatax-SALES_ORG = i_matdata-vkorg.
      i_salesdatax-DISTR_CHAN = i_matdata-vtweg.
      i_salesdata-DELY_UOM = 'X'.
      append i_salesdatax.
      i_bapi_marm-ALT_UNIT = i_matdata-meins.
      i_bapi_marm-GROSS_WT = i_matdata-brgew.
      append i_bapi_marm.
      i_storagelocationdata-plant = i_plantdatax-plant.
      i_storagelocationdata-stge_loc = i_matdata-lgort.
      append i_storagelocationdata.
    clear i_storagelocationdata.
      i_storagelocationdatax-plant = i_plantdatax-plant.
      i_storagelocationdatax-stge_loc = i_storagelocationdata-stge_loc.
      append i_storagelocationdatax.
    clear i_storagelocationdatax.
    i_bapi_mlan-TAXCLASS_1 = i_matdata-TAXKM.
      append i_bapi_mlan.
    BAPI - BAPI_MATERIAL_SAVEDATA is used to Create and Change Material
    Master Data.
      call function 'BAPI_MATERIAL_SAVEDATA'
        exporting
          headdata                   = i_headdata
          clientdata                 = i_clientdata
          clientdatax                = i_clientdatax
          plantdata                  = i_plantdata
          plantdatax                 = i_plantdatax
          FORECASTPARAMETERS         = i_forcastingparameter
          FORECASTPARAMETERSX        = i_forcastingparameterx
        PLANNINGDATA               =
        PLANNINGDATAX              =
          storagelocationdata        = i_storagelocationdata
          storagelocationdatax       = i_storagelocationdatax
          VALUATIONDATA              = i_valuationdata
          VALUATIONDATAX             = i_valuationdatax
        WAREHOUSENUMBERDATA        =
        WAREHOUSENUMBERDATAX       =
          SALESDATA                  = i_salesdata
          SALESDATAX                 = i_salesdatax
        STORAGETYPEDATA            =
        STORAGETYPEDATAX           =
        FLAG_ONLINE                = ' '
        FLAG_CAD_CALL              = ' '
        importing
          return                     = i_return
        tables
          materialdescription        = i_bapi_makt
          UNITSOFMEASURE             = i_bapi_marm
          UNITSOFMEASUREX            = i_bapi_marmx
        INTERNATIONALARTNOS        =
        MATERIALLONGTEXT           =
         TAXCLASSIFICATIONS         = i_bapi_mlan
        RETURNMESSAGES             =
        PRTDATA                    =
        PRTDATAX                   =
        EXTENSIONIN                =
        EXTENSIONINX               =
    if i_return-type = 'E'.
        i_error-matnr = i_mara-matnr.
        i_error-mbrsh = i_matdata-mbrsh.
        i_error-mtart = i_matdata-mtart.
        i_error-werks = i_matdata-werks.
        i_error-message = i_return-message.
      append i_error.
      clear i_error.
      w_flg = 'X'.
    *else.
    Execute external Commit when using BAPIs
    When you call BAPIs in your program that change data in the R/3
    System afterwards you must call this method to write the changes to *
    the database.
    call function 'BAPI_TRANSACTION_COMMIT'
    exporting
       wait          = 'X'
    importing
       return        = i_return
    endif.
    refresh : i_headdata ,  i_bapi_makt, i_clientdata, i_clientdatax ,
              i_plantdata, i_plantdatax,
              i_storagelocationdata,i_storagelocationdatax,
              i_salesdata , i_salesdatax ,
              i_valuationdata , i_valuationdatax,
              i_bapi_marm,i_bapi_marmx,
              i_bapi_mlan.
    clear : i_headdata ,  i_bapi_makt, i_clientdata, i_clientdatax ,
              i_plantdata, i_plantdatax, i_storagelocationdata,
              i_storagelocationdatax,
              i_valuationdata , i_valuationdatax,
              i_bapi_marm,i_bapi_marmx,
              i_bapi_mlan.
    endloop.
    endform.                    " create_material
    *&      Form  display_error
          text
    -->  p1        text
    <--  p2        text
    form display_error.
    loop at i_error.
    read table i_matdata with key matnr = i_error-matnr.
    if sy-subrc = 0.
        i_matdata1-matnr = i_mara-matnr.
        i_matdata1-mbrsh = i_matdata-mbrsh.
        i_matdata1-mtart = i_matdata-mtart.
        i_matdata1-maktx = i_matdata-maktx.
        i_matdata1-meins = i_matdata-meins.
       i_matdata1-matkl = i_matdata-matkl.
       i_matdata1-bismt = i_matdata-bismt.
       i_matdata1-zeinr = i_matdata-zeinr.
       i_matdata1-spart = i_matdata-spart.
       i_matdata1-werks = i_matdata-werks.
       i_matdata1-dismm = i_matdata-dismm.
       i_matdata1-dispo = i_matdata-dispo.
       i_matdata1-beskz = i_matdata-beskz.
       i_matdata1-sobsl = i_matdata-sobsl.
       i_matdata1-lgpro = i_matdata-lgpro.
       i_matdata1-lgfsb = i_matdata-lgfsb.
       i_matdata1-eprio = i_matdata-eprio.
       i_matdata1-mtvfp = i_matdata-mtvfp.
       i_matdata1-lgort = i_matdata-lgort.
       i_matdata1-lgpbe = i_matdata-lgpbe.
       i_matdata1-prctr = i_matdata-prctr.
       i_matdata1-message = i_error-message.
        append i_matdata1.
        clear i_matdata1.
    endif.
    endloop.
    loop at i_error.
      write :/01 i_error-matnr , 30 i_error-message.
    endloop.
    if i_error is initial.
      write :/01 text-001.
    endif.
    if w_flg = 'X'.
      call function 'WS_DOWNLOAD'
       exporting
        BIN_FILESIZE                  = ' '
         codepage                      = 'IBM'
         filename                      = p_file1
         filetype                      = 'DAT'
        MODE                          = ' '
        WK1_N_FORMAT                  = ' '
        WK1_N_SIZE                    = ' '
        WK1_T_FORMAT                  = ' '
        WK1_T_SIZE                    = ' '
        COL_SELECT                    = ' '
        COL_SELECTMASK                = ' '
        NO_AUTH_CHECK                 = ' '
      IMPORTING
        FILELENGTH                    =
        tables
          data_tab                      = i_error
        FIELDNAMES                    =
       exceptions
         file_open_error               = 1
         file_write_error              = 2
         invalid_filesize              = 3
         invalid_type                  = 4
         no_batch                      = 5
         unknown_error                 = 6
         invalid_table_width           = 7
         gui_refuse_filetransfer       = 8
         customer_error                = 9
         others                        = 10
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endif.
    endform.                    " display_error7

  • Enter scheduling Key - BAPI_MATERIAL_SAVEREPLICA

    I am using BAPI_MATERIAL_SAVEREPLICA to create new Material Header in a reference plant. The reference plant does not have a scheduling margin key. I am getting error 'Enter the scheduling margin key'. The BAPI is expecting the plantdata-sm_key. I have tried passing space but that does not work. Please help

    Hi Sabita,
    You can have a proper understanding of the functionality of BAPI  and be familiar with what data you need to be filled in the fields.
    BAPI_MATERIAL_SAVEREPLICA
    FUNCTIONALITY
                   Use this method to create new material master data or change existing material master data. Every time this method is called, data for one or more materials can be transferred.
    When new material master data is created, the material number, the material type and the sector must be sent to the method. Furthermore, a short text and the language in which the short text has been created, have to be entered. When data is being changed, only the material number need be entered.
                  First, the appropriate fields in the tables (for example, CLIENTDATA) have to be filled with data by the user. These fields must also be flagged as the method data can only be written to the database if this is the case. The user must also provide data for the appropriate fields that have been selected in a checkbox table (for example, CLIENTDATAX). Checkbox tables exist for tables that do not contain language-dependent texts (MAKT, MLTX), European article numbers (MEAN) and tax classifications (MLAN). More than one data record can be created for a material in these tables (for all materials transferred to the method).
    CALL FUNCTION 'BAPI_MATERIAL_SAVEREPLICA' "BAPI for Mass Maintenance of Material Data
      EXPORTING
        noappllog =                 " bapie1global_data-no_appl_log  Do Not Write an Application Log
        nochangedoc =               " bapie1global_data-no_change_doc  Do not write change documents
        testrun =                   " bapie1global_data-testrun  Switch to Simulation Session for Write BAPIs
        inpfldcheck =               " bapie1global_data-inp_fld_check  Response if Fields Are Inactive
      flag_cad_call = SPACE       " bapie1global_data-testrun  Call From CAD System
      no_rollback_work = SPACE    " bapie1global_data-testrun  Override Rollback Work
      flag_online = SPACE         " bapie1global_data-testrun  No ALE Field Selection
      IMPORTING
        return =                    " bapiret2      Return Parameter
      TABLES
        headdata =                  " bapie1matheader  Header Segment with Control Information
      clientdata =                " bapie1mara    Material Data at Client Level
      clientdatax =               " bapie1marax   Update Information for CLIENTDATA
      plantdata =                 " bapie1marc    Material Data at Plant Level
      plantdatax =                " bapie1marcx   Update Information for PLANTDATA
      forecastparameters =        " bapie1mpop    Forecast Parameters
      forecastparametersx =       " bapie1mpopx   Update Information for FORECASTPARAMETERS
      planningdata =              " bapie1mpgd    Change Document Structure for Material Master/Product Group
      planningdatax =             " bapie1mpgdx   Update Information for PLANNINGDATA
      storagelocationdata =       " bapie1mard    Material Data at Storage Location Level
      storagelocationdatax =      " bapie1mardx   Update Information for STORAGELOCATIONDATA
      valuationdata =             " bapie1mbew    Valuation Data
      valuationdatax =            " bapie1mbewx   Update Information for VALUATIONDATA
      warehousenumberdata =       " bapie1mlgn    Warehouse Number Data
      warehousenumberdatax =      " bapie1mlgnx   Update Information for WAREHOUSENUMBERDATA
      salesdata =                 " bapie1mvke    Sales Data
      salesdatax =                " bapie1mvkex   Update Information for SALESDATA
      storagetypedata =           " bapie1mlgt    Storage type data
      storagetypedatax =          " bapie1mlgtx   Update Information for STORAGETYPEDATA
      materialdescription =       " bapie1makt    Material Descriptions
      unitsofmeasure =            " bapie1marm    Units of Measure
      unitsofmeasurex =           " bapie1marmx   Update Information for UNITSOFMEASURE
      internationalartnos =       " bapie1mean    International Article Numbers (EANs)
      materiallongtext =          " bapie1mltx    Long Texts
      taxclassifications =        " bapie1mlan    Control Data
      prtdata =                   " bapie1mfhm    Production Resource Tool (PRT) Fields in the Material Master
      prtdatax =                  " bapie1mfhmx   Update Information for PRTDATA
      extensionin =               " bapie1parex   Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
      extensioninx =              " bapie1parexx  Checkbox Structure for Extension In/Extension Out
      forecastvalues =            " bapie1mprw    Data Transfer for Forecast Values
      unplndconsumption =         " bapie1mveu    Data Transfer for Unplanned Consumption
      totalconsumption =          " bapie1mveg    Data Transfer for Total Consumption of Material
      returnmessages =            " bapie1ret2    Substitute Structure for Return Parameter BAPIRET2
        .  "  BAPI_MATERIAL_SAVEREPLICA
    Regards,
    Soundarya.

  • In r3 side in which tables the masterdata will be stored

    like 2lis-11-vahdr------vbak
          2lis_11_vaitm------vbap

    There are lot ...
    MARA Material master
    MAKT Material text
    MARC Material per plant / stock
    MVKE Material master, sales data
    MARD Storage location / stock
    MSKA Sales order stock
    MSPR Project stock
    MARM Units of measure
    MEAN International article number
    PGMI Planning material
    PROP Forecast parameters
    MAPR Link MARC <=> PROP
    MBEW Material valuation
    MVER Material consumption
    MLGN Material / Warehouse number
    MLGT Material / Storage type
    MPRP Forecast profiles
    MLAN Tax data material master
    MTQSS Material master view: QM
    STXB SAPscript: Texts in non-SAPscript format
    STXH STXD SAPscript text file header
    STXL STXD SAPscript text file lin
    EINA Purchasing Info Record- General Data
    EINE Purchasing Info Record- Purchasing Organization Data
    MAKT Material Descriptions
    MARA General Material Data
    MARC Plant Data for Material
    MARD Storage Location Data for Material
    MAST Material to BOM Link
    MBEW Material Valuation
    MKPF Header- Material Document
    MSEG Document Segment- Material
    MVER Material Consumption
    MVKE Sales Data for materials
    RKPF Document Header- Reservation
    T023 Mat. groups
    T024 Purchasing Groups
    T156 Movement Type
    T157H Help Texts for Movement Types
    MOFF Lists what views have not been created
    A501 Plant/Material
    EBAN Purchase Requisition
    EBKN Purchase Requisition Account Assignment
    EKAB Release Documentation
    EKBE History per Purchasing Document
    EKET Scheduling Agreement Schedule Lines
    EKKN Account Assignment in Purchasing Document
    EKKO Purchasing Document Header
    EKPO Purchasing Document Item
    IKPF Header- Physical Inventory Document
    ISEG Physical Inventory Document Items
    LFA1 Vendor Master (General section)
    LFB1 Vendor Master (Company Code)
    NRIV Number range intervals
    RESB Reservation/dependent requirements
    T161T Texts for Purchasing Document Types
    Thanks...
    Shambhu

  • Tables in mm

    Hi,
    can any one tell that where we can get all tables related mm

    HI,
    go to  SE15
    then go to OTHER OBJECTS
    Select TRANSACTIONS
    In transaction field Type M* 
    Execute
    it will display list of Transactions
    or
    1     Customising
    1.1     General settings
    1.1.1     Countries
         T005               Countries
    1.1.2     Currency
         TCURC               Currency codes
         TCURR               Wisselkoersen
         TCURT               Currency name
         TCURX               Decimal places for currencies.
    1.1.3     Unit of measure
         T006               Units of measure
    1.1.4     Calendar functions
         T247               Month names
         TFACD               Factory calendar definition
         T015M               Month names
         TTZZ               Time zones
         TTZD               Summer time rules
         TTZDF               Summer time rules (fixed annual dates)
         TTZDV               Summer time rules (variable dates)
         TTZDT               Summer time rules texts
         TTZ5               Assign Time Tones to Countries
         TTZ5S               Assign time zones to regions
    1.2     Enterprise structure
    1.2.1     Definition
    FI     T880               Company
    T001               Company code
    CO     TKA01               Controlling area
    LO     T001W               Plant / sales organisation
    T499S               Locations
    TSPA               Division
    SD     TVKO               Sales organisation / company code
         TVTW               Distribution channel
         TVBUR               Sales office
         TVKBT               Sales office text
         TVKGR               Sales group
    TVGRT               Sales group text
    T171T               Sales district text
    MM     T001L               Storage locations
         T024E               Purchasing organization
         T3001               Warehouse number
         TVST               Shipping point
         TVLA               Loading point
         TTDS               Transportation
    1.2.2     Assignment
    CO     TKA02               Assign company code to controlling area
    LO     T001K               Assign plant (valuation area) to company code
    SD     TVKO               Sales organisation / company code
         TVKOV               Distribution channel / sales organisation
         TVKOS               Division to sales organization
         TVTA               Sales aria
         TVKBZ               Sales office to sales area
         TVBVK               Sales group to sales office
         TVKWZ          Plants to sales organization
    MM     T024E               Purchasing organization / company code
         T024W               Plant to Purchase organization
    T001K               Link plant ( = valuation area) / company code
    TVSWZ               Shipping point to plant
         T320               Assignment MM Storage Location to WM Warehouse
    3     MASTER DATA :
    3.1     Material master :
         MARA               Material master
         MAKT                 Material text
         MARC               Material per plant / stock
         MVKE               Material master, sales data
         MARD               Storage location / stock
         MSKA               Sales order stock
         MSPR               Project stock
         MARM               Units of measure
         MEAN               International article number
         PGMI               Planning material
         PROP               Forecast parameters
         MAPR               Link MARC <=> PROP
         MBEW               Material valuation
         MVER               Material consumption
         MLGN               Material / Warehouse number
         MLGT               Material / Storage type
         MPRP               Forecast profiles
         MDTB               MRP table
         MDKP               Header data for MRP document
         MLAN               Tax data material master
    MTQSS               Material master view: QM
    3.1.1     Basic data text (sap script)
         STXB               SAPscript: Texts in non-SAPscript format
         STXH               STXD SAPscript text file header
         STXL               STXD SAPscript text file lines
    3.1.2     Batches 
         MCHA               Batches
         MCH1               Batches
         MCHB               Stock : batches
    3.2     Customer master data
         KNA1               Customer master
         KNB1               Customer / company
         KNVV               Customer sales data
         KNBK               Bank details
         KNVH               Customer hierarchy
         KNVP               Customer partners
         KNVS               Shipment data for customer
         KNVK               Contact persons
         KNVI               Customer master tax indicator
    3.3     Vendor
         LFA1               Vendor master
         LFB1               Vendor per company code
         LFB5               Vendor dunning data
         LFM1               Purchasing organisation data
    LFM2               Purchasing data
         LFBK               Bank details
    3.4     Customer u2013 material info record
    KNMT               Customer material info record
    3.5     Bank data
         BNKA               Master bank data
    7     Material Management (MM) :
    7.1     Material document
         MKPF               material document
         MSEG               material document (item level)
    7.2     Purchasing
         EKKO               Purchase document
         EKPO               Purchase document (item level)
         EKPV               Shipping-Specific Data on Stock Tfr. for Purch. Doc. Item
         EKET               Delivery schedule
         VETVG               Delivery Due Index for Stock Transfer
         EKES               Order Acceptance/Fulfillment Confirmations
         EKKN               Account assignment in purchasing
         EKAN               Vendor address purchasing
         EKPA               Partner functions
         EIPO               Item export / import data
         EINA               Purchase info record (main data)
         EINE               Purchase info record (organisational data)
         EORD               Source list
         EBAN               Purchase requisition
         EBKN               Purchase Requisition Account Assignment
    Thanks & Regards
    Swathi
    Edited by: swathi sajja on Jul 29, 2008 10:50 AM
    Edited by: swathi sajja on Jul 29, 2008 10:50 AM
    Edited by: swathi sajja on Jul 29, 2008 10:50 AM
    Edited by: swathi sajja on Jul 29, 2008 10:51 AM

  • Collective Purchase Order

    Hi Folks,
    I have a sales order in place where the delivery date for the article is say 31.12.2008.
    In the Article Master
    Pl deliv time =1 days
    GR processing time = 1 days
    While creating Collective Purchase order,
    Procurement period is entered as 30.12.2008 to 31.12.2008
    Schedule line interval  1 day
    When I exceuted, system throws the following message;
    No documents was selected,application log generated.
    Application log shows "Incorrect scheduling call, start date was not transferred correctly".
    Pls help me to solve the above issue.
    Thanks

    Dear Kumar,
    For CPO:
    Check Article Master RP parameters and selection of Articles at CPO
    For Merchandise Distribution:
    (a) We can use the merchandise distribution functions to control the flow of merchandise from the vendor to the recipient (store or Customer)
    (b) If the recipient of the articles is known at the time of procurement. You use either an allocation table (push method) or a collective purchase order (pull method) to plan distribution.
    (c) The merchandise is procured externally and flows through the distribution center. It can either be put away in the distribution center or moved through the distribution center using cross-docking or flow-through.
    (d) In the push method, merchandise distribution is planned using an allocation table. The procurement documents (vendor orders) and issue documents (warehouse orders or deliveries) are then generated as follow-on documents for the allocation table.
    Flow through: The complete delivery for a single recipient is picked from all received Articles. Afterwards the next recipient is processed
    Cross-Docking: The received units are already pre-packed for a specific recipient. They are just moved through the distribution area.
    You have to carry out following tasks for Merchandise Distribution configuration:
    (a) RP Types
    (b) Planning Calendar (if required)
    (c) Site Profile for Merchandise Distribution
    (d) Adjustment profile per processing method
    (e) Distribution profile on Article in DC
    Article Master Data level
    (a) RP Parameters (mandatory)
    (b) Forecast Parameters (if required)
    (c) Distribution Profile (mandatory)
    Bye and all the best,
    Muralidhara

  • List of tables in SD, MM And FI

    Hi,
    I am part of Data Migration project for that i need some important tables in SD, MM And FI. Any Body provide me with list of Mata data Tables tables Available in SD, MM And FI Thanks in advance.
    Thanks
    kiran.B

    Hi ,
    <b>Master Table  </b>
    <b>Material master :</b>
    MARA                     Material master
    MAKT                 Material text
    MARC               Material per plant / stock
    MVKE               Material master, sales data
    MARD               Storage location / stock
    MARM               Units of measure
    MEAN               International article number
    PGMI               Planning material
    PROP               Forecast parameters
    MAPR               Link MARC <=> PROP
    MBEW               Material valuation
    MVER               Material consumption
    MLGN               Material / Warehouse number
    MLGT               Material / Storage type
    MPRP               Forecast profiles
    MDTB               MRP table
    MDKP               Header data for MRP document
    <b>Customer master data</b>
    KNA1               Customer master
    KNB1               Customer / company
    KNVV               Customer sales data
    KNBK               Bank details
    KNVH               Customer hierarchy
    KNVP               Customer partners
    KNVS               Shipment data for customer
    KNVK               Contact persons
    KNVI               Customer master tax indicator
    <b>Vendor Master</b>
    LFA1               Vendor master
    LFB1               Vendor per company code
    LFB5               Vendor dunning data
    LFM1               Purchasing organisation data
    LFM2               Purchasing data
    LFBK               Bank details
    <b>Sales and Distribution (SD)</b>
    VBFA     Document flow (alg.)
    VTFA     Flow shipping documents
    Sales order :
    VBAK     Header data
    VBAP     Item data
    VBPA     Partners in sales order
    VBKD     Sales district data
    VBEP     Data related to line items, delivery lines
    Billing document :
    VBRK     header data
    VBRP     Item data
    Shipping :
    VTTK     Shipment header
    VTTP     Shipment item
    VTTS     Stage in transport
    VTSP     Stage in transport per shipment item
    VTPA     Shipment partners
    VEKP     Handling Unit - Header Table
    VEPO     Packing: Handling Unit Item (Contents)     
    Delivery :
    LIKP     Delivery header
    LIPS     Delivery item
    Pricing :
    KONH     Conditions header
    KONP     Conditions items
    KONV     Procedure ( billing doc or sales order)
    KOND      
    Contracts :
    VEDA               Contract data
    <b>Material Management (MM)</b>
    Material document
    MKPF      material document
    MSEG     material document (item level)
    Purchasing
    EKKO      Purchase document
    EKPO     Purchase document (item level)
    EKET     Delivery schedule
    EKPA     Partner functions
    EIPO     Item export / import data
    EINA     Purchase info record (main data)
    EINE     Purchase info record (org  data)
    EORD     Source list
    EBAN     Purchase requisition
    EBKN     Purchase Requisition Account assg
    <b>Finance and Controlling (FI/CO)</b>
    FI Master data
    SKA1     Accounts
    BNKA       Bank master record
    Accounting documents // indices
    BKPF  Accounting documents
    BSEG  item level
    BSID  Accounting: Secondary index for customers          
    BSIK  Accounting: Secondary index for vendor             
    BSIM  Secondary Index, Documents for mat            
    BSIP  Index for vendor validation of double Docs    
    BSIS  Accounting: Secondary index for G/L accounts
    BSAD  Accounting: Index for customers (cleared items)  
    BSAK  Accounting: Index for vendors (cleared items)    
    BSAS  Accounting: Index for G/L accounts (cleared items)
    Payment run
    REGUH          Settlement data from payment program
    REGUP          Processed items from payment program

  • Basic Flow Of SD and T-Codes , Tables

    Hi
    Im SA-BW Consultant . I want some basic knowledge for SD . I mean the flow of SD and Basica Tables and transactions .
    Pls let me know
    kumar

    Hi Ravi Kumar,
    SD Flow Cycle:
    INQUIRY ( VA11)
    |
    QUOTATION (VA21)
    |
    PURCHASE ORDER (ME21)
    |
    ORDER CONFIRMATION (VA01)
    |
    PICKING LIST – (VL36)
    |
    PACKING LIST - (VL02, VL01)
    |
    SHIPPING – (VT01)
    |
    INVOICE – (VF21, VF01)
    |
    AR
    SD FLOW OVERVIEW:
    Sales
    Inquiry - A customer’s request to a company that they provide a quotation or sales information without obligation. An inquiry can relate to materials or services, conditions and if necessary delivery dates. The sales area that accepts the inquiry becomes responsible for further processing.
    Quotation - A quotation presents the customer with a legally binding offer for delivering a product or providing a service within certain fixed conditions. This offer is legally binding for the company within a specified time period. A sales area can reply to a customer inquiry with a customer quotation or use it to refer to a business partner contact.
    Sales Order - Request from a customer to a company to deliver a defined quantity of products or provide a service at a certain time.
    The sales area that accepts the inquiry is responsible for completing the agreement.
    Create Delivery:a. Picking - The picking process involves taking goods from a storage location and staging the right quantity in a picking area where the goods will be prepared for shipping.
    b. Packing - Packing is part of delivery- and shipment processing. When you process a delivery, you can select delivery items for packing and assign them to handling units (HUs).
    c. Goods Issue - As soon as the goods leave the company, the shipping business activity is finished. This is illustrated using goods issue for outbound deliveries.
    Billing - Billing represents the final processing stage for a business transaction in Sales and Distribution. Information on billing is available at every stage of order processing and delivery processing.
    Sales Order Management Transactions
    SALES ORDER PROCESSING
    Creating Sales Order - VA01
    Maintaining a Sales Order - VA02
    Displaying a Sales Order - VA03
    Releasing an Order or Delivery from Credit Hold: Non-Flooring - VKM1
    Display List of RMAs by Customer - VA05
    Confirm RMA Goods Receipt - VL02
    Generate list of open return orders for deletion - VA05
    Display Customer returns eligibility - MCSI
    Removing a Billing Block (Approving Credit/Debit Requests) - V.23
    PRICING MASTER DATA
    Create Pricing - VK11
    Creating a Sales Deal - VB21
    Maintaining a Sales Deal - VB22
    Displaying a Sales Deal - VB23
    Maintaining Prices - VK12
    Displaying Prices - VK13
    MATERIAL MASTER DATA
    Creating Material Substitution Master Data - VB11
    Maintaining/Deleting Material Substitution Master Data - VB12
    Displaying Material Substitution Master Data - VB13
    Creating a Bundled Master - MM01
    Creating a Sales BOM - CS01
    Maintaining a Sales BOM - CS02
    Displaying a Sales BOM - CS03
    CUSTOMER MASTER DATA
    Creating Partner Records - XD01
    Maintaining Customer Master Data - XD02
    Displaying Customer Master Data - XD03
    Deactivating a Partner - VD06
    CUSTOMER CREDIT INFO
    Creating/Maintaining New Customer Credit Information - FD32
    Displaying Customer Credit Information - FD33
    Blocking or Unblocking a Customer - VD05
    SHIPPING
    Creating a Delivery - VL01N
    Displaying a Delivery - VL03N
    Changing a Delivery - VL02N
    Shipment Inquiry / Display - VT03
    Adjusting Transfer Order - Confirmation Quantity - LT12
    Collectively Confirm Transfer Order - LT25
    Batch Shipment Confirmation - VL19
    PGI Reversal Cancellation - VL09
    Creating Service Provider/Carrier Master Data - XK01
    Maintaining Serive Provider/Carrier Master Data - XK02
    Displaying Service Provider/Carrier Master Data - XK03
    Maintaining Product Master/Serial # Profile/Unit of Measure/Shipping Unit - MM02
    IDoc Inquiry - WE02 / WE05
    BILLING
    Invoicing a Customer Shipment - VF01
    Reprinting an Invoice - VF31
    Releasing a Sales Order for Billing - V.23
    Creating an Invoice by Using the Billing Due List - VF04
    Checking Open Billing Documents - VF05
    Create Credit/Debit Memo - FB01
    A/R
    Controlling Total Debit/Credit bkgs - F.03
    Generate FI Account balance - F.08
    Generate Month-to-date Inv. register - F.02
    Process payments - FBZ1
    Rqst Individual Customer Corresp. - FB12
    Generate Customer Correspondence - F.61
    Enter Batch totals under Control ttl - FB07
    Display G/L Acct. totals - FBL3N
    Reverse Posted Amounts - FB08
    Customer Refunds - FBL6
    Customer Refund to other than Payer - FB05
    Clearing Debit/Credit on Cust. acct. - FB1D
    Customer Balance in Local Currency - F.23
    G/L Account Balance Report - F.08
    Create Invoice - legal entity adjust - FB01
    Generate Cust. Acct. statements - F.27
    Generate Dunning Letters - F150
    Generate Billing Due List - VF04
    Generate Blocked Billing Doc list - VFX3
    Inq. via Credit Release Screen - VKM1
    List orders by partner - VA05
    Past Due invoices by customer - FD11
    Check number info by G/L account - FBL3N
    Display customer Line items - FBL5N
    SD TABLES:
    Important Tables for SAP SD
    Sales and Distribution:
    Customers : Table Description
    KNA1 General Data
    KNB1 Customer Master – Co. Code Data (payment method, reconciliation acct)
    KNB4 Customer Payment History
    KNB5 Customer Master – Dunning info
    KNBK Customer Master Bank Data
    KNKA Customer Master Credit Mgmt.
    KNKK Customer Master Credit Control Area Data (credit limits)
    KNVV Sales Area Data (terms, order probability)
    KNVI Customer Master Tax Indicator
    KNVP Partner Function key
    KNVD Output type     
    KNVS Customer Master Ship Data
    KLPA Customer/Vendor Link
    Material Master:
    MARA Material master
    MAKT Material text
    MARC Material per plant / stock
    MVKE Material master, sales data
    MARD Storage location / stock
    MSKA Sales order stock
    MSPR Project stock
    MARM Units of measure
    MEAN International article number
    PGMI Planning material
    PROP Forecast parameters
    MAPR Link MARC <=> PROP
    MBEW Material valuation
    MVER Material consumption
    MLGN Material / Warehouse number
    MLGT Material / Storage type
    MPRP Forecast profiles
    MDTB MRP table
    MDKP Header data for MRP document
    MLAN Tax data material master
    MTQSS Material master view: QM
    Sales Documents
    VBAKUK VBAK + VBUK
    VBUK Header Status and Administrative Data
    VBAK Sales Document - Header Data
    VBKD Sales Document - Business Data
    VBUP Item Status
    VBAP Sales Document - Item Data
    VBPA Partners
    VBFA Document Flow
    VBEP Sales Document Schedule Line
    VBBE Sales Requirements: Individual Records
    VBKA Sales activities
    VBFA Sales Document Flow
    Logical databases: AAV, AKV, ARV, VFV
    Sales requirements
    VBBE Sales Requirements: Individual Records
    VBBS Sales Requirement Totals Record
    SD Delivery Documents:
    LIPS Delivery Document item data, includes referencing PO
    LIKP Delivery Document Header data
    Shipping:
    VTTK Shipment header
    VTTP Shipment item
    VTTS Stage in transport
    VTSP Stage in transport per shipment item
    VTPA Shipment partners
    VEKP Handling Unit - Header Table
    VEPO Packing: Handling Unit Item (Contents)
    VTFA Flow shipping documents
    Billing Document:
    VBRK Billing Document Header
    VBRP Billing Document Item
    SD Shipping Unit VEKP Shipping Unit Item (Content)
    VEPO Shipping Unit Header.
    Pricing:
    KONAIND Index: Groups of Conditions/Header Record Conditions
    KOND Conditions (Data)
    KOND3 Conditions: Campaign Determination - Data Part
    KONDD Material Substitution - Data Division
    KONDDP Conditions: Additional Materials for Material Determination
    KONDH Conditions: Batch Strategy - Data Division
    KONDI Conditions: Data part for certificates
    KONDIND General Document Index for Conditions
    KONDN Conditions: Free goods - Data section
    KONDNS Conditions: Free goods determination - scales
    KONDP Conditions: Packing Object Data Section
    KONDR Conditions: Derivation strategy - data part
    KONDRPR Conditions: Derivation strategy - recipient item data
    KONDRPS Conditions: Derivation strategy - sender item data
    KONDV Conditions: Data part for certificates
    KONH Conditions (Header)
    KONM Conditions (1-Dimensional Quantity Scale)
    KONP Conditions (Item)
    KONV Conditions (Transaction Data)
    KONW Conditions (1-Dimensional Value Scale)
    KOTN900 LSI Free Goods Condition Table
    KONV Conditions for Transaction Data
    KONP Conditions for Items
    LIKP Delivery Header Data
    LIPS Delivery: Item data
    VBAK Sales Document: Header Data
    VBAP Sales Document: Item Data
    VBBE Sales Requirements: Individual Records
    VBEH Schedule line history
    VBEP Sales Document: Schedule Line Data
    VBFA Sales Document Flow
    VBLB Sales document: Release order data
    VBLK SD Document: Delivery Note Header
    VBPA Sales Document: Partner
    VBRK Billing: Header Data
    VBRP Billing: Item Data
    VBUK Sales Document: Header Status and Administrative Data
    VBUP Sales Document: Item Status
    VEKP Handling Unit - Header Table
    VEPO Packing: Handling Unit Item (Contents)
    VEPVG Delivery Due Index
    Bill of Material:
    MAST Material to BOM Link
    EQST Equipment to BOM Link
    STAS BOMs header
    STKO BOM header
    STPN BOM follow-Up control
    STPO BOM item
    STPU BOM sub-item
    STST Standard BOM link
    STVB Bills of material - Serialization of posting
    STZU Permanent BOM data
    Please Reward If Really Helpful,
    Thanks and Regards,
    Sateesh.Kandula

Maybe you are looking for

  • How to edit data while loading data from W/O to Standard DSO?

    Hello, I am loading data from W/O to Standard DSO, during activation it got error out due to SID failure error for one infoobject(error is due to lowercase letter).But i can't change the infoobject setting and transformation. Is there any way to edit

  • EL Expression Evaluation

    Weblogic (8.1sp2) does not seem to evaluate EL expressions unless they are used with in a tag.           For example:           <html>           Hello ${user.name}           </html>           results in treating the expression like template text:    

  • What are .ds_store files and can they be removed?

    What are .ds_store files and can they be removed?

  • My Additive dissolves lose their brightness when exported from FCP.

    I'm trying to export a short music from FCP. While the additive dissolves look really bright, like a camera flash within final cut pro, as soon as I export the video, the bright white flash of the dissolve goes away. I don't want to use dip to color,

  • IPhoto Stuck Loading

    iPhoto (version 4.0.3) gets stuck when I click the iPhoto icon. It begins loading -- a little icon in the middle of the screen pivots round and round -- but then nothing happens. The problem began when I tried to export the photos in iPhoto to Canon