Ad hoc query without personnel no

hi,
    In Ad hoc query t.code S_PH0_48000510 ,infoset(/SAPQUERY/HR_ADM) when I select personnel no & issue output, system is displaying personnel name instead of personnel no. Is there any changes need to be done or is it a system bug ECC6.
Regards,
Karthik.k

Defining ad hoc query you can select personnel number as output field by right clicking on "Personnel number" in "Key fields" group. In the context menu you can find "Output" and three possibilities:
1. Only text - which is default and means an employee's name,
2. Only value - which means personnel number,
3. Value and text - in this case two columns are displayed: personnel number  and the employee's name.
Regards,
Renata

Similar Messages

  • Problem in Ad Hoc Query displaying Personnel Number field

    Hello,
    while creating a query through transaction S_ph0_48000510 I select for display the field "Personnel Number". However while running the query , in the results part , under the field "Personnel Number" , instead of the personnel number , the employee name is displayed.
    How can it be ?
    I appreciate your help,
    thanks,
    Mazal

    Hi
    I think there must be the further selection field in the screen from that you can choose personal number .
    Manoj Shakya.
    <b>Reminder : Points should be given on answers.</b>

  • Personnel number in Ad Hoc query

    Hi,
    The personnel number in the Ad Hoc query is not coming up. I mean the field is selected for Output but 000000 is seen for al employees. Can anyone please guide as to what needs to be done in order for the Personnel number to show.
    Thanks in advance,
    Aarti

    Hi Aarti,
    I have created a query(in Adhoc query), I have selected Personnel number from KEY FIELDS but in the output it is displaying employee full name instead of Personnel number and I don't see any other Personnel number option to select in any one of these infotypes 0000,0001 and 0002.
    Please give me response.
    Thank you in Advance.
    Regards,
    Prasad Kumar

  • Is it too much to ask MS for a simple ad-hoc query tool for end users?

    Hello
    This is a general MS BI topic and not specific to Power Query, but I couldn't find a more suitable general forum for it.
    This posting is the result of the frustration I have with MS BI stack, whereby a simple ad-hoc drag and drop query tool to get the data in a table format (preferably from a relational
    data source) is missing, something that other big vendors have, such as SAP Business Objects Universe and the associated tools. The deprecated SSRS Report model and SMDL was the closest MS ever got to this functionality (although that had some limitations
    too), which unfortunately is dead now in favour of all sort of "Power" tools that basically can’t deliver the same functionality.
    The requirement is pretty simple: provide users with a tool that they can drag and drop fields from different entities in a data model without having to worry about entity relationships and
    apply necessary filters and get the data out in Excel or CSV, no fancy (or even simple) aggregation or formatting is required, and users should only see the rows they are authorized to see, i.e. row level security (RLS) of data.
    Let’s see what we have at our disposal from MS BI:
    From the modeling perspective, we have relational models in the database that support RLS with views, but obviously cannot maintain PK-FK relationships in the database model between views. Other
    models are .Net Entity Data model Framework model exposed as OData, and SSAS tabular, SSAS PowerPivot, SSAS multidimensional, which you can find a good comparison of their features here:
    http://www.sqlchick.com/entries/2012/3/4/decisions-powerpivot-ssas-tabular -or-ssas-multidimensional-m.html
    From the tools perspective we have:
    Power Query on top of a relational database (SQL Server): Can connect to relational databases easily, generated queries are optimal, detects relationships with entities, but only when entities
    are tables and have PK-FK relationships enforced in the database. So can’t detect relationships with views and hence can’t enforce RLS, so this is not an option unless users keep joining entities, which is not a desirable option either.
    Power Query on top of an OData: Works well except that queries generated for multiple entity expansion are terrible (look here for more details:
    http://social.technet.microsoft.com/Forums/en-US/7a8b8e52-d3a9-42af-bc52-9d5459c00529/odata-multilevel-expand-query-issue?forum=powerquery). In addition all filtering and projections are done at client side, so even if you want 1 row out of 1 million, all
    rows are brought over to Excel before filtered. Overall this results in unacceptable performance even for small sized data.
    Power Query on top of a tabular model: Doesn’t support that type of data source yet (http://social.technet.microsoft.com/Forums/en-US/ebcccb5e-7058-4046-917d-3d7fcf60cbdc/tabular-model-as-data-source-for-power-query?forum=powerquery).
    Even if it did, tabular models don’t support Many-to-Many relationships out of the box and not sure if there are plans to support tabular models in Direct Query mode in Power Query to take care of RLS.
    Excel on top of tabular models or multidimensional models: The tabular model should not be in Direct Query mode and you only get to use PivotTable to query the model. PivotTables are not famous
    for generating optimal MDX queries, so performance is not going to be acceptable if you are dealing with large dimensions, especially large junk and degenerate dimensions. You can use drilltrough to get details of a measure, but you have to specify the columns
    for a drilltrough action upfront, no flexibility for users to select what they want to see.
    PowerPivot on top of relational databases: The query designer cannot detect relationships between views, so users have to perform manual joins, not an option.
    PowerPivot on top of a multidimensional or tabular model: The query designer doesn’t generate optimal MDX queries by drag and drop. Especially there doesn’t seem to be a way to add related
    attributes of a dimension attribute to the query without cross joins which results in poor performance on large dimensions. Other issues found here
    http://sqlblog.com/blogs/marco_russo/archive/2010/08/24/using-ssas-2005-2008-as-powerpivot-data-source-query-designer.aspx. In addition the result set has ugly column names and issues with data types, such as interpreting numeric data types as Text, and
    there’s no straight forward way of getting the data from PowerPivot directly to Excel. The user either has to do a copy/paste (which doesn’t work on large datasets) or create a pivot table, bring the measure, and drillthrough the measure to get the details
    in table format.
    PowerPivot with OData: Treats every entity as a separate table to import, not suitable for our use case.
    Report Builder and SSRS on top of relational, multidimensional or tabular model: Given the query designer is the same as PowerPivot, it has similar issues. In addition, there are 4 more steps
    from designing a query to generating an Excel or CSV output, not an option.
    PowerView: Works against tabular and multidimensional models, but there’s no way of exporting data to Excel sheet. Besides the add-in is not available for Excel 2010.
    Good old MS-Access: Link to tables and views through ODBC, create relationships between entities and give each user a copy of that Access database to create their queries, and deal with the
    nightmares of updates to the model and distribution of new models to the users! Did I mention Access as an option?
    So there you go, 10 options, none of which can deal with a seemingly simple use case sufficiently. At the moment, the best among them appears to be option 6 against a heavily optimized OLAP
    cube, and perhaps #3 when/if Power Query support for tabular models in direct query mode arrives. Perhaps I am missing something very obvious, and would like someone to enlighten me here.
    Thanks
    MR

    Hi, as far as I can infer, that term means it's not loading any resources until needed, opposite of this...
    -bind_at_load
                     Sets a bit in the mach header of the resulting binary which tells dyld to bind all symbols                when the binary is loaded, rather than lazily.
    https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/ man1/ld.1.html
    Load resources lazily.
    You should never load a resource file until it is actually needed. Prefetching resource files may seem like a way to save time, but this practice actually slows down your app right away. In addition, if you end up not using the resource, loading it wastes memory for no good purpose.
    http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneos programmingguide/PerformanceTuning/PerformanceTuning.html
    And, higher OS versionsare even worse with Bonjour/mDNSResponder, but might see this...
    http://support.apple.com/kb/ht3789

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

  • Expand the Ad-Hoc Query

    Dear all,
    Can anyone tell me the steps in detail on how to add extra infotypes (which is not in the standard selection area, of course) in the ad-hoc query selection area? In my case, I need to search an employee's personnel number by alternative name in local characters (IT0182) of the employee.
    Thanks,
    Steven

    Hi Steven,
    While creating Adhoc query choose Logical databse instead of a database table.
    then you get a pop up to select the Infotypes. there you can select the multiple info types.
    Regards,
    Kumar.

  • 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

  • Outputting System User Name in Ad Hoc Query (S_PH0_48000513)

    I am trying to create an HR Ad Hoc Query and one of the fields that I am trying to output is System User Name from infotype 0105 Communications.  If I choose this field and do not choose the Communication Type, I get two records per employee - one record with the System User Name populated and one record with a blank value for System User Name.
    If I choose the System User Name field for output and also make a selection on Communication Type (= subtype 0001), employees with no System User Name (i.e. no Infotype 0105, subtype 0001) are eliminated from the report.
    I want the report to show all selected employees, including those without a System User Name; however, I do not want the same employee to appear on the report twice.
    Has anyone else experience this problem?  If so, have you figured out how to eliminate the extraneous record for each employee when you do not select the Communication Type?
    Thanks in advance.

    Hi,
    Love to know if you managed to find a solution for this issue as I'm experiencing the same problem.  However I'm reporting on both system user and email address which are distinct fields and would prefer to see this information only on a single line.  With my report I get communication system user on one line and then email address on the another, I'd also like to be able to include those users where the info types have not been maintained.
    With the query I have created I also included logon data from the USR02 table.
    Cheers
    Bill

  • Ad Hoc Query - While executing - System could not read any data

    Hello Techies,
    When I am excuting my Ad hoc query - for one personnel number for which Infotype 28 subtype 0001 has been maintained
    But system is throwing this error -
    System could not read any data
    Message no. AQ_AD_HOC226
    Diagnosis
    There is no data available for the specified selections.
    System response
    The results list in the lower part of the screen still displays the last list to be created.
    Please let me know why does it happening ?
    Thanks
    Jaydeep

    It was an date selection issue - as while executing the Ad hoc query - the reporting date is today -
    changed to all

  • Ad-Hoc query output issue

    Hello Experts,
    Recently we have upgraded the system and we are facing issues with Ad-Hoc query output.
    Issue : After entering data in selection fields and click on "OUTPUT" button we  are getting output. now I changed the selection field  data and click on "OUTPUT" button then we are getting message "No Data selected".
    But when clicked on "HIT LIST" button for changed selection fields then we are getting HIT LIST count and after click of "OUTPUT" button we are getting output.
    So at this point this is unclear why it is working after HIT LIST? This is not consistent but appearing most of the time.
    Regards,
    Saurabh

    Thank you for reply. Yes I have checked SQ03, 02 and 01.
    It is not specific to particular query it is appears to be for all the queries.
    The important thing is to get the output we need to click first HIT LIST button and then OUTPUT. Is there any specific settings maintained for displaying output without clicking HIT LIST ?

  • 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

  • AD HOC query (coding)

    Hi,
    I have Ad hoc query and in the selection screen I have  field(select option) for language , what I am trying to do is to make a login language  as default value for language field ,I tried throw SQ01 the only thing I could do is to add fixed value (for example 'EN') but need it to be login language.
    Its seems to be the only way is to write code But I donu2019t know how?
    PLEASE HELP.

    Defining ad hoc query you can select personnel number as output field by right clicking on "Personnel number" in "Key fields" group. In the context menu you can find "Output" and three possibilities:
    1. Only text - which is default and means an employee's name,
    2. Only value - which means personnel number,
    3. Value and text - in this case two columns are displayed: personnel number  and the employee's name.
    Regards,
    Renata

  • 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

  • HR PQAH (Ad hoc query) info-type filtering

    Hi,
    in our company the users can use/create HR ad hoc queries (tcode PQAH) with which they can display almost all master data employees informations.
    Is it possible to use P_ORGIN authorizations in roles in order to filter info-types in ad hoc query ?
    We have created a test user only authorized to start PQAH (on S_TCODE & P_TCODE) and he is able to create a PQAH query that can display all HR master data.
    We were expecting that P_ORGIN was also checked in PQAH.
    Any suggestion ?
    Thanks
    Andrea

    Hi Andrea,
    No, not what I said.  Employees with access to PQAH can both construct and run Ad Hoc Queries.  However, if their authorization does not permit display access to an infotype in the query, the query will not run for that individual.  If she has the proper access, then the report will run for those individuals she can view - controlled by P_ORGIN or P_ORGINCON.  If the query is saved, another employee can then run it via PQAH or SQ01.  Again, that employee's access will limit what he can see in the output. 
    So if a user has access to PQAH, that user can create and run queries, but the security authorization from P_ORGIN will determine the output.  Example:  I create a query that includes ANSAL from IT0008-Basic Pay, but I do not have P_ORGIN access to view IT0008, then the report would error out if I tried to run it.  If I did have authorization to view IT0008, I could execute the report via PQAH and receive the output.  If I save the report and you ran that same report via PQAH, but you have view authorization only for Personnel Area 0001 for IT0008, then your output would only include individuals assigned to PA 0001. 
    So PQAH can be used by various individuals what controls the output is their authorizations from P_ORGIN or P_ORGINCON and other authorization objects.
    Paul

Maybe you are looking for