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

Similar Messages

  • Regarding Archiving objects

    HI Experts,,
    We are going to do archiving. We know we need to do archiving object wise. There are lots of archiving objects in system. Now we want to do archiving all the data older than two years. To do this way, do I need to archive all the objects one by one or there are special objects for it? Is there any object related to data type(master data/transactional data) ? Please let me know.
    Asad

    Hi Asad
    1.  You can refer the SAP link |& Note  about Archive
    Archiving Object (SAP Library - Archive Development Kit)
    Creating Archiving Objects (SAP Library - Archive Development Kit)
    53022 - How do you archive data from your own tables?
    2. In which SAP module you have to do this task?
    BR
    SS

  • 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

  • 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

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

  • Archiving object for tables GLPCC and GLPCO

    Hi All,
      GLPCA table stores the actual line items in PCA and GLPCT table stores the totals records of PCA.
    What are the transactions which get affected in regular course by these tables?
       GLPCC - EC-PCA: Transaction Attributes
       GLPCO - EC-PCA: Object Table for Account Assignment
    There is no archiving object for the tables GLPCC and GLPCO when checked in DB15. What is the alternative for archiving the entries in those tables?
    Thanks in advance
    Regards
    Anupama

    Hello Anupama,
    The standard archiving objects for PCA are EC_PCA_ITM & EC_PCA_SUM. Most of the data is archived with above two objects.  Hence it would be better to use given archiving object. About 80% of data can be archived through standard archiving objects.
    For more information you may read SAP Data Management Guide.
    Regds
    Ambadas

  • Archiving object CRM_SEOPD in solution manager

    Hello,
    The self diagnostics for solution manager throws a warning under "Service Desk" functionality with message text "Critical number of incidents per support team or error reading volume". The detail display shows:
    Strategy for resolving the alert -  to start an archiving project for incidents using archiving object CRM_SEORD.
    Details of this Alert - 1. No support teams, i.e. business partner type organization (Message no. DSWP_SD127).
    Does anyone have a clue how to go about resolving this warning.
    Thanks,
    Asif

    Hello,
    For Archiving Support Desk messages you should refer to SAP Note  1329247 - Archiving Solution Manager Service Desk messages. It describes the process which is a two part process, one part in Solution Manager, the second part in CRM.
    This will resolve this issue.
    Glad to help!
    Regards,
    Paul

  • Archiving Object PP_BKFLUSH

    We are in the process of archiving PP_BKFLUSH for our client.
    1. Can anyone help me by sharing any documents on the functionalities, restrictions and dependencies of the archiving object PP_BKFLUSH (other than in help.sap)? and
    2. Any document on the step by step process of archiving methodogy (live example of any archiving object)?
    Would be grateful if anyone can send it immediately
    Thanks & Regards
    Anupama

    Hi,
    1. Objescts like PP_BKFLUSH will be created based on Tables.
    2. Objects will be archived first and then deleted based on "Retention Period"
    3.Once you archice the date you cannot retrive the data back but you can view provided you have an "archiving info  structure" through  t.code "SARI"
    Please let me know if you have any concerns,
    Hope understood and assign points if you get through.
    Thanks,
    Vasu..

  • Archiving object FI_DOCUMNT

    Hi, my requirement is to archive the data in table BKORM also along with the archiving object FI_DOCUMNT. I have seen the archiving object FI_DOCUMNT through tcode SARA. Here I observed that this archiving object do not include table BKORM. Can I add this table also the archiving object?
    My basic purpose is that the data of table BKORM (and its associated tables) also should get archived along with the table mentioned in this archiving object...
    Is there a way out to solve this problem?
    Helpful answers will surely be rewarded...
    Thanks,
    Husain.

    Hi Husain,
    you may have a look at the BAdI "FI_DOCUMNT_WRITE". This seems to be for archiving additional tables with the AO FI_DOCUMNT. But I am not definitly sure how to deal with it...
    Regards,
    David

  • ARCHIVING Object COPAC_****

    Hi All,
    As we don't have any read program for the Archiving Object COPAC_**** and also we don't have any Info Structure available for this object.
    Is there any other option available to Verify the data which got archived through this Archiving Object.
    Thaks
    Vaibhav

    Hi,
      Archiving object COPAC_XXXX is used to archive the profitability segments stored in table CE4XXXX (XXXX = operating concern). Also tables CE4xxx_ACCT, and CE4xxx_FLAG. You can probably check how many records are there in these tables before and after archiving.
    regards
    Waman

  • Archiving Object-File Struct tab?.

    Dear Friends,
    When we are going to create an Archiving object.  we can get 4 tabs those are Select Data, File struct, Folder, Delete. 
    Kindly could any one explain me about Folder tab.
    Thanks & Regards,
    Shaliny M

    Alberto,
    Can you explain what you are trying to do. Are you trying to archive data from a BI object or are you trying to export data out of a BI object using open hub.

  • Archiving object CHANGEDOCU

    Hi,
    I need to archive data using archiving object CHANGEDOCU. Now the condition is that in this archiving object, I need to restrict the data (to be archived) to company code 1030 (country US). As the company code field is not available in the selection screen of this archiving object, can you please tell me, how can I limit the data to company code 1030, using other fields in the selection screen.
    Thanks and Regards,
    Anuj

    Hello,
    If you are targeting few tables for your requirement than you may create a customized(Z) archiving object for them using transaction AOBJ.
    While creating the archiving program you can create your own selection screen. On this basis you can write the select queries and then archive them.
    A detailed steps to create a customized archiving object and program is mentioned in below link.
    **************** - Step-by-step procedure for Creation of Custom Archiving Object
    Reward points if this is useful
    With Regards,
    Viral Bhuva

Maybe you are looking for