cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete / Archeive Purchase Orders

Former Member
0 Kudos

Dear Experts,

Can any body Please explain, How to delete / Archive Purchase orders from the data base?

is it possible to delete Purchase Orders from data base?

What is the meaning of Documents Archiving?

Please describe the Documents deletion and documents archiving

Thanks In advance !

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

As per my info, You can't delete purchase order from database.

You can set deletion flag for purchase order with ME22N for single purchase order and with MEMASSPO for multiple purchase orders.

Enter MEMASSPO, Select purchase order item option and select MASSEKKO-LOEKZ field.

Then click on execute button, Enter your purchase order number and set deletion flag for purchase order.

Note: - Please check ME82 for purchase order archive.

Regards,

Mahesh Wagh

Edited by: Mahesh Wagh on Jan 3, 2009 7:31 AM

Answers (2)

Answers (2)

JL23
Active Contributor
0 Kudos

Deletion of a purchase order is in general just a decision that you dont want the ordered item anymore.

This is recorded with an indicator in the SAP tables.

However, deletion indicators are precondition for archiving.

Archiving is a process to store the old documents to closed business cases outside the production database, and delete the table entries from the production system at the same time.

For archiving you have to do customizing, e.g. sizes of the archive, variants for deletion runs, paths to the final storage, and retention time per document type.

This can be dome from archiving cockpit which you reach by transaction SARA.

enter object MM_EKKO for purchasing documents

You get a series of buttons depending on the archiving object.

You should first do test runs to get used to logic and restrictions in the archiving program.

Usually you start from top to down.

First the prerun program, that sets the deletion indicators, then the write button to write the documents to an archive.

If you need the delete button depends on your customizing, I usually customize that deletion starts automatically when an archive is written.

for more see the documentation that can be accessed from with SARA transaction, as well as the docu in help.sap. com:

http://help.sap.com/erp2005_ehp_04/helpdata/EN/8d/3e5c3b462a11d189000000e8323d3a/frameset.htm

Former Member
0 Kudos

Sir,

You can use ME22N/ME22 for deletion of purchase order's..

Deletion criterias..

1.It should not have any GRN/service entry..

2.You can take care of releases as AG's of authorisations..

3.It will only assign deletion indicator to said PO/WO..

Archive:

Use: ME98

To be able to archive, you need to setup the path from SAP to the archive. You need to define the size of your archive and how may records should be kept there.

Step 1: Create variant for Archiving. Give it a name. Enter your PO number. Flag One step procedure. Flag detailed log. Erase flag for test run.

Step 2: Maintain your start date, you can use Immediate in such a small case.

Step 3: Maintain spool parameters. Enter your printer and set the values if you want to print immediatly and if you want keep the print. I suggest to hold the spool in the system. This helps you to determine any error.

Step 4. Execute the variant.

It creates 4 jobs:

ARV_MM_EKKO_SUB...., ARV_MM_EKKO_WRI.... ARV_MM_EKKO_DEL.....

ARV_MM_EKKO_STO.... If one of the steps fails, then everything is rolled back, hence nothing is archived, the record is still in your database. In this case use the jobs spool and joblogs to find out what happend.