Mark material for deletion

Dear experts ,
Even after marking a material for deletion , i am able to do the goods movement .
The system however issues a warning message .
I need to change it to an error message .
How do i do it ?
Regards
Anis

hi,
Yes you are correct, system will warn you while making the GR doc...This is because the MMR is still stored in the table but not deleted...
SPRO >> MM >> Purchasing >> Env. >> define system messages >> here check for your message no..
and make the changes..
Regards
Priyanka.P

Similar Messages

  • Bapi or FM to mark material for deletion

    Hi all,
    Is there a bapi or FM to mark material for deletion that we do through MM06.
    Let me know and i would appreciate if some could me that piece of bapi's code
    Thanks
    Preeti

    This should be all you need.
    report zrich_0003 .
    data: headdata type bapimathead.
    data: clientdata type bapi_mara.
    data: clientdatax type bapi_marax.
    data: return type  bapiret2 .
    data: returnm type table of bapi_matreturn2 with header line.
    data: xmara type mara.
    parameters: p_matnr type mara-matnr.
    select single * from mara into xmara
              where matnr = p_matnr.
    headdata-material        = xmara-matnr.
    headdata-ind_sector      = xmara-mbrsh.
    headdata-matl_type       = xmara-mtart.
    headdata-basic_view = 'X'.
    clientdata-del_flag =  'X'.
    clientdatax-del_flag = 'X'.
    call function 'BAPI_MATERIAL_SAVEDATA'
         exporting
              headdata       = headdata
              clientdata     = clientdata
              clientdatax    = clientdatax
         importing
              return         = return
         tables
              returnmessages = returnm.
    check sy-subrc  = 0.
    Regards,
    Rich Heilman

  • Bapi  to mark a material for deletion in a particular plant and a particula

    Hi all,
    can any send me the code for bapi  to mark a material for deletion in a particular plant and a particular storage location
    Thnaks

    I would assume that it is something pretty close to this.
    report zrich_0001 .
    data: headdata type bapimathead.
    data: plantdata type bapi_marc.
    data: plantdatax type bapi_marcx.
    data: sldata type bapi_mard.
    data: sldatax type bapi_mardx.
    data: return type  bapiret2 .
    data: returnm type table of bapi_matreturn2 with header line.
    data: xmara type mara.
    parameters: p_matnr type mara-matnr,
                p_werks type marc-werks,
                p_lgort type mard-lgort.
    select single * from mara into xmara
              where matnr = p_matnr.
    headdata-material        = xmara-matnr.
    headdata-ind_sector      = xmara-mbrsh.
    headdata-matl_type       = xmara-mtart.
    headdata-STORAGE_VIEW = 'X'.
    plantdata-plant    = p_werks.
    plantdata-del_flag =  'X'.
    plantdatax-plant   = p_werks.
    plantdatax-del_flag = 'X'.
    sldata-plant    = p_werks.
    sldata-stge_loc = p_lgort.
    sldata-del_flag =  'X'.
    sldatax-plant    = p_werks.
    sldatax-stge_loc = p_lgort.
    sldatax-del_flag = 'X'.
    call function 'BAPI_MATERIAL_SAVEDATA'
         exporting
              headdata             = headdata
              plantdata            = plantdata
              plantdatax           = plantdatax
              storagelocationdata  = sldata
              storagelocationdatax = sldatax
         importing
              return               = return
         tables
              returnmessages       = returnm.
    check sy-subrc  = 0.
    Regards,
    Rich Heilman

  • Blocked Stock and Frlag material for Deletion

    What is the diffrence between blocked stock and flagging material for deletion.
    Thank you

    Hi,
    Difference between Block stock and flag material for deletion is:
    Block stock will only come into picture if your client says that when ever they receive stock, before quality and physical check it should not create any accounting document..So what you will do is, you will receive stock as block stock with mvt 103...Once Check is done you will release your block stock with 104....
    Say for an e.g. Vendor has supplied you goods in your premises...Same time you have noticed that goods are damaged o rare of  poor quality...So you will post the stock as block stock...So once you post as a block stock, there won't be any accounting documents generated....
    Material flad for deletion means: That particluar material can not be used for further procurement..E.g..  may be client has stopped using that material....
    Hope it clears
    Utsav

  • How to flag a material for deletion?

    Hi All,
    Any FM or transaction that I can use to flag a material for deletion?
    Thanks in advance.

    <b>FYI</b>
    BAPI_MATERIAL_DELETE           Flag Material for Deletion                  
    MALU                           Update Program: Set Deletion Flag Mat.      
    MATERIAL_UPDATE_LVORM          Update changed deletion flags in material mas
                                                                                    DPRL                 Change Material When Profile Deleted      
    MBAD                 Delete Material Documents                 
    MM06                 Flag Material for Deletion                
    MM16                 Schedule Material for Deletion            
    MM70                 Sel. Materials Flagged for Deletion       
    MMDE                 Delete All Materials                      
    PPRL                 Change Material When Profile Deleted      
    Tip: You can see the Package =<b>M*</b> to find out all MM related object in SE37,se93 as well as in SE38.
    Hope this’ll give you idea!!
    <b>Pl... award the points.</b>
    Good luck
    Thanks
    Saquib Khan
    "Some are wise and some are otherwise"

  • Mark vendor for deletion

    I have one doubt :  When we mark a 'vendor' for deletion, will it block transactions to be posted for this vendor  such as PO, PR, MIRO, payment, etc ?

    You should block an account for posting before you mark it for deletion. The only effect this deletion indicator has is to cause a warning to be issued every time you subsequently try to post to this account.
    When you block a vendor master record for posting, you prevent the system from posting to this account.
    Block a vendor account from posting as follows:
        Choose Master records ® Block/unblock.
        The system displays the initial screen.
        Enter the vendor's account number and, if required, the company code.
        If you do not enter a company code, you can only block posting for this vendor in all company codes.
        Select ENTER .
        The system displays the entry screen for the block indicators.
        Select for blocking either all company codes or the specified company code by clicking the appropriate field.
        Save your entries by choosing Vendor ® Save.
    The system displays the initial screen and a message that confirms that the data has been saved.
    Please refer http://help.sap.com/saphelp_45b/helpdata/en/01/a9b65c455711d182b40000e829fbfe/frameset.htm.
    Do test and let me know if this suffices.
    Regards
    Shailesh
    Edited by: Shailesh Rajan on Jul 6, 2011 7:17 PM

  • How to mark flag for deletion for bulk of customers.

    Hi friends,
      GM..
    I hv a question , that how to mark flag for deletion for bulk of customers.Few function modules are there (eg. HRCA_CUSTOMER_DELETE ) which are going to 'XD06' transaction to set the flag for individual customers.
    But data is huge so it's not possible to go & mark the flag for deletion for  individual customers.So what is the solution for this.....
      waiting for ur reply....
    Thanx.
    Regards,
    Ajit.

    Hi Ajit,
      XD99 can be used as a appropriate mass deletion tool for customers .
    It is good for max 500 customers to mark for deletion, if you have more than that some times you may get dump.
    OR
    You can write a program to read an excel file into an internal table and call the function BUP_BUPA_MASS_DELETE to delete the customers.
    OR
    To mark the BP's for Delete use the following code sample.
    It marks the BP's for Delete and once you archive them delete them in bulk.
    data : BUPANUM type BU_PARTNER,
    RETMSG type ITMSG,
    ls_central type BAPIBUS1006_CENTRAL,
    ls_Central_X type BAPIBUS1006_CENTRAL_X.
    ls_central-CENTRALARCHIVINGFLAG = 'X'.
    ls_central-CENTRALBLOCK = 'X' .
    move-corresponding ls_Central to ls_Central_X.
    CALL FUNCTION 'BAPI_BUPA_CENTRAL_CHANGE'
    EXPORTING
    BUSINESSPARTNER = BUPANUM
    CENTRALDATA = ls_Central
    CENTRALDATA_X = ls_Central_X
    TABLES
    RETURN = RETMSG.
    if you give me brief i can help you out more.
    Thank you .
    Regards
    Ram

  • Material for deletion at different level

    Hi,
    Below is our requirement.
    As the Mill 3007 is no longer into existence following changes are required.
    1)All the materials for Mill 3007 should be marked for deletion on Plant level (MARC).
    2)All the materials which are connected to Mill 3007 only, should be marked for deletion on General data level (MARA).
    3)And all material which comes under condition 2 should set to Block for use.
          MARC-MMSTA u2013 Status 03.
    Can any1 plz explain how to go abt this? How to get list of material in all cases? and How to set for deletion in mass?
    Regards

    Thanks for the quick reply.
    But what u r saying is for Individual material. As I said 1 mill is no more into existence so I want to block all materials for that mill to set for deletion at Plant Level.
    And also is there a way to find the list of material which belongs to only spec plant?
    bcoz even if u try MM60, it gives u list of material associated to particular plant but it might possible that materil is maintained in some other Plant also. So how to find list of matrl in ONLY particular palnt and nt maintained in any other plant?
    Regards

  • Wish List - New Feature - Mark Songs for Deletion on iPhone

    It'd be very handy if you could mark a song for deletion on the iphone and then when you next sync your iphone, the marked songs will get removed.
    You could also have an option in itunes to say whether you want the songs to be deleted from comp too.
    There's been plenty of times where I've copied a CD to my iphone but don't get a chance to go through the songs. Then when I'm listening to the album on my iphone, I have to skip some songs and then remember to delete them from my itunes later (which I rarely ever remember to do)

    http://www.apple.com/feedback/iphone.html is where to go to send feedback to Apple as this is a user to user forum for everyday users to help out others with problems.

  • Mark batch  for deletion

    Although a batch marked for deletion, that batch still can do batch movement, with warning msg (yellow).
    Is it possible to make it not allow to at all? (red)
    pls help.. points confirmed?

    Pl follow the below path
    SPRO>>Logistics General >>BAtch Management >>Define Attributes of System Messages ( <b>T.Code -OCHS</b>)
    Select the relevant Message and change the Message Category as per your need
    Pl come back if you need any further details
    Rewards will be appriciated..if useful answer
    BR
    Sumit

  • Reg: Material for deletion

    Hi,
    When we search for a material number, we follow the following process.
    However, at the end finally selected number is found already marked for a
    deletion.
    The problem is that we often stop at step2 and do not go further. As a
    rusult we do not find it is a deleted one.
    Then, after we go on to order entry at CSU, he/she find the deletion
    message in VA01.   Sometimes accidentally he/she ignores the message since
    it is not an alarm but just a information, And MRP also ignores the number.
    In the end of the day, the sales order is left never confirmed.
    This actually happened and it was a pity.
    Is there any way to hide those deleted number from seaching function? Or
    any other blocking setting possible?
    Thanks & Regards
    Kannan Somasundaram

    Hi ,
    Convert the message into error so that the same cannot be used while creation of Business documents.
    Regards
    Ramesh Ch

  • Deletion marked material should give error message while creating proc ord

    Hello,
    i had marked the material for deletion through T-code MM06 & saved.
    Now when i'm creating the process order for the deleated material, System is giving only Warning message that " Material XXXX in plant XXXX has been marked for deletion."
    But my requirement is system shold give an ERROR message while creating Process Order for the deleted material.

    Yes Brahman is Right,
    Check the followig..
    Go to OMCQ and change the message category  to E- Error message instead of W- Waring message in Message no M7 127, but
    not  M7 121.
    and check it,
    Regards,
    Pavan idlur.

  • PR Marked for deletion after Business Complete

    Hi gurus,
    My PR created from work order are marked for deletion after business complete and/or why is it being marked for deletion?
    the requirement is to not mark it for deletion. is this possible?
    Thank you.

    Dear,
    Technical confirmation is followed only after all confirmations and GR/GI and reservations posted which means that the work has been completed on ground.,The remaining Capacities, reservations, partial confirmations, Open PR's(Not processed into subsequent material documents like RFQ/Quotations, PO) Open PO's get cancelled as soon as you TECO the Work order. so this clearly states that all your PR's ad PO's are delted at TECOstage much before settlement and Business Completion is done.
      If you want ur PR's not to get cancelled then you can lock the PR's and then TECO the work order. However this lock will prevent PO creation.The best way to do this is to give  a user status and hold the PR from getting deletd. User status can be provided at PR or Work order level.

  • Posting block and Marked for Deletion

    Hi All,
    My clients wants to know the vendors who are either marked for deletion or blocked for posting when was the date for the block or marking it for deletion and the person  responsible.
    Though i can see that one by one through Vendor master but i need to give this in report format.
    Even with Fk04 i am not able to make out.Can you please help me out.Bit urgent

    Hi,
    You can check old value and new value by using table CDPOS.
    If you want to know the time and person responsible by using table CDHDR
    In table, put table name LFA1/LFB1 and required field like for field SPERR (LFB1) is for posting block for selected company code and field SPERR (LFA1) is for posting block for all company codes.
    If you want to know it for specific vendor, then given vendor number in Object value or leave it blank for all items.
    Hope it will be useful.
    Regards,
    Vinod

  • Can a PO be generated using Info record marked for deletion

    Hello all,
    Is it possible that PO be generated using Info record marked for deletion?
    Observed that a info record is marked for deletion but still able to see a PO generated using this info record.
    Is this becasue - PO can be generated untill info record is actually deleted from the system during next reorganization run?
    What is reorganization run?
    Regds.,
    Chaitanya

    Hello S. Iyer,
    I have following queries -
    1. What is meaning of your statement -
    "If you want to restrict creation of POs against deleted info record"
    Do you mean that info record is "deleted" or "marked for deletion"?
    2. Any way, is there difference between two -  "deleted" or "marked for deletion"?
    3. Where in the info record I can see history of marking for deletion to see who and when marked it for deletion?
    4. Observed that there is a message that comes up that info record is marked for deletion.
    Is there indication on info record itself like - permanent record, tick mark to indicate that it is marked for deletion?
    Regds.,
    Chaitanya

Maybe you are looking for

  • Question regarding forms in Flex 3

    Hello, I currently have a Word form document that is filled out and then converted to HTML and displayed on several monitors at various workstations throught my office. I would like to use Flex 3 to customize this process a little. I want to be able

  • How do i turn TV Out feature on?

    with my 30 gig i had no problems. With my 80 gig TV out is stuck on OFF... and also i can't even use my motorola phone charger to charge my 80 gig thru my itrip like with the 30 gig. That's wack, am I tripping or are there solutions to these problems

  • Any FM available for partial payment for FB05 and F-36 transaction?

    Dear All, Is there any function module available that can post the partial payment for FB05 and F-36 transactions? Please let me know if any function module doing the same. I have searched in SDN but could not find any. Best wishes, Atanu

  • XML Choices in JCAPS 5.1.x

    Has anyone sucessfully developed OTDs in 5.1.1 or 5.1.2 using the XML schema choices? I'd also be interested to hear from anyone who has tried and failed. Cheers, Pete

  • Swc files not loading after Air overlay

    I needed to update air to 3.6 for use with Flash Builder. I overlayed the newest Air SDK with a copy of Flex 4.6.0. Now, when I try to create any new Flex projects, none of the core swc files will load. For example this error: "unable to load SWC ._a