Archiving S033 table.

Hi,
We need to archive S033 -Statistics: Movements for Current Stock (Individual Records) table. After we archive this table is there any standart analyses report that we can not run anymore? For example can we run the report MC44, MC.9 etc. after the archiving?

Hi,
As far as I know there are no reports available which can read the archived statistical data. Hence you can not run the report MC44 etc to access the archived S033 information structure data.
Hope this helps
Cheers!
Samanjay

Similar Messages

  • Any particular risks when archiving SIC tables ?

    Hi,
    I'm about to launch archiving sessions for SIC tables : S001, S003, S006 ans S033. These tables are growing fast indeed in our system and nobody in my company uses SIC transactions.
    Is there a risk to archive these tables, eg. if I archive them after just one month of residence ?
    Could the SD SAP BI extractors be impacted ?

    Hi Serge,
    ... as Sales orders are created in a legacy system and then copied to SAP using IDOCs in order to be invoiced and then posted into accounting (FI)
    Yeah, that's quite usual for the first step of a SAP implementation from a legacy system.
    Furthermore, we have implemented SAP BI to have some reporting on invoice documents (specific needs not covered by ECC6).
    Nice (and rich) solution!
    Maybe it is the reason why people don not need to use SIS transactions.
    Very good reason indeed.
    We have planned to change our system in 2 ou 3 years and SAP will become the source of Sales Orders. Maybe users will want to use S001, S003... and other tables at this time.
    Or maybe not, in the same way that Billing Document info is now replicated to SAP BI, then it would make sense to also replicate Sales Document and Deliveries to SAP BI in the future.
    In general, my Consulting customers do not use the standard infostructures because they do not meet their needs.
    New infostructures are created during or after project implementation.
    Of course SAP BI is a much better solution, but sometimes small is beautiful
    That's why I was wondering if archiving would be a cautious compromise for these tables : if we do have needs to access to the data later, we will be able to view them by SARI.
    Not sure if that will be helpful, but will not hurt anyway. If something goes wrong, you would still be able to reconstruct the data in the SIS table anyway.
    Concerning SAP BI extractors, my colleagues told me they were using 2LIS_13_VDITM datasource and my question was about an hypothetic link between the SIS tables and this datasource.
    My understanding is that this datasource takes data directly from the billing item (VBRP), so it does not care about the information available in the SIS tables.
    Best Regards,
    Franck Lumpe
    Freelance SAP Logistics Consultant

  • How to enable archive at table level

    Hello Everyone,
    We are having performance issue when timesheet transfer job runs since the no of records in CATSDB table is more(4,013,039 Entries).
    I would like to know how to enable archiving at table level.so that timesheet transfer job doesnt run for a long time.
    Appreciate your response.
    Regards,
    Vadi

    You can only archive data based on archiving objects and not based on individual tables as it has to maintain the consistancy within the database.
    Following links might help you.
    [http://help.sap.com/saphelp_nwpi71/helpdata/en/8d/3e4e0c462a11d189000000e8323d3a/content.htm]
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d76f5301-0b01-0010-2a97-9938052ddf81]

  • How to Archive a Table ( Z table) for which there is no Archiving Object

    Hi folks,
    We want to archive around 16 tables tables which includes some standard tables and some z tables. We want to archive them. But after cheking in SARA we found that, there is no Archiving Object available for those tables.
    So how can we archive these table? Do we need to use some z program to explicitely archive these tables of there is some mechanism in SARA to archive them?
    Thanks
    PG

    You have to create your own archive object, first take a look at some documentation like [Archive Development Kit|http://help.sap.com/saphelp_nw04s/helpdata/en/2a/fa0391493111d182b70000e829fbfe/frameset.htm] and then [Developing Archiving Solutions|http://help.sap.com/saphelp_nw04s/helpdata/en/2a/fa042d493111d182b70000e829fbfe/frameset.htm] .. then use SARA on your z_archive_object.
    Regards,
    Raymond

  • How to backup flashback data archive enabled tables -oracle 11g?

    1) Whether the flashback data archive can be backed up using the following options in oracle? Any pointer from the documentation would be much appreciated.
         RMAN
         Data pump
    2) How to move the flashback data archive table from one database to another? The reason why I am asking this question is that the history data for flashback data archive table is managed by undo tablespace. In this case, if I simply export the flashback data archive enabled tables to another database, will I able to view the history information?
    Regards,
    Richard

    Hi Morgan,
    Thanks for your response. Our intention is that to configure the total recall feature in the reporting instance for historical data view. Let's say , we are mining the changed data from the OLTP instance to reporting instance via logical standby. In this case, the history data will be maintained in the reporting instance?
    Regards,
    Richard

  • How to archive custom tables???

    Hello gurus,
    I have been assigned to a archiving assignment..
    To archive standard tables SAP provided with standard archiving object.. but how to archive custom tables and how to creat customized archiving object..
    each reply will be rewarded...
    Regards
    RR

    Hi Ramana,
    Check the following links:
    Re: Archiving of Z Table
    Re: Archiving
    These contain the information you need to archive custom table.
    These may be helpful to you.
    Regards.
    Rajat

  • Archiving of table

    I have been given a Change Request for Archiving a table (ZSOP_Cust). I am an FICO Consultant here. I know that arcgiving a table can effect other tables too? Can someone tell me how can i check how & which tables are effected?
    Also tell me other points i shd consider before archiving this table??
    Thanks in advance

    Standard Archiving of standard SAP tables will handle all of the connections.  It will not allow you to archive a record from a table if the ties to other tables are not closed as well.  For custom tables, there are no archiving functionality.   Your ZSOP_Cust table, seems to be a custom table and the ties to other standard objects are not documented in the system, hence you can blow away the entire table, and SAP will not care.
    Regards,
    Rich Heilman

  • Archiving customerown  tables

    hi,
    does anyone how you normally archive customown tables?
    e.g.
    we have normal table bsec and we have created a bsec with some additional fields.
    now we ann archive them.. together? or creating an own archive object?
    Thanks a lot
    Stefan

    Hi Stefan,
    To archive custom tables, you should use Archive Development Kit (ADK). you can create own archive objects for custom tables and corresponding archiving programs.
    For modified standard with additional fields, maybe you need to modify the archive object and the archiving programs accordingly.
    pls see the link for info on ADK:
    http://help.sap.com/saphelp_nw04s/helpdata/en/2A/FA0391493111D182B70000E829FBFE/frameset.htm
    hope this helps,
    Naveen

  • Can we delete the archived RS tables data in unix path?

    Hi Experts
    As you all know that when we perform RS table archiving we setup a Logical file path 'ARCHIVE_GLOBAL_PATH' pointing to the physical path '/usr/sap/<SYSID>/SYS/global/<FILENAME>' in unix system.
    Here we have our RS table data in the unix path and this logical path will make sure that there are no problems with requests status.
    Now our unix path has grown in size hence we would like to delete some archived data from this path. Could you pls confirm if we delete the data from this unix path will there be any problems with the requests status?
    Simply can we delete the RS table archived data from the unix file path??
    Thanks!!

    Hi All
    Any idea about this would be appreciated.
    Thanks!!

  • BI Publisher Report for Archived OIM tables

    Hi
    We perfomed Request archival operation in our OIM DB using http://docs.oracle.com/cd/E29505_01/doc.1111/e14308/archival_utilities.htm. Now ARCH* tables are created and it has relevant details.
    Now our requirment is to create a new report to read data from this archived tables using BI publisher. We are looking something similar to OOTB Attestation Request and Approval Reports -> Request Details in BI.
    We created a new report called "Request Details from Archive tables" similar to the OOTB one in BI front end. Also modifed data template by replacing "request*" tables to "arch_request*" as below. When we try to gernerate report now it is not working as expected.
    Do we need to change anything else ? Please advise
    Modified data template for reference
    <dataTemplate name="ArchRequestDetails" description="Each group that contains the logged in user as its direct user. All groups that are administered by the above set of groups are visible to the logged in user.">
         <parameters>
              <parameter name="xdo_user_name" dataType="character"/>
              <parameter name="p_varchar_ReqFN" dataType="character"/>
              <parameter name="p_varchar_ReqLN" dataType="character"/>
              <parameter name="p_varchar_ReqUID" dataType="character"/>
              <parameter name="p_varchar_ReqID" dataType="character"/>
              <parameter name="p_varchar_ReqPID" dataType="character"/>
              <parameter name="p_varchar_ReqStatu" dataType="character"/>
              <parameter name="p_varchar_ReqTyp" dataType="character"/>
              <parameter name="p_ReqDtFrom" dataType="date"/>
              <parameter name="p_ReqDtTo" dataType="date"/>
              <parameter name="p_varchar_BenFN" dataType="character"/>
              <parameter name="p_varchar_BenLN" dataType="character"/>
              <parameter name="p_varchar_BenUID" dataType="character"/>
         </parameters>
         <dataquery>
              <sqlstatement name="sql_L1_AllRequests">
                   <![CDATA[ SELECT ReqID as RequestID, 
            decode(ReqAction, 'Create Entity', 'Self Registration', 'Add', 'Provision Resource', 'Disable',   'Disable Resource',   'Enable',   'Enable Resource',   'Revoke',   'Revoke Resource',   'Modify Entity',   'Modify Profile') as RequestType,   
            ReqUID as RequesterUserID,
            ReqDate as RequestDate, 
            CurStatus as RequestStatus,
            null as ParentRequestID
       FROM (select distinct
              req.req_key as ReqID,
              req.req_obj_action as ReqAction, 
              usr.usr_login as ReqUID,
              req.req_create as ReqDate,
              ost.ost_status as CurStatus
         from req left outer join rqu on req.req_key = rqu.req_key,
              ost,
              usr,
              act,
              usr usr2
        where rqu.usr_key = usr2.usr_key
          and req.ost_key = ost.ost_key
          and req.req_createby = usr.usr_key
          and usr2.act_key = act.act_key
          and usr2.act_key in (select aad.act_key
                from aad,usg,usr
                where usg.usr_key = usr.usr_key
                  and aad.ugp_key = usg.ugp_key
                  and usr.usr_key = (select usr.usr_key from usr where upper(usr.usr_login) = upper(:xdo_user_name)))
                  and (nvl(:p_varchar_ReqStatu,' ')=' ' or upper(ost.ost_status) like upper(:p_varchar_ReqStatu))
                  and (nvl(:p_varchar_ReqID,' ')=' ' or req.req_key like (:p_varchar_ReqID))
                  and req.req_create between :p_ReqDtFrom and :p_ReqDtTo
            union
            select
              req.req_key as ReqID,
              req.req_obj_action as ReqAction, 
              usr.usr_login as ReqUID,
              req.req_create as ReqDate,
              ost.ost_status as CurStatus
            from
              req,
              ost,
              usr
            where
              req.ost_key = ost.ost_key
              and req.req_createby = usr.usr_key
              and req.req_obj_action = 'Create Entity'
              and upper(ost.ost_status) like upper(:p_varchar_ReqStatu)
              and req.req_create between :p_ReqDtFrom and :p_ReqDtTo
              and ost.ost_status != 'Request Complete'
            union
            select req.req_key as ReqID,
              req.req_obj_action as ReqAction, 
              usr.usr_login as ReqUID,
              req.req_create as ReqDate,
              ost.ost_status as CurStatus
         from req,
              ost,
              usr,
              usr usr2,
              act
        where req.ost_key = ost.ost_key
              and req.req_createby = usr.usr_key
              and req.req_obj_action = 'Create Entity'
              and usr2.usr_login =(select upper(rqd.rqd_attr_value) from rqd where rqd.req_key = req.req_key and rqd.rqd_attr_name = 'Users.User ID')
              and usr2.act_key = act.act_key
              and upper(ost.ost_status) like upper(:p_varchar_ReqStatu)
              and req.req_create between :p_ReqDtFrom and :p_ReqDtTo
              and usr2.act_key in (select aad.act_key from aad,usg,usr
          where usg.usr_key = usr.usr_key
            and aad.ugp_key = usg.ugp_key and usr.usr_key = (select usr.usr_key from usr where upper(usr.usr_login) = upper(:xdo_user_name)))
            and ost.ost_status = 'Request Complete')
          UNION ALL
          SELECT distinct request.request_key as RequestID, 
            request.request_model_name as RequestType,
            usr1.usr_login as RequesterUserID,
            request.request_creation_date as RequestDate,
            request.request_status as RequestStatus,
            request.request_parent_key as ParentRequestID
       FROM usr usr1 JOIN request req1 ON usr1.usr_key = req1.requester_key,
            request,
            (select distinct req3.request_key rk,
              usr2.usr_first_name bfn,
              usr2.usr_last_name bln,
              usr2.usr_login buid
            from arch_request req3,
              arch_request_beneficiary reqb1,
              usr usr2
            where req3.request_key = reqb1.request_key
              and reqb1.beneficiary_key = usr2.usr_key
            UNION
            select distinct req3.request_key rk,
              usr2.usr_first_name bfn,
              usr2.usr_last_name bln,
              usr2.usr_login buid
            from arch_request req3,
              arch_request_entities re1,
              usr usr2
            where req3.request_key = re1.request_key
              and re1.entity_key = usr2.usr_key)user1
          WHERE
            req1.request_key = request.request_key
            and (NVL(:p_varchar_ReqFN, ' ') = ' ' or UPPER(usr1.usr_first_name) LIKE UPPER(:p_varchar_ReqFN))
            and (NVL(:p_varchar_ReqLN, ' ') = ' ' or UPPER(usr1.usr_last_name) LIKE UPPER(:p_varchar_ReqLN))
            and (NVL(:p_varchar_ReqUID, ' ') = ' ' or UPPER(usr1.usr_login) LIKE UPPER(:p_varchar_ReqUID))
            and (NVL(:p_varchar_ReqID, ' ') = ' ' or UPPER(request.request_key) LIKE UPPER(:p_varchar_ReqID))
            and (NVL(:p_varchar_ReqPID, ' ') = ' ' or UPPER(request.request_parent_key) LIKE UPPER(:p_varchar_ReqPID))
            and (NVL(:p_varchar_ReqStatu, ' ') = ' ' or UPPER(request.request_status) LIKE UPPER(:p_varchar_ReqStatu))
            and (NVL(:p_varchar_ReqTyp, ' ') = ' ' or UPPER(request.request_model_name) LIKE UPPER(:p_varchar_ReqTyp))
            and request.request_creation_date between :p_ReqDtFrom and :p_ReqDtTo
            and (NVL(:p_varchar_BenFN, ' ') = ' ' or (UPPER(user1.bfn) LIKE UPPER(:p_varchar_BenFN) and request.request_key = user1.rk))
            and (NVL(:p_varchar_BenLN, ' ') = ' ' or (UPPER(user1.bln) LIKE UPPER(:p_varchar_BenLN) and request.request_key = user1.rk))
            and (NVL(:p_varchar_BenUID, ' ') = ' ' or (UPPER(user1.buid) LIKE UPPER(:p_varchar_BenUID) and request.request_key = user1.rk))
    ORDER BY RequestID ]]>
              </sqlstatement>
              <sqlstatement name="sql_L2_Approver_BPEL" dataSourceRef="BPEL JDBC">
    SELECT distinct wfproductivity_view.username as ApproverUserID
    FROM wfproductivity_view
    WHERE identificationkey = :RequestID
    </sqlstatement>
              <sqlstatement name="sql_L2_Approver">
    SELECT distinct usr.usr_login as ApproverUserID
    FROM rqh join usr on rqh.rqh_createby = usr.usr_key
    WHERE rqh.req_key = :RequestID
    And rqh.rqh_status = 'Approved'
    </sqlstatement>
              <sqlstatement name="sql_L1_Beneficiaries">
                   <![CDATA[  SELECT distinct
      FirstName as BenFName, 
      LastName as BenLName,
      userid as BenUserID,
      usr_emp_type as BenEmpType, 
      UsrStatus as BenUserStatus,
      OrgName as BenOrg
    FROM
      (select distinct
        usr2.usr_login AS userid,    
        usr2.usr_last_name AS LastName,
        usr2.usr_first_name AS FirstName,    
        usr2.usr_emp_type AS usr_emp_type,
        usr2.usr_status AS UsrStatus,    
        act.act_name AS OrgName
      from req left outer join rqu on req.req_key = rqu.req_key,
        ost,
        usr,
        act,
        usr usr2
      where req.req_key = :RequestID
        and rqu.usr_key = usr2.usr_key
        and req.ost_key = ost.ost_key
        and req.req_createby = usr.usr_key
        and usr2.act_key = act.act_key
        and usr2.act_key in
          (select aad.act_key
          from aad,usg,usr
          where
            usg.usr_key = usr.usr_key
            and aad.ugp_key = usg.ugp_key
            and usr.usr_key = (select usr.usr_key from usr where upper(usr.usr_login) = upper(:xdo_user_name)))
        and (nvl(:p_varchar_ReqStatu,' ')=' ' or upper(ost.ost_status) like upper(:p_varchar_ReqStatu))
        and (nvl(:p_varchar_ReqID,' ')=' ' or req.req_key like (:p_varchar_ReqID))
        and (nvl(:p_varchar_BenUID,' ')=' ' or upper(usr2.usr_login) like upper(:p_varchar_BenUID))
        and (nvl(:p_varchar_BenFN,' ')=' ' or upper(usr2.usr_first_name)like upper(:p_varchar_BenFN))
        and (nvl(:p_varchar_BenLN,' ')=' ' or upper(usr2.usr_last_name)like upper(:p_varchar_BenLN))
        and req.req_create between :p_ReqDtFrom and :p_ReqDtTo
      union
      select
        (select rqd.rqd_attr_value from rqd where rqd.req_key = req.req_key and rqd.rqd_attr_name = 'Users.User ID') AS userid,
        (select rqd.rqd_attr_value from rqd where rqd.req_key = req.req_key and rqd.rqd_attr_name = 'Users.Last Name') AS LastName,
        (select rqd.rqd_attr_value from rqd where rqd.req_key = req.req_key and rqd.rqd_attr_name = 'Users.First Name') AS FirstName,
        (select rqd.rqd_attr_value from rqd where rqd.req_key = req.req_key and rqd.rqd_attr_name = 'Users.Xellerate Type') AS usr_emp_type,
        null AS UsrStatus,    
        null AS OrgName
      from req,
        ost,
        usr
      where req.req_key = :RequestID
        and req.ost_key = ost.ost_key
        and req.req_createby = usr.usr_key
        and req.req_obj_action = 'Create Entity'
        and upper(ost.ost_status) like upper(:p_varchar_ReqStatu)
        and req.req_create between :p_ReqDtFrom and :p_ReqDtTo
        and ost.ost_status != 'Request Complete'
      union
      select usr2.usr_login AS userid,
        usr2.usr_last_name AS LastName,
        usr2.usr_first_name AS FirstName,
        usr2.usr_emp_type AS usr_emp_type,
        usr2.usr_status AS UsrStatus,
        act.act_name AS OrgName
      from req,
        ost,
        usr,
        usr usr2,
        act
      where req.req_key = :RequestID
        and req.ost_key = ost.ost_key
        and req.req_createby = usr.usr_key
        and req.req_obj_action = 'Create Entity'
        and usr2.usr_login =(select upper(rqd.rqd_attr_value) from rqd where rqd.req_key = req.req_key and rqd.rqd_attr_name = 'Users.User ID')
        and usr2.act_key = act.act_key
        and upper(ost.ost_status) like upper(:p_varchar_ReqStatu)
        and (nvl(:p_varchar_BenUID,' ')=' ' or upper(usr2.usr_login) like upper(:p_varchar_BenUID))
        and (nvl(:p_varchar_BenFN,' ')=' ' or upper(usr2.usr_first_name)like upper(:p_varchar_BenFN))
        and (nvl(:p_varchar_BenLN,' ')=' ' or upper(usr2.usr_last_name)like upper(:p_varchar_BenLN))
        and req.req_create between :p_ReqDtFrom and :p_ReqDtTo
        and usr2.act_key in
          (select aad.act_key
          from aad,usg,usr
          where
            usg.usr_key = usr.usr_key
            and aad.ugp_key = usg.ugp_key and usr.usr_key = (select usr.usr_key from usr where upper(usr.usr_login) = upper(:xdo_user_name)))
        and ost.ost_status = 'Request Complete')
          UNION ALL
          SELECT distinct user1.bfn as BenFName, 
            user1.bln as BenLName,
            user1.buid as BenUserID,
            user1.bet as BenEmpType, 
            user1.bus as BenUserStatus,
            user1.bo as BenOrg
          FROM
            (select distinct req3.request_key rk,
              usr2.usr_first_name bfn,
              usr2.usr_last_name bln,
              usr2.usr_login buid,
              usr2.usr_emp_type bet,
              usr2.usr_status bus,
              act.act_name bo
            from arch_request req3,
              arch_request_beneficiary reqb1,
              usr usr2,
              act
            where req3.request_key = reqb1.request_key
              and reqb1.beneficiary_key = usr2.usr_key
              and usr2.act_key = act. act_key
              and (nvl(:p_varchar_BenUID,' ')=' ' or upper(usr2.usr_login) like upper(:p_varchar_BenUID))
              and (nvl(:p_varchar_BenFN,' ')=' ' or upper(usr2.usr_first_name)like upper(:p_varchar_BenFN))
              and (nvl(:p_varchar_BenLN,' ')=' ' or upper(usr2.usr_last_name)like upper(:p_varchar_BenLN))
            UNION
            select distinct req3.request_key rk,
              usr2.usr_first_name bfn,
              usr2.usr_last_name bln,
              usr2.usr_login buid,
              usr2.usr_emp_type bet,
              usr2.usr_status bus,
              act.act_name bo
            from arch_request req3,
              arch_request_entities re1,
              usr usr2,
              act
            where req3.request_key = re1.request_key
              and re1.entity_key = usr2.usr_key
              and usr2.act_key = act. act_key
              and (nvl(:p_varchar_BenUID,' ')=' ' or upper(usr2.usr_login) like upper(:p_varchar_BenUID))
              and (nvl(:p_varchar_BenFN,' ')=' ' or upper(usr2.usr_first_name)like upper(:p_varchar_BenFN))
              and (nvl(:p_varchar_BenLN,' ')=' ' or upper(usr2.usr_last_name)like upper(:p_varchar_BenLN))
            )user1
          WHERE
            user1.rk = :RequestID                 
    ]]>
              </sqlstatement>
              <sqlstatement name="sql_L1_RequestDetails">
    SELECT distinct
    null as ReqDetailsName,
    obj_name as ReqDetailsValue
    FROM
    req,
    rqo,
    obj
    WHERE
    req.req_key = :RequestID
    and req.req_key = rqo.req_key
    and obj.obj_key = rqo.obj_key
    UNION ALL
    SELECT distinct reqdet.detname as ReqDetailsName,
    reqdet.detval as ReqDetailsValue
    FROM
    (select req1.request_key rk,
    rbe1.rbe_entity_name detval,
    rbe1.rbe_entity_type detname
    from arch_request_beneficiary_entities rbe1,
    request req1
    where rbe1.rbe_request_key = req1.request_key
    union
    select req1.request_key rk,
    red1.entity_field_value detval,
    red1.entity_field_name detname
    from arch_request_entity_data red1,
    arch_request_entities re1,
    request req1
    where red1.request_entity_key = re1.request_entity_key
    and re1.request_key = req1.request_key
    and red1.entity_field_name != 'Organization'
    and red1.entity_field_name != 'User Manager'
    union
    select req1.request_key rk,
    act.act_name detval,
    red1.entity_field_name detname
    from arch_request_entity_data red1,
    arch_request_entities re1,
    request req1,
    act
    where red1.request_entity_key = re1.request_entity_key
    and re1.request_key = req1.request_key
    and red1.entity_field_value = act.act_key
    and red1.entity_field_name = 'Organization'
    union
    select req1.request_key rk,
    usr3.usr_login detval,
    red1.entity_field_name detname
    from arch_request_entity_data red1,
    arch_request_entities re1,
    request req1,
    usr usr3
    where red1.request_entity_key = re1.request_entity_key
    and re1.request_key = req1.request_key
    and red1.entity_field_value = usr3.usr_key
    and red1.entity_field_name = 'User Manager') reqdet
    WHERE
    reqdet.rk = :RequestID
    </sqlstatement>
         </dataquery>
         <dataStructure>
              <group name="AllRequests" source="sql_L1_AllRequests">
                   <element name="RequestID" value="RequestID"/>
                   <element name="RequestType" value="RequestType"/>
                   <element name="RequesterUserID" value="RequesterUserID"/>
                   <element name="RequestDate" value="RequestDate"/>
                   <group name="grp_AllApprovers" source="sql_L2_Approver_BPEL">
                        <element name="ApproverUserID" value="ApproverUserID"/>
                   </group>
                   <group name="grp_AllApprovers" source="sql_L2_Approver">
                        <element name="ApproverUserID" value="ApproverUserID"/>
                   </group>
                   <element name="RequestStatus" value="RequestStatus"/>
                   <element name="ParentRequestID" value="ParentRequestID"/>
                   <group name="Beneficiaries" source="sql_L1_Beneficiaries">
                        <element name="BenFName" value="BenFName"/>
                        <element name="BenLName" value="BenLName"/>
                        <element name="BenUserID" value="BenUserID"/>
                        <element name="BenEmpType" value="BenEmpType"/>
                        <element name="BenUserStatus" value="BenUserStatus"/>
                        <element name="BenOrg" value="BenOrg"/>
                   </group>
                   <group name="RequestDetails" source="sql_L1_RequestDetails">
                        <element name="ReqDetailsName" value="ReqDetailsName"/>
                        <element name="ReqDetailsValue" value="ReqDetailsValue"/>
                   </group>
              </group>
         </dataStructure>
    </dataTemplate>
    Thanks
    KK

    any help please ? if you need any more information to know more about the issue, please do not hesitate to ask.
    Thank you.

  • Best practice for archiving FGA_LOG$ table?

    Hi all,
    I am running Oracle 11g Release 1, and have been asked to look at how to best archive the FA_LOG$ table. We are required to store the logs for 3 years. I ran the following query:
    select owner, segment_name, segment_type, bytes/1024/1024 "MB" from dba_segments
    where tablespace_name = 'AUDIT_TBS' AND rownum <=100
    AND bytes/1024/1024 > 1 order by bytes desc;
    and it shows that the FGA_LOG$ table is currently at 84861 MB!
    Is my best course of action to:
    1. Install the patch necessary to access the DBMS_AUDIT_MGMT package
    2. Move the table to a different tablespace
    3. Use the DataPump export utlity
    4. Cleanup the table with the DBMS_AUDIT_MGMT package?
    Thanks,
    David

    to remove from the table itself
    delete from fga_log$ where timestamp# < sysdate-(365*3);
    if you want to keep data outside
    expdp to a file called this_years_fga_data.dmp , zip up and keep wherever you like.
    truncate fga_log$
    repeat annually
    * edit, jsut to clarify the timestamp# column may depend on version.
    Edited by: deebee_eh on Apr 25, 2012 5:05 PM

  • Archiving customized tables

    Hi,
    I want to archive around 10 tables for the past 30 days.  i  have used the following code to archive for one table.
    * Internal table to store the records that was retrieved
    DATA :  BEGIN OF GET_TAB OCCURS 1000.
            INCLUDE STRUCTURE ZFIT0056.
    DATA :  END OF GET_TAB.
    MOVE SY-DATUM TO TEMP_DATE.
    SUBTRACT 30 FROM TEMP_DATE.
    IF WA_CNT <> 0.
      PERFORM MOVE_RECORDS.
    ENDIF.
    FORM MOVE_RECORDS.
      CLEAR GET_TAB.
      TEMP_DATE = TEMP_DATE  + 1.
      MOVE TEMP_DATE+0(4) TO DATE_YY.
      MOVE TEMP_DATE+4(2) TO DATE_MM.
      MOVE TEMP_DATE+6(2) TO DATE_DD.
      CONCATENATE 'DR' DATE_DD DATE_MM DATE_YY '.AAA' INTO FILENAME.
      SELECT * FROM ZFI00001 INTO GET_TAB WHERE FILENAME1 = FILENAME.
        IF SY-SUBRC  = 0.
          APPEND GET_TAB.
        ENDIF.
      ENDSELECT.
      PERFORM ADD_RECORDS.
    ENDFORM.                 
    FORM ADD_RECORDS.
      INSERT ZFI00006 FROM TABLE GET_TAB.
      IF SY-SUBRC = 0.
        PERFORM DELETE_RECORDS.
      ENDIF.
    ENDFORM.                    "add_Records
    FORM DELETE_RECORDS.
      DELETE FROM ZF000001WHERE FILENAME1 = FILENAME.
      IF SY-SUBRC = 0.
        WA_CNT = WA_CNT - 1.
      ENDIF.
    ENDFORM.                    "delete_records
    can anybody suggest me a simpler way to archive all the 10 tables in a single program.

    Hi,
    Hope this link will helpful to you Re: Archiving
    http://www.pbs-software.com/medien/praesentationen/PBS_CUSTOM_EN.pdf
    Regards,
    Pravin

  • Create Object for archiving Custom Table

    Hi guru!!
    I have a problem, I must create a archiving object for custom table..
    I must create a report for READ, DELETE and ARCHIVING this type of table..
    colud you help me?
    thanks a lot guru!!!

    Hi,
    Steps..
    GO TO SE11
    Give the table name
    Press change..
    In the menu..UTILITIES -> TABLE MAINTENANCE GENERATOR.
    GIve the authorization group &NC&
    Choose the single step radio button..
    Give the screen number 1.
    Give the function group..Give the table name itself as the function group.
    Press create. button.
    Now the screen is generated..go to sm30 and maintain the table entries..
    Thanks,
    Naren

  • Help on archiving object - table AUFK

    hi,
    for table AUFK i would like to perform a test archiving scenario. currently i'm at the identifying the archiving object stage.
    From TAANA i was able to see the data distribution across the order categories and its entries as below
    Order category    entries
    1                           1.844.505
    20                           88.642
    30                         80.473
      10                       14.558
    3                          1
    DB15 has following archiving objects
    CO_ORDER
    PM_ORDER
    PP_ORDER
    PR_ORDER
    PS_PROJECT
    Can you please help me out find out the right archiving object in these, I'm at SE16 but not getting a clue to find out how the order category is linked to this object.
    Please suggest.

    thanks

  • Best method for archiving a table?

    I want to archive data in a table, based on a date selection.
    My initial thought was:
    -- Force creation of blank table, if it does not already exist
    create table ifsapp.customer_order_kmarchive as select * from ifsapp.customer_order where 1=2
    -- Update table with latest data to purge
    insert into ifsapp.customer_order_kmarchive as select * from ifsapp.customer_order where order_date < sysdate - 360
    -- Remove data
    delete from ifsapp.customer_order where order_date < sysdate - 360
    But of course you have to specify values on the insert. Is there a simple way round, without explicitly naming each column?
    Is there any check I can do so that if the copy fails, the delete won't happen?
    Thanks

    Oscar
    If proper date format (or trunc function) is not used, I bet, your archival process will be messed up at some stage.
    Consider for example the below scenario and run a test in your database:
    SQL> create table original_table(id Number, order_date date);
    SQL> Begin
    For i in 1..100
    Loop
    insert into original_table values (i, (sysdate-360)+ i/3600);
    End Loop;
    Commit;
    End;
    Now run the following select statement (it's like inserting into archive table) .
    Keep running it few times and you will see how the TIME part in the date field affects your whole process.
    SQL> select count(*) from original_table where order_date < sysdate-360;
    You will see that the result returned will change as your clock moves even though the date is same.
    As a result, your INSERT into ARHIVE_TABLE might start at 9 am and select all rows less than a year and 9 am on that day and archive them. Your DELETE statement might begin at 9.30 am and will delete all rows from original_table with order_date less than a year and 9.30 am. Now, understand why you need a TO_DATE function or a TRUNC function to get consistent results.
    You can use function based index to index TRUNC(ORDER_DATE) and your queries will be still performing great!

Maybe you are looking for