Archiving Objects Question

Hello,
my task is to implement a program which analysis the data amount which is freed by an archiving object if it would be archived by the admin. The information I've gathered so far is the following:
1) With the transaction db15 I am able to take a look into the archiving objects and how they are linked with the tables in the database.
2) I know that every archiving object has to do 4 steps while it is processed: read-write-delete-back loading
The problem is I don't know how many data rows are archived by an archiving object nor which data they hold. Is there a table which holds this information?
Best Regards,
Ralph

Hi Ralph,
To analyse how many data rows are archived by an archiving object you'll have to query the relevant tables for the archiving object and then check if the objects are business complete and the residence period is met. This can be quite complex, a fast alternative is to run the archiving jobs in test mode and they will display the total number of objects that would be archived.
When you say "nor which data they hold", I understand that you mean to see which data has already been archived by the different archiving objects. For this you'll have to use the AIS (Archive Information System), but basically, for each archiving object, SAP has "link tables" that contain information about the objects that have been archived.
More information about AIS on the following link:
http://help.sap.com/saphelp_nw2004s/helpdata/en/5c/11af9bd55711d2b1f80000e8a5b9a5/content.htm
Regards, David.

Similar Messages

  • Archiving Objects in SAP Retail (transaction SARA)

    Hi All.
    I have problem with archiving object WS_ACSITE in SAP RETAIL.(Transaction SARA)
    When I write data archiving, message appeard is that archive sessions are created.
    When I try to execute the next step: delete - the archive sessions are not appearing in the dialog box where we should choose the archive sessions for deletion.
    The above situation appear when I am working with plants existing in system for a while, but when I've create a new one and try to go through all SARA's steps it is OK, and master date of sites are deleted (e.g WB03).
    Can anyone help me?
    The second question is u2013 can I restore deleted sites to system?
    thanks in advance.
    Marcin

    Hello,
    Check below information for Material master record required to archive:
    1. Is there any stocks in the plant for which MMR need s to be archived? (Stock = Zero)
    2. Is there any open items at FI accounting? (There should be no pending bills or parked documents)
    3. Is there any pending delivery for this material? (there should be no open deliveries)
    If all the above criteria is met then set the deletion flag and indicator for perticular Plant you are looking for.
    Note: Make sure that non of the other plants which is sharing this MMR is marked for deletion flag / indicatory
    Then execute Archive run for archiving object MM_MATNR.
    Note: All the required configuration is done for archiving object MM_MATNR.
    Hope this will help you to archive MMR only for your required plant.
    -Thanks,
    Ajay

  • Regarding Residenct Time for Z archiving Object

    Hello experts,
    For standard archiving objects we have application specific customizing , where we define residence time..but in our case we are using Z archiving objects, we don't have "application specific customizing".could someone tell me where exactlly we have to define the residence time..
    Regards
    RR

    Hi RR,
    Not all standard archiving objects have the feature of application specific customizing to define residence time. For some objects (co_ml_idx, fi_sl_data, rl_ta to quote a few examples), we have to limit/control the residence time using the archive variants (variant for write job).
    In case of Z objects also you could follow the same, control the residence time using the selection variant for write job. An essential selection variable for doing this will be a date field (in form of date / year / period etc) in the archive selection variant.
    Hope this answers your question.
    Thanks,
    Naveen

  • Regarding Archiving Object

    Hello Experts,
    I have few questions about Archiving object:
    1. How to create an archiving object for set of Z tables? shall i create a new archiving object by clicking on new entry or shall i copy an existing archiving object.
    2.is there any restrictions on number of tables being used in an archiving object? in our scenario there are around 15 Z tables...
    3. in T code AOBJ, i want to maintain customizing settings, but the screen is greyed out,which authorzation role will give me the access to this screen.
    4.what are the retrieval methods avaialable in system???
    5.in our scenario we have created a new archivie info structure,shall we use standard field catalog or need to create a new one???
    awaiting your reply
    Regards
    Ramana Reddy

    hi
    ans 4 :
    you should call 4 function modules in sequence to retrive the archived data from archiving files to your report program.
    see the below sample code:
    data declaration
    data: handle                 like sy-tabix,
          buffer                 type arc_buffer,
          sbook_wa               like sbook,
          number_of_records_read type i.
    open existing archive files
    call function 'ARCHIVE_OPEN_FOR_READ'
         exporting
              object         = 'BC_SBOOK01'
         importing
              archive_handle = handle
         exceptions
              others         = 1.
    if sy-subrc <> 0.
      write: / 'No file can be accessed'(001).
      stop.
    endif.
    clear number_of_records_read.
    loop to get the next data object from the archive file(s)
    do.
      call function 'ARCHIVE_GET_NEXT_OBJECT'
           exporting
                archive_handle = handle
           exceptions
                end_of_file    = 1
                others         = 2.
      if sy-subrc <> 0.
        exit.
      endif.
    get data records from the data container
      do.
        call function 'ARCHIVE_GET_NEXT_RECORD'
             exporting
                  archive_handle   = handle
             importing
                  record           = buffer-segment
                  record_structure = buffer-rname
             exceptions
                  end_of_object    = 1
                  others           = 2.
        if sy-subrc <> 0.
          exit.
        endif.
        add 1 to number_of_records_read.
      enddo.
    enddo.
    write: / 'Total number of records read: '(002), number_of_records_read.
    skip.
    write / 'Last record read: '(003).
    skip.
    case buffer-rname.
      when 'SBOOK'.
        sbook_wa = buffer-segment.
        write: / 'CARRID    :', sbook_wa-carrid,
               / 'BOOKID    :', sbook_wa-bookid,
               / 'CONNID    :', sbook_wa-connid,
               / 'FLDATE    :', sbook_wa-fldate,
               / 'CUSTOMID  :', sbook_wa-customid,
               / 'ORDER_DATE:', sbook_wa-order_date,
    when ...
    If the archive object contained more than one table
    (different buffer-rname), more cases would be needed.
    endcase.
    close the archive session
    call function 'ARCHIVE_CLOSE_FILE'
         exporting
              archive_handle = handle.
    ans 5:
    you can either use standard field catalog, from the available field in field catalog you can select the required fields alone to your info structure.
    regards
    mano

  • Residence and restention time for archiving object

    Folks
    I am starting archiving in our company and have question on residence time and retention time of the document.
    In which activity or t code we use to specify these timing once we determine that timing after discussing with business.
    So we have to specify these timing by module like SD ,MM or individually for each archiving object eg
    SD_VBKA
    Can some one specify the IMG activity in where to specify these timings or direction in this area
    thanks

    HI,
    Please check the below link :
    http://help.sap.com/saphelp_45b/helpdata/en/ed/df10ecd81411d1a9620000e8a6f09e/content.htm
    http://www.saptips.com/wpSelectDoc.asp?cmbCategory=Data%20Archiving
    Regards
    Sreedhar Reddy

  • How to link bor object to Archive object

    I would like to convert normal file to Archive file using ARCHIV_CREATE_DIALOG_META it is giving
    error there is no link  between bor object and Archive object .

    Based on your other questions I assume you mean either in the workflow or in a method. First of all you should read the FAQ and the guidelines for the forums.
    Converting the object from a subtype to its parent type in a method is achievable by using some of the macros. You can even make a generic solution for this (e.g. a function module).
    Use SWC_GET_OBJECT_KEY to get the object key.
    The attribute OjectType of your object is itself an object. It has an attribute Parent which references another object. The key of this object is the name of the object type.
    Thus you have everything you need to create a new object reference with a type that is the parent object type of your current object; you have the key (which must be identical as this is a subtype) and the object type.

  • Count total number of record of table with deletion from archiving object

    Does anyone know is there any SAP standard program to count the total number of record of the table with deletion from Archiving Object and display in repprt?

    Not sure of the question. Are you looking to get the sql "select count(*) from table" from using the TopLink expression framework or are you getting that SQL already and want something else?
    If you are looking just to get the count from a table/class, you can use a ReportQuery:
    ReportQuery rquery = new ReportQuery(ClassToQueryOn.class);
    rquery.addCount(); //equivalent to count(*);
    session.executeQuery(rquery);
    You can use a report query to return data instead of objects, and use selection criteria just like a normal read query.
    Best Regards,
    Chris

  • Archiving objects

    Hi,
    Can you please send me 'step by step process Archiving data objects and how we can extract archived data from R/3?'. If possible please send me with screen shots to my mail-id [email protected] or plese attach to this thread.
    Thanks & Regards
    Venkata Rao.

    Hi,
    Creating Archiving Objects
    Prerequisites
    The programs you enter must already exist in the system.
    Procedure
    Call transaction AOBJ.
    Choose New Entries and enter the following data:
    General Information
    Object Name
    Name of the archiving object
    Text
    Short description
    Application Area
    Organizational category for assigning archive files
    Application Component
    Used for assigning archive files
    Programs and Functions
    Write Program
    Name of the program that writes the archive files
    Interruption Possible
    Setting this indicator means the archiving object supports Interruption and Continuation of an Archiving Session. If you set this, the write program must also handle the interruption request. This indicator must not be set if the Do Not Start Before End of Write Phase is set.
    Delete Program
    Name of the program that deletes the data from the database after the write program has finished
    Do Not Start Before End of Write Phase
    If this indicator is set, the delete programs do not start until the write program is finished. To actually start the delete phase immediately, the Start automatic. indicator must be set in archiving-object-specific Customizing.
    This indicator should not be set for most archiving objects. Before you set this indicator, decide whether you actually need to use this indicator or can do without it.
    Reload Program (optional)
    Name of the program with which the data can be loaded from the archive back into the database.
    Prohibit New Session During Reload
    If this indicator is set, no new archiving session is generated when reloading archiving sessions. The reload program is not authorized to call the function module ARCHIVE_SAVE_OBJECT.
    Preprocessing Program (optional)
    Name of the program with which data is to be prepared for data archiving.
    Postprocessing Program (optional)
    Name of the program with which data is to be processed after it has been archived. If, for example, the data is only marked for deletion in the delete program, the actual deletion can be executed in the postprocessing program.
    Index Build Program
    Name of the program for building indexes
    ArchiveSelect.Active
    If this indicator is set, the Archive Selection pushbutton is displayed in transaction SARA for building and deleting indexes. If you select archive files using variants, do not set this indicator.
    Index Delete Program
    Name of the program for deleting indexes
    Index Build Allowed
    If this indicator is set, an index can be created for this archiving object. For more information, see Creating ADK Indexes and Using Them to Access Archive. The actual index creation can be controlled by a Customizing entry.
    "Invalid" Indicator Cannot Be Revoked
    If this indicator is set, the "Invalid" indicator for archiving sessions cannot be reset in archive management once it is set.
    Archiving Object Generated
    Indicates the archiving object was generated.
    As of SAP Web Application Server 6.10 write and delete programs can no longer be generated at runtime.
    Cross-Client
    Archiving is client-independent.
    End Dialog
    Dialog mode must stop before archiving can begin. Only set this if collisions may occur during data archiving. In general, this should not be set as it was primarily designed for older archiving objects where parallel operation was not able to be guaranteed between online operation and data archiving.
    Documentation
    Info for Write Program
    Name of the document containing information about the object-specific write program
    Info for Delete Program
    Name of the document containing information about the object-specific delete program.
    Info for Reload Program
    Name of the document containing information about the object-specific reload program.
    Info for Preprocess Prog
    Name of the document containing information about the object-specific preprocessing program.
    Info for Postproc Prog
    Name of the document containing information about the object-specific postprocessing program.
    Info for Read Program
    Name of the document containing information about the object-specific read program.
    You create the documents using the documentation maintenance transaction (SE61).
    Save your entries and return to the initial screen of transaction AOBJ.
    http://publib.boulder.ibm.com/infocenter/wbihelp/v6rxmx/index.jsp?topic=/com.ibm.wbia_adapters.doc/doc/mysap3/sap123.htm
    http://sapabapinterviewquestionsjobs.blogspot.com/2007/11/sap-abap-interview-questions-jobs.html
    http://www.sap-basis-abap.com/sapta009.htm
    http://blog.danmcweeney.com/8
    http://help.sap.com/saphelp_nw70/helpdata/en/2a/fa043a493111d182b70000e829fbfe/frameset.htm
    Regards,
    Chandru

  • Archiving objects from tabel QMEL, JEST, JCDS with priotype SR

    Hi,
    In tx SARA I can find 5 archivingobjects to archive data from table QMEL.
    CM_QMEL
    NM_QMEL
    PM_QMEL
    QM_QMEL
    SM_QMEL
    It looks they correspond to the priotypes named in field ARTPR in table QMEL.
    CM, GO, PM, QM, SL, SM, SR
    Our table QMEL consists of records with priotype SR.
    My question: Which object can I use to archive?
    Regards Marco

    Hi,
    I haven't found any documentation related to this so what you can do is spend around 25 mins and test it to see which archiving object suits your need. Try the following in a test environment:
    1. Complete a notification and flag it for deletion.
    2. For every archiving object (you have 5) create a test variant for the pre-processing program. In this variant specify the notification ID in the notification field and select run in "Test mode".
    3. Execute the pre-processing program for each archiving object using the variants that you created and then check their output, you should get an archiving object that selected for archiving this notification and then you can go on with that archiving object.
    Please let me know if this helps.

  • Archiving via CO_COPC Archiving Object

    Hello,
    We would just like to know if anyone can help us out an on a problem we are encountering while working with the CO_COPC object when archiving cost estimates. Based on the documentation we found in http://help.sap.com/saphelp_45b/helpdata/en/8d/3e5815462a11d189000000e8323d3a/content.htm:
    "A standard cost estimate is used to set the standard price for valuating a material. To keep the data in your system consistent, standard cost estimates that are linked to the material master record (that is, marked and released standard cost estimates) are not archived. These standard cost estimates remain in the database. Released standard cost estimates can only be archived and deleted if they are no longer connected to the material master record."
    However, in our case, we are still able to archive some cost estimates with materials linked to the material master record and there is the curious case of several cost estimates linked to 1 material that was not archived. Could anyone shed light on this matter? Are there any other rules that this particular archiving object follows when identifying what should be archived?

    Hi Karen,
    For the cost estimates linked to material master which are getting archived, can you check whether the deletion flag is set for the material.
    Refer to SAP note 178942, it might help answer your question.
    Thanks,
    Naveen

  • MM_EKKO Archiving Object

    Hi,
    Reg: MM_EKKO - Material Management Archiving Object.
    I have executed the Write Job it completed successfully. And then I executed Delete Job in 'Test Mode', it also executed successfully and it didn't delete the record from the table which is correct. But when i tried to open the Purchase order from ME23N it shown message in status as ' Purchase Order already archived'. Kindly let me know why this message is produced.
    Regards,
    Vimal

    Hi Reddy,
    Thanksfor your reply.
    Actually my concern is not that.
    Write Job(Production Mode) --  It Created a Archive file with the Purchase Order i specified in the selection parameter. So write Job is fine.
    Delete Job(Production Mode) - It deleted the Purchase Order from the database and the archived PO is displayed from ME23N. So this is also fine.
    Delete Job(Test Mode) -- It just executed, Purchase Order is not deleted from database. Which is also fine and correct as well. When i displayed the same PO in ME23N, The PO is displayed with message 'Purchase Order is already archived' . But it should not show the message bcoz i didnt archived it. This is wat my concern.
    Regards,
    Vimal

  • How to find out prerequisites of archiving objects?

    As we plan an archiving project for our ERP system, I would like to know how to find out the prerequisites for archiving the different objects.
    For example, as I know for archiving material master data, the usage of object MM_MATNR requires that the deletion flag is set on materials.
    Or as I assume, orders probably can only be archived if they are delivered and closed.
    How to find out these prerequisites?
    Best regards
    Martin

    Hi Martin,
    Network Graphics helps in determining the dependencies among the archiving objects.Once you have sorted out the flow you can schedule archiving in test mode to find more details.
    Eg PP_ORDER you can find out why a particular order is not archivable...may be cos of unsettled balance..etc.
    You can find few details about the prerequisites in the archiving run (test)
    Hope this helps.
    Thanks,
    Priya.

  • Creation of archiving objects in AFX_WB

    Hi,
    I am trying to create an archiving object in AFX_WB.
    I assigned a custom package which I created to the archiving object.
    The transaction generates the programs for the archiving object by itself with the inputs given.
    In one of the steps, I am getting an error " SAP Object cannot be assigned to the custom package".
    When I tried with a standard package, I got error in another step saying "custom object cannot be assigned to standard package".
    Is there an appropriate package which I can assign the archiving object ( as it has got a combination of custom and SAP standard object) ?
    What is the purpose of including package in package hierarchy and defining user access for them?
    Thanks and regards,
    Lakshmi Reghuvaran

    Hi,
    What is your Apex version?
    Is your Apex instance runtime environment or can you login to INTERNAL workspace?
    See this for Apex 4. Document do not say how disable demonstration app creation on runtime environment.
    http://download.oracle.com/docs/cd/E17556_01/doc/admin.40/e15521/adm_mg_service_set.htm#sthref255
    Regards,
    Jari

  • ARCHIVING OBJECT : CO_TOTAL  - Fiscal year issue regarding

    Hi,
    I am trying to archive  (01.04.2007 - 31.03.21008).    - fiscal year : 2008
    when i give the fiscal year : 2008  ( period 1 - 12)
    it 's archiving all the datas relevant to 01.04.2007 - 31.03.2008.  which  is correct.
    but some of company codes following a  calendar year as financial year .
    in that case  if i give 2008 (period 1 -12)  ( it is archiving jan'2008 - dec'2008) data.
    which is incorrect.
    in the archiving object configuration , there is no way for company code wise processing....
    *the company code which follows a calendar year is having different controlling area....
    Your inputs are useful to us.
    Thanking you.
    Regards
    Giri

    Hi Soyab,
    Before archiving these CO archiving objects please check whether DaRT is taken care. As CO_ITEM is already ongoing then i thing DaRT is done.
    1. CO_TOTAL: This archiving object is dependent on CO_ITEM, so first archive this AO and later with CO_TOTAL.
    - Controlling area, Order type, Fiscal year and Value type are the major selection criteria for restricting it for archiving.
    2. CO_CCMAST: Dependent on CO_ITEM and CO_TOTAL.
    - Controlling area, Cost center group and Fiscal year are the major selection criteria for restricting for archiving.
    Apart for this there are no other reports to execute before archiving these archiving objects.
    Reward if it benifits.
    -Thanks,
    Ajay

  • Archiving Object Impact

    I  am trying to run some analysis for my customer - they are interested in knowing all ABAPs (SAP standard and Z-ABAP) that would be impacted if we archived certain data.
    I have tried looking at SE11 for specific tables but that is throwing up a lot of ABAPs.
    Does anyone know if there is a way in SAP (or some 3rd party tool) where by I can enter the archiving object (rather than the specific table) and for the system to return a list of ABAPs that are impacted by 1 or more tables with in that object.
    thanks in advance

    Shibu:
    EMMA archive should have no impacts, provided you are not using EMMA cases OR if you are archiving for periods which are no longer used in case management.
    regards,
    bill.

Maybe you are looking for

  • How  to  Create a PSD file  in C#

    How  to  Create a PSD file  in C#

  • Help me define the limitations of LabVIEW (if any)

    My company is currently working with an engineer to create museum exhibits that utilize LabVIEW. As a design firm, it is our task to create onscreen art and animations that will need to be integrated into LabVIEW. I would like to know what kind of fi

  • Third party software wants a password every restart

    I use a program called Timbuktu and when I'm on the road it allows me access to my various computers at home just like BACK TO MY MAC. I like Timbuktu better but thats just my choice. Anyway, It used to just log in for me when the computer would rest

  • Need Help - CS4 install

    This may or may not be in the right place, but here goes.  Last year I purchased both Dreamweaver CS4 and Photoshop CS4 from a third party vendor.  Was informed that Dreamweaver was out of stock.  I downloaded the trial and they gave me the activiati

  • Move APEX Installation from one database to another one

    My task is to move an APEX installation to a new one. Exact: The customer wants to downgrade from Enterprise Edition to Standard Edition. Database version is 9.2.0.8 (both), APEX version is 2.2.1 What I've done: - Full database export (from EE) - Del