Ad hoc query missing amounts

Hi:
I'm having problems in order to obtain amounts from a custom infotype, this custom infotype (9001) is attached to the positions. When I try to obtain information about amounts that I have store in the custom infotype with the ad hoc query, I have the following error:
Error when generating the report (see long text)
Message no. AQ_AD_HOC221
Diagnosis
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.
And I just tried to obtain information of 1 record.
I'm in 640 version.
Thanks in advance!!

Hi Antonio,
Without knowing the structure of your custom infotype, it is difficult to identify the cause of your problem.  I would first start with that - use transaction SE11 and make sure the infotype structure and definition for the requested field are correct and activated. 
Since the infotype is tied to Position, I would create a new PCH based Infoset (SQ02) with the Position as the key.  Then include the IT1001, 1005, 9001, etc as well as the IT0000, 0001, 0002, etc. for Person as Holder.  Generate the Infoset, assign it to your user group (via SQ03) and then create an Ad Hoc Query with it. 
It is also possible the custom infotype may not work in Ad Hoc, but could if the query is created directly in SQ01.  I would also give that a try.  Again, the problem is probably in the custom infotype and the field itself or in the generation of your infoset. 
Paul

Similar Messages

  • Ad Hoc Query Output

    When I access Ad Hoc query (S_PH0_48000510) to run an existing report, instead of selecting the output button right away, I click on Hit List, get the number of records, then I click on display (eyeglasses).  The pop-up window shows me 24 records, all of which I am expecting to see as they fall within my selection criteria.  I select them all, then click on the output button.  Only 7 records show upu2026  And, there are no error messages or authorization messages.  I checked the layout and filter, and everything looks correct.  Does anyone have any ideas as to what I'm missing?  There are no calculated fields; this is just a simple query.
    Thanks in advance!!

    Hi Debbie,
    One thing we did in all of our custom Infosets was to include the start date and end date of every infotype as well as the date changed and who changed it.  Thus, when we run reports that are date specific we can say that the start date and/or end date must fall within that range and we can also output that info. 
    I do not know your data or selection criteria, but the problem may lie with data that is no longer current or "top of stack" that excludes hits from being included in the output.  One example is with IT0000-Actions.  You may be seeking those employees who had a Rehire action since January 1st.  But a later transfer or leave of absence action may now be "top of stack" and the current action, thus is no longer "Rehire",  Your output would only be those whose latest action is Rehire and the others with later actions would be left off.  Adding the start and end date fields will sometimes allow the output of the older Rehire record as would deleting the action type in the selection once the Hit List was maintained in the Reporting Set section.  You would now see the Rehire along with the other actions.
    Paul
    Paul

  • Ad Hoc Query from table PPDIT

    Hi,
    I'm creating an ad hoc query to retrieve data from table PPDIT by filtering the transaction key. This is to get a list of amounts posted to the technical accounts(Transaction key HRA). However, the query output and the output from table PPDIT through SE16 are different. It seems like the query only picks up transaction key HRF. Anyone with any ideas why?

    Hi,
    Than you add the additional field from extras option.
    click on extras tab.
    From there add table add field add structure.
    If you want to add a field write the name of the field and continue.
    suppose the field is matnr.
    Long text = material number
    header = material number
    and in like reference = mara-matnr.
    tablename-field name.
    let me know if this helps you.
    Regrds,
    Nikhil.

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

  • A ad-hoc query tuning

    Hi,
    I have a ad-hoc query generated by OBIEE like below , in production, it runs 4 minture, then start to fetch rows, in staging it runs
    284019 rows selected.
    Elapsed: 00:27:15.26
    --so is there any way to shorten time? thanks
    select /*+ result_cache */ SUBSTR(OC.RECALL_DATE, 5,2) || '/' ||
    SUBSTR(OC.RECALL_DATE, 7,2) || '/' ||
    SUBSTR(OC.RECALL_DATE, 0,4) as created_Date,
    SUBSTR(AF.FINAL_BILL_DATE, 5,2) || '/' ||
    SUBSTR(AF.FINAL_BILL_DATE, 7,2) || '/' ||
    SUBSTR(AF.FINAL_BILL_DATE, 0,4) || ' - B'as bill_Date,
    SUBSTR(AF.WRITEOFF_DATE, 5,2) || '/' ||
    SUBSTR(AF.WRITEOFF_DATE, 7,2) || '/' ||
    SUBSTR(AF.WRITEOFF_DATE, 0,4) ||' - W' as writeoff_Date,
    RF.REGION_DESCRIPTION,
    RL.RISK,
    DA.ACCOUNT_TYPE_DESC,
    C.CATEGORY_DESC,
    DR.DISCONNECT_REASON||' - '||DISCONNECT_REASON_DESC||' - DR' ,
    S.STATE_CODE,
    ST.STATUS_DESC,
    --LOB.LOB_FINALS_DESC||' - LOB',
    AT.U_FINALS_STATUS_DESCRIPTION,
    RC.OCA_REFERRAL_TYPE_DESC,
    DO.U_Agency_Status,
    DO.oca_parent_cd||'-'||oca_parent_desc,
    RR.OCA_REFERRED_REASON_DESC,
    CASE WHEN CR.CREDIT_REPORT_CODE in ('1','2','3','4','N','E', 'O','V','6','7') then CR.CREDIT_REPORT_CODE||' - '||CR.CREDIT_REPORT_DESC ELSE '0 - UNKNOWN' END,
    CL.U_COLLECTOR_CODE,
    -- Enhancement of May release for WR 60615RC2 A2R
    case when AF.RECORDSTATUSIND='A2R' then 'Yes - A2R' else 'No - A2R' end as A2R_Status,
    COUNT(distinct AF.ACCOUNT_ID) AS no_of_accounts,
    SUM(OC.RECALL_AMOUNT) AS amount
    FROM
    T_AGG_CANRET_BS BS,
    F_OCA_REFERRED OC,
    D_ACCOUNT_FINALS AF,
    D_DATE D,
    D_REGION_FINALS RF,
    D_CREDIT_CLASS RL,
    D_DISCONNECT_REASON DR,
    D_CATEGORY C,
    D_STATE S,
    V_D_ACCOUNT_STATUS_FINAL ST,
    V_D_FINALS_ACCOUNT_STATUS AT,
    D_ACCOUNT_TYPE DA,
    D_OCA_REFERRAL_TYPE RC,
    V_D_OCA DO,
    D_OCA_REFERRED_REASON RR,
    D_CREDIT_REPORT CR,
    V_D_COLLECTOR CL
    -- D_LOB_FINALS LOB
    WHERE
    OC.SOURCE_BILL_SUMMARY_ID=BS.BILL_SUMMARY_ID_FINALS AND
    BS.ACCOUNT_ID=AF.ACCOUNT_ID AND
    AF.REGION_ID=RF.REGION_ID AND
    OC.RECALL_DATE=D.DATE_ID AND
    AF.RISK=RL.CREDIT_CLASS_ID AND
    AF.LOB_ID=DA.ACCOUNT_TYPE_ID AND
    BS.CATEGORY_ID=C.CATEGORY_ID AND
    AF.DISCONNECT_REASON_ID=DR.DISCONNECT_REASON_ID AND
    AF.STATE_ID=S.STATE_ID AND
    -- AF.LOB_ID_FINALS=LOB.LOB_FINALS_ID AND
    AF.BILL_STATUS_ID=ST.ACCOUNT_STATUS_ID AND
    AF.ACCOUNT_STATUS_ID=AT.FINALS_ACCOUNT_STATUS_ID AND
    RC.OCA_REFERRAL_TYPE_ID=OC.OCA_REFERRAL_TYPE_ID AND
    DO.OCA_TIER_ID=OC.OCA_TIER_ID AND
    RR.oca_referred_reason_code=OC.RECALL_REASON_ID AND
    CR.CREDIT_REPORT_ID=AF.CREDIT_REPORT_ID AND
    CL.COLLECTOR_ID=OC.COLLECTOR_ID AND
    OC.RECALL_DATE > 19000101 AND
    UPPER(RR.OCA_ACTION)='RECALL' AND
    CL.COLLECTOR_CODE <> 'FINAL_SYS_COL'
    ---AND BS.LAST_QTS_UPD_DT > to_char(trunc(sysdate)-7,'YYYYMMDD')
    --AND CR.CREDIT_REPORT_CODE= CASE WHEN CR.CREDIT_REPORT_CODE in ('1','2','3','4','N','E','V','6','7') then CR.CREDIT_REPORT_CODE ELSE 'O' END
    GROUP BY
    SUBSTR(OC.RECALL_DATE, 5,2) || '/' ||
    SUBSTR(OC.RECALL_DATE, 7,2) || '/' ||
    SUBSTR(OC.RECALL_DATE, 0,4) ,
    SUBSTR(AF.FINAL_BILL_DATE, 5,2) || '/' ||
    SUBSTR(AF.FINAL_BILL_DATE, 7,2) || '/' ||
    SUBSTR(AF.FINAL_BILL_DATE, 0,4) || ' - B',
    SUBSTR(AF.WRITEOFF_DATE, 5,2) || '/' ||
    SUBSTR(AF.WRITEOFF_DATE, 7,2) || '/' ||
    SUBSTR(AF.WRITEOFF_DATE, 0,4) ||' - W' ,
    RF.REGION_DESCRIPTION,
    RL.RISK,
    DA.ACCOUNT_TYPE_DESC,
    C.CATEGORY_DESC,
    DR.DISCONNECT_REASON||' - '||DISCONNECT_REASON_DESC||' - DR',
    S.STATE_CODE,
    ST.STATUS_DESC,
    -- LOB.LOB_FINALS_DESC||' - LOB',
    AT.U_FINALS_STATUS_DESCRIPTION,
    RC.OCA_REFERRAL_TYPE_DESC,
    DO.U_Agency_Status,
    DO.oca_parent_cd||'-'||oca_parent_desc,
    RR.OCA_REFERRED_REASON_DESC,
    CASE WHEN CR.CREDIT_REPORT_CODE in ('1','2','3','4','N','E', 'O','V','6','7') then CR.CREDIT_REPORT_CODE||' - '||CR.CREDIT_REPORT_DESC ELSE '0 - UNKNOWN' END,
    CL.U_COLLECTOR_CODE,
    -- Enhancement of May release for WR 60615RC2 A2R
    case when AF.RECORDSTATUSIND='A2R' then 'Yes - A2R' else 'No - A2R' end;

    jerrygreat wrote:
    Hi,
    I have a ad-hoc query generated by OBIEE like below , in production, it runs 4 minture, then start to fetch rows, in staging it runs
    284019 rows selected.
    Elapsed: 00:27:15.26
    --so is there any way to shorten time? thanks
    select /*+ result_cache */ SUBSTR(OC.RECALL_DATE, 5,2) || '/' ||
    SUBSTR(OC.RECALL_DATE, 7,2) || '/' ||
    SUBSTR(OC.RECALL_DATE, 0,4) as created_Date,
    SUBSTR(AF.FINAL_BILL_DATE, 5,2) || '/' ||
    SUBSTR(AF.FINAL_BILL_DATE, 7,2) || '/' ||
    SUBSTR(AF.FINAL_BILL_DATE, 0,4) || ' - B'as bill_Date,
    SUBSTR(AF.WRITEOFF_DATE, 5,2) || '/' ||
    SUBSTR(AF.WRITEOFF_DATE, 7,2) || '/' ||
    SUBSTR(AF.WRITEOFF_DATE, 0,4) ||' - W' as writeoff_Date,<snip>
    OC.RECALL_DATE > 19000101 AND<snip>
    GROUP BY
    SUBSTR(OC.RECALL_DATE, 5,2) || '/' ||
    SUBSTR(OC.RECALL_DATE, 7,2) || '/' ||
    SUBSTR(OC.RECALL_DATE, 0,4) ,
    SUBSTR(AF.FINAL_BILL_DATE, 5,2) || '/' ||
    SUBSTR(AF.FINAL_BILL_DATE, 7,2) || '/' ||
    SUBSTR(AF.FINAL_BILL_DATE, 0,4) || ' - B',
    SUBSTR(AF.WRITEOFF_DATE, 5,2) || '/' ||
    SUBSTR(AF.WRITEOFF_DATE, 7,2) || '/' ||
    SUBSTR(AF.WRITEOFF_DATE, 0,4) ||' - W' ,Like others I had issues with the formatting, you should fix that. I've a question and a suggestion
    1) You use the result cache hint (on an ad-hoc query!!? but never mind?) Perhaps it runs in prod in 27 mins the first time and then 4 mins.
    2) Make your dates use the date datatype. Then you can avoid the horrible functions where they hurt and make things clearer.
    Otherwise you'll need to post the usual formatted using {code tags} execution plans from both prod and dev.

  • Questions in Ad Hoc Query & How to Configure the EEO standard reports

    Hi all,
      I have a  question in Ad hoc query report in HR.
    <b>How to:</b> Get a list of the total number of employees included in a particular report at the end of the report. Ex: If i create and run a report for salaried employees, sorted out by company codes, how can i get a sub-total and total no. of employees listed in the report.
    I tried Ranked format, but when you print the report it doesn't retain the report name on the top.
    -->I have a question regarding the Standard reports for EEO and AAP
    <b> How do I</b>
    1. Start configuring these report
    2. What are the things i should have before configuring it in IMG
    If anyone can provide me with some documentation regarding the EEO and AAP report configuration that would be great.
    Thanks in advance.....
    Harish

    This can be done using the security for the Infoprovider,  provide the users access to create queries only for that Infoprovider.

  • 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

  • How to disable Wizard in Ad-hoc Query Designer

    Hi everybody,
    I am using the Bex Ad-hoc Query Designer in a web application. The users should be able to define their own queries, but just for one info provider. I selected the info provider in the properties of the ad-hoc query designer in the web template.
    Now the users are able to create queries for all info providers with the wizard.
    Is it possible to disable the wizard or to disable all buttons at the top of the ad-hoc query designer.
    Thanks in advance,
    Joerg

    This can be done using the security for the Infoprovider,  provide the users access to create queries only for that Infoprovider.

  • 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

  • How to activate Show Set Operations in Ad Hoc query

    When I go into ad hoc query using an infoset I created the Extras > Show Set Operations and Switch off object selection functions are greyed out and I cannot select them.  On another infoset these functions are available for selection.
    Is there some setting in the info set creation that allows these function to be available for selection?

    closing question

  • US Withholding tax report for 1099M missing amount

    HI all,
      When i run the 1099M Listing using S_ALR_87012143 for year 2009 with clearing date of 1/1/09 to 12/31/09 for one vendor,
    it shows the cleared and open items TOTAL correctly.  This includes one document with posting date of 12/31/2008 and the clearing date is 1/6/2009.  The rest of the included documents are with 2009 posting dates and clearing dates.
       However, when i run the US: WIthholding tax report for 1099M for this vendor for 2009, although the clearing date is 1/1/09 to 12/31/09, it did not show the correct total.  It is missing the amount for one document with posting date of 12/31/2008 and clearing date of 1/6/2009.    Is there anyway i could get this missing amount to be included for the year 2009 ?
    The tax report is using:  S_PL0_09000314 ( RFW1099M ).
       Please advise.
    thanks
    Joyce

    no replies

  • How to make a custom field as text as well as value fied in ad hoc query

    hi,
      i have created a custom infotype 9004 in which the custom field contain the code values, and the text of this code values are maintained in another ztable.
    when i am viewing this infotype in Ad hoc query i am able to see this fields as only value fields and hence i am unable to get text for this field i.e when we right click on this field only the value option is enabled and the text option is disabled, both these options are enabled in some other standard fields like pernr(personnel no), persg(employee group),persk(employee subgroup).
       can anybody suggest me how to enable both these options for custom fields.

    Assign you table of text as a table text to the data element/domain of your custom field or thru external key on your infotype.
    Query is able to analyse these links.
    Regards.

  • 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

  • Custom code in HR Ad Hoc query

    Hi Friends  ,
    I am facing one issue where the custom ad hoc query is giving incorrect results so I have to overwrite the values in available  internal tables with my own logic , But I am unable to write the code at right point through Extras>create>code  path in SQ02   the values are populate after the point where i can right code . Request you to kindly help me .
    Thanks & Regards
    Gaurav Deep

    Hi,
    Write the coding in End-of-selection(before list) event. Your internal table would not be changed after this point.
    Regards,
    Srini.

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

Maybe you are looking for

  • Automation Data in Logic 8

    Hi, I apologise if this answer has been given ad nauseum ad infinitum in advance, but I am wondering how do I copy automation data along with a section of audio/midi? Moving it is easy enough but copying that data and pasting it at a particular point

  • For loop taking more than 24 hours to complete

    Hi Frens, This for loop took close to 24 hours to complete.I cant seem to detect the problem.Can someone help to advice? vpath := CS_UTILS.GET_UTL_PATH ; For Rec in Lot_Ship_Assy_Filename Loop v_sysdate := to_char(sysdate-1,'YYYYMMDD'); Filename:= Re

  • GPS in Syria ( middle - east )

    Hi , i have a big problem and i need help : i live in syria and the GPS service are forbidden here, i want to buy nokia 5800 XMusic,but all the phones i found INCLUDED with this note in the box : ( gps disabled)!!! and i need to know if the gps chip

  • Getting error 500--internal server error...Please HELP!!!

    I am not familiar with JAVA language at all but would like to learn it. At this time I am needing some assistance regarding this error 500. My log shows: <Error> <HTTP> <202-maxdev-eo> <MAXIMOSERVER> <ExecuteThread: '24' for queue: 'weblogic.kernel.D

  • NW ABAP - Error Message: Signal c00 received by operating system

    Hi, I have a problem starting the NSP instance. I have installed JAVA trial and then ABAP Trial. The SAP Management Console form the JAVA Installation recognizes the ABAP Installation and adds an Application Server entry. Starting the JAVA instance i