Archiving Scree en Shots

Embed Size (px)

Citation preview

  • 8/3/2019 Archiving Scree en Shots

    1/84

    SAP-BI Step by Step Procedure fo rData Arch iv ing by ADK andReloading Arch ived Data

    Applies to:

    SAPBW3.5andSAPBINW7.0

    Summary

    This paper provides the step by step procedure on how to archive data by ADK method and then reload it forreporting needs or any other business scenarios. It discusses how the data is deleted from the archive files andthen from the database. Finally once data is on the application server it is reloaded into a separate/same datatarget.

    Author: ReenuLodha,SatyamSAP-BISolutionsLabs

    Company: SatyamComputersServicesLtd.(wwwsatyam.com)

    Created on: 12 January 2009

    Author Bio

    Reenu Lodha is a SAP BW Consultant at Satyam Computers Services Limited, Pune-India. She is working in BIspace for past 2.6 years and has rich SAP BW 3.5 and SAP BI NW 7.0 implementation experience inEnterprise Data Warehousing, Enterprise Reporting for solutions to Logistic and Finance industry. She hasworked on AGS and FI applications. ([email protected])

  • 8/3/2019 Archiving Scree en Shots

    2/84

    Table of Contents

    Abstract...............................................................................................................................................................4 Business Scenario ..............................................................................................................................................4Solution Benefits .................................................................................................................................................4Demonstration with Screenshots: .......................................................................................................................5

    Steps 1 to 5: How to create Logical File .......................................................................................................9Step-1:......................................................................................................................................................................... 9Step-2:....................................................................................................................................................................... 10Step-3:....................................................................................................................................................................... 11Step-4:....................................................................................................................................................................... 12Step-5:....................................................................................................................................................................... 13

    Steps 6 to 12: How to create data archiving process....................................................................................14Step-6:....................................................................................................................................................................... 14Step-7:....................................................................................................................................................................... 15Step-8:....................................................................................................................................................................... 16Step-9:....................................................................................................................................................................... 17Step-10:..................................................................................................................................................................... 18Step-11:..................................................................................................................................................................... 19Step-12:..................................................................................................................................................................... 20

    Steps13to26:Howtocreate&executeArchiveAdministration. ..............................................................21 Step-13:..................................................................................................................................................................... 21Step-14:..................................................................................................................................................................... 22Step-15:..................................................................................................................................................................... 22Step-16...................................................................................................................................................................... 23Step-17:..................................................................................................................................................................... 24Step-18:..................................................................................................................................................................... 25Step-19:..................................................................................................................................................................... 26Step-20:..................................................................................................................................................................... 27Step-21:..................................................................................................................................................................... 28Step-22:..................................................................................................................................................................... 29Step-23:..................................................................................................................................................................... 30Step-24:..................................................................................................................................................................... 31Step -25..................................................................................................................................................................... 32Step 26:..................................................................................................................................................................... 33

    Steps 27 to 29: How to see graphical display to spool request ....................................................................34Step 27:..................................................................................................................................................................... 34Step 28...................................................................................................................................................................... 34Step 29:..................................................................................................................................................................... 35

    Steps 30 to 40: ..............................................................................................................................................36

    Step 30:..................................................................................................................................................................... 36Step 31...................................................................................................................................................................... 37Step 32:..................................................................................................................................................................... 38Step 33:..................................................................................................................................................................... 39Step-34:..................................................................................................................................................................... 40Step-35:..................................................................................................................................................................... 41Step-36:..................................................................................................................................................................... 42Step-37:..................................................................................................................................................................... 43Step-38:..................................................................................................................................................................... 45Step 39:..................................................................................................................................................................... 46Step 40:..................................................................................................................................................................... 47

  • 8/3/2019 Archiving Scree en Shots

    3/84

    Steps 41 to 42: ..............................................................................................................................................48Step 41:..................................................................................................................................................................... 48Step 42:..................................................................................................................................................................... 49

    Reloading the archived data .........................................................................................................................50Steps 1 to 6: ..................................................................................................................................................50

    Step-1:....................................................................................................................................................................... 50Step-2:....................................................................................................................................................................... 51Step-3:....................................................................................................................................................................... 52Step-4:....................................................................................................................................................................... 53

    Step 5........................................................................................................................................................................ 54Step 6........................................................................................................................................................................ 55

    Steps 7 to 13: How to create DTP.................................................................................................................56Step-7:....................................................................................................................................................................... 56Step -8....................................................................................................................................................................... 58Step -9:...................................................................................................................................................................... 59Step -10..................................................................................................................................................................... 60Step-11:..................................................................................................................................................................... 61Step-12:..................................................................................................................................................................... 62Step-13:..................................................................................................................................................................... 63

    Reload data into the same infoprovider ........................................................................................................65Step-1:....................................................................................................................................................................... 65Step-2:....................................................................................................................................................................... 66Step-3:....................................................................................................................................................................... 67Step-4........................................................................................................................................................................ 68Step-5:....................................................................................................................................................................... 71Step-6:....................................................................................................................................................................... 72Step-7:....................................................................................................................................................................... 73Step-8:....................................................................................................................................................................... 75Step 10:..................................................................................................................................................................... 79Step 11:..................................................................................................................................................................... 80Step 12:..................................................................................................................................................................... 80

    Related Content ................................................................................................................................................82Disclaimer and Liability Notice..........................................................................................................................83

  • 8/3/2019 Archiving Scree en Shots

    4/84

    Abstract

    This document provides the step by step procedure on how to archive data in ODS 0FIAP_O03corresponding to the Fiscal Year/Period 009.2007 using ADK method. The purpose is to explain detailedtechnical procedure of ADK archiving, deleting and reloading archived data in the infoprovider. For archivingfirstly create the logical file ZARCHIVE_TEST and physical file FIAP__.txt. Archive the datacorresponding to the Fiscal Year/Period 009.2007 in the ODS 0FIAP_O03 using archiving object BWOFIA~O03and archive administration. Delete this data from the ODS and again reload it from the archive back to the SAPBW system either in the copy of infoprovider or same infoprovider. Latter is performed only when wrong datawas archived due to errors in customizing or during document selection. Readers who want to understandstepwise implementation of SAP BI ADK archiving and reloading of archived data will be benefited from this

    paper.

    Business Scenario

    The database in our system stores huge amount of historical data which is hardly required for any purposepresently. But for some reasons we want to keep it as we may need to retrieve this data in future. This leads toincrease in BI database which makes the maintenance and administration efforts grow. In effect, the cost forprocess, personnel and technology grow. So we can remove this data from our data targets store it into otherdata storage and reload to the system whenever required. Thus we can increase memory space and theretrieval performance of the data at query runtime.

    Solution Benefits

    The main advantage of ADK archiving is it is a SAP-standard BW solution which is a comprehensiveprocedure for writing, deleting, and storing BW data. Hence, consistency of the archived data isguaranteed. It allows the use of a blend of cost-effective data storage media. It is platform independent andhandles structural changes in the definition of BW elements. It has easy-to-use front end. Moreover, it offersreduction in resource consumption. The hardware costs for hard drives on the BI side where the online data willbe stored, is reduced if the archiving solution is in place. Below are BW relevant features of ADK:

    1. Handling structural changes: Since the ADK is storing metadata of the archived data as well as thedata itself, it is capable of retrieving the archived data even after structural changes have been made.This data is not converted to the new structure, but simply displayed in the new structure.

    Platform independency: The ADK can handle different code pages (ASCII, EBCDIC, UNICODE)and number formats.

    Data compression: The archived data can be compressed up to 5 times of the original data volume.

    Archiving Information System (SAP-AS).The archived data can be displayed with the ArchivingInformation System. In BW, the customer has to define the InfoStructures for the respectivearchiving objects, and fill them manually within AS customizing.

    Administration via transaction SARA: The scheduling, monitoring and management of the archivingsession can be performed with the standard transaction SARA.

  • 8/3/2019 Archiving Scree en Shots

    5/84

    Demonstration with Screenshots:

    DataDisplayofODSbeforeArchiving

    a)ClickcontextmenuofODS0FIAP_O03

  • 8/3/2019 Archiving Scree en Shots

    6/84

    b)Selectthebelowfieldselectionforoutput.

  • 8/3/2019 Archiving Scree en Shots

    7/84

    c)SelecttheFiscalYearas009.2007andclick

  • 8/3/2019 Archiving Scree en Shots

    8/84

    d)Belowisthedatadisplay.

    Wewillnowarchivethisdatarecord.Samestepshavetobefollowedwhenthenumberofdatarecordsismore.

  • 8/3/2019 Archiving Scree en Shots

    9/84

    Steps 1 to 5: How to create Logical File

    Step-1: GotoT.codeFILE,clickonLogicalFilePathDefinitionandselectArchive_Global_Pathwhichis

    asshownbelowandclickonAssignmentofPhysicalpath.

  • 8/3/2019 Archiving Scree en Shots

    10/84

    Step-2:Youcanseedifferentsyntaxgroupswhichareshownbelow,selectanddoubleclickonWindows

    NT.

  • 8/3/2019 Archiving Scree en Shots

    11/84

    Step-3:Thisstepisjusttocheckthephysicalpath,sincephysicalisthedirectorywherewecancheckthe

    archivefileinT.codeAL11.

  • 8/3/2019 Archiving Scree en Shots

    12/84

    Step-4: SelectLogicalFileNameDefinitionandclickonNewEntrywhichisshownasbelow.

  • 8/3/2019 Archiving Scree en Shots

    13/84

    Step-5:Enterthedetailswhichareshownbelow.

    Logical file : xxxxx (give your own name). Name : xxxxx (give your own name).

    Physical file : Parameter__.txt

    Data format : ASC.

    Application Area: Respective Application area (here we are doing FI Data Archiving, so selected FI).

    Logical Path : ARCHIVE_GLOBAL_PATH (Which we have taken the existing one).

  • 8/3/2019 Archiving Scree en Shots

    14/84

    Steps 6 to 12: How to create data archiving process

    Step-6:GotoT.codeRSA1,selectandrightclicktheinfoproviderfromwhichyouwanttoArchivethedataandclickonCreateDataArchivingProcess.Hereweareselecting0FIAP_O03

  • 8/3/2019 Archiving Scree en Shots

    15/84

    Step-7: InthefirsttabGeneralSettings,selectthecheckboxADK-BasedArchiving.HeretheArchiving objectnamegeneratesautomatically.

  • 8/3/2019 Archiving Scree en Shots

    16/84

    Step-8:InthesecondtabSelectionProfile,selecttheCharacteristicforTimeSliceherewehavetaken

    0FISCPER.

  • 8/3/2019 Archiving Scree en Shots

    17/84

    Step-9:Selectandmovetherespectiveinfoobjects(onwhichyouwanttoarchivedatabaseduponselectioncriteria)fromrighttoleftwhichisasshownbelow.

  • 8/3/2019 Archiving Scree en Shots

    18/84

    Step-10: InthethirdtabSemanticGroupselectandmovetheinfoobjectsfromrighttoleftforwhichyou wanttoarchivethedatawhichisasshownbelow.

  • 8/3/2019 Archiving Scree en Shots

    19/84

    Step-11:Inthebelowscreenyoucanseethatallinfoobjectsaremovetoleftside.

  • 8/3/2019 Archiving Scree en Shots

    20/84

    Step-12:InthefourthtabADKentertheLogicalfileNamewhichyouhavealreadycreated(seeinstep-5).

    Entertheotherdetailswhichareasshownbelow.

    Note:AfterDataarchiving,aswedontwanttodeletethedatafromthedatatargetautomaticallyweare

    selectingDeleteJobasNotSchedule

  • 8/3/2019 Archiving Scree en Shots

    21/84

    Steps13to26:Howtocreate&executeArchiveAdministration.

    Step-13:GotoT.codeSARA,entertheArchivingObjectnameBWOFIA~O03andclickonWrite.Inthewritephasethedatatobearchivediswrittensequentiallyintonewlycreatedarchivefiles.

  • 8/3/2019 Archiving Scree en Shots

    22/84

    Step-14:HereweneedtocreateVariant,soenterVariantnameandclickonMaintainasshownbelow.

    Step-15:SelecttheRadiobuttonForAllSelectionScreensasshownbelow.

  • 8/3/2019 Archiving Scree en Shots

    23/84

    Step-16:InthefirsttabPrimaryTimeRestriction,fillallthedetailsasshownbelow.

  • 8/3/2019 Archiving Scree en Shots

    24/84

    Step-17:InthesecondtabFurtherRestrictionsfillthedetailsifyouwanttoarchivedatabasedonselectioncondition.

  • 8/3/2019 Archiving Scree en Shots

    25/84

    Step-18:Onceyoufillthenecessarydetailsinboththetabs,clickon itwillpopupascreen whichisasshownbelow,clickonsave.

  • 8/3/2019 Archiving Scree en Shots

    26/84

    Step-19:EntertheVariantMeaning,saveandclickon .

  • 8/3/2019 Archiving Scree en Shots

    27/84

    Step-20: ClickonStartDateasshownbelow.

  • 8/3/2019 Archiving Scree en Shots

    28/84

    Step-21:Ifyouwanttorunimmediately,clickonImmediateorelseselectothersandfillthedetailsrespectively,hereweareexecutingthejobimmediately,soselectImmediateandclickonsavebuttonasshownbelow.

  • 8/3/2019 Archiving Scree en Shots

    29/84

    Step-22: ClickonSpoolParamsasshownbelow.

  • 8/3/2019 Archiving Scree en Shots

    30/84

    Step-23: EntertheoutputDevicenameLP02asshownbelowandclickonenter.

  • 8/3/2019 Archiving Scree en Shots

    31/84

    Step-24:OnceyoufilltheStartDate&SpoolParamsyoushouldseethelightsareingreencolor.Now

    clickon button.

  • 8/3/2019 Archiving Scree en Shots

    32/84

    Step -25:ToseethestatisticsofthearchivingsessionandmonitortheprogressofthejobspresstheJob

    button

  • 8/3/2019 Archiving Scree en Shots

    33/84

    Step 26: Whenthejobisfinisheditshowsthedetailsoftheactivitiesperformed.

  • 8/3/2019 Archiving Scree en Shots

    34/84

    Steps 27 to 29: How to see graphical display to spool request

    Step 27: Clickonspool.

    Step 28:Clickon

  • 8/3/2019 Archiving Scree en Shots

    35/84

    Step 29:Belowisthegraphicaldisplaytospoolrequest.

  • 8/3/2019 Archiving Scree en Shots

    36/84

    Steps 30 to 40:Howtodeletethedata(whichisarchived)fromtheODS0FIAP_O03Thedeleteprogramreadsthedatafromthearchivefilesandthendeletesitfromthedatabase.

    Step 30: GotoTCodeSARA,entertheArchivingobjectnameandclickondelete.

  • 8/3/2019 Archiving Scree en Shots

    37/84

    Step 31:ClickonArchiveSelection.

  • 8/3/2019 Archiving Scree en Shots

    38/84

    Step 32: Selectthearchivedfilewhoseinfoproviderdatahastobedeleted.

  • 8/3/2019 Archiving Scree en Shots

    39/84

    Step 33:ClickonStartDateasshownbelowandclickonImmediate.

  • 8/3/2019 Archiving Scree en Shots

    40/84

    Step-34:ClickonSpoolParamsasshownbelowandentertheoutputDevicenameLP02asshownbelow

    andclickonenter.

  • 8/3/2019 Archiving Scree en Shots

    41/84

    Step-35:OnceyoufilltheStartDate&SpoolParamsyoushouldseethelightsareingreencolor.Now

    clickon button.

  • 8/3/2019 Archiving Scree en Shots

    42/84

    Step-36: JobOverviewshowstheODSdatacorrespondingtotheFiscalYr-009.2007isdeleted.

  • 8/3/2019 Archiving Scree en Shots

    43/84

    Step-37: Belowisthespoolgraphicaldisplayofspoolrequest.

    a)

  • 8/3/2019 Archiving Scree en Shots

    44/84

    b)

  • 8/3/2019 Archiving Scree en Shots

    45/84

    Step-38: DataDisplayofODSafterArchiving

  • 8/3/2019 Archiving Scree en Shots

    46/84

    Step 39: PressStatisticsbuttontoviewthedatabaseandstatusinformation.

  • 8/3/2019 Archiving Scree en Shots

    47/84

    Step 40:Belowisthedetaileddisplayofstatisticsofdataarchiving.

  • 8/3/2019 Archiving Scree en Shots

    48/84

    Steps 41 to 42:Howtoseethearchivedfile

    Step 41:ToseethearchivedfilegotoTCodeAL11anddoubleclickonthenameofthedirectory.

  • 8/3/2019 Archiving Scree en Shots

    49/84

    Step 42:Highlightedisthearchivedfile.

  • 8/3/2019 Archiving Scree en Shots

    50/84

    Reloading the archived data

    Oncethedatahasbeenarchivedontheapplicationserver it isstoredexternallybybasis teamonseparatemagnetictapesandotherstoragedevices.Wheneversuchdata isagainrequiredforreportingthebasis teamcanbring itback onapplicationservereasily.Once it ison theapplicationserver itcanbe reloaded intoaseparatedatatargetwhichisacopyoftheoriginalinfo-provider.

    There are two different methods to reload the archived info provider data- reload data into different datatargetorreloadintothesameinfoprovider.Itisrecommendedthatyoureloadthearchiveddataintothecopy

    of theoriginal infoprovider. Itallows thereloadeddata toremainphysicallyseparatefromanyexistingdata.This allows for easier verification of the reloaded archive data because the data is isolated in its owninfoprovider.You also can combine reloaded data with current data via multiproviders for better queryperformancebecauseofthesystemsparallelqueryprocessingfunctionality.

    Data should be reloaded into the same info-provider only in emergency cases, in which wrong data wasarchivedduetoerrorsincustomizingorduringdocumentselection.Therefore,datashouldonlybereloadedimmediately after the erroneous archiving session. If you reload the data later you may end up withinconsistenciesinyourdatabase.

    Reloaddataintodifferentdatatarget(Copyoforiginaldatatarget)

    Steps 1 to 6: HowtocreatecopyofODS0FIAP_O03anditstransformations

    Step-1:GotoTCodeRSA1.ChoosecontextmenuoftheoriginalODS0FIAP_O03andclickonCopy.

  • 8/3/2019 Archiving Scree en Shots

    51/84

    Step-2:GotoTCodeRSA1.MentiontheoriginalODSnameinCopyFrom

  • 8/3/2019 Archiving Scree en Shots

    52/84

    Step-3:SavetheODSasLocalObject.

  • 8/3/2019 Archiving Scree en Shots

    53/84

    Step-4:ActivatetheODS.

  • 8/3/2019 Archiving Scree en Shots

    54/84

    Step 5:CreatetransformationfromtheoriginalODStothecopiedODS.

  • 8/3/2019 Archiving Scree en Shots

    55/84

    Step 6:Activatethetransformations.

  • 8/3/2019 Archiving Scree en Shots

    56/84

    Steps 7 to 13: How to create DTP

    Step-7:CreatedatatransferprocessforthecopiedDSOfromcontextmenu.

    a)

  • 8/3/2019 Archiving Scree en Shots

    57/84

    b)

  • 8/3/2019 Archiving Scree en Shots

    58/84

    Step -8SelectthesettingsasshownbelowandclickonFiltertomaketheselectionforwhichyouwantto

    reloadthearchiveddata.

  • 8/3/2019 Archiving Scree en Shots

    59/84

    Step -9: ClickonChangeSelectionandenterthefiscalperiod009.2007forwhichwehavetoreloadthe

    data.Clickoncontinue.

  • 8/3/2019 Archiving Scree en Shots

    60/84

    Step -10: BelowaretheUpdatetabsettings.

    a)

  • 8/3/2019 Archiving Scree en Shots

    61/84

    Step-11: ActivatetheDTPandClickonexecute.

    a)

  • 8/3/2019 Archiving Scree en Shots

    62/84

    Step-12:DataisupdatedintotheODS.

  • 8/3/2019 Archiving Scree en Shots

    63/84

    Step-13:DisplaydatafortheODSmakingtherequiredselections.

    a)

  • 8/3/2019 Archiving Scree en Shots

    64/84

    b)Belowisthereloadeddatadisplay.

  • 8/3/2019 Archiving Scree en Shots

    65/84

    Reload data into the same infoprovider

    Step-1:GotoTCodeSARAandenterthenameofthearchivingobjectintheObjectNamefield.

  • 8/3/2019 Archiving Scree en Shots

    66/84

    Step-2:ChooseGotoandclickReload.

  • 8/3/2019 Archiving Scree en Shots

    67/84

    Step-3:ThistakesyoutotheArchiveAdministration:ReloadArchivescreen,whereyoucanschedulejob.

  • 8/3/2019 Archiving Scree en Shots

    68/84

    Step-4:ChooseArchiveSelection.MaintainVariant.

    a)

  • 8/3/2019 Archiving Scree en Shots

    69/84

    b)

  • 8/3/2019 Archiving Scree en Shots

    70/84

    c)

  • 8/3/2019 Archiving Scree en Shots

    71/84

    Step-5: MarkthedesiredarchivingsessionandchooseContinue.

  • 8/3/2019 Archiving Scree en Shots

    72/84

    Step-6: Thistakesyoubacktotheoriginalscreen.

  • 8/3/2019 Archiving Scree en Shots

    73/84

    Step-7: MaintaintheStartDateandtheSpoolParameters.

    a)

  • 8/3/2019 Archiving Scree en Shots

    74/84

    b)

  • 8/3/2019 Archiving Scree en Shots

    75/84

    Step-8:Execute

  • 8/3/2019 Archiving Scree en Shots

    76/84

    Step-9:Doubleclickon toviewlistofspoolrequests.

    a)

  • 8/3/2019 Archiving Scree en Shots

    77/84

    b)

  • 8/3/2019 Archiving Scree en Shots

    78/84

    c) Belowscreenshowsdatabeenreloaded.

  • 8/3/2019 Archiving Scree en Shots

    79/84

    Step 10:ChecktheDataDisplayoftheODS.ItshowsdatahasreloadedsuccessfullyintotheODS.

  • 8/3/2019 Archiving Scree en Shots

    80/84

    SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

    2009 SAP AG

    Step 11:ChecktheDisplayStatistics.

    Step 12:Thearchivedfilehasbeenreloaded.

  • 8/3/2019 Archiving Scree en Shots

    81/84

    SAP-BI Step by Step Procedure for Data Archiving by ADK and Reloading Archived Data

    SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

    2009 SAP AG

  • 8/3/2019 Archiving Scree en Shots

    82/84

    SAP-BI Step by Step Procedure for Data Archiving by ADK and Reloading Archived Data

    SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

    2009 SAP AG

    Related Content

    https://www.sdn.sap.com/irj/sdn/inf?rid=/webcontent/uuid/ef1b00f7-0a01-0010-74ab-e9260e80a441

    http://help.sap.com/saphelp_nw2004s/helpdata/en/ad/b594429d7c0631e10000000a1550b0/frameset.htm

    http://www.thespot4sap.com/Articles/SAP_Data_Archiving_ADK_ArchiveLink.asp

  • 8/3/2019 Archiving Scree en Shots

    83/84

    SAP-BI Step by Step Procedure for Data Archiving by ADK and Reloading Archived Data

    SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com

    2009 SAP AG

    Disclaimer and Liability Notice

    This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is notsupported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.

    SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document,and anyone using these methods does so at his/her own risk.

    SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article orcode sample, including any liability resulting from incompatibility between the content within this document and the materials andservices offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of thisdocument.

  • 8/3/2019 Archiving Scree en Shots

    84/84

    SAP-BI Step by Step Procedure for Data Archiving by ADK and Reloading Archived Data