PM Orders Archiving

Hi All,
The variant selection for archiving PM Orders does not allow us to restrain the selection according to the Fiscal Year. In case my requirement is that, how can i achieve the same?
Thanks
Janani

Hello,
The archiving object 'PM_ORDER' only archives PM orders which have the status 'DLT' (deletion indicator). It uses the database view 'VIORA' to select these orders - and that one knows no fiscal year. Logical - because a PM Order may run over several fiscal years.
The chance that you have is to set this deletion flag. You could create an own program to do this - may be as an batch input on transaction iw32 or you copy and change the standard program 'RIARCORV'.
Regards Wolfgang

Similar Messages

  • Can not post MIRO due to production order archived

    Hi,
    We have created production order and with production order as account assignment we have created purchase requisition.
    We have converted purchase requisition to purchase order and goods receipt posted.
    Now production order is archived (TECO done, setteled manually, deletion and as per residence time ) and we are not able to post invoice receipt for PO.
    The question is, how production order archived, is there any check that purchase orders, purchase requisition are open in which this production order is used.
    We can post MIRO with CO substituation, but wants to check settings, pre conditions.
    Thanks
    Sudhir

    Hi Thyagarajan
    I checked the operations in the PM-order. There are two external processing operations. One has an aggrement which has the validity end 2005-12-31. I don`t see where to see if the other operation is assigned to a purchasing document. In the menu path, extras, cost reports there is a PO which was already invoiced and GR-posted.
    I don`t know where to look for more if there are any open purchasing documents?
    Thanks.
    Esra

  • 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.

  • Erro in pp order archiving

    hi sap experts.
    i have some problem in co078(archiving for production orders).
    think i want to archive oder number 3-P90B3028 .
    i go to this transaction , i set deletion flag before in co02 for this order.
    select archiving and then enter the name of variant and maintain it,after that in order enter my order no and save my variant , in maintain start time,select immediate and in spool params select adobe pdf.
    but ,whwn i execute it, the system show this error : "JOB OF TYPE SUN CAN NOT BE SCHEDULED".
    if i dont set deletion flag and want to do it like above in co78,i have the same message.
    but when execute PPARCHP1 ,i dont have this error there, and the program do the job.
    whats the problem?
    i search in scn and see this link : http://scn.sap.com/thread/1137979
    in this link it says about 'Residence Time'
    where i can customise this time?
    can anybody help me?
    im new in sap and need your helps.
    thanks.

    Hi
    The residence time is defined in OPJH hen you are customizing the order type.
    Please check below link for production order archiving:
    DLT for the orders
    Process order deletion not possible through PRARCHP1but can do in COR2
    Regards,
    Anupam Sharma

  • PM Order Archiving - Help Required!

    Hi All,
    I am trying to archive PM Orders and I find myself in a situation where irrespective of the Order Type or Planning Plant Condition that I give the archive pre-processing spool gives absolutely no Log Summary.
    There are no records which are marked with deletion flag and indicator. I am unable to archive write them as well.
    I have configured Residence Times R1 and R2 both as 0.
    Any help/suggestion will be greatly appreciated.
    Looking forward for some solutions,
    Regards,
    Janani

    Hi venkat,
    Are the orders <b>TECO</b> and the <b>DLFL</b> (Deletion Flag) set on the orders themselves?
    there r many dependencies you should think of when trying to archive the orders -
    you should archive many other objects like _ Material documents, Purchase orders, notification etc'
    you should try to archive one order which has all the functionality used in your implementation like external service , service entries, time and material consumed upon it. then teco it, settle it and flag for deletion, when you run the archiving program it will give you all the dependent documents to be archived , then try archiving them in the order they were created.
    You have marked a <b>PM order</b> for deletion.( change in status <b>DLFL</b>). You must now set a deletion indicator. The <b>residence time</b> 1 is the time between setting the deletionflag and deletion indicator. <b>Residence time</b> 2 is the time between setting the deletion indicator and deletion from the database. In the <b>spool</b> of the archiveing run you must be able te see why the order can`t be archived.
    Also take a look at note <b>0313760</b> - Order archiving ,confusing parameters
    Reward with points if it is helpful
    Regards
    Alfred

  • Inconsistency in BW reportdue to Sales orders archiving

    1.) Sometimes Sales Contracts/Sales Orders get archived when saved.  Sales documents u201Cnot in the database or have been archivedu201D as per ECC design are coming up in the BW reports, one of the reports being the open contracts reports.
    All the data is coming from ECC.
    2.) Since these contracts are coming up in the open contracts report but do not exist in the ECC database, the business is getting contracts that are not relevant to them. Is there any way to control that if the contract is archived when saved should not consider by the BW report. Without BW reload how can we prevent ECC to not to send archived Sales document to BW.

    Dear Naveen,
    It sounds like you are getting an update termination while saving the sales orders/contracts. This means that the system could not save the document correctly. A document number is generated but no sales order / contract was created. If this happens again you can get more details on what happened in transaction ST22 (for the short dump) and SM13 (update rrequests).
    It seems the issue of BW being updated with the order number could be caused by user exit code.
    The following is the call stack when the user saves the sales order:
    program MV45AF0b_BELEG_SICHERN   (update document)
    CALL FUNCTION 'RV_SALES_DOCUMENT_UPDATE' IN UPDATE TASK
    * Userexit
          PERFORM USEREXIT_SAVE_DOCUMENT.
    * Statistik-Fortschreibung
          PERFORM STATISTIK_UPDATE.
      COMMIT WORK.
    ENDFORM.
    -> 1) all internal tables e.g. xvbap and yvbap are passed to the
          update module RV_SALES_DOCUMENT_UPDATE in update task.
    -> 2) afterwards  USEREXIT_SAVE_DOCUMENT and Statistic update is called.
    -> commit work initiates update.
    Issues could be caused if values are changed in the user exit. If for example an error occurs after the COMMIT WORK and the system needs to make a rollback. Please have your ABAPer go through the short dump in ST22 if this issue occurs again. Also check user exits in MV45AFZZ, MV45AFZA and MV45AFZB to ensure there are no COMMIT WORK statements in your custom code.
    I hope this helps.
    Best regards,
    Ian Kehoe

  • 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.

  • Details of Production Orders (Archived)

    Dear SAP Buddy,
    Please can anyone tell how to get the Document Goods Movement list of archived Production orders alongwith the G/L accounts assigned with all Documents Goods movement
    Awaiting reply from all genious SAP Buddy
    Answer will be highly appreciated
    Rgds
    BV

    buddy, i do now that When planned order is deleted it is not avaiable in PLAF and so i asked you the history.
    As here in our company . planned order becoming production order concept is not implemented.
    and so i woould like to know that solution if their is any.
    thnaks ,
    kat

  • Process Order Archiving

    Hi All,
    Can any one explain what steps needs to be taken for archiving PR_ORDER.
    I am looking for below scenario:
    1) Setting up of Residence time for process order and how it works?
    2) If any additional steps needs to be taken care to archive Process Orders, apart from the process which is followed to archive data from SAP.
    --Thanks
    Pankaj.K.S

    HI Pankaj,
           I dont know much more about this archiving.
    Just a simple idea.
    First of all go to T-code SARA , entert the object name(PR_ORDER) and select the database table , from here u can get all the table used in this object. I think there are 181 tables are used.Note down the tables.
    Now go to T-code --DB02  and select detailed analysis tab give ur  table name , from here u can find out total memory space taken by table in sap.
    NOw go to T-code TAANA  , go for back ground job schedule for each table and find out the total entries in the table.
    REward if helpful........
    Thanks,

  • Sales order Archiving objce SD_VBAK

    Hello everybody
    When I have been trying to Archive the sales order by using object  SD_VBAK
    then the executing preproc i have getting the following error in Log as
    Job Started
    Step 001 started (program S3VBAKPTS, vaiant ZSD, user id USER1)
    internal error: DYNSQL_GENERATE_WHERE_CLAUSE(4)
    Job cancelled
    How to solve this problem? plz. suggest me
    thanks

    Hi,
    The thumb rule for archiving is 1st we need to archive the deliveries(RV_LIKP),thn billing(SD_VBRK) & lastly sales documents(SD_VBAK).
    Then check if you maintained the residence time period for sales documents.You can check that by going to T.code SARA & click on customising thn click on "Archiving Control for Sales Doc." or go to T.code VORA directly.
    Check if this helps.
    Regds.......
    Sumit

  • SD order archiving

    Hello,
    we plan to archive SD orders. The SD department wants a residental time of up to 2 years.
    It could happen that a reclamation comes in where a new SD order with reference to an 4 years old one (which is already archived) has to be created. The creation of this order is not possible in default cause of the non existing order.
    Does anybody have a solution for this problem?
    Many thanks for any hints!
    Andy

    Hi
    You can do the following.
    Create a new custom table in SAP. For all the archived sales orders, you can update the sales order number and the archived flag updated in this table. So if you have archived say 20000 orders, you will have 20000 records with 20K sales order numbers and their archive success flag.
    Now in sales order BAPI, you can enable through an userexit , you can enable the following.
    If for the reference sales order number, if this table is populated, then the details need to be fetched from the archived database (may be through some RFC calls, or IDOCs which you need to decide), else the reference can be taken from the SAP database itself.
    This is one solution which you can think of enabling. Reward points if the solution helps.

  • Production Order Archiving

    Hi,
    What is the procees for achiving Production orders
    In which status we can archive production orders
    Thanks
    ravi

    Hi,
    Archiving the production order is done through T Code SARA
    Select the object-PP_ORDER
    Production Order Status should be Deletion Flag, Fully setteled  and Closed status
    Type in a variant name and click Maintain. (Tick the Test Mode for archive simulation).
    Save the variant.
    Maintain the Start date and Spool parameters and click execute.
    Click Go to Job Overview to check the archive status.
    To do a permanent delete, click Delete button.
    Maintain the Archive Selection, Start date and Spool parameters.
    Click Test Session for testing or click execute to start the deletion program.
    Click Go to Job Overview to check the delete status.
    This need to be done carefully and better to first do it in testing client.
    After archiving those materials will not be displayed in reports unless categorically
    selected
    Note: SARA is a general transaction where you can archive all types of records using
    In Archiving process: there are 3 main steps to be carried out
    1. Archiving
    2. Deletion
    3. Store
    Archiving is a process of writing the data into archive files. This is carried out by Write
    Program of archiving object
    Deletion is the process of deleting the archived data from the database. This is carried
    out by Delete program of archiving object.
    Archive of business documents and master data can be carried out by archiving process. To
    carry out archiving of these document there are different SAP standard archiving objects.
    SAP provides a tool known as Archive development tool in all system to archive data.
    Archiving object is a pool of programs that helps in Write archive file, Delete archived
    data and Read archived data from the archive file or from Archive server. There are other
    functionality of Storing the archive file into archive server, Monitoring the archiving
    process and so on.

  • Order archived,Delivery Open

    Hi Friends,
    Issue:-The sales order has been archived but Delivery is still open.
    Please help me with a solution on the same to cancel or delete the Delivery.
    I also tried Program-SDRQCR21,but it did'nt worked.
    Thanks in advance.
    Regards,
    Vikas

    Hi All, thanks for the quick reply,
    There is no picking & PGI done for the Delivery.
    The status of Delivery is open & when i see Delivery on VL02N , System gives error:- Sales Order "xxxxxxx" have been archived & does not exist.
    So i can not see this delivery in change mode -VL02N , so am unable to cancel or delete it.(I have all authorisations).
    Please help.
    Regards,
    Vikas

  • Sale order canu2019t be archived u2013 Open PO items exists

    Hi all
    While doing sale order archive, it says it has open PO items. But the PO line items and relevant PR line items are deleted. Still canu2019t archive the sale order. Pls guideu2026
    Thanks in advance
    ARAS

    Hi
    Can u send us the exact Error message??
    Ravi.

Maybe you are looking for