Purchase order archive

Hi,
I am trying to archive Purchase orders.
The object used MM_EKKO
I have used the SAP standard program RM06EW47 to write the data.
At the time of deleting the write data by program RM06ED47 it says that select an archive file.
What might be the error.

the error might be that you are just executing programs and you dont know the correct chain.
Better you do archiving always from SARA transaction
there you enter the object MM_EKKO and hit enter.
You get a button for each step.
first you usually have a preprocessing step which sets the deletion indicators
next step is the write step. you always have to check the log and the spool file to be certain that you had written records to an archive. A bigger archiving step may write several archives depending on the customizing of file size.
In the delete step you have to select from against which archive you want delete the records from the table.
SAP checks then if the archive can be read and deletes the corresponding tables entries in EKKO and EKPO and all other related tables.
Depending on customizing the Delete step can be an automatic executed step when the write job has finished, and does not need to be executed manually.
after the deletion you usually store the archive somewhere.
The administer button can give you info about the archive  run and files that were created and the status.

Similar Messages

  • Purchase order archived long back. User wants to retrieve specific POs.

    Purchase order archived long back in 2004.
    These POs are not displayed in ME23n and ME2l.
    User wants to retrieve specific list of POs and make them displayed in ME23n & ME2l.
    Is there way to retrieve only selected (say 100 specific Purchase orders or Purchase order from specific Company code) purchase orders?
    Kindly guide me.
    Thanks & Best Regards,
    Mohan

    Hi Steeve,
    Thanks for the information.
    When I execute ME82, I get a window with "Archive Administration: Select Files for Read Program"
    and list as below,
          000943 26.08.2006 all EKKOs older than 720 days
          000557 01.01.2005 all EKKOs older than 720 days
          000512 09.10.2004 all EKKOs older than 720 days
          000458 29.06.2004 SD_EKKO - archiving run file
          000434 28.05.2004 SD_EKKO - archiving run - job cancelled, files de
          000294 18.11.2000
          000291 16.11.2000
          000276 14.10.2000
          000267 16.09.2000
          000261 09.09.2000
    Can I click, process and proceed? Would this create any problem?
    Kindly inform.
    Thanks & Best Regards,
    Mohan

  • STANDARD PURCHASE ORDER에 대한 ARCHIVE DATA 읽는법

    제품 : MFG_PO
    작성날짜 : 2005-11-08
    STANDARD PURCHASE ORDER에 대한 ARCHIVE DATA 읽는법
    ==================================================
    PURPOSE
    Standard Purchase Order에 대한 archive data 읽는법을 알고 이를 issue
    해결에 사용할 수 있다.
    (R11 ~ R11i)
    Explanation
    Standard PO no 125가 생성되고, 이 PO는 하나의 line,shipment,distribution
    을 가지고 있다고 가정한다.
    User가 이 PO를 approve 했고 status는 'Approved' 상태라고 가정한다.
    또한 Standard PO document type이 'Archive on Approve'로 setting 되어 있
    다고 가정한다.
    아래는 Tables에서 data가 어떻게 보이는지를 보여준다...
    PO_HEADERS_ALL:
    PO_HEADER_ID SEGMENT1 REVISION_NUM
    888 125 0
    PO_HEADERS_ARCHIVE_ALL:
    PO_HEADER_ID REVISION_NUM LATEST_EXTERNAL_FLAG
    888 0      Y
    PO_LINES_ARCHIVE_ALL:
    PO_HEADER_ID PO_LINE_ID LINE_NUM REVISION_NUM LATEST_EXTERNAL_FLAG
    888 777 1 0 Y
    PO_LINE_LOCATIONS_ARCHIVE_ALL:
    PO_LINE_LOCATION_ID PO_LINE_ID LINE_NUM REVISION_NUM LATEST_EXTERNAL_FLAG
    555           777 1 0 Y
    PO_DISTRIBUTIONS_ARCHIVE_ALL:
    PO_DIST.ID PO_HEADER_ID PO_LINE_ID LINE_NUM REVISION_NUM LATEST_EXTERNAL_FLAG
    222 888 777 1 0      Y
    이때 PO에 새로운 line을 추가하고 approve를 한다.
    관련된 tables의 변화를 볼 수 있다.
    PO_HEADERS_ALL:
    PO_HEADER_ID SEGMENT1 REVISION_NUM
    888 125 1 <- because we added a line
    PO_HEADERS_ARCHIVE_ALL:
    PO_HEADER_ID REVISION_NUM LATEST_EXTERNAL_FLAG
    888     0 N
    888 1 Y <-- latest rev on the header is now 1
    PO_LINES_ARCHIVE_ALL:
    PO_HEADER_ID PO_LINE_ID LINE_NUM REVISION_NUM LATEST_EXTERNAL_FLAG
    888 777 1 0 Y <--note line 1 didn't change
    888      778 2 1 Y <--note line 2 was created in rev 1
    PO_LINE_LOCATIONS_ARCHIVE_ALL :
    PO_LINE_LOCATION_ID PO_LINE_ID LINE_NUM REVISION_NUM LATEST_EXTERNAL_FLAG
    555 777 1 0 Y
    556 778 2 1 Y <--note line 2 was inserted
    PO_DISTRIBUTIONS_ARCHIVE_ALL:
    PO_DIST.ID PO_HEADER_ID PO_LINE_ID LINE_NUM REVISION_NUM LATEST_EXTERNAL_FLAG
    222 888 777 1 0 Y
    223 888 778 2 1 Y <--note line 2 was inserted
    PO header만 변경 후 approve를 한다.
    PO_HEADERS_ALL과 PO_HEADERS_ARCHIVE_ALL tables 만 유일하게 영향을 받을 것이다.
    PO_HEADERS_ALL:
    PO_HEADER_ID SEGMENT1 REVISION_NUM
    888 125 2
    PO_HEADERS_ARCHIVE_ALL:
    PO_HEADER_ID REVISION_NUM LATEST_EXTERNAL_FLAG
    888 0 N
    888 1 N
    888 2          Y
    Line1의 수량을 변경한다. shipment나 distribution은 변경하지 않는다.
    PO_HEADERS_ALL:
    PO_HEADER_ID SEGMENT1 REVISION_NUM
    888 125 3
    PO_HEADERS_ARCHIVE_ALL:
    PO_HEADER_ID REVISION_NUM LATEST_EXTERNAL_FLAG
    888 0 N
    888 1 N
    888 2 N
    888 3 Y
    PO_LINES_ARCHIVE_ALL:
    PO_HEADER_ID PO_LINE_ID LINE_NUM REVISION_NUM LATEST_EXTERNAL_FLAG
    888 777 1 0 N <---latest ext flag
    change to N
    888 777 1 3 Y <--this row inserted rev num matches header revision in which change was made.
    Lower rev for this line had latest external flag changed to N.
    888 778 2 1 Y <--no changes
    All other tables do not change.
    PO line에 세번째 line을 추가 후 다시 approve를 한다.
    PO_HEADERS_ALL:
    PO_HEADER_ID SEGMENT1 REVISION_NUM
    888 125 4
    PO_HEADERS_ARCHIVE_ALL:
    PO_HEADER_ID REVISION_NUM LATEST_EXTERNAL_FLAG
    888 0 N
    888 1 N
    888     2 N
    888 3 N
    888 4 Y
    PO_LINES_ARCHIVE_ALL:
    PO_HEADER_ID PO_LINE_ID LINE_NUM REVISION_NUM LATEST_EXTERNAL_FLAG
    888 777 1 0 N <---didn't change
    888 777 1 3 Y <---didn't change
    888 778 2 1 Y <---didn't change
    888 779 3 4 Y <--line 3 added to lines archive.
    PO_LINE_LOCATIONS_ARCHIVE_ALL:
    PO_LINE_LOCATION_ID PO_LINE_ID LINE_NUM REVISION_NUM LATEST_EXTERNAL_FLAG
    555 777 1 0 Y
    556 778 2 1 Y
    557 779 3 4 Y<--line 3 added to archive.
    PO_DISTRIBUTIONS_ARCHIVE_ALL:
    PO_DIST.ID PO_HEADER_ID PO_LINE_ID LINE_NUM REVISION_NUM LATEST_EXTERNAL_FLAG
    222 888 777     1 0 Y
    223 888 778 2 1 Y
    224 888 779 3 4 Y<--line 3 added to archive.
    마지막 test로 2번째 line의 distribution 정보를 변경 후 PO를 다시 approve한다.
    PO_HEADERS_ALL:
    PO_HEADER_ID SEGMENT1 REVISION_NUM
    888 125 5
    PO_HEADERS_ARCHIVE_ALL:
    PO_HEADER_ID REVISION_NUM LATEST_EXTERNAL_FLAG
    888 0 N
    888 1 N
    888 2 N
    888 3 N
    888 4 N
    888 5 Y
    PO_LINES_ARCHIVE_ALL:
    PO_HEADER_ID PO_LINE_ID LINE_NUM REVISION_NUM LATEST_EXTERNAL_FLAG
    888 777 1 0 N <---didn't change
    888 777 1 3 Y <---didn't change
    888 778 2 1 N <--latest ext flag when to N
    888 778 2 5 .Y <--row inserted & latest ext flag set to Y
    888 779 3 4 Y <---didn't change
    PO_DISTRIBUTIONS_ARCHIVE_ALL:
    PO_DIST.ID PO_HEADER_ID PO_LINE_ID LINE_NUM REVISION_NUM
    LATEST_EXTERNAL_FLAG
    222 888 777 1      0 Y
    223 888 778 2 1 N <--latest ext flag set to N
    223 888 778 2 5 Y
    224 888 779      3 4 Y
    Reference Documents
    Note 251537.1

    the error might be that you are just executing programs and you dont know the correct chain.
    Better you do archiving always from SARA transaction
    there you enter the object MM_EKKO and hit enter.
    You get a button for each step.
    first you usually have a preprocessing step which sets the deletion indicators
    next step is the write step. you always have to check the log and the spool file to be certain that you had written records to an archive. A bigger archiving step may write several archives depending on the customizing of file size.
    In the delete step you have to select from against which archive you want delete the records from the table.
    SAP checks then if the archive can be read and deletes the corresponding tables entries in EKKO and EKPO and all other related tables.
    Depending on customizing the Delete step can be an automatic executed step when the write job has finished, and does not need to be executed manually.
    after the deletion you usually store the archive somewhere.
    The administer button can give you info about the archive  run and files that were created and the status.

  • Archiving purchase orders of a specific order-type

    hello,
    does anyone have a simple-doc or plan for archiving purchase orders. archiving for dummy's as I have never done this?
    points to be taken into consideration:
    - order of a specific type (ZRL0)
    - order must be older then 10 days
    thanks,

    Hi,
    In order to archive PO's , there are a number of considerations that must be taken into account.
    The archiving program SARA -> MM_EKKO , Write , does a large number of checks before archiving can be done.
    The first step is to go to SARA -> MM_EKKO , customizing. In here , you can specifiy what kind of documents you want to archive and specify the retention period (document life) for each type of document.
    For example :
    Go to C MM-PUR : Reorganization PO
    You will find several type of PO Doc types
    DB     Dummy purchase order           Standard
    NB     Standard PO           Standard
    NB     Standard PO     K     Consignment
    NB     Standard PO     L     Subcontracting
    NB     Standard PO     S     Third-party
    NB     Standard PO     D     Service
    UB     Stock transport ord.     U     Stock transfer
    Suppose you want to archive Standard PO's  , go into the customizing option and then set the residence time 1 and residence time 2.
    Res time 1 is the number of days which must elapse after which a deletion indicator can be set for the document. The elapsed days are calculated from the last change date of the document record in EKKO table.
    Res time 2 is the number of days which must elapse after which a document with a deletion indicator can be actually deleted out of the EKKO table.
    Once the customizing is finished , then you should run the SARA Preprocessing job (which sets the deletion indicators for the selected set of documents) , then the write job (which will write the DLT status documents to an archive file) and then the delete step (which will remove documents from the EKKO and other related Purchasing tables. TO get a trailer of what gets archived and deleted , run the archive write job in "Test" Mode , rather than "Production" mode.
    Hope this helps.
    -Chandra

  • Outline Agreement archived before the corresponding purchase order was closed

    Hi All,
    I would like to know that whether an outline agreement can be archived before all the purchase orders corresponding to it are closed?
    We have some open POs and the contract corresponding to that has been already archived. Please suggest,
    Thanks,
    Ankit

    Hi Jurgen,
    Thanks for the reply. I see the following for the contracts:
    Contracts
    The following criteria are checked if Customizing for Purchasing has been set up accordingly:
    The target value has been reached (within the tolerance limits)
    The target quantity has been reached (within the tolerance limits)
    The validity end date has been reached
    They are no longer in use.
    What does it mean that 'They are no longer in use'? Does it mean that no purchase order should be open for that particular contract?
    Also, in my case the POs that are open, we are not able to delete them as while making changes it tries to open the outline agreement but does not find one as it is already archived.
    Thanks and Regards,
    Ankit Goel
    Message was edited by: Ankit Goel

  • Purchase order in 'Archived' status

    Hi All,
    We are using SRM5.0 ECS.
    After SC is created for 'Free text' requirement, PO is created. When looking at the Purchase order in 'Process Purchase orders',it is giving the message as 'Error while reading the PO in backend system, Inform system administration'. When looked into Item details it is showing the status of PO as 'Archived'.
    This is happening only for random Purchase orders. Please let me know what could be the issue.
    Regards
    Krishna

    Hello,
    Run FM META_PO_GETDETAIL in SRM, specifying the ECC system ID and PO number which has been created there.
    Check if there is any authorization message.
    I have seen a similar issue which was related to authorization of RFC user, who was not able to check PO details in backend.
    Kind regards,
    Ricardo

  • Archiving Purchase Orders.

    Hi Friends,
    I am trying to Archive Purchase order using archiving object mm_ekko.
    I get the following errors.
    1. Could not delete some subitems                                 
    2. Delivery costs have not been balanced                          
    3. GR qty is smaller than ordered qty minus underdelivery tolerance
    4. GR qty not the same as delivered quantity                      
    5. GR qty not the same as GI qty                                  
    6. Invoiced quantity is smaller than ordered quantity             
    7. Item is blocked                                                  
    8. Posting date of delivery costs within retention period         
    I just want to ingnore / correct them and move ahead.
    Any solutions ??
    Thanks in Advance
    Kanica

    Hi Kanica,
    If you think to implement same solution in production system then problems are,
    1. Payment - Payment posting to vendor will happen and updated to FI accounting documents aganist to that vendor
    2. You may land up with audit related issues.
    If this seems to be ok with your client then you can proceed with that.
    Otherwise you can think of the option of setting deletion flag for the line item and archive it. Once you do this nothing will be changed apart from deletion flag settings for this line item.
    Hope this will help for your issue.
    -Thanks,
    Ajay

  • Archiving PO older MM_EKKO (purchase order)

    Hello,
    I need archiving PO older (more than 10 years old), but this PO when execute preprocessing program RM06EV47 and most of them can not be marked for deletion, for many reasons.  Eg. e06(115)  "Quantity delivered differs from qty. invoiced (Function not possible)" and other messages
    I already tested with
    Program: RWPOB001 (Transaction WPO1)
    BADI: ARC_MM_EKKO_CHECK
    But I can not mark it for deletion (prerequisite for archivign PO).
    Is there a standard way to close that  inconistentes Purchase order ?
    I want to avoid
    UPDATE EKKO-LOEKZ = 'L'.
    Thanks
    Edited by: Cervantes Nicolas on Oct 4, 2010 5:58 PM

    Cervantes Nicolas wrote:
    I need archiving PO older (more than 10 years old), but this PO when execute preprocessing program RM06EV47 and most of them can not be marked for deletion, for many reasons.  Eg. e06(115)  "Quantity delivered differs from qty. invoiced (Function not possible)" and other messages
    If your PO shows E06(115), use transaction MASS, BUS2012 to flag both: EKPO-ELIKZ ("Delivery Completed" Indicator) and EKPO-EREKZ (Final invoice indicator). This should let the PO pass - I was in the same situation and finally managed to get rid of 98% of inconsistent PO's.
    In addition: search in OSS for notes on the subject, especially with keyword RM06EV47 - there are a couple of notes explaining what to do to pass the prepare-run.

  • Purchase Order is not deleted after archive process

    Hi,
    I want to delete completely a specific purchase order from the system so I followed the next steps to do that but is not working.. not sure if I'm doing something wrong.
    Steps:
    1) I marked up the PO as deleted in the ME22 transaction:
    2) In the transaction SARA I followed these steps:
    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.
    3) If I go to the transaction ME23N it says that the PO is archived but is there yet. Also, I can see it in the "Docuement Overview". How can I delete this PO completely from the system??
    Thanks for the help!!

    HI Carlos,
    Since you archived PO, it is stored in archive physical drive not in SAP drive.
    when u use me23n, the archived PO is picking from physical drive and it says "Already archived" message.
    I'm sure there will be no table level entries for the archived documents
    Go to SARA transaction - information system--> Archive Explorer - MM_EKKO and execute.
    Check your PO is listed here.
    So if you dont want to see your PO, then you need to De-activate information system
    in SARA-Information System-->Customizing -
    search infrastructure by Object name and use activate/deactivate icon -
    A question i really need to know - Why you want to delete a particular PO, Archival process is not a small thing and usually it takes place as a MASS activity.
    reg,
    bhg

  • Purchase Order data from archive

    Friends,
    May i ask your expert advise on the best possible and efficient way to extract the archived Purchase Orders data, basically key figures are needed for audit purpose of year 2002 to 2006, i tried using SARA and SARI, but they are really killing huge time and also the system memory.
    Thanks in advance for all your valuable advises.
    Best Regards,
    Ravi

    Hi Ravi,
    If you are talking about the data from a few purchase orders, then displaying using ME23n will be the easiest.
    If you are talking about some key fields from a lot of POs then i feel using infostructures will be the easiest (although it is slow if you are talking of huge volumes of data; but compared to sequential access, this is better).
    If there is a standard infostucture already available which has the fields which you are looking for, then activate and build the info structure. Else, you may have to create a new infostructure which has the fields you require; again for this you can make use of a standard available field catalog or create one on your own. When filling the infostructures, you may have to fill for few archive sessions / files at a time so that it wont take long time and memory.
    There is another way which is possible. If you have BI system in place and if it contains the data you are looking for, then you can extract the data from BI (if it suffices your audit requirements).
    Hope this helps,
    Naveen

  • Display archived purchase orders in Lists (e.g. ME2L)

    Hi everybody,
    Last week we upgraded our system to SP13 (ECC 6.0). Since then we have problems with our archived purchase orders.
    Usually all purchase orders (independent from where they are saved (archive or database)) are displayed in standard reports like the ME2L. Since the upgrade we cannot access the archived POs when we start the ME2L.
    When I use SARA (e.g.: RM06ER30) to read the archive it works. When I start the ME24N and pic a archived purchase order it works fine too.
    I have two questions now:
    1.) I'm not 100% sure if the old behavior was standard or if some modification has been carried out in our system some time ago. Can anybody tell me if archived POs are displayed in MM-lists like the ME2L in SAP-standard?
    2.) Does anybody has a solution how I can fix that?
    Thanks upfront and kind regards
    Alex

    Hi,
    I was over looked! Please check below tables
    Please check the arciving procedure from SAP help
    SAP Library - Materials Management (MM)
    VARCHIVEKEY find  in table ADMI_FILES ( *MM_EKKO)
    Below FM's
    MM_EKKO_AS_SHOW
    MM_EKKO_02_DISPLAY_DATA

  • Required archive file to do purchase order processing project in oracle soa

    hi,
    im learning oracle soa 11g.i want to do purchase order processing project.but i cant find the pre-required archive files in net.can any one suggest where can i find this file

    Hi,
    Are you using Jdeveloper on a windows machine? If you are then this might be a useful tip.
    Click Tools -> External Tools. It will prompt you to setup common tools. Let it do this. Now when you right click on your project you will get an Explore Directory option. I use this a lot when copying XSD’s between projects.
    Once you have done this you need to click the refresh button in the Application Navigator to ensure the new files appear.
    Robert

  • Re: Archiving of purchase orders

    Hi all,
    Can i delete  purchase orders by the means of archiving?
    Please provide details regarding the archiving object.
    Thanks in advance
    Sowmya

    You can archive purchase orders using the archive object MM_EKKO. Refer SAP help for more details.
    http://help.sap.com/saphelp_47x200/helpdata/en/8d/3e5c48462a11d189000000e8323d3a/frameset.htm
    Hope this helps.
    Cheers,
    Samanjay

  • Archiving purchase orders/requisitions

    Hi all,
    Pls. advice how to proceed with the archiving of purchase requisitions/purchase orders...!! what amopunt of involvement is there in this regards for a basis consultant and an MM consultant...what are the responsibilities shared by the 2 consultants?

    Hi Cynthia,
    Steps involved in Archiving PR's. Use txn "ME97"
    MM Consultants:
    1. Setup variant for "RM06BW30" program with relevant field values. (Decide 1step or 2step Process)
    2. If 2step process setup another variant for "RM06BW30" program for setting deletion indicator setting.
    3. Setup Job variant for Deletion program "RM06BD30".
    Basis Consultant:
    1. Plan and setup Database for storage of archived data.
    2. Setup up relevant links between the system.
    3. Based on the job sechedule given by MM Folks schedule and run the jobs in sequence.
    Hope this helps....
    Regards,
    Prasobh.K
    Reward points if this was helpful

  • Archive Purchase Order on SRM

    Hi experts,
    I'm working on the SRM archive process. I'm in extended classic scenario so my purchase order is created on SRM and duplicated on ECC. I only want to archive purchase order on SRM and not on ECC.
    When the user is looking for the purchase order on ECC how does he know that the order is archived on SRM ?
    Thank you for your help.
    Regards,
    Mikaël.

    Hi Peter,
    Thank you for your answer.
    I will used a cutomer field on the ECC purchase order and create a specific program to update this customer field from SRM data and tables ZARIX...
    Thanks,
    Mikaël.

Maybe you are looking for