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

Similar Messages

  • How to access archived data through queries

    Hi,
    I would like to know if there is any way to access the archived data through SAP query. I don`t have any infostructure for this archived data.

    You mean mails once present and readable on the iPad, but no longer there (in the, by default, 50-long mail list)?

  • URGENT!!!!  - Reading Archived Data from a Report.

    Hi,
    The data, prior to 15 months, of some tables (BSEG, BSAK),
    used in the report YGF11347 has been archived.
    Previously this report YGF11347 was run for vendor payment information for any time frame
    through FBL1N.  So any vendor line items from 2004, 2005, 2006 and current year,
    all data elements were available to be extracted and displayed on the report.
    Recently the Check Amount is missing when executing the report for payments made prior to
    04/01/2006. This is because of archiving the data prior to 15 months.
    My requirement is tht i need to display this archived data also in the report "YGF11347".
    Can anyone please help me on this issue.
    Regards,
    Akrati

    hi
    good
    check this link, hope this would help you to solve your problem.
    http://www.ams.utoronto.ca/Assets/output/assets/ixos_637070.pdf.pdf
    thanks
    mrutyun^

  • Is possible to see group currency data in SAP provide report or query ?

    Dear experts:
             Is possible to see group currency data in SAP provide report or query for Assets. When the Depreciation area currency is different with the group currency?
    My SAP version is ECC 6.0.
    Depreciation area currency: USD,
    Company code currency: USD,
    Second local currency: Group currency(TWD)

    You must have defined an additional dep area for group valuation too.
    then only you can get the asset values in TWD curency.

  • SAP Query - Reporting on Simulation infotype 2501

    We defined reporting time types for the SAP delivered infotype 2501 to report from the ZL cluster.  However, when we report the data using SAP Query, for a few records, the following is observed:
    (1) Basic list output in Query report splits the record as only 50% (half) of the time is output when compared to the data in the cluster.
    (2) If you also use the same field in a Statistics output, it seems to report the full amount of time as recorded in the cluster.
    The discrepancy is noticed only in a very few records reported by SAP Query. We need to be absolutely sure as to why some records are not reported accurately by SAP query basic list output for the simulated infotype.
    I would appreciate your help
    Thanks
    Pascal

    Hi Pascal,
    Since the IT2501 is a "Simulated Time Infotype" you cannot look at the data in it, but you can confirm the data from the ZL cluster and the data from the employee.  Since it is only this employee or a few employees, it is probably not the configuration of the time buckets for the IT2501, but you may want to make sure all time times are captured as you want.  Then look at the time entries for this individual or individuals.  Did they enter a time type that was not expected or configured?  Is all their time approved and passed through Time Evaluation?  Finally check the Master Data for the employee - is the Planned Working Time (IT0007) infotype correct or has it been recently changed?  Is he in a special Cost Center (IT0027) or Project that is captured differently for time purposes? 
    Since it just one or a few individuals, I would suspect the Master Data and some inconsistant entry that affects the time cummulation for the IT2501.
    Paul

  • Dump in SAP query report

    Dear All,
    I have written some development in SAP Query report.
    The main aim is to assign to own defined parameter par1  combination of version and object-partner (internal order with defined order type).
    The text is following:
    DATA: it_aufk like aufk
          occurs 10 with header line.
       DATA: p-auart like aufk-auart.
       select * from AUFK into table it_aufk
         where AUFNR = coep-parob1+2(12).
      if sy-subrc = 0.
       if coep-versn = '000'.
        par1 = 1.
       elseif coep-versn = 'GR0'.
        par1 = 2.
      endif.
    endif.
      if coep-versn = 0 and ( p-auart = 'V112' or p-auart = 'V114' ) .
        par1 = 1.
      endif.
    I have performed check and generated this info-set successfully.
    Than I have generated program in queries - other function- generate program.
    I execute report and get dump.
    What did I miss?
    With best regards,
    Kamila.

    Category               ABAP Programming Error
    Runtime Errors         CONVT_NO_NUMBER
    ABAP Program           AQICZCO=========QUE_KZHAKEN_01
    Application Component  Not Assigned
    Date and Time          15.12.2011 16:18:35
    Short text
         Unable to interpret "GR0" as a number.
    What happened?
         Error in the ABAP Application Program
         The current ABAP program "AQICZCO=========QUE_KZHAKEN_01" had to be termi
          because it has
         come across a statement that unfortunately cannot be executed.
    What can you do?
         Note down which actions and inputs caused the error.
         To process the problem further, contact you SAP system
         administrator.
         Using Transaction ST22 for ABAP Dump Analysis, you can look
         at and manage termination messages, and you can also
         keep them for a long time.
    Error analysis
         An exception occurred that is explained in detail below.
         This exception cannot be caught in the context of the current statement.
         The reason for the exception is:
         The program attempted to interpret the value "GR0" as a number, but
         since the value contravenes the rules for correct number formats,
         this was not possible.
    How to correct the error
        Whole numbers are represented in ABAP as a sequence of numbers, possibl
         with an algebraic sign.
        The following are the possibilities for the representation of floating
        point numbers:
          [algebraic sign][mantissa]E[algebraic sign][exponent]
          [algebraic sign][whole number part].[fraction part]
        For example, -12E+34, +12E-34, 12E34, 12.34
        If the error occurred in your own ABAP program or in an SAP
        program you modified, try to remove the error.
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "CONVT_NO_NUMBER" " "
        "AQICZCO=========QUE_KZHAKEN_01" or "AQICZCO=========QUE_KZHAKEN_01"
        "START-OF-SELECTION"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
        3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
       In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.

  • SAP QUERY report for vendor line items

    Hi
    I have created a SAP QUERY report for vendor line items with fields vendor no.,vendor name,amount,company code and period.But there is one line item i donot know from wher system is getting it picked with is not in that vedor account,when i compare with fbl1n.I checked the document number too...the same doc number is twice in my query report.One with correct amount and another with wrong one.How do i chk.Where did i go wrong in creating query.I used logical database KDF.
    Please advise.

    i chked...how do we get the amount displayed in query...it just displays amount no debit credit symbol... i have selected BSEG-DMBTR field but no -/+ sign,how is it done in query,please suggest.

  • Issue in transaction code creation for sap query report .

    Hi  Gurus,
    I have a requirement to create transaction codes for sap query reports. I found two ways to create transaction code for sap query report
    1) By Generating program for sap query report and creation of transaction code for that generated Program. in tcode.
    2) By using parameter transaction options in start object of se93
    What are the difference between creation of these two ways. Please specify  the advantages and disadvantages of both methods.
    Regards,
    Suneel Kumar Uggina.

    Hi Jogeswara Rao,
    But I am getting problem while transporting form development system to  the production system. After transporting to Production system  I have used the code created in development system, but it is giving Error ' No Program Found for that Transaction Code. And  I would like to know  on what conditions should I have to  use the First one  and as well as a second one in sap query reports.
    Thank You,
    Suneel Kumar Uggina.

  • Sap query report-selection screen modification

    Hi
    I  have created a SAP query report using the logical database KDF ,the selection screen was created automatically.For vendor report open item and Cleared item Push button would be there in FBL1N but here it only displays Open key date,clearing dates.The open key date is mandatory to give though i give clearing dates as i need vendor cleared items.
    Is ther way to change the selection screen to get the option open item and cleared item push button as in FBL1N.
    This is because i was filtering a vendor only for particular doc type only for clearing items but report takes open item too though i meantioned clearing date rate.How to modify the selection screen in sap query report when Logicaldatabase is selcted.

    I need to get only the cleared items.I donot need open items.Then if go for BSIK is it wrong.Should go only for BSAK.
    I couldnt find the table BSAK in logical database KDF.
    Edited by: mysap query on Mar 18, 2009 3:15 PM
    Edited by: mysap query on Mar 18, 2009 3:15 PM

  • How to find Archive data In SAP

    Hi experts ,
    How to find Archive data in SAP throught the following tcodes FTWL & AS_afb.
    Thnx
    Venky

    Hello,
    Transaction FTWL is for the DART files (not actually archived data) that are stored in your archive server.  In order to run a query, or browse the DART file, you would need to "Import from archive" from within FTWL and then browse the file.
    I am not sure what you mean by AS_afb.  Please provide more information.
    Regards,
    Karin Tillotson

  • SAP query reports

    why  reports naming contains ==== in sap query reports????

    Dear Changhal,
    Welcome to SDN!
    Do you mean to ask why "====" is in report queries?
    You can create queries by confirming to naming conventions followed by your company.
    Visit [SAP Query|http://help.sap.com/saphelp_nw04/helpdata/en/d2/cb4145455611d189710000e8322d00/frameset.htm]
    Post your queries in relevant Forum.
    Regards,
    Naveen.

  • Transaction code for SAP query reports

    Hi All,
    I am trying to create transaction code for sap query report but couldn't go further.
    1) Created User group in SQ03
    2) Created infoset in SQ03 and assigned that to the user group
    3) Created query in SQ01 using the infoset.
    I executed the report in SQ01 and it is working fine.
    Now I try to create a transaction code in SE93 using the steps mentioned in the following link:
    Assign transaction code to SAP Query (created via SQ01)
    But when try to execute the report using the transaction code, it is giving error message 'User group xxxxxx is not yet created'
    Could any one advice me if I miss something? Or please help me to create this transaction code and transport to production?
    Thanks in advance

    HI,
    based on the thread you've already mentioned:
    In SE93, Create a Paramter Transaction
    -> Transaction = Start_report
    -> In default values, give the below details:
    D_SREPOVARI-REPORTTYPE = AQ
    D_SREPOVARI-EXTDREPORT = Name of the Query
    D_SREPOVARI-REPORT = User Group
    So check if the user group is typed correct in SE93 and check also if the user group exits in the system where you are trying to run the transaction.
    best regards, Christian

  • SAP Query report

    Hi Friends,
    For reporting and documentation reasons I set up SAP Query report which almosts fits our needs.
    Regarding values, what we need is the total value (header or sum of all items) before and after tax.
    I am only able to display the BEFORE TAX VALUE with reference to VBAK-NETWR or VBAP-NETWR.
    is there any possibilty to displays the AFTER TAX VALUE (total value) as well from sales order or invoice?
    Pls keep in mind that I am using SAP query, so i cannot do any coding or calculations.
    Regrards,
    Srikky

    Hello,
      as of my knowledge not. So a different solution could be the following one: in customizing, in "Define and assign pricing procedure", you can assign a subtotal (field T683S-KZWIW) to the price condition item corresponding to the AFTER TAX VALUE. So this value will be stored in the corresponding field of table VBAP (i.e. if you assign subtotal '1' the value of that condition will be stored in field KOMP-KZWI1, and then in the corresponding field of table VBAP-KZWI1).
    I hope this could help.
    Best regards,
    Andrea
    Edited by: abrusa on Sep 13, 2010 2:12 PM

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

  • How many ways we can create authorization for user groups in sap query reports

    Hi Gurus, I am getting a problem when I am assigning users to user group in sap query report .The users other than created in user groups are also able to add &change  the users .So please suggest me how to restrict users outside of the user group.
    Please send me if u have any suggestions and useful threads.
    Thank You,
    Suneel Kumar.

    I don't think it can be done. According to the link below 'Users who have authorization for the authorization object S_QUERY with both the values Change and Maintain, can access all queries of all user groups without being explicitly entered in each user group.'
    http://help.sap.com/saphelp_46c/helpdata/en/d2/cb3f89455611d189710000e8322d00/content.htm
    Although I think you can add code to your infoset and maybe restrict according to authority group, i.e.:
    Use AUTHORITY-CHECK to restrict access to the database based on user.
    Press F1 on AUTHORITY-CHECK to find out how to use it in the code

Maybe you are looking for