Mass-deletion of PO-items

Hello gurus,
we have to delete approx. 6.500 PO-items (i.e. set EKPO.LOEKZ).
Any ideas on how to do this efficiently? I have a list of all items with PO and item number.
MEMASSPO may be possible, but seems to be a lot of work because you cannot select only some items of more than one PO at a time (for example items 10 and 30 from PO 0004 and items 20, 30 and 60 from PO 0006).
Program RM06EEI0 does not allow to maintain EKPO.LOEKZ.
Can this be done using Batch input or LSMW? How?
Thanks in advance
Alicia

Hello
Use ABAP + BAPI 'BAPI_PO_CHANGE' for this.
Example of code in this thread: Re: bapi po change problem

Similar Messages

  • Mass-deletion of PR-items

    Hello gurus,
    I would like to delete up to 5000 purchase request items (i.e. set the deletion flag, EBAN-LOEKZ).
    Unfortunatelly this is not possible using MEMASSRQ.
    In another forum I found a message saying the deletion cannot be set using MEMASSRQ because there was no check wether a PO item was created for that PR item. So setting the deletion flag would lead to an inconsitency. This made sense to me, until I found out that it IS possible to set the deletion flag for PO items using MEMASSPO!
    So, does anyone have an idea on how to do this without having to manually edit every singe PR?
    Thanks in advance
    Alicia

    Hi Alicia
    It's not possible to use EBAN-LOEKZ in the mass maintenance transaction. The MASS transactions simply update the tables EBAN, EKKO, EKPO,... without proofing things. Behind setting the deletion flag LOEKZ functionality exists. Not all requisitions or purchase orders can be deleted, if references exists. So it is not possible to set the deletion flags by MASS.
    A possible workaround would be to create your own ABAP report to perform the mass deletion on your requisitions but this would not be supported by SAP in regard to data integrity issues etc.
    Best Regards
    Mark

  • Mass delete of PO item texts for specific PO and SA

    Hi All,
    I have thousands open PO's and SA's coming in during conversion in SAP system. For many of them we have material specifications and drawing number coming in from legacy and we populate them using standard BAPI create function module.
    On the other hand we also have a BADI activated ME_PROCESS_PO_CUST which populates the PO item text 'spec details' from material master CLASSIFICATION and drawing number from BASIC DATA2.
    We have a logic implemented saying if legacy file has a value in Material Specification it will not trigger the BADI, if the value is NULL it will trigger the BADI and fetch the data from Material Master.
    But now we want to have the material specifications coming in from legacy as it is. If it has a value it will populate, if it is blank it will leave it blank.
    My question is without a change around the BADI and PO create function module what are the ways to delete the item texts from the PO's and SA's for which legacy value is NULL. The deletion will be only for specific PO's, say out of 10000 PO line items posted in the system I want to delete Material Spec for 6000 of them. Appreciate your help in advance.
    Edited by: biswajit guha on Mar 15, 2011 1:10 AM

    you have to write your selection  logic in a small ABAP and then call the funcion module DELETE_TEXT

  • Mass Deletion of Sales order line items

    Dear Gurus..
    There is a transaction VA02 for change and deletion of sales order line items. it takes time to delete line item of sales order one by one.. is there any abap program to do this process..
    if so please let me know
    regards
    Saad Nisar

    Hi,
    You can use trx MASS with object type BUS2032 to change sales order items. Please check this link:
    Re: Mass deletion of  sales orders
    Or try LSMW.
    Regards,
    Csaba
    Edited by: Csaba Szommer on Apr 10, 2009 8:18 AM
    Edited by: Csaba Szommer on Apr 10, 2009 8:21 AM

  • Deletion of Parked Invoices - Mass deletion

    Can any one please guide the T.code for the Mass deletion of parked IRs.
    With regards,
    Gokul.

    Mass Archived/Deletion of Parked Invoice Document:
    T.code : MRA2 -Delete Documents/Archiving Invoice
    You can excute the standard program for invoice deletetion RM08RADE  the invoice documents from Invoice Verification that were archived with program RM08RARC (object MM_REBEL) from the database. Also this will execute in Test mode But its Records are deleted from the following tables:
    RBKP: Document Header: Invoice Receipt
    RBTX: Taxes: Incoming Invoice
    RSEG: Document Item: Incoming Invoice
    RBCO: Account Assignments
    RBWS: Withholding Tax Data, Incoming Invoice
    KONV: Conditions in the Incoming Invoice
    NAST: Message Status
    RBVS: Splitting the Vendor Line Item
    CDHDR/CDPOS: Change Documents
    Prerequisites :
    Documents that have reached the end of the retention period set in Customizing. For the retention period, the posting date in the invoice document header is relevant. If no retention period is set in Customizing, the system uses 9999 days as the minimum retention period.
    Procedure
    1. If the program is only for testing purposes, that is you do not want it to actually delete any data, select the option Test run.
    The variant entered in the Archive Customizing (Environment -> Customizing) under Settings for the deletion program in the field Test run variant, is used in this case.
    (If the test run option is not flagged, then the system will use the variant which is specified in  Archive Customizing in the field Productive run variant.)
    2. Specify which data should be deleted with the pushbutton Archive selection.
    3. Specify when the job should run with the pushbutton Start time.

  • Mass delete of condition records

    Hi All,
    Please advise if there is a mass delete function of condition records. I have uploaded prices for customer/material conbination for the month of novemver and i want to delete them all. I can do it one by one but it will take tooooo long. Also please advise that if a record is marked for delete indicator, then can it be used again ? or can i reomve it completely becasue i want to upload again with correct prices.
    Appreciate your help
    SAPXPT

    Hi,
    Let's get one by one.
    > Please advise if there is a mass delete function of condition records. I have uploaded prices for customer/material conbination for the month of novemver and i want to delete them all. I can do it one by one but it will take tooooo long.
    There is no such Transaction available to delete those like in MASS.
    Best thing is to use a LSMW with VK12 transaction.
    > Also please advise that if a record is marked for delete indicator, then can it be used again ?
    Yes, You can.
    Once marked for deletion they won't appear in the sales order automatically. Pricing Analysis will show you like this.
    "Condition record has been deleted"
    If you want to use it again go to VK12, and go in to your condition record.
    Highlight the condition line item and press "Details" button (Magnifying Glass)
    Un-tick the "Deletion lndicator" check box.
    Save.
    Then you can use it again as normal way.
    > can i reomve it completely becasue i want to upload again with correct prices.
    Yes, You can.
    You can remove it completely from the data base. First you have to configuret your condition type in IMG to enable that function..
    Go to V/06
    Select you condition record & go in to details.
    There you get a filed called "delete fr. DB"  under "Master data" section.
    Change it to "A with popup" or "B without popup".
    Which means your going to delete it from the data base. (Where as you cannot use it again, like you do in Deletion indicator)
    Save
    Then come to VK12,
    Go in to your condition record.
    Highlight the condition line item and press Delete button from lower area.
    If you set "A with pop up" in the condition record, you'll get a pop up saying,
    "The condition type XXXX is set so that when the deletion indicator is set, the condition record can be physically deleted from the database.Do you want to delete the condition record physically?"
    Once save system will delete it from the data base.
    If you set "B without pop up", system will delete it without a pop up.
    Hope this helps you !
    Best regards,
    Anupa

  • ISE - Mass Delete Alarms

    Anyway to do a single mass delete of alarms ?            
    "Satisfaction does not come from knowing the solution, it comes from knowing why." - Rosalind Franklin
    ‎"I'm in a serious relationship with my Wi-Fi. You could say we have a connection."       

    I agree with Tarik. Unfortunately, it's not possible to delete all the alarms in one go. We have to delete page by page but It's very tedious when you have 7k alarms. A (sev 6) feature request has already been filed on this:
    CSCtw76687    Option to purge all items in alarm inbox
    Description:
    ISE-Alpha has > 16K items in alarm inbox and it will take a long time to delete them page by page. We should implement an option to trash all items in one shot if so desired. The delete-all option should give the proper warnings that all items will be removed and not recoverable.
    ~BR
    Jatin Katyal
    **Do rate helpful posts**

  • Mass delete scheduling agreement and PIR

    Dear SAP Experts,
    1. My company is first time Run the MRP so i have maintain the material master MRP 1,2,3,4 tab based on the requirement.
        Currently having many old Scheduling agreements / PO is their so i am get the open goods receipt list from ME2L - based on the selection    parameter.
      I have checked the list and note the many scheduling agreement no.
      So what is the for mass delete scheduling agreement / PO ( STO, normal PO,Import PO )
      I have also try MEMASSSA - Mass delete scheduling agreement, i am select the SA item level , Copy the Agreement no, select the deletion indicator, execute and save.
    But after i have seen the list it is not updated the deletion indicator L, it is not working properly.
    Kindly share the another t.code or any other way for mass delete SA / PO 
    Thanks,
    Umapathy

    Dear Uma,
    Please check this thread. may be it can help you.  Mass deletion of PO

  • Mass deletion of POs

    Hi,
    I want to delete POs for particular materials at item level in mass.
    Means suppose in one PO we have 4 materials at item level as 10,20,30,40.
    And I want to delete PO items for 10 and 30 for one PO and for another 20 and 40.
    Then how to do this in MEMASSPO transaction as there I have not found any combination of POs with item levels.
    We will have to enter POs and item levels separately which will may pick materials that I donu2019t want to delete in the particular PO.
    Please assist me how to tackle this issue.

    Hi:
    You can do the mass deletion in MEMASSPO traxn code however in your case you wanted to delete some of the items in the PO and which will different in different PO's i.e. item 10 and 20 in PO no X and item 40 and 60 in Y PO. So you have two options:
    1.MEMASSPO: Mass deletion
    Here you select the "Purchase Order item" in tables tab,then you would enter the PO document numbers,system will lists all items in the PO however here you have to manually remove the all other line items which you  don't wanted to delete,this is lot of manual work too.
    2.WRITE "BDC":
    You can have a BDC which would select the PO range as well as the PO line item numbers form the XLS file.
    I would suggest you to go with BDC for this mass deletion.
    Hope it would help you.
    Cheers
    Rahul
    Awards plz.if helpful.

  • Mass change of BOM item and BOM item catergory

    Hello Everyone,
    I have a need to complete a mass change of a BOM item with another, usually I use transaction CS20,this works o.k. but this time I'm also changing the material with a new item catergory, for example a stock item with a phantom item.
    Does anyone have an idea how to complete this task.
    Kind Regards
    Frankie

    Hello,
    Thankyou very much for your reply.
    I did try adding the new material using CS20 but all the BOM qty's are different and as you know you have to complete this field, so it would mean changing one at a time, I attacked this issue from a different angle and created an LSMW so I can Mass delete the parts but then use this program to change the BOM item to the new part.
    Thanks again for your reply
    Kind Regards
    Frankie

  • Mass Delete of BDocs in SAP CRM system

    Dear SDC team,
    We like to hard delete some BDocs which are hanging in the txn SMW01 in CRM 5.2 system.
    As of now we do not see a option to delete these unnecessary BDocs,  as they are in Intermediate state (I04) .
    Please tell us if there any standard report which can be used to do Mass Delete of BDocs in SAP CRM system.
    Or Is there any Tables which need to be emptied .
    Please help ..Points would be rewarded .
    Regards
    Ritvij

    hi
    Concerning the BDOCs without error, there is a job that you can schedule to run daily that cleans the BDocs processed without errors from the database.
    The details of this job are:
    Job name: SMO6_REORG
    Job program: SMO6_REORG
    Variants: SAP_MW_REORG
    Trace data (days to hold): 7 (recomended by SAP)
    Trace log (days to hold): 7 (recomended by SAP)
    Period: daily.
    Besides i should tell you I looked through Help and there are no best practices that I could find.We went through this process at one of my clients. They had 40,000 pluserror'd BDOCs and thousands of processed ones. The Middleware guycreated a program to delete the BDOCs that were over 2 months old andhad completed successfully to prevent the further build up of theseBDOCs. SAP Help says they are marked for deletion after they areprocessed, but it doesn't look like they get removed as wanted..
    From SAP Help:
    Deleting Processed BDoc Messages
    1. Processed BDoc messages cannot be archived.
    2. BDoc messages that have been processed successfully are marked fordeletion.
    Procedure
    To delete processed BDoc messages choose Architecture and Technology >Middleware > Message Flow > Delete Processed BDoc Messages
    The messages you selected will be deleted.
    and regarding deletion of non errant Bdocs
    Usually there are two schools of thought on this issue:
    1) Make the hard decision to go back to the beginning and startcorrectly all the things that caused these to error out (bank codes, taxcodes, config on R/3 side but not on CRM side, etc.). Then these can bereprocessed and everything will be brought up to date in the system.This takes time and may neccesistate hiring a Middleware resource for ashort term to help go through the process. The big part of this isidentifying those config items that are out of synch between R/3 andCRM.
    2) The other way to handle these is to go through the errors quickly,gain an insight into the cause of the errors, and correct the bigthings. Delete all the old error'd BDOCs and then bring down all the bigitems again - BPs, Sales orders, products, and so forth. This is muchfaster process, but has it's own risks and problems vs Option 1 above.As these items come in, if you haven't fixed the config problems, theywill error out again. It's a fix and move - fix and move process. In theend you may have some missing data still, but the time commitment ismuch lower. You just need to get leadership's buy-in to this process.
    Those error'd BDOCs are a problem and point out all the datainconsistencies that exist in the system. They are also a drag onperformance and need to be processed one way or another. After that,keeping them under a "1000" number is imperative. If you don't, theproblem will get away from you again.
    finally Some Transaction Codes that people might find useful for working withBDOCs:
    SMW01 Display BDocs
    SMW02 Display BDoc Summary
    SMW02A BDoc Messages: Show Top N Errors
    SMW03 Show stats of unproc. BDoc messages
    SMW10 Bdoc structure chekker
    SMW19 Copy BDoc and process
    SMW20 Process BDocs
    SMW3EX1 Flow Carrier Example
    SMW3FDBDOC Maintain Bdoctype dep. Flows
    SMW3FDCUST Maintain Customer Flows
    SMW3FDIF Maintain Bdoctype dep. Attributes
    SMW3FDSTD Maintain Standard Flows
    SMW3RBM Convert BDoc Messages to XML
    SMW3RC BDoc Message Error Recovery
    SMW3RCW BDoc Message Error Processor
    SMW3STOP1 General Stop Configuration
    SMW3STOP2 BDoc Type Stop Configuration
    SMW3WD Watchdog for failed BDoc Messages
    SMW3_00 BDoc Type Settings
    SMW3_GSB Generic Bridge Activation
    SMW3_GSB2 Generic Synch. Bridge Configuration
    SMW3_GSB_SHOW Display Generic Synch Bridge Config
    SMWMBSTATDISP BDoc statistics
    hope info will help your cause,i told all this coz before deleting the Bdocs complete understanding of the errant and non errant Bdocs is necessary,
    best regards
    ashish

  • Mass delete unposted assets without values through worklist in AS06

    Hi,
    I would like to delete unposted assets(got a list of asset numbers without values assigned) from AS06. I managed to create the worklist to store all the asset numbers. And from the AS06 screen, I went to SAP menu, Environment ->Worklist -> Delete Asset. But I could not because the worklist submenu items(include asset, delete asset and find asset) are all disabled(gray out).
    May i know if there is anyway this can be enabled for me to do mass delete of AS06. Or any available screen that enable me to do this.
    I am aware of the alternative is to write a BDC program for mass delete of unposted assets. However, I would like to explore the standard features to avoid having the code.
    Any advice.
    Thanks,

    Hello
    could you explain it in mote details?
    Thank you very much!

  • PO Mass deletion

    Hi
    I want to mass delete some 1000 POs in a test environment & reload the same.
    How to mass delete those POs.
    Is it possible to delete at header level?
    or by item level  means how to proceed?

    Hi
    Archiving is A much simpler process than deleting from the tables, no one should propose to delete transaction data from tables.
    How may table will you delete there are nearly 5 to 6 tables assosociated with the main EKKO table
    Flag them for Deletion & archive them using ME98.... its quite simple & easy to use.
    Thanks & Regards
    Kishore

  • Trasaction code for mass delete of open Pur req.

    I was looking for is a way to perform a mass delete of open PRu2019s prior to running MRP.  My reasoning is if a PR has not been converted to a PO by the time the next MRP runs we  want to delete all open PRu2019s so items are re-planned based on the most current data.
    Is there a mass delete transaction code for PRu2019s?
    Thanks

    The blw are the options'
    1- Try with MEMASSPR for PR
    2- You cannot directly delete PRs, You can only mark them as "deleted". To delete them physically from DB you have to "archive" them via transaction SARA.
    Deletion of PR can be done using ME52N
    This is only possible provided that no purchase order have been assigned. If po has been created, you can only Flag for Deletion.
    To delete the PR, select the line(s) you wish to delete and then click on the dustbin (Thrash) icon.
    3 - Try with LSMW

  • Mass Deleting Materials from BOMs

    Hi,
    Our scenarios is that,
    We have a KALP named material type which are raw materials for us..
    And we decided to delete all these materials from BOMs.
    Through CS20 t.code we can delete materials one by one from bill of materials.
    But we have about 900 materials like that.
    Is mass deleting possible instead of deleting one by one?
    Thanx in advance

    this can be done in CS20 en mass. CS20 is the mass transaction for bom changes.
    enter your component number, select delete items and execute.
    it will list all header materials boms that have this item.
    click the button to select all and execute

Maybe you are looking for

  • Get All Groups from Weblogic

    Hello everyone, Well i'm having little problem to get all groups that exists in Weblogic. I already search but the only thing i can get is the groups from the user that is autenticated in the application. Best regards, Tiago Marques

  • Using an animated gif/other to display series of images within another image?

    I design custom baseball cards for a hobby, and am wondering if I can use an animated GIF inset within a large photo to display a rotation of images. It is easiest if you look at the "card"/image . . . within the circle, where there is a picture of R

  • Export to PDF from Autocad: Acrobat always opens PDF with 'layers panel and page' shown.

    Hello, Whenever I export to PDF from Autocad, Adobe Acrobat opens the PDF with the 'Layers Panel and Page' shown. Each time I have to manually go to 'Properties' and select 'Page only', close 'Properties' and close the PDF and select to save the chan

  • F.05 execute a valuation with balance sheet preparation

    Hello Friends,    In Foreign currency valuation transaction F.05, if we select 'Bal.sheet preparation valuatn' option system will check "Create posting " automatically(this is SAP's standard functionality - Check OSS Notes (699878)). because of this

  • How to get wagetypes from infotype 0589

    Dear Experts, Is there any function to get all wagetypes along with respective amounts from infotype 0589. Right now am using function 'HR_READ_INFOTYPE' and read statement to get wagetypes.because it is stored various fields like lga01,lga02.. and b