Deleting the material view in mass

Hi Friends
  The material master is created using LSMW in mass. The material list in the file itself is given wrong so a particular view is create in mass. Now the user says to remove the materials view in mass. How to do it. Is there any FM to remove or delete the particular view of a material. I want to remove the view in mass.
Regards
Vijay Mukunthan

It is not forseen to remove created views.
you can only  flag organisation level for deletion and subsequently run archiving with SARA object MM_MATNR, to physically remove this org level (this requires customizing)
technically the PSTAT fields at various levels (MARA, MARC, MBEW) control which view is created.
Usually you do not only have the status set, you usually have as well some fields filled in a view, as most views have mandatory fields.
If you load with BAPIs or IDOCs, then it shouldn't be a big deal to overwrite the existing material master with  correct data in a new load (dont do it if you have the material already used)

Similar Messages

  • How to delete the material records related to storage type

    Dear SAP guru's,
    I got a situation that if the material "XXXXXX" exists in two different storage type (let say 001 & 002 ) and the material needs to be removed out of one (Let say 002) to avoid the picking and putaway in future.
    Inorder to accomplish an above requirement we tried the below cases
    Case 1: By flagged the material "XXXXXX" under storage type 002 in MM06 transaction.But it didn't restrict the system on allocating and removing the stock from /to to the storage type 002.
    Case 2:After we flagged the material for deletion under storage type 002 ,we used to MM71 transaction to archive & delete the material record that assocaited with the storage type 002 completely.
    I am kind of queiries to know if there is any other method or procedure available to delete the storage type associated material records in SAP.
    Please guide me with the other options.Thanks.
    Regards,
    John.

    Hi John,
    Its very simple, remove the Storage type indicators from the material master - Warehouse View 1 at Stock placement & Stock removal section, with this it won't pickup or place the materials in the concerned storage type.
    If you have extended this materials to more than 1 storage type, you need to do the same for all the storage types.
    Reward if it is helpful.

  • How can I fast refresh the  materialized view !!

    I created a MV base on some tables in order to improve the querey speed.
    but the mv I have created falied to refresh fast.
    because there are two same table in the from clause:
    jcdm jc1,jcdm jc2
    create materialized view temp_mv
    nologging
    pctfree 0
    storage (initial 2048k next 2048k pctincrease 0)
    parallel
    build immediate
    refresh force
    on demand
    as
    select
    TAB_GSHX.rowid hx_rid,
    TAB_GSHD.rowid hd_rid ,
    JC1.rowid jc1_rid ,
    JC2.rowid jc2_rid ,
    YSHD_ID     HXID,          
    JC1.JCDM     QFD,     
    JC2.JCDM     JLD     
    FROM
    TAB_GSHX,
    TAB_GSHD,
    jCDM JC1,
    JCDM JC2
    WHERE
    YSHD_ID=YSHX_ID
    AND YSHD_QFD=JC1.JBJC_ID
    AND YSHD_JLD=JC2.JBJC_ID
    AND TO_CHAR(YSHX_time,'YYYYMMDD')='20030101'
    the column msgtxt of the table MV_CAPABILITIES_TABLE is :
    "the multiple instances of the same table or view" and " one or more joins present in mv".
    How can I succeed in fast refresh the above temp_mv!!!
    thanks.

    lianjun,
    When you are using Oracle9i there is a procedure which can help you setup the materialized view. If some option isn't working it gives you hint why it doesn't work.
    The procedure is dbms_mview.explain_mview.
    Take a look at the documentation how to use it. (In the Oracle9i DWH guide the package is explained.)
    Hope this helps
    With kind regards,
    Bas Roelands

  • JOB to refresh the materialized views

    Hi,
    I have created the following job to call a procedure which refreshes all the materialized views but it that job has been running from ages although in the past it seems to work.
    Can u advise me what im missing
    REM : procedure to refresh all the job
    PROCEDURE PROC_REFRESH_MVS AS
    BEGIN
    This procedure will refresh all of the MVs
    DBMS_MVIEW.REFRESH('MV_A','c');
    DBMS_MVIEW.REFRESH('MV_B','c');
    DBMS_MVIEW.REFRESH('MV_Z','c');
    END PROC_REFRESH_MVS;
    REM Job to call the procedure
    BEGIN
    sys.dbms_scheduler.create_job(
    job_name => '"SCHEMAOWNER"."REFRESH_MVS"',
    job_type => 'STORED_PROCEDURE',
    job_action => 'SCHEMAOWNER.PROC_REFRESH_MVS',
    start_date => systimestamp at time zone 'Europe/Lisbon',
    job_class => 'DEFAULT_JOB_CLASS',
    comments => 'Refresh all the materialized views ',
    auto_drop => FALSE,
    enabled => FALSE);
    sys.dbms_scheduler.set_attribute( name => '"SCHEMAOWNER"."REFRESH_MVS"', attribute => 'logging_level', value => DBMS_SCHEDULER.LOGGING_FULL);
    sys.dbms_scheduler.enable( '"SCHEMAOWNER"."REFRESH_MVS"' );
    END;

    Hi
    To understand what's going on you should analyze the trace file that is generated when such an error occurs. Metalink note 131885.1 may be helpful.
    HTH
    Chris

  • MM50 : add new column in the material view

    Dear guru.
    I need to add a new column of material master in the material view of MM50.
    Do you have a solution (exit) in order to solve my problem ?
    Thanks.

    > I need to add a new field in the MM50 transaction not in MM02.
    Der Friend,
    Pls be specific about your query. As you know MM50 is for material view extension which is a std SAP trxn to help extend the views set by standard SAP pack and if you are referring new field as a new view then it is not so easily approachable.
    Shiva

  • Creating the materialized view using the database link

    Hi Guys,
    I am using the Oracle 11g release version.
    Following is my question,
    I had created the Database link to get the data from remote DB table.
    Using that DB link, i can access the required table using SELECT statment.
    When i tried to create the materialized using that DB link.
    I am getting the error SQL Error: ORA-00942: table or view does not exist.
    Can anyone please find the root cause and provide the solution for this?
    TIA,
    Dhivakar.

    Hi Dhivakar,
    try like this
    CREATE DATABASE LINK test
    CONNECT TO scott IDENTIFIED BY tiger
    USING 'orcl';
                         Pls make sure the table name.which ur using to create the materialized view.Thanks
    Venkadesh

  • Error on compile the Materialized view refresh

    Hello all,
    I am getting issue while compile the Materialized view refresh.
    ALTER MATERIALIZED VIEW FII_GL_AGRT_SUM_MV COMPILE;--( did successfully)
    exec DBMS_MVIEW.REFRESH('APPS.FII_GL_AGRT_SUM_MV','C');
    Error:
    ORA-12008: error in materialized view refresh path
    ORA-01013: user requested cancel of current operation
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2545
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2751
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2720
    ORA-06512: at line 1
    Please tell me what could be the issue
    Thanks and Regards,
    Muthu

    Hello all,
    I am using R12.1.3.
    While execute the below command, its not completing..
    exec DBMS_MVIEW.REFRESH('APPS.FII_GL_AGRT_SUM_MV','C');
    I found the reason why its not completing. Because its Refresh In Progress.
    SQL> select u.name owner,o.name mview_name, s.obj#,lastrefreshdate
    *2 from sys.obj$ o, sys.sum$ s, sys.user$ u*
    *3 where u.user# = o.owner# and o.obj# = s.obj# and o.type# = 42 AND bitand(s.mflags, 8) = 8;*
    OWNER                          MVIEW_NAME                           OBJ# LASTREFRE
    APPS                           FII_GL_AGRT_SUM_MV                 438268 06-MAR-13
    SQL> select decode(bitand(s.mflags,8), 8,'Refresh In Progress','Not being refreshed')
    *2 from sys.obj$ o, sys.user$ u, sys.sum$ s*
    *3 where o.obj# = s.obj# and o.owner# = u.user# and o.type# = 42*
    *4 and o.name='FII_GL_AGRT_SUM_MV';*
    DECODE(BITAND(S.MFL
    Refresh In Progress
    How to stop Refreshing or is there any other solution for this issue?
    Please clarify me...
    Thanks and Regards,
    Muthu

  • Ora-23454 when add an objects to the materialized view group

    Hi, All,
    I tend to create a distributed MV, when add an objects to the materialized view group using:
    BEGIN
    DBMS_REPCAT.CREATE_MVIEW_REPOBJECT (
    gname => 'hr_repg',
    sname => 'hr',
    oname => 'departments_mv1',
    type => 'SNAPSHOT',
    min_communication => TRUE);
    END;
    I got the follwoing errors:
    ORA-23454: flavor not defined for object group "PUBLIC"."HR_REPG"
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
    ORA-06512: at "SYS.DBMS_REPCAT_UTL", line 452
    ORA-06512: at "SYS.DBMS_REPCAT_UTL", line 468
    ORA-06512: at "SYS.DBMS_REPCAT_SNA_UTL", line 5599
    ORA-06512: at "SYS.DBMS_REPCAT_SNA", line 82
    ORA-06512: at "SYS.DBMS_REPCAT", line 1332
    ORA-06512: at line 2
    Does anybody know what is the problem?
    Thanks in advance for any advice.
    Sharon.Ni

    Are you trying to replicate an existing materialized view called "departments_mv1" ? That is what the implication of the arguments you are supplying.
    If it is an MV, you have to supply the DDL (in the DDL_TEXT) as well.
    Hemant K Chitale

  • Can the badi of MIRO be used to add/delete the material documents in MIRO?

    Hi ,
    Can the BADI of MIRO be used to add/delete the material documents in MIRO? As I use call transaction to call 'MIRO' , during I fill in the bdc tab of the MIRO, I want to use its badi to delete/add some listed material documents in the items of the MIRO.
    If you have solution, please let me know. Thank you very much.

    Thank you for your reply.
    Yes, I have finished the call bapi code. But the users want to change some post date, tax, amount and some account values
    during MIRO. So I tried to use call bdc.
    But when I call bdc to run miro, I need to update the material documents reciords which are choosed according to some specific logic.

  • Refeshing the Materialized view

    Hi,
    I could not refresh the materialized view manually.
    here is the command i am using.
    execute DBMS_REFRESH.MAKE(
         name => 'my_customer',
         list => 'VIEW_MY_CUST_ALL',
         next_date => sysdate,
         interval => 'sysdate+1/48');
    execute DBMS_REFRESH.REFRESH(
         name => 'my_customer');
    ========i am getting following error ===========
    SQL> ed
    Wrote file afiedt.buf
    1 execute DBMS_REFRESH.MAKE(
    2 name => 'my_customer',
    3 list => 'VIEW_MY_CUST_ALL',
    4 next_date => sysdate,
    5* interval => 'sysdate+1/48')
    SQL> /
    execute DBMS_REFRESH.MAKE(
    ERROR at line 1:
    ORA-00900: invalid SQL statement
    ========================
    --Thanks
    Raman

    Does the materialized view exist and is it valid?
    Fast refreshable materialzed views don't like SYSDATE, either :(

  • Deleting the material code permanently

    All SAP Gurus,
    Few material codes are there in our system which were un-necessarily created and have no use.
    We have already flagged those material codes for deletion.
    Although these material codes can no longer be used.
    But the problem is that these codes still appear in the list of material codes.
    Is there way out by which we can permanently remove these material codes from the system or at least these codes shpuld not be displayed when we see the list.
    Regards,

    Hi Rajan,
    Transaction SARA contains all the SAP archiving objects for all the SAP R/3 applications modules
    Archive a Material Master Record
    When a material is no longer required in a company or plant, you can archive and delete the material master record.You have to Flag the material master record for deletion
    Before a material master record can be archived and deleted, other objects (such as purchasing documents) that refer to this material must themselves be archived
    The Archiving steps :-
    Archiving object MM_MATNR for archiving material master records
    Type in a variant name and click Maintain.
    Save the variant.
    Maintain the Start date and Spool parameters and click execute
    To do a permanent delete, goto transaction SARA and click Delete button.
    Maintain the Archive Selection, Start date and Spool parameters.
    click execute to start the deletion program.
    For more
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/8d/3e59bc462a11d189000000e8323d3a/frameset.htm
    http://www.sap-img.com/bc003.htm
    Regards,
    Nani.
    Edited by: Nani on Oct 8, 2009 9:10 AM

  • Updating one table is updating ALL the materialized views

    We have a number of tables and also a number of materialized views that are interconnected. For some unexplained reason, when we update one table that should refresh one materialized view, all the materialized views are refreshed. It's causing massive bottlenecks on our system and we can't find the cause. Does anyone have any thoughts?

    "when we update one table that should refresh one materialized view, all the materialized views are refreshed" --If that table is used in the creation of all materialized views,then it will try to refresh all of them..(ON COMMIT REFRESH)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Delete the current view when we go out of it

    Hi All.
    I am going from View 1 to View 2 on pressing of a button.
    I want to delete the entire VIEW 1 when I navigate. This is needed because if View 1 is reached again, I want MODIFYVIEW and DOINIT methods to be fired again.
    So, from View 2 now if navigation goes back to View 1, WDDOINIT() method of View1 is fired again.
    I know this may not be a good design, but is needed in our scenario.
    Can someone please tell how can I achieve this?
    Thanks.

    Hi ,
    In the view Properties set the  lifetime of the view to "when visible " so when u navigate from view1 to view2 .. view1 will be destroyed .
    Regards
    Yash

  • Can we delete the material from SRM ?

    Hello,
    In ECC, With MM06 & with MM17 we have marked the materials for deletion but can not completely delete it. still client users shop for those materials and
    We have the requirement to permanently delete the materials from respective SLOCs so that those deleted materials will not be available at all  to requester for shopping.
    Archiving is out of scope. Can we delete the materials from SRM also in commpr01 ? or Suggest any other pointers
    Thanks & Regards / Pankaj K

    Hi Pankaj
    Issue during S.cart creation for mtl which are flagged for del at sto locn
    as really said, if you delete a material at SL level , srm not validating but SRM validates at Plant level deletion.
    Are you in classic oe ECS, However it would have thrown error while creating PO.
    How did you delete the material inSRM ?
    After you delete a material in SR, what is the status of material ? Is it blocked, Archieved.
    BR
    Muthu

  • How to alter the materialized view defintion with -- For update clause

    My db version is 9.2.0.3
    My orginal materialized view difination does not have "for update " clause.
    how can i alter the mview defination to inclused and exclude the "for update" clause.
    I dont want to drop and recreate the mview with for update clause. But I what to change the existing definition.
    Please suggest.
    Thanks
    Naveen.

    I already have the view definition in place. I want to change the exising defination, by adding the "for update " clause. Is it possible with any " alter mview ... " syntax.
    Below is my existing syntax. I don't what to drop and recreate. Just want to alter the existing definition , with for update clause.
    create materialized view test
    pctfree 0
    tablespace DATA storage (pctincrease 0)
    build immediate refresh start with sysdate next (trunc(sysdate+1) +1/24)
    with primary key
    disable query rewrite
    as select * from test@isource;
    Please suggest!
    Thanks
    Naveen
    Edited by: user12096071 on Apr 8, 2010 2:56 PM

Maybe you are looking for

  • Query rewrite using analytical functions

    Hallo list, can someone help me in rewriting this sql statment in a better way ? select k.kos_aktnr, vpr.vorgang_id, vpr.vorgang_nr, vpr.vorgang_name, 0 as   vormonat, max((select sum (menge) from swp.kosten k1 where ressource_id = :1 and jahr = :2 a

  • Never ever shop at BBY

    Spent an hour on the phone to get price match. The first agent said you can't price match items already bought online with online retailers. I had to read the policy to her. She spent another 20 minutes trying to verify that and regurgitated the same

  • I can't access my YouTube account

    I recently deleted my entire Google account and associated data (including YouTube account info) and then signed up for a fresh account. I did this because my daughter and I were sharing an account and all of her YouTube subscriptions were mixing in

  • FF29.0 crashes when loading with tab groups, loads fine without tab groups. WHY?

    I have about 16-18 tab groups (at least I did in FF28.0). When updating to FF29.0, FF crashed EVERY time when trying to load. I finally did a fresh reinstall of FF29.0. After reinstalling my 18 add-ons, I ran Session Manager and loaded a session from

  • Unable to apply reverse effect

    For some reason, I am unable to apply the reverse effect to a clip. It will preview, but the apply button will not engage. Any advice?