Nearline storage (read 'archive' in look up's)

Hi all,
we need the functionality to read the nearline objects in queries, data loading processes and in look up's. Is there any other customer, who request this functionality?
Regards,
Adrian

Hi Adrian,
At the moment there is no API available for unified access to archived and non-archived data of an InfoProvider (InfoCube or DataStore Object). But there is an API available to access the nearline part of an InfoProvider. The following code example could be used to achieve a unified access to data from the active table of a DataStore Object and its associated nearline part. This example will always return consistent results with only one exception: during the selective deletion phase of an archiving run. In this phase it could happen that a record is retrieved from nearline and from the database table as well.
If you have further questions, please contact the us (the back office) directly.
    Cheers
      SAP NetWeaver 2004s Ramp-Up BI Back Office Team    
TYPE-POOLS:
  rs,
  rsd.
DATA:
  adjprov     TYPE rsadjprov,
  infoprov    TYPE rsinfoprov,
  r_cursor    TYPE REF TO if_rsda_cursor,
  r_dta       TYPE REF TO cl_rsd_dta,
  r_nlprov    TYPE REF TO cl_rsda_nearline_provider,
  r_selset    TYPE REF TO cl_rsmds_set,
  r_universe  TYPE REF TO cl_rsmds_universe,
  t_selfields TYPE if_rsdai_nearline_connection=>t_field_selections,
  t_data      TYPE STANDARD TABLE OF /bic/asbook_d00 WITH DEFAULT KEY,
  wherecond   TYPE string.
infoprov  = 'SBOOK_D'. 
wherecond = '/BIC/CARRID = ''LH'' AND /BIC/FLDATE IN (''19940617'',''19960617'',''19980617'',''20000617'')' .
r_dta = cl_rsd_dta=>factory( infoprov ). "create DTA object for InfoProvider
Check if the DS Object has a nearline archive
IF r_dta->has_adjoint_provider( rsd_c_adjprovtype-nearline ) EQ rs_c_true.
Create an instance of the VirtualProvider associated to the nearline archive of the DS Object
  CALL METHOD cl_rsd_dta=>build_adjprov_from_infoprov
    EXPORTING
      i_infoprov    = infoprov
      i_adjprovtype = rsd_c_adjprovtype-nearline
    IMPORTING
      e_adjprov     = adjprov.
  r_nlprov  ?= cl_rsda_nearline_provider=>factory( adjprov ).
Prepare where condition and selection clause (field list) for the nearline access
  r_universe = r_nlprov->get_universe( ). "This method is available not until SP 8
  r_selset   = r_universe->create_set_from_string( wherecond ).
  CLEAR t_selfields. "request all fields
Create and open a cursor for nearline access
  r_cursor = r_nlprov->open_cursor(
               i_t_selfields = t_selfields
               i_r_selset    = r_selset    ).
  TRY.
    Fetch a data package from the nearline table
      CALL METHOD r_cursor->fetch_next_package
        EXPORTING
          i_package_size = 0                        "fetch all data at once
        IMPORTING
          e_t_data       = t_data.
      r_cursor->close( ).
    CATCH cx_rsda_no_more_data.
  ENDTRY.
ENDIF.
Now select data from the active table and
append selected records (UNION ALL) to the result set table
SELECT * APPENDING TABLE t_data
       FROM /bic/asbook_d00
  WHERE (wherecond).

Similar Messages

  • ERROR:Could not read archive file - during Processing Base System Part 2

    Hi there,
    What I have:
    * I have problem with installation of the Mac OS X Panther v10.3 on iMac.
    * I have 3 original CDs (black with silver X).
    What I did:
    * I made new 1 partition and formated disk as Mac OS Extended (Journaled) over the Disk Utility in the first CD as normal without additional options (if I tried to format disk with zero all data and 8 way random write format after 3 days computer freeze)
    * I verified disk over this utility - that was ok - HFS volume verifed.
    * Then I restarted the computer and ran installation from this first CD
    What happened:
    * installation did not finish, because there were some problems during installation process.
    * i tried to customize installation just for essential work (without other languages support, printers etc), but it was still the same problem
    Installation log:
    After I choosed installation type, there was first error, but it did not look like important.. - root: bootstraplookup(): unknown error code
    Checking your installation disk - OK
    Preparing disk - OK
    Preparing base 1 and 2 - OK
    Other preparing.. - OK
    Processing Base System Part 1 - OK
    Processing Base System Part 2
    ==
    ERROR:Could not read archive file. - pax: Invalid header, starting valid header search.
    ERROR:Could not read archive file. - pax: Invalid header, starting valid header search.
    last message repeated 2 times
    ERROR:Could not write file. - pax: WARNING! These patterns were not matched:
    Some files for Essentials may not have been writen correctly.
    root: Installer[108] Exception raised during posting of notification. Ignored. exception: Some files for Essentials may not have been written correctly. (code 1)
    Install Failed
    Error detected
    Name: NSGenericException
    Reason: Some files for Essentials may not nave been written correctly. (code 1)
    ==
    It seems like a problem with reading some data from the CD, but during the installation checking of disk was ok.. maybe it can be problem with the cd-rom..? Or problem with data on cd-rom - I mean bad archive file..? But it is original CD.. What do you think??
    Thank you!

    Tomas,
    On THIS Page, locate your iMac model.
    From the Documents column, click on the appropriate number link.
    Using the info in the document that opens, locate the serial number of your iMac.
    On THIS Page, in the text field for Search Tech Specs, enter that serial number.
    Click on the model of iMac that appears.
    Post a link to the page that opens, or post the info requested below.
    Exactly which model iMac is it?
    What is the Processor speed?
    What size is the Hard Drive?
    How much Memory is installed?
    What type of internal Optical Drive does it have?
    Which version of OS, was the original Installed Software?
    ali b

  • BI NLS (Nearline Storage) interface with Documentum?

    Hi Experts,
    I attended a presentation by SAND Technologies at SAP Tech ED07 on BI Nearline Storage.  They mentioned BI NLS will will interface to archiving technology Open Text.  Does anyone know if NLS will interface to archiving provider EMC Documentum?
    Thanks for your help!

    Missed to add the following points.
    As per the following document ( pg 20 ) it says "A typical third Party NLS Solution is required "
    http://scn.sap.com/docs/DOC-39944
    Is there anything else which lies between the db2 software and our BI system which needs to be implemented with the help of IBM /or any other certified partner

  • Help needed about Nearline storage in BW 3.5.

    Hi Guys,
    Can you please provide me with some documents for implementing Nearline storage scenarios in BW 3.5.
    Thanks,
    Punkuj...

    Hi Punkuj,
    We use Nearline storage to store the data that is never been user or used very rarely.For example we have data for year 1960 in the data targets and now it is 2007.So mostly the management never uses this data or they uses them very rearly.So when we retrive the data from the data targets the DB unnecessarly reads the data every time when a report is generated on those targets.So to avoid this performance issue we store that kind of data in a seperate disk and we access that data using a multi provider when we need that in Report.This data is also known as Dormat data.
    Hope this will help you.
    Thanks and Regards
    SandeepKumar.G

  • Reading archived data of different archive objects in Z programs

    Hi,
       I have Z programs which are getting data from various tables. Now i needt to read archived data of those tables in my Z programs also. i.e. i need to modify those programs so that data archived for those tables should also be extracted. Now for exmple if the program is fetching data from MARA, EKKO, LIKP, KONP tables based on certain selection criteria, then how do i fetch archived data for same criteria as each of these tables may belong to different archive objects ? Please help me. Thanks in advance.

    Hie Naganath
    Using transaction SARA you can identify the archive objects for the tables you want to use. 
    For material master you can use object MM_MATNR, for Purchasing documents use object MM_EKKO, for conditions use SD_COND and for deliveries use object RV_LIKP.
    Retrieve the archive key and offset from table ZARIXMM5 (for Purchasing documents) for your select options and pass the offset and key to function ARCHIVE_READ_OBJECT to get the handle and then pass the handle to function ARCHIVE_GET_TABLE to read the record.  Have a look at the below code
    select archivekey archiveofs into corresponding fields of table lt_arch_keys
                   from zarixsd1 "SD Index table for billing documents
                  where vbeln in s_docrng
                    and kunrg in s_arc_kn
                    and fkdat in s_arc_dt
                    and fkart in s_arc_rt
                    and vkorg in s_arc_og.
      loop at lt_arch_keys assigning <fs_lt_arch_keys>.
    *Read information from archive
        call function 'ARCHIVE_READ_OBJECT'
          exporting
            object         = 'SD_VBRK'
            archivkey      = <fs_lt_arch_keys>-archivekey
            offset         = <fs_lt_arch_keys>-archiveofs
          importing
            archive_handle = ls_handle
          exceptions
            others         = 1.
    *Get the requested header detail data for billing document
        call function 'ARCHIVE_GET_TABLE'
          exporting
            archive_handle          = ls_handle
            record_structure        = 'VBRK'
            all_records_of_object   = 'X'
            automatic_conversion    = 'X'
          tables
            table                   = lt_vbrk "Header data
          exceptions
            end_of_object           = 1
            internal_error          = 2
            wrong_access_to_archive = 3
            others                  = 4.
    *Get the requested line item detail data for billing document
        call function 'ARCHIVE_GET_TABLE'
          exporting
            archive_handle          = ls_handle
            record_structure        = 'VBRP'
            all_records_of_object   = 'X'
            automatic_conversion    = 'X'
          tables
            table                   = lt_vbrp "Line item data
          exceptions
            end_of_object           = 1
            internal_error          = 2
            wrong_access_to_archive = 3
            others                  = 4.
        clear: ls_vbrk.
        loop at lt_vbrp assigning <fs_lt_vbrp>.
          read table lt_vbrk into ls_vbrk with key vbeln = <fs_lt_vbrp>-vbeln.
          move-corresponding <fs_lt_vbrp> to lt_archive_records.
          move-corresponding ls_vbrk to lt_archive_records.
          append lt_archive_records to gt_archive_records.
        endloop.
      endloop.
    Do the same for your material master and condition records as well.
    regards
    Isaac Prince

  • Nearline Storage Addon

    Hi Experts,
    like written on following documentation on page 33 (F Setup) I need a ABAP-based ADDon for SAP Netweaver. We use NetApp Nearline Storage Systems. Where can i get this Addon?
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/90836e30-1582-2910-03a6-86671428d994&overridelayout=true
    As default i have like in help documentation described only two classes available:
    CL_RSDA_DB6_CONNECTION
    CL_RSDA_SDB_CONNECTION
    http://help.sap.com/saphelp_tm70/helpdata/en/46/7aa4d824cb0e9ce10000000a155369/content.htm
    I guess i need another class for NetApp, but don't know how to create or where i can get the ADDon
    Can anyone help me?
    Thank you
    Best regards
    Martin Schmitt

    1) Do we need to do any other additional afforts for Near-line storage?
    (For this 100 percent we need to buy ceartified license 3rd party tools like PBS SAND..etc)
    2) Is archived data available for reporting with out any intervention of Third part tools?
    (If it is ADK archiving,then you need to load the data in cubes before check the reprots,if it is NLS ,you can check the data normally with out any loading)
    3) Is SAP supports accessing the archived data with out any third part software?
    (Normal SAP ADK Only),but you need to load data when on required

  • How to Read Archived Messages in XI

    HI
    I am facing problem in reading archived XI messages.
    i am trying to read messages archived in November. Can please anyone explain me how to read this.
    Thanks in Advance
    Regards
    Swapnil

    Hi Swapnil,
    >>I am facing problem in reading archived XI messages.
    please let me know the Exact problem what u r facing?
    i felt that, u are unable to findout the output file in the month of novmber which was archived.
    while configuring the adapter we have Archive mode.
    once u select the archive mode,
    asking for the archive directory and followed by ADD time stamp.
    it mean's the output file as well as archived file generated with the following name.
    i.e filename+Timestamp(yyyymmdd-hh:mm:ss-msec).
      eg: XI_ouput20080118-190544-843
    award the points if it really help to you.
    Reagrds
    Mahesh.

  • Interface Builder Error: Could not read archive

    I created a new project in Xcode. I double click on MainWindow.xib and it opens up Interface Builder like it should, but then I get an error saying "Could not read archive". This happens every time with any project I have tried to start; please help.

    I' ve the same problem. And if I make a new interface and save it, after a new klick on MainWindow.xib there's tthe error saying too.
    Sorry for my bad Englisch, but I'm German.

  • Is it possible to read archive files outside of SAP?

    Hi Experts,
    I would like to read SAP archived data (*.ARCHIVE.ARCHIVING)  with non-SAP application. I already know, that data is automatically compressed (and maybe encrypted?).
    My question: Is there some possibility to read archive files outside of SAP? I suppose that would be needed to do some decompress first.
    Your help is appreciated. Thank you!
    Jan

    Hi Stefan,
    Thanks for your reply. I found some points with your hint. Some summary for others:
    460620 - Migrating archive files:
    "Archived data may have to be migrated. One solution is to perform an SLO service archive migration. You can also perform an archive migration for archive files using the Archive Development Kit (ADK)."
    153433 - Access to archived data from other logical systems
    "For data security reasons, the ADK checks whether an archive file was created in the same system and client where it is to be read. If the client, system or file key do no longer correspond to the meta data that were valid at the time of archiving, you can no longer always access the archive file, particularly for reloading. If only the system ID changes when a new installation due to a system copy is carried out, read accesses are still possible. No solution is provided in the standard system. The access to archive files from other logical systems must be taken into account and carried out in a migration project."
    Unfortunately, I still do not know if it is possible to read archived data outside of SAP.
    Best Regards,
    Jan

  • How to read Archive data??

    Hi,
    I am developing a program which requires me to retrive the <b>archive</b> data of table BSAK and then fill it into an itam then output the list.
    I use T-code 'SARA' to find the object name is 'FI_DOCUMNT'. There u can find that BSAK is contained in it.
    And i reference the DEMO programm 'SBOOKR' and coding as belows, but the error message always shows and F1 couldnt help.
    [IMG]http://www.designoo.com/files/6678/incorrectInfo.jpg[/IMG]
    My code:
    * for Read Archive
    DATA: handle                 LIKE sy-tabix,
          buffer                 TYPE arc_buffer,
          wa_arc_bsak               LIKE bsak,
          number_of_records_read TYPE i.
    data: LE_DATA(8192) TYPE C,
          LE_STRUCTURE  LIKE ARC_BUFFER-RNAME.
    perform read_archive_bsak.
    FORM read_archive_bsak.
    * open existing archive files for BSAK
      CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ'
           EXPORTING
                object         = 'FI_DOCUMNT'
           IMPORTING
                archive_handle = handle
           EXCEPTIONS
                OTHERS         = 1.
    *  IF sy-subrc <> 0.
    *    WRITE: / 'No file can be accessed'(001).
    *    EXIT.
    *  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           = LE_DATA
                    record_structure = LE_STRUCTURE
               EXCEPTIONS
                    end_of_object    = 1
                    OTHERS           = 2.
          IF sy-subrc <> 0.
            EXIT.
          ENDIF.
          CASE buffer-rname.
            WHEN 'BSAK'.
              wa_arc_bsak = LE_DATA.
              move-corresponding wa_arc_bsak to Tab_ARC_bsak.
                APPEND Tab_ARC_bsak.
                CLEAR: wa_arc_bsak, LE_DATA, Tab_ARC_bsak.
          ENDCASE.
          ADD 1 TO number_of_records_read.
        ENDDO.
      ENDDO.
    * close the archive session
      CALL FUNCTION 'ARCHIVE_CLOSE_FILE'
           EXPORTING
                archive_handle = handle.
    Move-corresponding tab_arc_bsak to tab_bsak.
    append tab_bsak.
    clear tab_bsak.
    ENDFORM.                    " read_archive_bsak
    Anyone helps??
    Thanks in advance!!!
    Hoo
    Message was edited by:
            Hoo lala

    Hi Aditya,
    The error msg is 'Incorrect access to an archive.'
    Thanks.
    Hoo.

  • Could Not Read Archive Interface Builder

    I made a new project in Xcode without tweaking any settings. When I go to open my mainwindow in interface builder I get an error saying Could Not Read Archive. Does anyone know whats going on. Please help as I can't work with my interface files

    I' ve the same problem. And if I make a new interface and save it, after a new klick on MainWindow.xib there's tthe error saying too.
    Sorry for my bad Englisch, but I'm German.

  • Cannot read archived messages

    Hi,
    I am getting an error saying "Cannot read archived messages; reason: " in Runtime workbench -> Message Monitoring  -> Archive. Also i am not able to see any messages there. It says ' 0 Messages from Archive '. However i can see in SXMB_MONI the messages which are archived.
    Can anyone please tell me why I am getting this error message in runtime workbench and how can I rectify it?
    Regards,
    Mateen.

    Hi,
    unable to locate tht pdt guide, mean while plz go thru this:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/402fae48-0601-0010-3088-85c46a236f50
    regards

  • Error When reading Archived XML Message

    I am having the next issue reading the archived messages (error msg: Could not find message in archive).
    can anybody help me.
    my problem is the same that this topic.
    Problems with reading archived Messages
    Any suguest please?
    Regards
    RP.

    Hi Sudharshan/Cornelius,
    Thanks for your support. I am glad that my inputs were helpful.
    Shudarshan, what do you mean by the process?
    If you are talking about the arhiving process, then it is very huge topic
    in itself. You can find that in help.sap.com.
    But in this specifc case, what happens is that to made archiving possible,
    there are different objects involved. e.g Archiving object, read write methods, Infostructures etc. In our case, the infostructure objects is in "inactive" state. Which seems to be a mistake from the SAP side. All we need to do is activate that object. And we are done.
    Actually I also had the same issue, and I found this thread with few threads with no answer :-(.  Then I just went deep into it and I found this "mistake"
    It is just yesterday, when I cracked this issue by myself. I decided to put in the thread.
    again I am happy my efforts were useful to you people.
    Thanks and Regards,
    Arundeep Singh
    001-416-828-1307

  • Reading Archived Data Through SAP Query Report

    Dear SAP Gurus,
    My client archived their SAP data in a particular year range and all the Z reports have to modified to read these archive data. Normal ABAP reports can be modified to read the archive data without no problem.
    But there are two Z SAP query reports which should be modified the same way so it will be able to read archive data.
    What is the best method for this? Does SAP Query tool provide facility to read archive data? or do I have to append the code?
    Thank you in advance for your help
    Regards,
    Isuru Fernando

    >
    Isuru U Fernando wrote:
    > hi Manthan,
    >
    > Yes I used these FMs and read the data without any problem for normal ABAP reports.
    >
    > But SAP query report is the problem. Is it advisobale to modify the SAP query generated report source code? since it is a system generated report.
    >
    > Regards,
    > Isuru
    No, do not adapt the SAP generated report source. The reason is: every time someone re-generates the query from tx. SQ01 your changes will be lost.
    You could add the functionality Manathan gave you to add to the infoset of said query - but to be honest: in my opinion that is shooting nuclear rockets at flies. Also you run the risk that every change of the infoset (add a join/delete a join) requires adjustment of said coding you applied ... and where will you be then? Fancy repairing the same query over and over again? Try talk sense to your client - go for a Z-report here ...

  • Can Business Objects Web Intelligency reports access NearLine Storage data Via BW Bex Query

    Hi Gurus,
    I am aware BEX queries can access NearLine Storage data for reporting but can Business Objects Web Intelligency reports access NearLine Storage data Via BICS connection ( Bex Query as a Source).
    Thanks,
    Shak.

    I would recommend to let your SAP Basis guys do a security trace on the SAP BW side and see if some authorization check for the user fails when trying to fetch data over the universe.
    Regards,
    Stratos

Maybe you are looking for

  • Spry Validation - Advanced Customization

    Hi, I am creating a form and using the spry validation widgets for Dreamweaver Cs3. By defualt when a form is in the valid state, the input field turns green. What I would like to find out is, is it possible to use an image/background image e.g. smal

  • [SOLVED] Grub refuses to boot Arch on a dual boot

    Hi, After hours of trying things out and searching the web for answers, I finally gave up and joined this helpforum. I found several similar topics, but none seemed to work. So here's the deal. My HDD looks like this sda1 (/boot) sda2 (Windows7, boot

  • Is it possible to always limit searches to iTunes Plus music?

    I can't find a way to do this, but I may be doing something dumb. Is there a global setting in iTunes to say "Only ever show me music released as iTunes+ tracks?" (i.e. un-DRM-ed AAC) Alternatively, is there a way to add a "Kind" field to iTunes musi

  • Documentation on %metadata

    Hi, I'm looking for documentation on %metadata API. PS Internally uses it as part of various App Packages including Upgrades especially for IB. Would really appreciate if someone can share information on that. Thanks! Prashant

  • [solved] cannot install pacstrap /mnt base to UEFI without internet

    Hello everybody. Today I decided to install ArchLinux because of some problems on my Linux Mint System. On my laptop Lenovo yoga 13  while using Mint I installed Wi-Fi drivers after installation. It is not working out of the box. There is no Ethernet