Ad-hoc query's program lost in SAP 4.7 upgraded box.

Hello,
Does anybody know what happen to the ad-hoc query programs
after upgrading the box of SAP 4.6c to the SAP 4.7 ?
What happen is that I had a transaction that would exec  the program created based on an ad-hoc query and now, after the box was upgraded to 4.7 the program doesn't exist.
Can anybody give me an answer, please?
Regards,
Oli

Hi Oli,
Depending on how AD-HOC it was created.
- If created within DEVELOPMENT CLASS $TMP, sorry mate, but this cannot be upgraded with the system.
- If ad-hoc created as personalized to one user, sorry mate, no automated upgrade possible.
Other causes might be, that your query uses data objects that no longer are available on the system (likely customer developed structures).
Hope this gives you some hints.
Regards,
Rob.

Similar Messages

  • Capture SAP Ad-Hoc query output in report

    Hi All,
    I have to run an Ad-hoc query from report (se38 program) and after execution of that Ad-hoc query I have to capture the output of that query and use in Report.
    I am trying the follwing approach but getting Run time error (internal Error)
    SUBMIT XXXXX EXPORTING LIST TO MEMORY
    Data:
    v_spool like pri_params-plist,
    v_text like pri_params-prtxt,
    v_print_parms type PRI_PARAMS,
    V_valid       TYPE c LENGTH 1,
    v_spool = sy-uzeit.
    v_text = sy-uname.
    call function 'GET_PRINT_PARAMETERS'
    exporting
    destination = 'locl'
    list_name = v_spool
    list_text = v_text
    user = sy-uname
    importing
    out_parameters = v_print_parms
    valid = v_valid
    exceptions
    archive_info_not_found = 1
    invalid_print_params = 2
    invalid_archive_params = 3
    others = 4.
    IF V_valid = 'X' AND sy-subrc = 0.
      SUBMIT SAP_QUERY_AD_HOC
                        TO SAP-SPOOL
                        SPOOL PARAMETERS v_print_parms
                       ARCHIVE PARAMETERS archi_parameters
                        WITHOUT SPOOL DYNPRO
                        WITH p_wsid = 'X'
                        WITH p_bgname = 'ZHR_OM_PA'
                        WITH p_sgname = 'ZHR_PA_PERSONNELADMIN'
                        WITH  p_quname = 'Z_HRDATA' AND RETURN.
    ENDIF.
    Thanks in Advance

    My friend. Runtime error is like saying "it doesn't work please help me". You need to give more details if you want someone give detailed anwser. It's technical forum so please try to explain technical nature of your problem. In other words, what is the dump saying?
    Regards
    Marcin

  • Difference between sap query and sap ad hoc query

    Hello Experts-
    Is there any difference between sap query and sap ad hoc query. If yes, I will appreciate if you can provide some input.
    Thanks,

    Hi,
    SAP Query
    Purpose
    The SAP Query application is used to create reports not already contained in the default. It has been designed for users with little or no knowledge of the SAP programming language ABAP.
    SAP Query offers users a broad range of ways to define reports and create different types of reports such as basic lists, statistics, and ranked lists.
    Features
    The SAP Query comprises five components: Queries, InfoSet Query, InfoSets, User Groups and Translation/Query.
    Classic reporting- the creation of lists, statistics and ranked lists- are covered by the InfoSet Query and Queries components. Other components’ range of functions cover the maintenance of InfoSets, the administration of user groups and also the translation of texts created in the SAP Query.
    All data required by a user for a report can be read from various tables.
    To define a report, you first have to enter individual texts, such as titles, and select the fields and options which determine the report layout. In the WYSIWYG mode, you can edit the lists using Drag & Drop and various toolbars.
    AD Hoc Query
    Definition
    A Web item that enables you to create and change queries in a Web application on an ad-hoc basis.
    Use
    You can use the  Ad-hoc Query Designer Web item in the Web Application Designer to structure Web applications in which you create or change queries. The Web item is as a tool for designing ad-hoc queries in a Web environment.
    In particular it enables you to:
    ·        Create queries by assigning characteristics from an InfoProvider to rows, columns, filters, and free characteristics, and including key figures from the InfoProvider in the key figure structure of the query.
    ·        Restrict or filter key figures and characteristics
    ·        Use predefined key figure structures and restricted or calculated key figures in the query
    ·        Set or change query properties and key figure/characteristic properties in the query
    ·        Create or change conditions and exceptions
    When compared with the BEx Query Designer, the Ad-hoc Query Designer Web item has the following restrictions when creating or changing queries:
    ·        You cannot integrate variables into the query directly.
    However, you can use variables in reusable structures, or restricted or calculate key figures, which are used in the Ad-hoc Query Designer
    ·        The query can contain only one structure. This structure has to be the key figure structure and be in the rows or columns of the query.
    -        You cannot use key figures or key figure structures in the filter.
    -        You cannot define exception cells, since this requires two structures.
    You cannot create the following objects using the Ad-hoc Query Designer Web item:
    -         Reusable structures
    -         Reusable restricted key figures
    -         Reusable calculated key figures
    -        Local calculated key figures
    You can create local, restricted key figures using the Ad-hoc Query Designer Web item.
    You can edit existing queries in the Ad-hoc Query Designer Web item, if the queries adhere to the restrictions laid out above The Ad-hoc Query Designer checks these requirements when loading a query. If the query is too complex, the query can be loaded into the Ad-hoc Query Designer but you cannot change it there. You then receive the appropriate message. You can still check and execute the query.
    "Ad Hoc" is a Latin phrase which means "for this purpose" and in today's parlance generally means "on the fly," or "spontaneously."
    An ad hoc query is a query that is run at the spur of the moment, and generally is never saved to run again. These queries are run using a SQL statement created by a tool or an administrator. So therefore, such a query is one that might suit a situation which is only there for the moment and later on will become irrelevant.
    As queries become more complex, it can be difficult to write them correctly ad-hoc. To help with this, one can instead write the knowledge needed for queries as business rules in English, and then use a system called "Internet Business Logic" to automatically generate and run the SQL queries. One can then get explanations of the results, in English, at the business level.
    Check these links....
    http://help.sap.com/saphelp_nw04/helpdata/en/1f/03223c5f00612be10000000a11402f/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80bf2f79-021d-2a10-5082-dadc79aaa92c
    http://www50.sap.com/businessmaps/27FEEF3A12444F89A8524CCACAF4F5BF.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/15/00a042b443c56ae10000000a155106/content.htm
    Reward points if useful....
    Regards
    AK

  • SAP Query vs. Ad-Hoc Query

    Hi guys,
    Can anyone explain to a newbie like me
    1. what's the difference between SAP query and Ad-hoc query?
    2. Can we link all SAP Queries to tcode and thus access SAP QUeries via Tcode?
    3. Ad-hoc query is unlike SAP query as in it cannot be accessed via Tcode, correct?
    4. Seems to me SAP query works similarly to custom abap queries. Thus, y don't we just used custom abap queries instead?
    5. Are the selection screens for all SAP queries the same? Cause I accessed 3 SAP Queries, and all their selection screen are exactly the same with fields like Object ID, Evaluation Path...
    Message was edited by:
            zhenmin wang

    https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action?pageId=30083
    Please give me reward points...

  • Transaction Code to AD Hoc Query

    I have created an Ad Hoc Query and Given it a name and saved it.
    Next Time when I wanted to execute that query I go to S_PH0_48000510 - Ad Hoc Query , select that query and press on Output to get the result. In between I have selected the setting "Start via selection screen" in Extras>Settings.
    Hence I get into the selection screen and while I execute, I go to the output result.
    What I am looking for is how to assign a transaction code to this query that I have created, so that I execute that transaction code I am directly into the selection screen. By means of this I can skip some of the steps like going to S_PH0_48000510 - Ad Hoc Query and then selecting the query and then the other steps.

    Both the ad-hoc and the SQ01 queries create a program that can be assigned to a transaction.  However, the program name that is generated contains a 2 digit code that is specific to the client you are working on.  This makes it hard to run the same transaction in DEV, QAS, and PRD.  Instead, create a parameter transaction that runs the START_REPORT transaction with parameters set that run the D_SREPOVARI-REPORTTYPE=AQ, D_SREPOVARI-EXTDREPORT=<sap query name in SQ01>, D_SREPOVARI-REPORT=<user groups belonging to the query>

  • Object selection on Ad-Hoc Query

    One of our users has created an infoset based on LDB PCE and selecting PA and PD objects. If this is ran through Ad-hoc query there is the option to restrict selections using "persons along the org structure" which gives the tree repreesentation that the user can then  easily expand and click through.
    If the user runs the infoset through SAP query this function does not seem to be available.
    Can anyone advise if/how to enable this selectin  of org structure positions through the tree structure in SAP query?
    If not, does anyone know if there is a specific reason it's not possible?
    Thanks
    Phil

    Martin,
    In SAP HR we have 3 Logical Data Base which we can use to get the information output as report
    1 . PNP/PNPCE - This database contains PA,TIME,and PAYROLL infotype & Tables (0000 - 0999 & 2000 - 2999)
    2. PCH - this database contains PD infotype and tables (1000  for OM and 5000 for TEM)
    3. PAP - This database contains recruitment infotype and tables (0001,0002, 4000 - 4999)
    When we want to create a query we have to choose from one Logical database only ... if u want the output from different Logical database the it will be development program/report which is done by the Help of technical consulant (ABAP)
    Hope this gives you the general information on ADHOC Query
    In your question you trying to get output from PA and PD both has different database of each
    so the output which you are expecting will not reflect
    even if you create infoset .... the out put shows the values/information of the specified Logical database only rest of the fields will mark as blank in the report.
    Conclution
    if  you want to create reports for Bussiness events, qualifications, Positions all are different objects so you need to create different infoset
    Hope you get some idea
    Thanks and Regards
    Rajeshk

  • Ad hoc query for  om

    Dear gurus,
    could you please tell me that ad hoc query is written by Sap functional people.like sao hr people ,or this is standard one.
    actually my DOJ and Relationship is not showing in that Ad Hoc Query report for OM.
    Pls suggest me what i need to do ,so that it will update,
    Could u pls tell me how to write this Ad hoc Query ?
    regards
    S
    Edited by: smrutipuspa on Sep 23, 2010 1:09 PM
    Edited by: smrutipuspa on Sep 23, 2010 2:03 PM

    Hi S,
    TCD SQ01,SQ02,SQ03
    for this you would have to create usergroup and infoset
    as we know LDB's are special abap program that  combines data from related tables and makes it avilable for query and programs
    Logical Database
    TCD -SE36
    PCH(Personnel Planning),PNP(HR Master Data),PNPCE(HR Master Data (Incl. Concurrent Employment)),PAP (applicant matsre data) are some LDB's(logical databses)
    Infoset are special views of LDB's and determine which tables and/or fields within a table, queries may reference
    http://www.dmgfederal.com/Resources/Articles/Article_SAPR3Infosets.asp
    usergroup are user gruped using the same application aera
    you could also try TCD SQVI-sap query viewer
    http://auditware.cyb.co.uk/downloads/SAPQuery_step_thru.pdf
    http://www.sap-img.com/abap/step-for-using-query-sq01-sq02-sq03.htm
    http://www.insightcp.com/res_15.html
    hope it helps
    No Worries
    KG
    Edited by: SAPenjoy:) on Sep 24, 2010 8:09 AM

  • Ad Hoc Query testing when upgrading to ECC 6.0

    Hi,
    We have a decentralized SAP HR system. Instead of developing custom ABAP reports, we have given permission to superusers to create their own reports using Ad Hoc Query. This has lead to large number of Ad Hoc Queries  (>2000). Techincally speaking, lot of custom ABAP programs.
    We are now upgrading from 4.6C to ECC 6.0.
    Based on your upgrade experience please advise:
    1. Does the upgrade has any affect on the Adhoc Queries. Example: they would not work, need regenerate all queries, PNP or PCH logical databases are missing, Global infosets are missing, etc
    2. Do you have to test all the queries or checking just a few critical ones suffice your testing requirements.
    Your insight is greatly appreciated. Points will be awarded.
    Thanks
    Praful

    Hi,
    In terms of upgradation, you need to take care of all Z programs, i don't think it will afftect your Ad hoc report, nevetheless you have used any custom fields in the report. Always you can reconsile the reports during the upgradation.
    Good Luck
    Om.

  • Out put problem in Ad hoc query reports

    Hi Gurus,
    I am tryting to generate a report through Ad hoc query in S_PH0_48000510 - Ad Hoc Query SAP/Query/HR_ADM - > Selected several options like personnel number / employee name / entry date / leaving date.
    But when we select it shows the input details but when i try for output the entry date / leaving date even the names of the employees are not reflecting.
    But the age/date of birth other fields are coming in output.
    Kindly let me know the solution to get a out put. If there is any changes need to be done in the back end. Pls advice with the path details.
    Thanks & Regards,
    Pradeep Krishnamurthy

    Hi Madhu,
    Yes, I did but out put is not coming.
    Regards,
    Pradeep Krishnamurthy

  • Cannot write to transaction log "C:\Program Files (x86)\SAP BusinessObjects\sqlanywhere\database\BI4_Audit.log

    Hi friends,
    My server Intelligence Agent (SIA) can not start because the database service "SQLAnywhereForBI" can't start also. I got the following error :
    "I . 08/09 20:35:06. A read failed with error code: (1392), Le fichier ou le répertoire est endommagé et illisible.
    E. 08/09 20:35:06. Fatal error:  cannot write to transaction log "C:\Program Files (x86)\SAP BusinessObjects\sqlanywhere\database\BI4_Audit.log"
    E. 08/09 20:35:06. unable to start database "C:\Program Files (x86)\SAP BusinessObjects\sqlanywhere\database\BI4_CMS.db"
    E. 08/09 20:35:06. Error writing to transaction log file
    I. 08/09 20:35:06. Database server shutdown due to startup error "
    inside the database log file.
    Please, can you help me

    I found the solution by following the advice given on the following forum:
    http://evtechnologies.com/transaction-logs-on-sybase-sql-anywhere-and-sap-​​businessobjects-bi-4-1
    In fact, I crushed the BI4_Audit.db and BI4_Audit.log files and I replaced with others that I got from another machine where I installed BO again and where the files are not corrupted . After I logged in to the CMS database by executing the command in the command line:
    dbisql -c "UID = DBA; PWD = mypassword; BI4 Server =; DBF = C: \ Program Files (x86) \ SAP BusinessObjects \ sqlanywhere \ database \ BI4_CMS.db."
    Once connected, I start the command:
    alter database 'C: \ Program Files (x86) \ SAP BusinessObjects \ sqlanywhere \ database \ BI4_Audit.db' alter log off;
    The query runs successfully.
    And that's good, I can be connected to BO smoothly.
    Thank you again Eric

  • How to add an Infotype to an exsting Infoset (ad hoc query)

    Hi,
    How to add an Infotype (Ex. 0025) to an exsting Infoset (ad hoc query)?
    I was trying by clicking on 'Extras' tab & create...I get three options, create field, create table or create structure.
    I am not sure which to use or is there any other way? Pls. let me know the steps...
    Also what is this 'Package', which is aked whenever you create or change an Infoset.
    Pls. suggest.
    Tnx
    SKR

    I was able to add the infotype by adding the table as PA0025 & include all the fields in the field group.
    When I check, I get the following error:
    "Access to PA0025 with sequence no. 01"
    Message Text
       Access to PA0025 with sequence number 01
    Technical data
    Message type__________ W (Warning)
    Message class_________ AQ (Message texts for SAP Query)
    Message number________ 006
    Message variable 1____    Access to PA0025 with sequence number 01
    Message variable 2____ 
    Message variable 3____ 
    Message variable 4____ 
    Message attributes
    Level of detail_______ 4 (Level of detail 4)
    Problem class_________ 3 (medium)
    Sort criterion________ 
    Number________________ 1
    Do we need to input the sequence no. as 00? or is their anything else that I have to maintain?
    Tnx
    SKR

  • Help in Ad-hoc query and Hr form editor

    any body have material links of Ad-hoc query(it means how the reports are generated with Ad-hoc query) and Hr form editor(with examples) plz forward it to me???????????

    Hi,
    HR Ad Hoc Query is the special version of InfoSet Query with the HR object selection.
    You can find the system documentation here:
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/f9/cc9138e4a0341fe10000009b38f8cf/frameset.htm
    However I doubt the use of documentation of the query generator. So what is your concrete question?
    Or in any R/3 via application help of transaction SQ01.
    Also HR580 is a good course.
    Regards,
    Michael

  • Advanced Ad-Hoc Query and formulas

    Hi experts,
    I need to track new hire HR data on a report but am struggling to do this without some excel style formulas...
    Can you use excel style formulas in Ad-hoc query?? E.g. today(). I have run some tests and don't think it is possible...
    So if the hire date is less than 2 months old (from a calendar perspecitve) then I would want the new hire to show with only their current employee data (i.e. reporting period of 'today').
    Does anyone have any ideas of how I can do it or will this require some ABAP to work properly??
    Thanks!

    Hi,
    You can use SQ01, which is actually an enhanced Ad Hoc, but without using ABAP programming.  All Ad Hoc Queries are available via SQ01, but if you make certain entries SQ01 reports are not accessible via PQAH. 
    For your request to bring in data only on new hires within a certain period, you can first create the output you want in Ad Hoc.  Also add the selection fields for Action Type (enter the type for New Hire) and Start Date of the IT0000.  Save your query.  Now access the report via SQ01 entering the User Group and scrolling down to find your report.  Execute the report (green check with clock).  This will bring up a selection screen with your entries from Ad Hoc.  Select the "Save" button.  This will bring in a screen for you to name the selection varient. Name it "STANDARD".  Below this you will see all the selection fileds available with a number of boxes.  Scroll down to the field for your Start Date and under the "Selection Variable" column select "D-Dynamic date calculation".  Then in the far right column (Name of variable) select "Current date +/- days".   Enter the number of days you want to go back - say "-30" for new hires in the past month.  Then save the variable. 
    Now when you run the report (via SQ01) you will automatically select those individuals with a start date within the past 30 days.  No programming needed.
    Paul

  • Addition of new fields and sub dields in ad hoc query

    hey all,
    hey friends i would like to know how to add additional fields and the sub fields in ad- hoc query.
    i had tried sq02 and went on creating new field but it is nt adng there and no options of sub fields are visible.
    note: i am entirely new to sap hr.. so plz try and help me out in a laymans language.

    At the Date Field, there is 1 node call the Additional fields.
    Then Right click the Additional field and choose create >> additional field.
    Then enter the field name, description, Data type and length.
    After that right click the newly created field name and choose code
    Then enter some simple code.
    E.g.
    For IT2006 the table does not provide the quota balance. If order to display the quota balance we can create an additional field call ZBalance. Then at code section enter the code ZBalance = p2006-anzhl - p2006-kverb.

  • Benefit cost reporting in ad hoc query

    Is it possible to use ad hoc query to report on future dated benefit cost changes?  I have tried several different ways but have not been successful.
    I tried changing the date of the reporting period to match that of the effective date for the benefit cost change but the system still outputs the old costs.
    I also tried using the benefit cost calculation date as a selection field and then enter the effective date for benefit change but that did not work either.
    Does anyone have any insight?  Thanks in advance for your input!

    Did you ever find an answer to your question?  I am having the exact same issue.  Unless a new infotype is saved with the dates that coincide with the cost configuration change, I cannot report on the new cost via Ad hoc or SAP query.  The only thing that works is the standard health plan cost report but my users prefer to use query so they can get every field they need.

Maybe you are looking for