Adhoc Query error AQ_AD_HOC 221

Hi All,
I have added 7 fields with char1 as value in th it0077 group in the additional filed. My problem is while using the adhoc query output when i select only the infotype 77 fields i am getting the following error
Mesage ID: AQ_AD_HOC Message number: 221
Error when generatimg the report (see long Text).
but when i select any other infotype fields and also 77 infotype fields then its coming fine. I dont know where i m doing wrong.
I have used LDB PNPCE, and in the coding part of the additional fields i am using rp_provide_from_last.
Please let me know where i am going wromg.
Thanks and Regards,
Salish Nair

Hi,
There may be many reasons for that issue. Can you please debugg the code to more deeper. Put break point in perform generate_report in the Fm AQ_INT_SAVE_QUERY_DEFINITION.
Procedure
If the selection screen is too large, you need to reduce the number of your selections.
Make sure that the assigned InfoSet is correct. The name of the assigned InfoSet is stored in the menu option 'Extras -> Template Information'.
Output at least one field. Otherwise you will not be able to save or generate reports.
If you do not have this problem, execute the query using the 'Output' function.
Otherwise, there is an error in the InfoSet Query.
Thanks & Regards,
Sandip Biswas

Similar Messages

  • Adhoc Query : Error during selection; check the selection conditions

    Hi
    We have a report set-up and which we want to run using our adhoc query report tcode S_PH0_48000513
    The report, has a few different selection criteria in it to look at all action IT screen data in the system for ee's in specific personnel areas. There is also a criteria to allow us to paste in specific employee numbers we are interested in. The issue I am facing is that over about 3000 ids, the system automatically returns me a message when I click on the Output button to run the report which states:
    Error during selection; check the selection conditions
    Message no. PAIS206
    I am not sure why this is happening. The selection criteria are fine and the other day I ran the report and I experienced no issues. The report ran successfully. Now though, if I try and paste in all the ids I am interested in (about 8000) I get this message straightaway.
    Can anything be done to overcome this issue?
    Any advice would be much appreciated.
    Nicola

    Hi
    The message in full is:
    Error during selection; check the selection conditions
    Message no. PAIS206
    Diagnosis
    A runtime error occurred during dynamic selection.
    System response
    The runtime error will be caught; no short dump will be created. This error should not occur as a rule. However, very large select statements may trigger the runtime error SAPSQL_STMNT_TOO_LARGE or DBIF_RSQL_INVALID_RSQL. There is no way to prevent this happening. In this case, the error can only be caught.
    Procedure
    Check the selection conditions to see whether the error was caused because the option "Import from text file" included too many objects in the "Multiple selection" dialog. If this is so, you must limit the number of individual values.

  • SQ01 SAP adhoc query error

    Hi,
    We face a very peculiar problem. A particular user is not able to
    execute the SQ01 queries for some reasons. All the other users are able
    to execute the queries correctly.
    When this particular user is trying to execute the query, he gets an
    error message that says
    "No archive information found for object type and document type"
    The details of this error message is as follows:
    No archive information found for object type and document type
    Message no. PT019
    Diagnosis
    No information was found about optical archiving. This may be due to
    either of the following reasons:
    1. No valid archiving parameters were passed
    2. Your system is not configured for optical archiving
    System response
    Processing is cancelled.
    Procedure
    Specify valid archiving parameters or check whether your system is
    configured for optical archiving.
    Please let us know why this error is coming and that too for this user
    only. We've checked the other settings like Infoset - user-group
    assignments etc which are perfectly fine.
    Can anyone figure what could be the issue?
    Thanks & regards,
    Sam

    Hi to all,
    I have the same problem as you. I have an user that cannot execute any query. When this particular user is trying to execute the query, he gets an
    error message that says
    "No archive information found for object type and document type"
    The details of this error message is as follows:
    No archive information found for object type and document type
    Message no. PT019
    Diagnosis
    No information was found about optical archiving. This may be due to
    either of the following reasons:
    1. No valid archiving parameters were passed
    2. Your system is not configured for optical archiving
    System response
    Processing is cancelled.
    Procedure
    Specify valid archiving parameters or check whether your system is
    configured for optical archiving.
    Please let us know why this error is coming and that too for this user
    only. We've checked the other settings like Infoset - user-group
    assignments etc which are perfectly fine.
    IT IS THE SAME ISSUE.... PLEASE CAN ANYONE TELL ME THE SAP NOTE ... OR HOW TO FIND IT... HOW TO FIND THE TABLE ENTRY AND DELETE IT
    Moderator message - Welcome to SCN.
    Moderator message - But please do not use all caps or use words like ASAP - everyone's problem is important
    Edited by: Rob Burbank on Sep 23, 2009 5:03 PM

  • ADhoc query : reporting error

    Hi Experts
    I am getting an error with Adhoc query.
    When ever i open a report in the transaction code S_PH0_48000513,the query is not allowing me to open the report.
    Any help in this regard wud be appreciated.
    thanks

    Hello,
    Please be sure that you are using right <b>Work Area</b> and <b>User Group</b>.select the query and double click on the infoset name. I hope it will work.
    please reward points if the answer helps you.

  • No user group created - Adhoc Query transaction error

    Hi there,
    Whenever I try to access the Adhoc Query transaction S_PH0_48000513 i get the error "No user group created". The required user groups are present in the system.
    Any idea why am I getting this error?
    Regards,
    Anjali.

    Hi Anjali,
    Pls check if the infoset of your query is assigned to the user group through SQ02-> Role/User gr. Assignment.
    Regards,
    Dilek

  • Problem with a Currency field in Adhoc Query - HR

    Hi,
    I have an Adhoc query that uses Custom infotype fields (Z infotype and z fields).
    The currncy field also has a reference field in the infotype (of type waers).
    Wehen we try to get the ouput of the Adhoc Query it gives following error:
    The report cannot be generated because the internal description is invalid or incomplete, or because the selection screen is too large.
    Regenerate the assigned InfoSet, and read the log. If the InfoSet is OK, make sure that at least one field is given as output.
    If you used the 'Refresh' icon to start the query, use the 'Output' menu option to execute the query. This gives you a full screen display of the data.
    If an output was generated, the query cannot work with actual data in the construction view. In this case, always use the 'Output' function to execute the query.
    I have already tried a number of solutions:
    1> Regenerate the infoset...
    2> make the field as an additional field and write my own code for it (the error comes before the code as i kept a breakpoint but it stopped before that)
    if i add other fields of this infoset instead of this field, then those appear in the output.
    Any solutions ??
    thanks in advance,
    Anuj

    Hi,
    Is the problem not clear or no one has an answer?
    Please reply with some suggestions..
    Regards,
    Anuj.

  • AdHoc Query Issue

    Hi Gurus,
    I am running 1 Adhoc Query.We are getting an error in Job description.
    We are passing Job code as input.For that job code it is not displaying Corresponding Job description.
    Ex :  Job Code -  - - -  1126
    This is the Data avilable in table M_PLOMC.
    Required Output  :  YOUTH SERVICE SPECIALIST    OTYPE2  =  C
    Current Output  :  ELEM TEACHER                           OTYPE2 =  S
    I specified OTYPE2 as C in the Infostet Code  to identify the Job description . SAVE and Generate
    i created new quey i can see the change code.
    If i run the Program behind the Query from SE38 it is displaying output Correctly.
    But if i run Query directly from SQ01 no Output.
    Bcaz of this Adhoc query also displaying No output.
    Please help me...
    What is this the difference in running program behind the Query and Running directly the Query?
    Here C specifies JOB.
            S specifies POSITION.

    Hi
    The program name is decided at the runtime...
    Might be you have taken the program name before doing some modifications to the adhoc query..
    Please check if the program name generated cuurently and the program name you are using the same...
    Thanks
    Sushmitha

  • How do i set up adhoc query?

    Hi all,
    When i click the adhoc query the system gave me error "No user Grup Created". I was able to use it for day to day reporting in my previous company, but now i'm facing a fresh client (different company) so what are the steps to set up the ad hoc query so i can make report for all infotype available. Thanks.

    Hi,
    In transaction SQ03 make sure that your user ID is assigned to created by you user group.
    Also you can assign default user group using parameter AQB. Check System > User Profile > Own data.
    Cheers

  • AD Hoc Query Error

    Hi All.
       While trying to access Adhoc Query I am getting an error message-  'No User Group Created'.
    I already have user group created in the system. Is there some separate user group that has to be created for Adhoc Query.
    Dear
    Shruthi
    please check the other thread which is on the same topic Adhoc Query
    Please go through these threads,
    http://shafiq.us/sap/index.php?view=article&id=54%3Aadhoc-query&option=com_content&Itemid=61
    http://www.insightcp.com/res_15.html
    http://www.sap-img.com/abap/step-for-using-query-sq01-sq02-sq03.htm
    http://www.dmgfederal.com/Resources/Articles/Article_SAPR3Infosets.asp
    http://auditware.cyb.co.uk/downloads/SAPQuery_step_thru.pdf
    Edited by: Moderator

    Hi Naveen,
    The connectors are setup and we are able to monitor other tables but not this particular table TBTCO.
    We have already added the table and the required fields into the Data Source. We are getting this error when running the query after that.
    Is this because of the Delivery Class L of the table TBTCO?
    Thanks,
    Soumya

  • Adhoc Query iview for IT0006 and IT0021

    Hi All
    SAP has given page in MSS for IT0006 and IT0021 - 'Generic iview Test Page'. This page has 3 iViews : one for employee search , second for IT0006 and third for IT0021. This page is working ok and retrieving data from back end.
    But If I replace IT0006 or IT00021 query with my own query then the error on Page is 'System cannot retrieve data'
    SAP standard query given in iview property is MSS_IT0006, If I replace this query with my query ZMSS_IT0006 then I get above error.
    I have created query ZMSS_IT0006 in  work area:- global , usergroup:- /SAPQUERY/MS
    Is there any aditional config need if we replace standard SAP query by our own query?
    Amit.

    in the adhoc query we can select the periods based on the frequency but the dates will not get default
    As in the Pay roll driver the dates get defaulted based on the settings made in Control Record Status
    so i dont think this is possible thru Standrad
    let wait for expert views

  • Defining Switches for HR Adhoc Query

    Good Morning,
    I have the following doubts.
    I am reading in a documentation  the process for Define Switches in Adhoc Query.
    The definition of switches is located within the same dialog, where Coding has to be stored, that should be executed at Event DATA. You can use function u2018Gotou2019 -> u2018Codeu2019 -> u2018Datau2019 to access this dialog. All switches are defined using a dedicated syntax:
    NAME_OF_SWITCH = 'value'
    Whereas NAME_OF_SWITCH has to be replaced be the name of the switch and the value has to be specified using single quotation marks. Furthermore, each line containing the definition of a switch has to start with the prefix *$HR$.
    For example the proper definition of the switch LAST_REORD_ONLY with value u2018Xu2019 looks like:
    *$HR$ LAST_RECORD_ONLY = 'X'
    There exists two different types of switches: switches that
    However, I do the following steps:
    1.T.Code SQ02. In the event DATA.
    2. NAME_OF_SWITCH = 'value' , ie TEST = 'value'.
    3.$HR$ LAST_RECORD_ONLY = 'X',
    The system send error in the moment of Check Code.
    "The last statement is not complete (period missing)"
    Regards

    *$HR$ [COMMON].
    *$HR$ PERSON_ONLY_ONCE = 'X'
    Regards

  • Logical database in adhoc query

    Hello All,
    Can anyone tell me what is the logical database in adhoc query?

    Hi
    When you create a query , you have to select an infoset. Infoset can be considered as a source from which data is populated in the Query Fields.
    Infosets are created from Transaction SQ02.
    There can be four methods through which an Infoset can become a source of data:
    1.  Table join ( By joining two or more tables from Data dictionary)
         example: Joining tables PA0001 and PA0006 on Pernr to get a one resultant dataset
    2. Direct read of Basis Table ( Like PA0001 as a source for data in Infoset )
    3. Logical Database ( A Pre-written Program by SAP that extract data from clusters, tables taking care of authorizations and validity periods)
    Example : Logical database PNP, PNPCE (Concurrent Employement),PCH ( LDB for Personnel Development Data)
    Custom Logical DBs can be created in T_Code SE-36.
    4. Data Retrieval by a Program ( Custom code written by ABAP developers which will collect and process data) . This program has a corresponding Structure in data dictionary and the fields of this structure will be used in query)
    Reward Points, if helpful.
    Regards
    Waseem Imran

  • Issue in adhoc Query

    Dear All,
    When i am running adhoc query for a particular infotype iam getting fine.
    My issue is iam not getting the start and end date of the record.
    can any body help me out how to get the start date and end date of each record.
    Thanks in advance
    Regards
    Ananya.K

    Hi,
    If you want to add the dates to the output of the querry, While creating/editing the query, you should add feilds ENDDA and BEGDA for the infotype to get the start and end date correct.
    If this does not answer your question, could you explain your query in detail?
    Thanks,
    Dhiraj

  • Problem in Adhoc Query's set operation functionality.

    Hi Experts,
    I am facing problem executing Adhoc Query's set operation functionality.
    In Selection Tab, following operations are performed :-
    Execute a query and mark it as 'Set A'.(Say Hit list = X)
    Execute another query and mark it as 'Set B'.(Say Hit list = Y)
    In Set operation Tab, following operations are performed :-:-
    Carry out an Operations 'Set A minus Set B'.
    which results in Resulting Set = Z.
    Transfer the resulting set 'in hit list' and press the copy resulting set button.
    In Selection Tab, Hit list is populated with Z.
    And when output button is pressed, I get to see 'Y' list and not 'Z' list.
    Kindly help.
    Thanks.
    Yogesh

    Hi Experts,
    I am facing problem executing Adhoc Query's set operation functionality.
    In Selection Tab, following operations are performed :-
    Execute a query and mark it as 'Set A'.(Say Hit list = X)
    Execute another query and mark it as 'Set B'.(Say Hit list = Y)
    In Set operation Tab, following operations are performed :-:-
    Carry out an Operations 'Set A minus Set B'.
    which results in Resulting Set = Z.
    Transfer the resulting set 'in hit list' and press the copy resulting set button.
    In Selection Tab, Hit list is populated with Z.
    And when output button is pressed, I get to see 'Y' list and not 'Z' list.
    Kindly help.
    Thanks.
    Yogesh

  • Problem in adhoc query

    Hi All,
    This is regarding a problem in the adhoc query.
    For one adhoc query in the selection field only personnel number is there. The adhoc query selects from 0022-infotype.In this case if the reporting period is ALL, all infotype records belonging to 0022 infotype are selected. Even if the end date of the infotype record is less than the initial date of Org.assignment.
    For the second adhoc query in the selction field only
    personnel area is there. In this case the adhoc query doesnot select infotype record belonging to 0022 infotype
    if the end date of the infotype record is less than the Org.assignment.
    Can anyone explain me this strange behaviour.
    Points will be rewarded.
    Regards,
    Aravind

    Some more additional info about the problem.
    Suppose in the selection screen there are 4 fields
    Company code, Personnel area, Personnel sub area and Personnel number.
    If you fill both Personnel subarea and personnel number,
    data record belonging to education infotype but whose end date is greater than the start date of Org.assignment
    infotype is not selected.
    But if you fill only personnel number the same data record belonging to education infotype is shown with blank values for Org.assignment.
    I tried debugging and found out that in the first case
    since there is no Org. assignment record for the time period of the education infotype nothing is shown.
    In the second case, it is allowed to be shown with blank values for Org.assignment.
    Any explanation for this behaviour?

Maybe you are looking for

  • Office 2013 VL and app-v 5 SP2 on RDS server - package add fails with script error

    We have used the MS Office Depolyment Tool for click-to-run to download the latest Office 365 version, and flatten it into an app-v 5 package - not a problem. When we try to add the package to our client machine (Server 2008R2 running the app-v 5 SP2

  • Airport Express No Longer Recognized in Airport Utility

    I have an Airport Extreme (version 7.3.2) that I is connected to my cable modem and a pc in my basement. I have an iMac in a separate room on my second floor that accesses the internet wirelessly via the Airport Extreme. I also have an airport expres

  • Can't find my ipod playlist on the sourcelist to update my music?

    I previoulsy had my setting as manual sync due to having more music that will fit on my ipod. I have not updated for sometime but for some reason my ipod playlist is no longer there and i can't update it? any ideas on what i need to do?

  • Cursor name visable property on xy graph: name overlays cursor point.

    I have an XY grpah set up, and I realized that when i apply the name visable attribute to the cursors programmiably, the name seems to overlay teh cursor, being right on top of it. Yet if i do it manualy through the cursor legend, it shows it on top.

  • JSP: attributes for body ?

    I never used JSPs all that much and mostly worked with servlets. I just wonder (because it's hard to find anything about it): how would I e.g. add an ununload event handler to a <body> tag? Whatever I do, the JSP generates header and body itself and