Unable to report adhoc query output on HRP tables

Hi All,
I am using adhoc query to report the data from HRP table (customised) but the data is not being picked even though the table has the records. The fields from the field group and the infotype fields are properly mapped but the output is blank.
Any pointers/suggestions on how we can achieve this would be helpful.

@ semvladigo : Thanks for the reply. Could you please let me know further info on the standard functionality.
@ Albert : Thanks for the input. I am in PA and using PNPCE but it is not working with this LDB. 
                  When I query (in PCH) I am not getting results when I select 'ALL' in the reporting period.
                  It worked fine when infoset built in PCH LDB with reporting period other than 'ALL' (like Today, Keydate).
                  Please advise.

Similar Messages

  • Change layout of Adhoc query output list for Custom infotype

    Hi All,
    The fields in the Infoset query output on a custom infotype are aligned with the fields u2018payment typeu2019 and u2018amountu2019 appearing repeatedly(in columns) as declared in the Infotype and the output will be a long horizontal list.
    Instead, the requirement is that the output list should show vertically so that If I choose u2018Payment Typeu2019 and u2018Amountu2019 as output fields, it will show a long vertical list as in the case of a standard infotype (IT0008).
    Also, this way enables user to use Payment Type as a selection criteria so as to just pulling the needed payment type. When we use IT0008 in the infoset it works fine but in custom IT it does not work.
    Any pointers/suggestions on how we can achieve this would be helpful.

    Hi yu liang,
                     You can find vendor list having Vendor No. & without showing total liability for every vendor.
    after executing the report,
    1.You need to select "change layout (ctrl+F8)",
    a small window comes, it has two part -> column content & hidden fields.
    then u select "Vendor" from hidden field & move it to column content.
    2. at column content there is a column named "Total". u need to remove check for your column name "amount".
    now select "copy" button or enter. u will find the req. report.
    u can save it also by ur name.
    hope its helpful to u.......
    plz, reward points as a way of thanks if helpful...

  • Adhoc query based on HRP inofytpes with already existing PA

    Hi Experts,
    Is it possible to build a adhoc query based on the combination of PA & OM infotypes.
    Thanks in Advance
    Regards,
    IFF

    Hi,
    It is very much possible. Use the Logical database PCH for this while creating the infoset.
    Br/Manas

  • App-V Reporting: SQL query for Excel Pivot Table to display App Usage (H/M/S)

    I recently posted this in the Gallery.  If anyone has any modifications or enhancements please feel free to contribute!  One thing that I'd like to be able to add to it is the ability to only display information for applications/packages that are
    still published, so if anyone can figure out a crafty way to do it...  Thanks!
    http://gallery.technet.microsoft.com/App-V-Reporting-SQL-query-6695d3c3

    I recently posted this in the Gallery.  If anyone has any modifications or enhancements please feel free to contribute!  One thing that I'd like to be able to add to it is the ability to only display information for applications/packages that are
    still published, so if anyone can figure out a crafty way to do it...  Thanks!
    http://gallery.technet.microsoft.com/App-V-Reporting-SQL-query-6695d3c3

  • How to adjust adhoc query when the database table changed.

    DearFreinds,
            I have created an adhoc Query , however after few days there was a requirement to remove some fields and change the length of some fields . Now the Adhoc query showing as to adjust , however when iam trying to adjust nothing is happening. Could any one let me know how to adjust with the table strucutre in the adhoc query.
    Regards
    madhu.

    Hi Sumit,
           Yes i have adjusted the database from se11 itself by going into utlity > adjust database . However i can still see the
    adhoc query -> infoset asking me when iam trying to go in change mode saying the database table has been changed do you want to adjust . 
    I have adjusted by going to more functions still there is no change. Please let me know what exactly i have to do.
    regards
    madhu

  • Matrix Report 's Query Output is not as Toad...!!!!!!

    Hello,
    i have the following Query
    SELECT ALL
    FINANCIAL_YEAR_MONTHS.month_desc||' '|| substr( FINANCIAL_YEAR_MONTHS.month_code,4,4)  months,
    PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE,
    CDE_MATERIALS.MATERIAL_DESC, CDE_MATERIALS.PARENT_MATERIAL,
    PLN_PLAN_DISTRIBUTION_WAY.EXPECTED_QUANTITY,
    PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE,
    PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE
    FROM
    PLN_PLAN_DISTRIBUTION_WAY,
    PLN_PLAN_PRODUCTS,
    CDE_MATERIALS,
    FINANCIAL_YEAR_MONTHS
    WHERE
    (PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = PLN_PLAN_PRODUCTS.MATERIAL_CODE)
    AND (    PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = CDE_MATERIALS.MATERIAL_CODE   )
    AND (PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE = PLN_PLAN_PRODUCTS.GROUP_CODE)
    AND ( PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE= PLN_PLAN_PRODUCTS.FIN_YEAR_CODE )
    AND (  PLN_PLAN_DISTRIBUTION_WAY.MONTH_CODE = 
    to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2)))
    AND( to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2)) >= 7 )
    AND (PLN_PLAN_DISTRIBUTION_WAY.DISTRIBUTION_WAY = :P_DISTRIBUTION_WAY )
    AND (PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE = :P_FIN_YEAR_CODE)
    UNION ALL
    SELECT ALL
    FINANCIAL_YEAR_MONTHS.month_desc||' '|| substr( FINANCIAL_YEAR_MONTHS.month_code,4,4)  months,
    PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE,
    CDE_MATERIALS.MATERIAL_DESC, CDE_MATERIALS.PARENT_MATERIAL,
    PLN_PLAN_DISTRIBUTION_WAY.EXPECTED_QUANTITY,
    PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE,
    PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE
    FROM
    PLN_PLAN_DISTRIBUTION_WAY,
    PLN_PLAN_PRODUCTS,
    CDE_MATERIALS,
    FINANCIAL_YEAR_MONTHS
    WHERE
    (PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = PLN_PLAN_PRODUCTS.MATERIAL_CODE)
    AND (    PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = CDE_MATERIALS.MATERIAL_CODE   )
    AND (PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE = PLN_PLAN_PRODUCTS.GROUP_CODE)
    AND ( PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE= PLN_PLAN_PRODUCTS.FIN_YEAR_CODE )
    AND (  PLN_PLAN_DISTRIBUTION_WAY.MONTH_CODE = 
    to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2)))
    AND to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2))<= 6 
    AND (PLN_PLAN_DISTRIBUTION_WAY.DISTRIBUTION_WAY = :P_DISTRIBUTION_WAY )
    AND (PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE = :P_FIN_YEAR_CODE) the Report is a Matrix Report with Group Material_names as Rows and financial Months as Columns and the expected_Quantity as cells of that report matrix.
    Well,the query runs just fine in Toad as
    Months Material_code Material_Desc ..etc.
    July 2007 1 abc
    July 2007 2 def ...etc.
    June 2008 1 abc ..etc.
    June 2008 2 def ...etc.
    But in a report the output of months are a mess not ordered as a fin_year months..
    i tried to change the design of the report from Matrix group to Matrix got same result...
    Any Suggestions pls.
    Regards,
    Abdetu..

    This the Query with order by which doesn't return the required order..
    SELECT ALL
    FINANCIAL_YEAR_MONTHS.month_desc||' '|| substr( FINANCIAL_YEAR_MONTHS.month_code,4,4)  months,
    PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE,
    CDE_MATERIALS.MATERIAL_DESC, CDE_MATERIALS.PARENT_MATERIAL,
    PLN_PLAN_DISTRIBUTION_WAY.EXPECTED_QUANTITY,
    PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE,
    PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE
    FROM
    PLN_PLAN_DISTRIBUTION_WAY,
    PLN_PLAN_PRODUCTS,
    CDE_MATERIALS,
    FINANCIAL_YEAR_MONTHS
    WHERE
    (PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = PLN_PLAN_PRODUCTS.MATERIAL_CODE)
    AND (    PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = CDE_MATERIALS.MATERIAL_CODE   )
    AND (PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE = PLN_PLAN_PRODUCTS.GROUP_CODE)
    AND ( PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE= PLN_PLAN_PRODUCTS.FIN_YEAR_CODE )
    AND (  PLN_PLAN_DISTRIBUTION_WAY.MONTH_CODE = 
    to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2)))
    AND( to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2)) >= 7 )
    AND (PLN_PLAN_DISTRIBUTION_WAY.DISTRIBUTION_WAY = :P_DISTRIBUTION_WAY )
    AND (PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE = :P_FIN_YEAR_CODE)
    UNION ALL
    SELECT ALL
    FINANCIAL_YEAR_MONTHS.month_desc||' '|| substr( FINANCIAL_YEAR_MONTHS.month_code,4,4)  months,
    PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE,
    CDE_MATERIALS.MATERIAL_DESC, CDE_MATERIALS.PARENT_MATERIAL,
    PLN_PLAN_DISTRIBUTION_WAY.EXPECTED_QUANTITY,
    PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE,
    PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE
    FROM
    PLN_PLAN_DISTRIBUTION_WAY,
    PLN_PLAN_PRODUCTS,
    CDE_MATERIALS,
    FINANCIAL_YEAR_MONTHS
    WHERE
    (PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = PLN_PLAN_PRODUCTS.MATERIAL_CODE)
    AND (    PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = CDE_MATERIALS.MATERIAL_CODE   )
    AND (PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE = PLN_PLAN_PRODUCTS.GROUP_CODE)
    AND ( PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE= PLN_PLAN_PRODUCTS.FIN_YEAR_CODE )
    AND (  PLN_PLAN_DISTRIBUTION_WAY.MONTH_CODE = 
    to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2)))
    AND to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2))<= 6 
    AND (PLN_PLAN_DISTRIBUTION_WAY.DISTRIBUTION_WAY = :P_DISTRIBUTION_WAY )
    AND (PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE = :P_FIN_YEAR_CODE)
    ORDER BY months

  • Emailing Adhoc Query Output

    Dear Friends,
    I have a requirement in which HR managers needs to be delivered some reports in his mail early morning. The query to extract the required data is already developed and this can be scheduled early morning to retrive the data. Is there any way to mail him the output directly from the scheduled job without going for any extra ABAP development.
    Regards,
    Mithun

    In the schedule job, there's a button 'Spool List Recipient'. This allows the spool output of the job to be sent to someone (either SAP inbox or external email address) once the background job is run.

  • 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

  • Jump to search term in a query output...

    Hi,
    I have the results of a query outputted in a table. Depending
    on the user, this can be a longish query - maybe 100+ results. All
    these results have a checkbox next to them. The user checks the
    records they need to select, then submits the form to take that
    list of records in the "check" variable to another page which
    processes it.
    What I'd like to be able to do is provide a search box on top
    of this table, for the user to type in a search term in the record
    they want to find. Then, I'd like the page to jump down to that
    record so the user can check it. But here's the kicker - I don't
    want to lose any other already-checked boxes. So the form variable
    needs to persist, even if this is done multiple times.
    Any ideas on how this might be accomplished? I don't mind if
    the search has to be tied just to one field, etc. And I'm not
    asking anyone to write the code for me. Just point me in the
    direction of the right technique/technology, if ya can.
    Thank you!

    Hi,
    It might be worth checking out some of the Ajax libraries for
    this. jQuery (
    http://jquery.com) has a plugin
    called ScrollTo (
    http://plugins.jquery.com/project/ScrollTo)
    that lets you easily scroll to a specific position or element (or
    other) item on a page. The developer has more details on his site (
    http://flesler.blogspot.com/2007/10/jqueryscrollto.html).
    You could use the ScrollTo plugin in concert with one of the
    Auto Complete plugins for jQuery (one of them:
    http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/).
    Hope that helps get you started.

  • Adhoc query for Training & Event mgmt

    Hi,
    Can anybody guide me for design the adhoc query for training & event management. I needto extract data upto attende level from a particular infoset.
    Thanks
    Dadarao.

    Hi,
    I have got a query in AD-HOC query.
    After creating the Adhoc query using the join table functionality the resulting adhoc query does not results any out put.
    What I have done is :
    1.Created a user group through SQ03
    2.Attched user to My user group
    3.Created an infoset using join table functionality(SQ02).
    4.Saved and generated the infoset
    5.Added the user group to the infoset and than run the ADHOC query.
    The table I have used to join is all PA table (For test pupose)
    Though the purpose of the custom infoset is to join PA,OM and E rec infotypes, for testing purpose I have joined only PA infotypes.
    Result:The adhoc query does not gives any out put instead it says no data could be read.
    Could you please tell what else I need to do so that the custom infosets gives an out put.
    Will greatly appreciate your help.
    Thanks and best regards
    Rajeev

  • Organisation Structure and HRP**** table cleansing

    Hi All,
    Please can any one help me with the following:
    1)  The IMG to set Org Structure Number Ranges
    2) Report / Program to clean the HRP tables of a newly instaled SRM Instance
    Regards,
    Abdul Kadir Rajbhoy

    SE38 : RHRHDC00 or transaction code RE_RHRHDC00 = also delete, but with list.
    Re: Delete HRP Objects
    Re: Useful material on 'Org Mgmt' (SAP HR Technical)

  • System unable to read table in Adhoc Query

    Hi Experts,
    I am trying to extract a report based on Infotype 0022 through Adhoc query. Even after maintaining data for IT0022 for a few employees the system is unable to read the educational details of those employees.
    I am unable to trace the defect . can anybody please tell me what could be the reason. I have checked the table PA0022, there the data is been stored.
    Thanks & Regards,
    Smitha

    Hi paul and experts
    actuall im reading data from 0022 infotype .  im using  macro
    rp_provide_from_last p0022 '11' pn-begda pn-endda.
    no data found for this.
    but in pa30 for that particular employee data is there.
    please help me out of this.
    thanks a lot

  • Adhoc Query- problem with the output file format

    Hi Gurus,
    I have a problem in exporting the output of an adhoc query to Excel format.
    The menu option I chose to export the report data into Excel is List>Export>Spreadsheet.
    However,I think I've just pressed the wrong option to export my report and now I can't seem to change it from a HTML file option.
    Can anybody help me correct this output setting.
    Points assured for apt help...

    Hi Sushil,
    There are two ways to save the output in the excel format.
    As you have mentioned, you can use
    List -> Export-> Spreadsheet.
    Then select table. Now the output will open in a spreadsheet.
    The other way is
    List -> Export-> Local File
    Here you need to select the option spreadsheet. Then mention the path where you want the file to be stored. Also mention the format as .xls
    Hope this helps
    Regards,
    Brinda

  • Automating ADHOC query reports to generate Emails

    Hi Experts
    Hope you guys are doing fine.
    I have a requirement where we need to automate the ADHOC query reports to trigger emails with the Excel attachment of the report to a set of users.
    To explain in detail,we have some adhoc queries which are run manually on monthly basis(by our functional guys).Once the output report is generated,they used to download them into Excel document and send that to a set of users as an email attachment.
    Now we are planning to automate the entire process,so that these query reports once set to run on monthly basis should trigger emails to set of users with the excel attachment.
    Now,i am looking for solution on how to proceed on this.Since the program behind the query(which starts with AQ*) is not be a modifiable program,i can write any custom code here.Alternately,i planned to set a background job which runs the query and then use a  custom pgm which reads the spool no for the pgm and then to read the data from the spool into an internal table and then use a FM to send the internal table data as an email attachment.But wasn't sure of what FM's to use to read the spool no. and data from the spool.
    Is there any alternate way to work on this or any suggestions on my assumed process would be really appreciated.
    Thanks

    Ok, here's what you do:
    - Go to T/C: SQ01 and find your query
    - From the menu at the top select Query>More functions>Display Report Name (copy the report name)
    - Go to Transaction SO23 and create a new shared distribution list - give it a name and title, click the dropdown on folder and click the create folder button, give the folder a name and save/green tick.
    - Click on the Dist. list content tab and enter all the external email addresses that the report should go to ( the recipient type should be internet address or via internet or something like that)
    - Go to Transaction SM36 and click on the Job wizard button, go through the wizard entering the program name we copied earlier. In the print parameters section make sure it is set to print immediately, then on the spool list recipients button select the dropdown box, select distributions lists and find the one you created earlier. Define the variants, periods, time etc etc
    - When the job runs it will process the output via SAPConnect (transaction SCOT) you will be able to see the status of the emails by going to transaction SCOT and selecting the menu option Utilities>Overview send requests.
    Job Done, Chillax
    PS: remember the output type of the query in SQ01 needs to be set to excel or whatever you require otherwise a PDF/html attachment will be created in the email.
    PPS: If SAPConnect is not set up in your system speak to your basis guy to set it up - If you don't have any basis resource, it is really easy to set up, plenty of guides around.

  • Adhoc Query: Absence Leave report

    Hi All,
    I am trying to create a Query in Adhoc query for ABSENCE LIST.
    so i have added few columns:
    PERNR Value
    PERNR TEXT
    Personnel area Value
    Personnel area Text
    Personnel sub-area Value
    Personnel sub-area Text
    Company code Value
    Company code Text
    Postion name Text
    Attendance or absence type value
    Attendance or absence type Text
    1. Here when i pick the Position from infotype 0001 it is displaying some default position along with the position
    2. I need the list of employee who has taken leaves, and leave types are picked from infotype 2001. Here i am getting complete list of employees(employees who has not taken leaves)
    So can we prepare a report employees who went on leaves based on the above requirement.
    Please find the attachment.
    Regards,
    Prasad

    On a more serious note,
    A query is a simple spitting out of all the data, based on the fields you have selected, So if atleast one field has a valid value, and "Personnel Number" is one such field, you will get an output in the report.
    What you will have to do is to assign certain key fields as selection fields as well as output fields, when designing the Ad-Hoc query.
    Then use selection criteria to get out only the results you want, for example Absence Type = Annual Leave( don't want to type the abbreviation here), date range of BEGDA - 01.01.2014 - 30.04.2014, for example. Using Employment Status as a Selection field but not an Output field can help with ensuring inactive employees (i.e people with default positions) are not selected.
    I often find that in any case, one always has to download the query output into Excel and do some final manipulations using filters and pivots etc.
    Also, play around with the Key Date  field,  in the query design screen - see what happens if you use "Today" rather than a wider date range.
    Hope this helps.

Maybe you are looking for

  • RAC installation error

    Hi! Can anyone help me with this one? I have trying to installa RAC 10g R2 in Windows Server 2008 R2. I am encountering the error below: OUI-35073: Exception occured while starting service in the remote nodes. Could not start the service 'OracleClust

  • Defining sub workflows

    Hi, I am trying to get wlpi to allow me once a workflow is completed to start another different workflow. Hence I have tried on the done icon to add an action of type start workflow but when the start workflow window pops up there are no workflows th

  • Transferring AppleCare to a new owner

    I purchased an MBP from the Apple store around August when my state held a tax holiday, but due to indecision ended up not using the product at all. I know this is going to sound pretty weird, but it's sitting in my home sealed in its original packag

  • Unity supervised transfer hold music

    In the cisco document http://www.cisco.com/en/US/products/sw/voicesw/ps2237/products_qanda_item09186a0080093c13.shtml it states that Unity places a call on hold and uses the audio file specified in the device pool that contains the voicemail ports. I

  • ESS Infotype change validation

    Hi all. I´m trying to insert an specific validation for the personal data iviews (Bank Information, Family Members...) to achieve an specific task... But I don´t know where should I do that... I cannot find the BAdI, nor... Nowhere to place it. Can y