How to deleate material master  in basic data corss-plant cm

in material master fert in basic data cross-plant cm how to delete

Hi Gopal,
its not possible to delete entry from "cross-plant cm" baisc data 2 view.
once you made a entry in this field , it will greyed out and its not possible to delete it.
its a important field related to variant configuration, and one should be careful before making any entry in this field. same is applicable to MARC-STDPD in MRP 3 view.
Regards
Ritesh
Edited by: R S D on Jun 2, 2009 12:22 PM

Similar Messages

  • How to post material master legal control data (Foreign trade export view)?

    Dear Gurus,
    Currently we have an external application which posts material master data into SAP using MATMAS IDOC through JCO. Now we have a requirement wherein we need to post legal control data ( especially ALNUM field) beisdes the regular views. MATMAS Idoc do not have a provision to post this specific field ALNUM ( Export control class).
    Can you please suggest how to post this field value in to SAP. Do we need to use any other IDOC or RFM/BAPI as we do with classification view. In that case can you please suggest those relevant APIs.
    Thanks in advance
    Aman

    Hi Aman,
             I have got the same problem with this legal control field(ALNUM field).
             There is no provison to post this field through IDOC. Can u please tell me what was the why u followed for this issue.
    Thanks& regards,
    Naren.

  • How to Create material master workflow

    Hi All,
    Can anybody tell me how to create material master workflow?
    i need to customize the workitem  for creating data in different views in MM01 transaction with restriction to particular user.
    Regards,
    Priti

    Hi,
    This link is to  display a material.My requirement is to create a workflow which will allow a responsible person to enter data for specific department data e.g Purchase,Accounting etc.Initially anyone can create data using basic data1 and basic data2 views.After this my workflow will be triggered and it will go to next person who is responsible to enter Purchase data and then Accounting data.
    Plz help me to create different views with respect to person.
    Thanks in advance.

  • How to set 'Material Master' tab as default in standard transaction CG54?

    Hi All
    I am having a requirement to call the transaction CG54 from a custom program. On calling the transaction, I need to put some default values to the input fields and the default tab selected should be 'Material Master'. I am able to default input fields using BDC Transaction call. Can anybody guide me how to set Material Master tab as the default tab selected?
    Thanks in advance
    Rinzy Deena Mathews

    Hi All
    Solved the issue by myself.
    Initialization of tab in transaction CG54 is based on the values in the standard table TCGSGP - EHS: Search parameter (reproduction from SET/GET memory).
    Calling of the transaction CG54, with default values and parameters can be done with the help of following standard function module:
    *-- Types
      TYPES : BEGIN OF t_obj_tab.
              INCLUDE STRUCTURE rcgapplobj.
      TYPES : END OF t_obj_tab.
      TYPES : tt_obj_tab  TYPE t_obj_tab OCCURS 20.
      TYPES: BEGIN OF t_zplm02,
               sbgvid TYPE zppr_de_sbgvid,
             END OF t_zplm02.
    *-- Internal Tables
      DATA: li_obj_tab    TYPE tt_obj_tab WITH HEADER LINE,
            li_report     LIKE rcgstdrecn OCCURS 20 WITH HEADER LINE,
            li_variant    LIKE rcgstdrecn OCCURS 20 WITH HEADER LINE,
            li_subid_tab  TYPE espre_subid_rep_tab_type WITH HEADER LINE,
            li_report_m   LIKE rcgstdrecn OCCURS 20 WITH HEADER LINE,
            li_variant_m  LIKE rcgstdrecn OCCURS 20 WITH HEADER LINE,
            li_subid_tab_m TYPE espre_subid_rep_tab_type WITH HEADER LINE,
            li_zplm02     TYPE STANDARD TABLE OF t_zplm02.
    *-- Structures
      DATA: ls_addinf     TYPE rcgaddinf,
            ls_rcgradmsel TYPE rcgradmsel,
            lw_zplm02     TYPE t_zplm02.
    *-- Variables
      DATA: lv_trtype     TYPE rcgdialctr-trtype VALUE 'D',
            lv_actype     TYPE rcgdialctr-actype VALUE 'D',
            lv_viewappl   TYPE tcgl3-repappl     VALUE 'MATMASTER',
            lv_sel_valdat TYPE rcgradmsel-valdat,
            lv_sel_langu  TYPE rcgradmsel-langu,
            lv_ucomm      TYPE syucomm,
            lw_gen        TYPE char10,
            lv_flag       TYPE esp1_boolean,
            lv_werks      TYPE werks_d,
            lv_bsbgvid    TYPE zppr_de_bsbgvid.
    *-- Parameters
      ls_addinf-aennr      = sy-datum.
      ls_addinf-valdat     = sy-datum.
      ls_rcgradmsel-sbgvid = iw_gen.
      ls_rcgradmsel-matnr  = p_matnr.
      ls_rcgradmsel-namcat = 'MATNR'.
      ls_rcgradmsel-reprefflg = abap_true.
      ls_rcgradmsel-numcat = 'NUM'.
    *-- Application Object
      li_obj_tab-repappl = 'MATMASTER'.
      li_obj_tab-objectkey = p_matnr.
      APPEND li_obj_tab.
    *-- Evaluate selection screen and fill keytab
      CALL FUNCTION 'C1G0_KEYTAB_FILL_FROM_RADMSEL'
        EXPORTING
          i_radmsel             = ls_rcgradmsel
          i_valdat              = ls_addinf-valdat
          i_actype              = lv_actype
          i_flg_popup_no_param  = abap_true
        IMPORTING
          e_flg_cancel          = lv_flag
        TABLES
          i_applobj_tab         = li_obj_tab
          e_keytab_report       = li_report
          e_keytab_variant      = li_variant
          e_subid_refreport_tab = li_subid_tab
        EXCEPTIONS
          OTHERS                = 1.
    *-- Initilize Report Header Buffer
        CALL FUNCTION 'C1AP_ESTDH_BUF_INIT'
          EXPORTING
            i_aennr  = ls_addinf-aennr
            i_valdat = ls_addinf-valdat.
    *-- Parameters
        ls_addinf-aennr      = sy-datum.
        ls_addinf-valdat     = sy-datum.
        ls_rcgradmsel-sbgvid = iw_gen.
        ls_rcgradmsel-matnr  = p_matnr.
        ls_rcgradmsel-namcat = 'MATNR'.
        ls_rcgradmsel-reprefflg = abap_true.
        ls_rcgradmsel-numcat = 'NUM'.
    *-- Application Object
        li_obj_tab-repappl = 'MATMASTER'.
        li_obj_tab-objectkey = p_matnr.
        APPEND li_obj_tab.
    *-- Initial report block tree of information
        CALL FUNCTION 'C1G2_ENTRY_INQUIERY'
          EXPORTING
            i_trtype              = lv_trtype
            i_actype              = lv_actype
            i_addinf              = ls_addinf
            i_viewappl            = lv_viewappl
            i_sel_valdat          = lv_sel_valdat
            i_sel_langu           = lv_sel_langu
            i_rcgradmsel          = ls_rcgradmsel
          IMPORTING
            e_okcode              = lv_ucomm
          TABLES
            i_keytab_report       = li_report
            i_keytab_variant      = li_variant
            i_subid_refreport_tab = li_subid_tab
            i_applobj_tab         = li_obj_tab.
    With Regards
    Rinzy Deena Mathews.

  • How to extend material master product Hierarchy

    Hi,
    How to extend material master product Hierarchy
    Define Product Hierarchies (SAP Library - Material Master)
    In SAP help, the procedure is given, But in procedure we need to change standard structures and data elements.
    Need to know, This is only the possibilty?
    Need to change structure and data elements by Access key only or there is some other way.
    Regards
    Sukumar

    Hi,
    Use t.code:MM01 and in Copy From Field Give Material No ( u wan to copy) and in Next Screen Give Extending Plant & Storage Location and in Copy From Fields give Reference Plant & Storage Location.
    For more check the links for material extension.
    http://www.copacustomhelp.state.pa.us/infopak/nav/procurement/pr%20master%20data/file1434/index.htm
    http://www.copacustomhelp.state.pa.us/infopak/standard/fastpaths/mm01_content.htm
    Regards,
    Biju K

  • MM01 Create New Material Master without Basic view

    Hi,
    The SAP system allow us to create a new material master Purchasing View only (without Basic views). We execute T-code MM01, select Purchasing view only, enter the purchasing view data and save. Material master created with only the Purchasing view.
    We want to control whereby Basic view must be created first before any plant/organisation material views (Sales, purchasing, Accouting etc) can be created. That means user cannot create Purchasing view ONLY if the Basic views is not created, can this be done??
    best regards,

    Hi,
        For most of the standard SAP material types the basic data 1 view is configured as mandatory, but that can be turned off in the configuration. The first place I would look would be in SPRO under 'Logistics - General -> Material Master -> Basic Settings -> Material Types -> Define Attributes of material types'. In this transaction, highlight the material type being used and click on the magnifying glass. The section 'User departments' shows what views can be created for a material. You need to check 'Basic Data' is selected here.
    If that isn't the problem, then I would suggest that you look at the screen sequence and also the field selection configuration for the material type, which you can find under 'Logistics - General -> Material Master -> Configuring the Material Master'. This configuration dictates what fields are shown on the material master and the status of each field, i.e. whether it is mandatory or not.

  • How to get Material Master Moving average price into Purchase Order

    Hi,
    How to get Material master moving average price into purchase order instead of Purchase Info record.
    Thanks,
    Sridhar

    Hi,
            I  cannot understand whether it is necessary .
           How about as following step?
                 1. create Purcahse requisition
                                Price come form moving average price in material master.
                 2. Create Purchase order reference Purchase  requisition
                                There is a setting  from the unit price of P/R onto the unit price of P/O.
      Regards,
         Gaito

  • Material Master in more than one plant /purchasing group/Valuation Class

    Hi All,
    How to maintain a Material Master in more than one plant /purchasing group/Valuation Class......
    Points shall be awarded accordingly,
    Regards,
    Rounak

    in mm01 u can extent the material for new plant
    first creat all the views say purchasing accounting basic view etc for one plant
    the go to MM01 put same materal code and select the views purchasing and accounting
    now put the other plant number
    enter
    and put the purchasing and valuation class etc asd save
    thuis u can extend the material to other plant
    reward if usefull
    Message was edited by:
            Umakant Bhangale

  • How to maintain material master data in plant....

    Hi all,
    while creating BOM I am getting an error "no material master data in plant'  can some one help me how to maintain the material master data in plant
    Regards,
    Balu

    Hi,
    Please check the below link for MMR creaion .
    http://web.mit.edu/sapr3/windocs/bpmdb01m.htm
    Regards,

  • How to avoid material master data migration of inactive materials to SRM

    We are replicating material master from R3 4.6b to SRM 5.0 system.  Under COMMPR01 , we can see the product status as deleted or locked .
    How we can avoid the master data replication of  materials which are already flagged as inactive (deletion) in R3.
    Pls suggest.
    Regards,
    Avinash

    Hi
    Please try this ->
    1) It is possible to use product_id without needing to replicate material masters from R/3 to SRM. For this to work you have to set the flag "Do not check product" in customizing
    (see SRM Server > Master Data > Define External Web Services).
    We do it like that and it works perfect for us. Only annoyance is, that we have to put leading zeroes in the product_id field.
    "Do not check product" is used to avoid product check in SRM (to avoid replicating products into SRM), so they are not checked against SRM product master.
    But this is not related to R/3 check.
    In a classic or extended classic scenario, SRM will check that this material exists in the backend, especially for the current plant (location), before creating follow on doc.
    As you created your catalog item without zeros, I guess SRM is sending this material to R/3 that does not recognize it.
    Then you have this error message. Adapt your product IDs to be aligned with R/3 material master.
    2) Try to run the report BBP_PRODUCT_SETTINGS_MW, there you select user as SRM instead of CRM and select service product active
    3) Did you already checked OSS note 722600 and 366135 ? Also, Check the SAP OSS Notes -  786345, OSS Note 456753. It talks abt the internal and external representation of product ID in catalog and R3 system.
    Related useful pointers ->
    Product xx does not exist in plant xx or it has been flagged for deletion
    Stock reservation movement (field XWAOK) is not flagged in ECC ??
    Product XXX  does not exist in plant YYY or it has been flagged for delete.
    material deletion flag
    Product XXX does not exist in plant YYY or it has been flagged for deletion
    Hope this will help. Do let me know.
    Regards
    - Atul

  • How to transfer Material Master data information from ECC to CRM

    Hi ,
      Changes to the Classification data of Material master for the class type-001 and Custom
    ZFIELDS on mara will trigger the Interface functionality. Any changes to the
    custom zfields and  classes or characteristic values on Material Master must transfer the information from ECC to CRM. By using RFC .
    Regards,
    Pavan

    Hi,
    You need to use change pointer to do this. Go to transaction SALE,
    expand MODELLING AND IMPLEMENTING...
    expand MASTER DATA DIST...
    expand REPLICATION OF MODIFIED DATA
    You may need to maintain distribution model in SALE.
    Cheers.
    Reward if useful

  • How to upload material master using BAPI

    I have a flat file with 3 fields MATNR,MAKTX,MEINS and I want to create material master with 2 views basic data1 & basic data2 with three fields using BAPI
    Can anyone tell me how to do this only using three fields and 2 views
    and also i want to know what is the exact difference between session call transaction BAPI and LSWM methods.
    Thank you,
    Pradeep Reddy M.

    Hi Pradeep Reddy Miriyala,
    This a example you can use, the views are related with each table only have to adapt to your case.
    Best regards
    Jaime Cordeiro
    *& Report  ZMM01_BAPI_01                                               *
    REPORT  ZMM01_BAPI_01                           .
                   STRUCTURE  DECLARATIONS                             *
    TABLES: BAPIMATHEAD,  "Headerdata
            BAPI_MARA,    "Clientdata
            BAPI_MARAX,   "Clientdatax
            BAPI_MVKE,    "SalesData
            BAPI_MVKEX,   "SalesDatax
            BAPI_MARC,    "Plantdata
            BAPI_MARCX,   "Plantdatax
            BAPI_MBEW,    "ValuationData
            BAPI_MBEWX,    "ValuationData
            BAPI_MLGN,    "Storage
            BAPI_MLGNX,   "StorageX
            BAPI_MAKT,    "Material description
            BAPI_MARM,
            BAPI_MARMX,
            bapi_mean,
            BAPI_MLAN,
            BAPIRET2.     "Return messages
    DATA: BEGIN OF LSMW_MATERIAL_MASTER,
    > Initial Data
         matnr(18),
         mtart(4),
         WERKS(4),
         VKORG(4),
         VTWEG(2),
         LGNUM(3),"retirar
    > Basic Data 1
         MAKTX(40),
         MEINS(3),
         MATKL(9),
         BISMT(18),
         SPART(2),
         PRDHA(18),
         BRGEW(17),
         NTGEW(17),
         GEWEI(3),
         VOLUM(13),
         VOLEH(3),
         EAN11(18),
         NUMTP(2),
    > Sales 1
         DWERK(4),
         TAXKM(1),
    > Sales 2
         KTGRM(2),
         PRODH(18),
         MTPOS(4),
    > Sales: General/Plant
         MTVFP(2),
         TRAGR(4),
         LADGR(4),
         PRCTR(10),
    > Purchasing
    Novas entradas
         EKGRP(3),
         KAUTB(1),
         XCHPF1(1),
         EKWSL(4),
         WEBAZ(3),
         INSMK1(1),
         KORDB(1),
    > Foreign Trade
         STAWN(17),
         MTVER(4),
         HERKL(3),
         HERKR(3),
    > Purchase Order Text View
    Identificar Campos
         TextoEN(100),
         TextoPT(100),
         TextoPL(100),
         TextoES(100),
    > MRP1
         DISGR(4),
         DISMM(2),
         DISPO(3),
         DISLS(2),
         BSTMI(18),
         BSTRF(13),
    > MRP2
         BESKZ(1),
         RGEKZ(1),
         LGPRO(4),
         LGFSB(4),
         EPRIO(4),
         WEBAZ1(3),
         PLIFZ(3),
         FHORI(3),
    > MRP3
         PERKZ(1),
         STRGR(2),
         VRMOD(1),
         VINT1(3),
         VINT2(3),
    > MRP4
         ALTSL(1),
         FEVOR(3),
    > Work Sch
         INSMK(1),
         XCHPF(1),
         UEETO(3),
    > Plant Storage 1
         MHDRZ(4),
         MHDHB(4),
    > Plant Storage 2
         PRCTR1(10),
         EPRIO1(4),
    > WM 1 S01 comum a todos
         LTKZA_S01(3),
         LTKZE_S01(3),
         LGBKZ_S01(3),
    > WM 1 SHV
         LTKZA_SHV(3),
         LTKZE_SHV(3),
         LGBKZ_SHV(3),
    > WM 1 SQW
         LTKZA_SQW(3),
         LTKZE_SQW(3),
         LGBKZ_SQW(3),
    > WM 2
         LHMG1(13),
         LHME1(3),
         LETY1(3),
         LHMG2(13),
         LHME2(3),
         LETY2(3),
         LHMG3(13),
         LHME3(3),
         LETY3(3),
    > Accounting 1
         BKLAS(4),
         VPRSV(1),
         VERPR(23),
         PEINH(5),
       END OF LSMW_MATERIAL_MASTER.
    DATA:V_FILE TYPE STRING.
    DATA:VolumUnitConv(3).
    DATA:UnitConv(3).
                   INTERNAL TABLE DECLARATIONS                         *
    *to store the input data
    DATA:
      BEGIN OF  it_matmaster OCCURS 0.
            INCLUDE STRUCTURE LSMW_MATERIAL_MASTER.
    DATA:
      END OF it_matmaster.
    *for material description
    DATA:BEGIN OF IT_MATERIALDESC OCCURS 0.
            INCLUDE STRUCTURE BAPI_MAKT .
    DATA:END OF IT_MATERIALDESC.
    *FOR gross wt
    data: begin of it_uom occurs 0.
            include structure BAPI_MARM.
    data:end of it_uom.
    DATA: BEGIN OF IT_UOMX OCCURS 0.
            INCLUDE STRUCTURE BAPI_MARMX.
    DATA:END OF IT_UOMX.
    data:begin of it_mean occurs 0.
            include structure bapi_mean.
    data:end of it_mean.
    DATA: BEGIN OF it_MLAN OCCURS 0.
            include STRUCTURE BAPI_MLAN.
    DATA: END OF it_MLAN.
    DATA:BEGIN OF IT_MLTX OCCURS 0.
            INCLUDE STRUCTURE BAPI_MLTX.
    DATA:END OF IT_MLTX.
    *to return messages
    DATA:BEGIN OF IT_RETURN OCCURS 0.
            INCLUDE STRUCTURE BAPIRET2.
    DATA:END OF IT_RETURN.
    DATA : imat TYPE TABLE OF bapimatinr WITH HEADER LINE.
    DATA: text LIKE bapi_mltx OCCURS 0 WITH HEADER LINE.
    DATA: matnrAct(18),oldMart(4).
    SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-002.
    PARAMETERS:P_FILE LIKE RLGRAP-FILENAME OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK B1 .
    AT SELECTION SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          PROGRAM_NAME  = SYST-CPROG
          DYNPRO_NUMBER = SYST-DYNNR
          FIELD_NAME    = 'P_FILE'
        IMPORTING
          FILE_NAME     = P_FILE.
                   TO UPLOAD THE DATA                                  *
    START-OF-SELECTION.
      V_FILE = P_FILE.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                      = V_FILE
         FILETYPE                      = 'ASC'
         HAS_FIELD_SEPARATOR           = 'X'
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
        tables
          data_tab                      =  IT_MATMASTER
       EXCEPTIONS
         FILE_OPEN_ERROR               = 1
         FILE_READ_ERROR               = 2
         NO_BATCH                      = 3
         GUI_REFUSE_FILETRANSFER       = 4
         INVALID_TYPE                  = 5
         NO_AUTHORITY                  = 6
         UNKNOWN_ERROR                 = 7
         BAD_DATA_FORMAT               = 8
         HEADER_NOT_ALLOWED            = 9
         SEPARATOR_NOT_ALLOWED         = 10
         HEADER_TOO_LONG               = 11
         UNKNOWN_DP_ERROR              = 12
         ACCESS_DENIED                 = 13
         DP_OUT_OF_MEMORY              = 14
         DISK_FULL                     = 15
         DP_TIMEOUT                    = 16
         OTHERS                        = 17
      IF sy-subrc <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      check sy-subrc eq 0.
                   DATA POPULATIONS                                    *
      LOOP AT  IT_MATMASTER.
        IF IT_MATMASTER-MATNR EQ '' .
          oldMart = IT_MATMASTER-Mtart.
          CALL FUNCTION 'MATERIAL_NUMBER_GET_NEXT'
            EXPORTING
              MATERIALART                = IT_MATMASTER-Mtart
           IMPORTING
             MATERIALNR                 = matnrAct
      RETURNCODE                 =
    EXCEPTIONS
      NO_INTERNAL_INTERVAL       = 1
      TYPE_NOT_FOUND             = 2
      OTHERS                     = 3
          if sy-subrc = 0.
            BAPIMATHEAD-MATERIAL = matnrAct.
          endif.
        ELSE.
          BAPIMATHEAD-MATERIAL = it_matmaster-matnr.
        ENDIF.
    Preenchimento dos dados do ecrã inicial
       BAPIMATHEAD-MATERIAL = IT_MATMASTER-MATNR.
        BAPIMATHEAD-IND_SECTOR = 'M'.
        BAPIMATHEAD-MATL_TYPE = IT_MATMASTER-Mtart.
        "declaration of views
        BAPIMATHEAD-BASIC_VIEW = 'X'.
        BAPIMATHEAD-MRP_VIEW = 'X'.
        BAPIMATHEAD-STORAGE_VIEW = 'X'.
        BAPIMATHEAD-WAREHOUSE_VIEW = 'X'.
        BAPIMATHEAD-ACCOUNT_VIEW = 'X'.
        If IT_MATMASTER-Mtart EQ '31'.
          BAPIMATHEAD-SALES_VIEW = 'X'.
          BAPIMATHEAD-WORK_SCHED_VIEW = 'X'.
        ENDIF.
        If IT_MATMASTER-Mtart EQ '51'.
          BAPIMATHEAD-SALES_VIEW = 'X'.
          BAPIMATHEAD-WORK_SCHED_VIEW = 'X'.
        ENDIF.
        If IT_MATMASTER-Mtart EQ '65'.
          BAPIMATHEAD-PURCHASE_VIEW = 'X'.
        ENDIF.
    Preenchimento de dados relativos a MARA
        BAPI_MARA-BASE_UOM = IT_MATMASTER-MEINS.
        BAPI_MARA-MATL_GROUP = IT_MATMASTER-MATKL.
        BAPI_MARA-OLD_MAT_NO = IT_MATMASTER-BISMT.
        BAPI_MARA-DIVISION = IT_MATMASTER-SPART.
        BAPI_MARA-PROD_HIER = IT_MATMASTER-PRDHA.
        BAPI_MARA-NET_WEIGHT = IT_MATMASTER-ntgew.
        BAPI_MARA-UNIT_OF_WT = IT_MATMASTER-GEWEI.
        BAPI_MARA-TRANS_GRP = IT_MATMASTER-tragr.
    > Novas Entradas
        IF IT_MATMASTER-Mtart EQ '65'.
          BAPI_MARA-BATCH_MGMT = IT_MATMASTER-XCHPF1.
          BAPI_MARA-PUR_VALKEY = IT_MATMASTER-EKWSL.     
          BAPI_MARAX-PUR_VALKEY = 'X'.
        ELSE.
                   BAPI_MARA-BATCH_MGMT = IT_MATMASTER-XCHPF.
    ENDIF.
    > Novas Entradas
          BAPI_MARA-MINREMLIFE = IT_MATMASTER-MHDRZ.
          BAPI_MARA-SHELF_LIFE = IT_MATMASTER-MHDHB.
          BAPI_MARAX-MATL_GROUP = 'X'.
          BAPI_MARAX-OLD_MAT_NO = 'X'.
          BAPI_MARAX-BASE_UOM = 'X'.
          BAPI_MARAX-DIVISION = 'X'.
          BAPI_MARAX-PROD_HIER = 'X'.
          BAPI_MARAX-NET_WEIGHT = 'X'.
          BAPI_MARAX-UNIT_OF_WT = 'X'.
          BAPI_MARAX-TRANS_GRP = 'X'.
          BAPI_MARAX-BATCH_MGMT = 'X'.
          BAPI_MARAX-MINREMLIFE = 'X'.
          BAPI_MARAX-SHELF_LIFE = 'X'.
    Preencimento de dados Relativos a MKVE
          BAPI_MVKE-DELYG_PLNT = IT_MATMASTER-DWERK.
          BAPI_MVKE-SALES_ORG = IT_MATMASTER-VKORG.
          BAPI_MVKE-DISTR_CHAN = IT_MATMASTER-VTWEG.
          BAPI_MVKE-PROD_HIER = IT_MATMASTER-PRODH.
          BAPI_MVKE-ITEM_CAT = IT_MATMASTER-MTPOS.
          BAPI_MVKE-ACCT_ASSGT = IT_MATMASTER-KTGRM.
          BAPI_MVKEX-SALES_ORG = IT_MATMASTER-VKORG.
          BAPI_MVKEX-DISTR_CHAN = IT_MATMASTER-VTWEG.
          BAPI_MVKEX-PROD_HIER = 'X'.
          BAPI_MVKEX-ITEM_CAT = 'X'.
          BAPI_MVKEX-DELYG_PLNT = 'X'.
          BAPI_MVKEX-ACCT_ASSGT = 'X'.
    Preencimento de dados Relativos a MARC
          BAPI_MARC-PLANT = IT_MATMASTER-WERKS.
          BAPI_MARC-AVAILCHECK = IT_MATMASTER-MTVFP.
          BAPI_MARC-LOADINGGRP = IT_MATMASTER-LADGR.
          BAPI_MARC-PROFIT_CTR = IT_MATMASTER-PRCTR.
          IF NOT IT_MATMASTER-Mtart EQ '51'.
            BAPI_MARC-COMM_CODE = IT_MATMASTER-STAWN.
            BAPI_MARC-COUNTRYORI = IT_MATMASTER-HERKL.
            BAPI_MARC-REGIONORIG = IT_MATMASTER-HERKR.
            BAPI_MARCX-COMM_CODE = 'X'.
            BAPI_MARCX-COUNTRYORI = 'X'.
            BAPI_MARCX-REGIONORIG = 'X'.
          ENDIF.
          BAPI_MARC-MRP_GROUP = IT_MATMASTER-DISGR.
          BAPI_MARC-MRP_TYPE = IT_MATMASTER-DISMM.
          BAPI_MARC-MRP_CTRLER = IT_MATMASTER-DISPO.
          BAPI_MARC-LOTSIZEKEY = IT_MATMASTER-DISLS.
          BAPI_MARC-MINLOTSIZE = IT_MATMASTER-BSTMI.
          BAPI_MARC-ROUND_VAL = IT_MATMASTER-BSTRF.
          BAPI_MARC-PROC_TYPE = IT_MATMASTER-BESKZ.
          BAPI_MARC-BACKFLUSH = IT_MATMASTER-RGEKZ .
          BAPI_MARC-ISS_ST_LOC = IT_MATMASTER-LGPRO.
          BAPI_MARC-DETERM_GRP = IT_MATMASTER-EPRIO.
          BAPI_MARC-SM_KEY = IT_MATMASTER-FHORI.
          BAPI_MARC-PERIOD_IND = IT_MATMASTER-PERKZ.
          BAPI_MARC-PLAN_STRGP = IT_MATMASTER-STRGR.
          BAPI_MARC-CONSUMMODE = IT_MATMASTER-VRMOD.
          BAPI_MARC-BWD_CONS = IT_MATMASTER-VINT1.
          BAPI_MARC-FWD_CONS = IT_MATMASTER-VINT2.
          BAPI_MARC-ALT_BOM_ID = IT_MATMASTER-ALTSL.
          BAPI_MARC-PRODUCTION_SCHEDULER = IT_MATMASTER-FEVOR.
          IF NOT IT_MATMASTER-Mtart EQ '65'.
            BAPI_MARC-IND_POST_TO_INSP_STOCK = IT_MATMASTER-INSMK.
            BAPI_MARC-OVER_TOL = IT_MATMASTER-UEETO.
            BAPI_MARCX-IND_POST_TO_INSP_STOCK = 'X'.
            BAPI_MARCX-OVER_TOL = 'X'.
          ENDIF.
    > Novas Entradas
          IF IT_MATMASTER-Mtart EQ '65'.
                 BAPI_MARC-PUR_GROUP = IT_MATMASTER-EKGRP .
                 BAPI_MARC-AUTO_P_ORD = IT_MATMASTER-KAUTB .
                 BAPI_MARC-GR_PR_TIME = IT_MATMASTER-WEBAZ .
                 BAPI_MARC-IND_POST_TO_INSP_STOCK = IT_MATMASTER-INSMK1 .
                 BAPI_MARC-SOURCELIST = IT_MATMASTER-KORDB .
                 BAPI_MARC-EXPIMPGRP = IT_MATMASTER-MTVER .
                 BAPI_MARCX-PUR_GROUP = 'X'.
                 BAPI_MARCX-AUTO_P_ORD = 'X'.
            BAPI_MARCX-GR_PR_TIME = 'X'.
            BAPI_MARCX-IND_POST_TO_INSP_STOCK = 'X'.
            BAPI_MARCX-SOURCELIST = 'X'.
            BAPI_MARCX-EXPIMPGRP = 'X'.
          ENDIF.
    > Novas Entradas
          BAPI_MARCX-PLANT = IT_MATMASTER-WERKS.
          BAPI_MARCX-AVAILCHECK = 'X'.
          BAPI_MARCX-LOADINGGRP = 'X'.
          BAPI_MARCX-PROFIT_CTR = 'X'.
          BAPI_MARCX-MRP_GROUP = 'X'.
          BAPI_MARCX-MRP_TYPE = 'X'.
          BAPI_MARCX-MRP_CTRLER = 'X'.
          BAPI_MARCX-LOTSIZEKEY = 'X'.
          BAPI_MARCX-MINLOTSIZE = 'X'.
          BAPI_MARCX-ROUND_VAL = 'X'.
          BAPI_MARCX-PROC_TYPE = 'X'.
          BAPI_MARCX-BACKFLUSH = 'X'.
          BAPI_MARCX-ISS_ST_LOC = 'X'.
          BAPI_MARCX-DETERM_GRP = 'X'.
          BAPI_MARCX-SM_KEY = 'X'.
          BAPI_MARCX-PERIOD_IND = 'X'.
          BAPI_MARCX-PLAN_STRGP = 'X'.
          BAPI_MARCX-CONSUMMODE = 'X'.
          BAPI_MARCX-BWD_CONS = 'X'.
          BAPI_MARCX-FWD_CONS = 'X'.
          BAPI_MARCX-ALT_BOM_ID = 'X'.
          BAPI_MARCX-PRODUCTION_SCHEDULER = 'X'.
    Preencimento de dados Relativos a MLGN
          BAPI_MLGN-WHSE_NO = 'S01'.
          BAPI_MLGN-WITHDRAWAL = IT_MATMASTER-LTKZA_S01.
          BAPI_MLGN-PLACEMENT = IT_MATMASTER-LTKZE_S01.
          BAPI_MLGN-STGESECTOR = IT_MATMASTER-LGBKZ_S01.
          BAPI_MLGN-L_EQUIP_1 = IT_MATMASTER-LHMG1.
          BAPI_MLGN-L_EQUIP_2 = IT_MATMASTER-LHMG2.
          BAPI_MLGN-L_EQUIP_3 = IT_MATMASTER-LHMG3.
          BAPI_MLGN-LEQ_UNIT_1 = IT_MATMASTER-LHME1.
          BAPI_MLGN-LEQ_UNIT_2 = IT_MATMASTER-LHME2.
          BAPI_MLGN-LEQ_UNIT_3 = IT_MATMASTER-LHME3.
          BAPI_MLGN-UNITTYPE_1 = IT_MATMASTER-LETY1.
          BAPI_MLGN-UNITTYPE_2 = IT_MATMASTER-LETY2.
          BAPI_MLGN-UNITTYPE_3 = IT_MATMASTER-LETY3.
          BAPI_MLGNX-WHSE_NO = 'S01'.
          BAPI_MLGNX-WITHDRAWAL = 'X'.
          BAPI_MLGNX-PLACEMENT = 'X'.
          BAPI_MLGNX-STGESECTOR = 'X'.
          BAPI_MLGNX-L_EQUIP_1 = 'X'.
          BAPI_MLGNX-L_EQUIP_2 = 'X'.
          BAPI_MLGNX-L_EQUIP_3 = 'X'.
          BAPI_MLGNX-LEQ_UNIT_1 = 'X'.
          BAPI_MLGNX-LEQ_UNIT_2 = 'X'.
          BAPI_MLGNX-LEQ_UNIT_3 = 'X'.
          BAPI_MLGNX-UNITTYPE_1 = 'X'.
          BAPI_MLGNX-UNITTYPE_2 = 'X'.
          BAPI_MLGNX-UNITTYPE_3 = 'X'.
    Preencimento de dados Relativos a MBEW
    BAPI_MBEW,
    BAPI_MBEWX,
          BAPI_MBEW-VAL_CLASS = IT_MATMASTER-BKLAS.
          BAPI_MBEW-PRICE_CTRL = IT_MATMASTER-VPRSV.
          BAPI_MBEW-STD_PRICE = IT_MATMASTER-VERPR.
          BAPI_MBEW-PRICE_UNIT = IT_MATMASTER-PEINH.
          BAPI_MBEW-VAL_AREA = 'CLPS'."IT_MATMASTER-BWKEY.
          BAPI_MBEWX-VAL_AREA = 'CLPS'."IT_MATMASTER-BWKEY.
          BAPI_MBEWX-VAL_CLASS = 'X'.
          BAPI_MBEWX-PRICE_CTRL = 'X'.
          BAPI_MBEWX-STD_PRICE = 'X'.
          BAPI_MBEWX-PRICE_UNIT = 'X'.
    ---------------------------------------------------> Material Descrition
          IT_MATERIALDESC-LANGU = sy-langu. "'EN'.
          IT_MATERIALDESC-MATL_DESC = IT_MATMASTER-MAKTX.
          APPEND IT_materialdesc.
    Gross Weight, Volume and EAN
    *Volume é preciso uma rotina de conversão
          CALL FUNCTION 'CONVERSION_EXIT_CUNIT_INPUT'
            EXPORTING
              INPUT                = IT_MATMASTER-VOLEH
      LANGUAGE             = SY-LANGU
           IMPORTING
             OUTPUT               = VolumUnitConv
           EXCEPTIONS
             UNIT_NOT_FOUND       = 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_CUNIT_INPUT'
            EXPORTING
              INPUT                = IT_MATMASTER-MEINS
      LANGUAGE             = SY-LANGU
           IMPORTING
             OUTPUT               = UnitConv
           EXCEPTIONS
             UNIT_NOT_FOUND       = 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.
          IT_UOM-GROSS_WT = IT_MATMASTER-BRGEW.
          IT_UOM-ALT_UNIT = UnitConv.
         IT_UOM-ALT_UNIT_ISO = IT_MATMASTER-GEWEI.
          IT_UOM-UNIT_OF_WT = IT_MATMASTER-GEWEI.
          IT_UOM-EAN_UPC = IT_MATMASTER-EAN11.
          IT_UOM-EAN_CAT = IT_MATMASTER-NUMTP.
          IT_UOM-VOLUME = IT_MATMASTER-VOLUM.
          IT_UOM-VOLUMEUNIT = VolumUnitConv.
         IT_UOM-VOLUMEUNIT_ISO = IT_MATMASTER-VOLEH.
          APPEND IT_UOM.
          IT_UOMX-ALT_UNIT = IT_MATMASTER-MEINS.
         IT_UOMX-ALT_UNIT_ISO = IT_MATMASTER-GEWEI.
          IT_UOMX-GROSS_WT = 'X'.
          IT_UOMX-UNIT_OF_WT = 'X'.
          IT_UOMX-EAN_UPC = 'X'.
          IT_UOMX-EAN_CAT = 'X'.
    *Volume
          IT_UOMX-VOLUME = 'X'.
          IT_UOMX-VOLUMEUNIT = 'X'.
         IT_UOMX-VOLUMEUNIT_ISO = 'X'.
          APPEND IT_UOMX.
          CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
            EXPORTING
              headdata             = BAPIMATHEAD
              CLIENTDATA           = BAPI_MARA
              CLIENTDATAX          = BAPI_MARAx
              PLANTDATA            = BAPI_MARc
              PLANTDATAX           = BAPI_MARcx
              VALUATIONDATA        = BAPI_MBEW
              VALUATIONDATAX       = BAPI_MBEWX
              WAREHOUSENUMBERDATA  = BAPI_MLGN
              WAREHOUSENUMBERDATAX = BAPI_MLGNX
              SALESDATA            = BAPI_MVKE
              SALESDATAX           = BAPI_MVKEX
            IMPORTING
              RETURN               = IT_RETURN
            TABLES
              MATERIALDESCRIPTION  = IT_MATERIALDESC
              UNITSOFMEASURE       = IT_UOM
              UNITSOFMEASUREX      = IT_UOMX
              MATERIALLONGTEXT     = text
              TAXCLASSIFICATIONS   = it_MLAN.
          if it_return-type eq 'S'.
            CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
         endif.
         WAIT UP TO 10 SECONDS.
          WRITE : / IT_RETURN-MESSAGE.
          CLEAR: IT_MATERIALDESC[],
                 IT_UOM[],
                 IT_UOMX[],
                 it_MLAN[],
                 IT_RETURN,
                 text,
                 BAPIMATHEAD,
                 BAPI_MARA,
                 BAPI_MARAx,
                 BAPI_MARc,
                 BAPI_MARcx,
                 BAPI_MBEW,
    BAPI_MBEWX,
    BAPI_MLGN,
    BAPI_MLGNX,
    BAPI_MVKE,
    BAPI_MVKEX
        ENDLOOP.

  • How to configure Material Master

    Dear Guru,
    May I know how the steps to configure material master?
    Thank you.
    Rgds,
    Goh Yen

    Hi,
    Follow the below steps for customization of material master
    1. Material Number:
    SPRO -> Logistic - General -> Material Master -> Basic Settings -> Define Output Format of Material Number
    TCODE: OMSL
    2. Define Field Reference:
    SPRO -> Logistic - General -> Material Master -> Field Selection -> Maintain field Selection For data Screens
    T CODE: OMS9
    3. Define Industry Sector:
    SPRO -> Logistic - General -> Material Master -> Field Selection -> Define industry Sectors and industry -sector- specific Field Selection
    T.Code:OMS3
    4. Material Type:
    SPRO -> Logistic - General -> Material Master -> Basic Settings -> Material Type ->Define attribute of material Type
    T.Code:OMS2
    (Select Material Type: ROH for ur raw material( example) copy it and renamed it to UR  RAW MATERIAL)
    5. Define Screen Sequence:
    SPRO -> Logistic - General -> Material Master -> Configuring the Material Master -> Define structure of Data Screens for each Screen Sequence
    T.Code:OMT3B
    (Select Screen Sequence: 21, copy it and renamed it to Z with any letter( Like ZA or ZB )
    6. Ordering Screen Sequence:
    SPRO -> Logistic - General -> Material Master -> Configuring the Material Master -> Maintain Order of main and Additional Screen
    T.Code:OMT3R
    7. Assign Screen Sequence to Industry Sector:
    SPRO -> Logistic - General -> Material Master -> Configuring the Material Master -> Assign Screen Sequences to User/Material Type/Truncation/Industry Sector
    T.Code:OMT3E
    8. Assign Field Reference to Plant:
    SPRO -> Logistic - General ->Material Master -> Field Selection -> Define Plant -Specific Field Selection and Plant -Specific Screen Selection
    T.Code:OMSA
    9. Define Material Group
    SPRO -> Logistic - General -> Material Master -> Setting for Key Field -> Define Material Group
    T.Code:OMSF
    10. Define Number Range of Material:
    SPRO -> Logistic - General -> Material Master -> Basic Settings -> Material Type ->Define Number Range for each Material Type
    T.Code:MMNR
    11. Define Purchasing Group:
    SPRO -> Material Management->Purchasing->Create Purchasing Group
    T.Code:OME4
    Regards,
    Biju K

  • How to restrict material master by material type  t-code MM01

    Hi,
    how to restrict Materilal master by Material type in t-code MM01
    I do restrict by M_MATE_MAR authorization object . After i see there not restrict.
    Amit

    >
    sapvinithbasis wrote:
    > hi
    > plz help me out in solving this issue
    > regards vinith
    Vinith,
    I have explained in great detail exactly what you need to do at every stage.  The steps I have outlined are the same that I follow every time that I want to apply material type restrictions. 
    I strongly recommend that you contact your security admin to help with this, alternatively engage the services of a trained/experienced security admin who can come on site and go through this with you. 
    If you have done the following then it will work:
    1. Assign auth group to material type via OMS2
    2. Verified that check for M_MATE_MAR is active
    3. Ensured that M_MATE_MAR does not contain the auth group/s which you assigned via OMS2 (that includes *)
    This is the last comment I will make on this topic.
    Cheers
    Alex

  • Problem loading material master (IS Mill) data from ECC to BI

    Hi Gurus,
    We have a problem loading Material master data from ECC to BI 7.0 SP 18.
    The scenario is :
    The ECC is with IS Mill... due to which the Material field MATNR is of length 40 instead of standard 18 characters.
    That is data element MATNR has 18 chars and its output length is 40 chars.
    When is table MARA browsed using SE16, the material with more than 18 chars.... shows only first 18 characters and are ended with !.
    OMSL setting shows length as 40.
    When the extractor checker runs 0MATERIAL_TEXT or 0MATERIAL_ATTR it gives correct output ..... which is more than 18 characters... not ended with !
    Till here no problem.
    On BI side, after replication of the datasource, i checked data element MATNR ... but it has length as 18 chars and output length as 18 chars.
    OMSL setting cannot be set more than 18.
    Infopackage has pulled data till PSA successfully. I checked the PSA data .... here to the material with more than 18 chars is ended with !.
    When the data is further pushed to 0MATERIAL infoobject, it throws following error for all materials irrespetive of its length (example below):
    0MATERIAL : Data record 768 ('SIT_PL_B01L_10_01!E '): Version 'SIT_PL_B01L_10_01! ' is not valid
    0MATERIAL : Data record 165 ('RLIRS52 E '): Version 'RLIRS52 ' is not valid
    Diagnosis
         Data record 768 & with the key 'SIT_PL_B01L_10_01!E &' is invalid in value 'SIT_PL_B01L_10_01! &' of the attribute/characteristic 0MATERIAL.
    System Response
         The system has recognized that the value mentioned above is invalid, and has processed this general error message. A subsequent message may give  you more information on the error. This message refers to the same value, even though it does not state this explicitly.
    I did search for SAP note related to this... but could not find any.
    There is one SAP note (Note 960868) which mentions about this, but the correction was then shipped with BI SP 9.... we are running on SP 18.
    Requesting you all experts for help.
    Best Regards,
    Deepak

    Hi,
    follow bellow steps:
    1. you need to activate the Datasouce in BI side.
    Goto RSA1>  Datasource> Select Datasource> Double click> Check fileds and Activate.
    2. Replicate the Datasource into BI side.
    3. Check the RFC connections by useing SM59.
    Regards.

Maybe you are looking for

  • Not all characters embedded

    I've imported a font as a font symbol. In its linkage I selected export for actionscript. This works for my dynamic text. However I've noticed that not all characters are embedded. See attached example. On top I've got a static textfield with the fol

  • Is it possible to change the computer name?

    Trying to simplify a few things and would like to change the names of my computers. Is there an easy way to do it? If so, will it screw other things up? Thanks in advance for any input. Best, -Thomas

  • Multiple schema use in one workspace

    Hi, I have Apex application where I use 4 different schemas, with same privileges (select any table, insert any table, update any table, delete any table, create synonym,create any view, create view, unlimited tablespace) and roles (connect, resource

  • How do I return my old HP printer?

    I saw a reference to returning my old HP Printer, presumably for recycling.  How do I do this.  Are there recycling centers or authorized locations?

  • Doubt on file handling

    File file=new File("myfile.txt"); file.createNewFile() file.isDirectory() Here file.createNewFile() needs a try/catch block or need throws declaration in the method signature to compile where as file.isDirectory() is just fine.I expect file.isDirecto