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

Similar Messages

  • Adhoc query Issue in IT0001- Additional fields.

    Hi Everyone,
            Im facing issue in adhoc query, In IT0001- Additional field .The supervisor name is not getting displayed in the output  even though personnel number is getting fetched.Output value attributes is  chosen  as 'value and text'.
    Details of the field:
    Name of the field: Personnel number of superior (Org. Manag
    Technical name :SYHR_A_P0001_AF_OMNGR_NR (Additional field)
    This is happening after the implementation of A3 to A9 notes.
    Thanks in Advance.
    Regards,
    S P Joshi.

    Did you try Ted's solution of identifying the "addtional field 'SYHR_A_P0001_AF_OMNGR_NA' "as a displayed field ?
    Note that if that field is not already in your Info-Set, you will have to add it (using t-code sq02).

  • Adhoc Query Report

    Hi SAPients..
    I have a n issue in Adhoc Query
    In Adhoc query report ( PQAH ), X person having authorization to see the folder Additional Personal Data (IT0077), but Y person can access the Adoc but could not see the folder (IT0077). Please guide what should I do to make the Y person can view the (IT0077) folder??
    Appreciate your support on this, Please guide me.
    Shan

    Hi Shan,
    What I undertand is as follows:
    Person is having access to view IT77 and Y person is having access to t code - PQAH (Ad Hoc Reprot). you want to give Y person access of IT77.
    In this case you would need to add the concerned role to y person's SAP user id by which he ll get acces to maintain IT77 ands also can download the report. The role name you can get from your security team or GRC team.
    Hope this solves your query.
    Sarang Kulkarni

  • Adhoc Query Issue - How to restrict /SAPQUERY/H2 access

    Hi Experts,
    I have created two User Groups HR_1 (assigned to infosets for Time data) and HR_2 (assigned to Infosets for Payroll data). Also, I want to assign the HR_1 to a user Time_admin and HR_2 to Payroll_Admin, so that Payroll admin do not have access to Time data and vice versa.
    Now I can restrict the access but when I execute the Adhoc query for the user, I can see the User group that I have assigned with a default user
    group /SAPQUERY/H2, which has access to all data.
    My question is, how can I restrict the access for the /SAPQUERY/H2 for the users so that the users have only access to their user groups i.e.,
    Time_admin to HR_1 only and Payroll_admin to HR_2 only.
    Regards
    Vikrant

    I was expecting some Answer but was unfortunate enough.
    I have found a solution and will mention it for those who face this issue in future.
    Configuration in “The Global Area (Cross Client)”, has some limitations
    1)      1) Restricting the access via T-Code S_PH0_48000510 (Ad-hoc Query) is difficult as this t-code S_PH0_48000510 uses the user group /SAPQUERY/H2 to which an Infoset is assigned /SAPQUERY/HR_ADM. This infoset has access to all the master data and is standard one (default).
    2)      Also, this is available in “The Global Area (Cross Client)”, due to which there will be access to all HR master data.
    Configuration in “Standard Area, i.e., Client Specific”
    1)      With this approach, we will do the same configurations in “Standard Area (Client Specific)” i.e.,
    I.            Create User groups (ZHR_1 and ZHR_2)
    II.            Create Infosets (X1 for time management Infotypes and X2 for PM and PA Infotypes)
    III.            Assign User Groups to Infosets (X1 to ZHR_1 and X2 to ZHR_2)
    IV.            Assign Users to User Groups (As per the requirement)
    2)      Additionally, Admin need to do two things
    I.            For the Users Set Parameters via SU3 as:
    Parameters for Users for Time Data
    Parameter ID
    Parameter Value
    Description
    AQB
    ZHR_1
    ABAP Query: User group
    AQS
    X1
    SAP Query: Infoset
    AQW
    Standard
    ABAP Query: Query area
    Parameters for Users for OM/PA data
    Parameter ID
    Parameter Value
    Description
    AQB
    ZHR_2
    ABAP Query: User group
    AQS
    X2
    SAP Query: Infoset
    AQW
    Standard
    ABAP Query: Query area
    II.            Provide access to T-Code S_PH0_48000513 (also calls Adhoc Query but this t-code will respect the parameters set by us in SU3).
    III.            As a result of this approach, the Users on executing the T-Code S_PH0_48000513 will be directly moved to the Adhoc query screen with their authorized access.
    NOTE:
    these changes cannot be transported via Transport.
    Regards,
    Vikrant

  • Adhoc query - Total payroll day issue on infotype 2001

    Dear Expert,
    I am working on the adhoc query and would like to generate the total number of payroll days taken by a particular employee.
    E.g. Employee A has 4 leave record in Nov 2011
    14-Nov, 16, Nov, 23 Nov, 25 Nov
    When I select the reporting period between 1-Nov-2011 to 30-Nov-2011, the total payroll days generated by the adhoc query is only 1. I am not sure why. Please help
    Best Regards,
    WF

    Hi,
    Might be remaining days are Non working days/Weekly offs/ Holidays falls..
    You Better Check through PA30 Overview of Absence records, Whether the Days are deducted from Quota or not.
    Need to check absence class in V_554s_0

  • 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

  • Adhoc query selection issue

    Hi,
    When I use Adhoc query if "switch on object selection", found there's no selection option for IT2011(refer to screenshot), who do you know why, how to correct it?

    Here is the standard documentation which explains the settings: http://help.sap.com/saphelp_46c/helpdata/pt/5e/ec9638b7df646ae10000009b38f8cf/content.htm

  • Blank entry in adhoc query

    Hi All,
    Im have created a data source with table joins T001W and T134M.
    Filed MANDT has been maintained when the join condition has been established at Data source level.
    Adhoc query in business rule identifies the deficiency. But some filed in the result has blank entry.
    Attached the screen shot for your reference.
    Can you please let me know, how to fix the blank entry issue.
    Thanks
    Ashok S

    Hello Ashok,
    In this case, you have foundation and plug-in in both systems. I assume you have set data source and business rules in GRC system, am I right?
    If this is the case, you might have several problems as before SP 10 for GRC 10.0, backwards compatibility was not implemented yet. It means that you must follow SAP note 1352498 in order to synchronize your systems.
    If this is not the case, have you checked these values in SCU3 in ECC system?
    Best Regards,
    Fernando

  • Book mark icon in Adhoc query?

    Hi,
    There is an Adhoc query created by the end user.The book mark icon available is not working but the CONTEXT MENU on any of the values is producing the book mark properly.Can just any one help me to find the solution of this?
    Why BOOK MARK ICON is on

    Vasu,
    then there seems to be some issue with your ad-hoc template - was it modified in any way ? that could be causing this issue. If the temnplate was not modified then reactivate the same from business content and check.
    The ad-hoc template depends on your BI version. Which version of BI are you on ?
    Arun

  • Regarding Adhoc Query Creation

    Hi Experts,
    I am facing issue while creating Adhoc Query in the production Server. After clicking "Save"  button system shows the screen to enter "Package" related details.
    System shouldn't show this screen in the production server. I want query get save without package details.
    How i can remove that screen..
    I have observed one more thing also.. if i create User Group and Infoset, then save in Local Object package $TMP then system doesn't ask package details while creating query.
    Kindly help me

    Hi,
    Do in devlopment if sucess then move to PRD. Why you trying in direct PRD.
    Better go as per SAP standards only.. Production server is for only client purpose.
    Edited by: ERP12345 on Jan 6, 2012 2:20 PM

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

  • Adhoc Query Join Problem

    Hi All,
    I have created a query on PNP logical database which looks very simple, Lets say it has pernr, first name, last name, and Mailing ZIP on the output. P0006-SUBTY = 'MAIL'
    Now, the problem is .... if someone do not have mailing address subtype populated then that pernr's record is not appearing on the output. ZIP should be blank if the Mailing Address subtype is not saved for that pernr.
    I am using PNP in my infoset so I think I do not have any control over the joins, PNP should not behave like this I guess, is it normal behavior or it can be fixed? or this is one of the reasons to go for Custom ABAP Reports as it cannot be done in SQ01?
    Is the only solution through Adhoc queries to add all these PA tables in Inner Joins instead of using PNP, in SQ02?
    Thanks in advance.

    It is a common behavior of Adhoc query in PNP. You will need to create custom fields and put logic for subtypes. Using joins is not a good solution, for performance issues you cannot join many tables and HR tables have begda and endda in tables which may create problems for proper joins.

  • Adhoc query - Hit list 40, output 5

    My client has an adhoc query set up and the selections make sense the hit list number is correct as compared to what is on the DB - I have checked using SE16.
    However when the output is produced only 5 records are shown.
    There are no auths issues according to SU53 and also I have access to all infotypes in PA & PD so I am slightly confused as to what is going on here.
    Perhaps some of you have had the same experience and have an idea or clues as to what is going on here.
    Many thanks in advance,
    Kind regards,
    Dan

    Hi,
    Hit lists show employee hits, output shows output hits. You have difference because in the output not every employee has a record in the infotype that you selected for output.
    For example you have 40 employee and only 5 of them have record in IT 0016. So if you select IT 0016 for output only 6 records will be displayed, though according with you selection criteria 40 employee were selected.
    Just add to output fields from infotype that every employee has (e.g. from IT 0001) and you will see all of them in the output.
    Cheers

  • 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

  • Issue with Adhoc queries

    Hi,
    Background: 3 additional fields were added to infotype 0023 to capture the position at the previous organization, Years of exp and Months of previous exp.
    The year and Month of previous exp gets populated automatically if you save the start date and end date.
    Issue: We try to populate a repot using adhoc query but it doesnot give proper data. example if 0023 has been updated for 100 employees the output would reflect only for 20 odd numbers.
    There is no authorization problem
    Can anyone suggest why we are facing this issue and if this can be resolved also is there any standard SAP reprot which can give a listing of 0023 for a list of employees
    RB

    Also, if the dates of IT23 are before hire date (as they often are), you need to set the switch for time-dependency.  You do this in "extras" -> "Code".  The syntax is shown below, and the *$ is part of the syntax
    *$HR$ [P0022,P0023]
    *$HR$ TIME_DEPENDENCE = 'INDEPENDENT'
    You still need to ask for period all, but then it should work.
    Hope this helps.
    Kirsten

Maybe you are looking for

  • Relation between Purchase Order and Work Order Tables

    Hi, I am trying to create a Func Module as following. Input : Purchase Order Number, Material Number and Item Number. (Either Item Number or Material Number shall be entered. Output a message if both are blank). Out put : PO Number, Line item Number,

  • Converter for MTS File?

    Is any converter for convert MTS file to quick time? do anyone know it? Thx...

  • Is there a way to import Mainstage 2 patches into Mainstage 3?

    Currently trying to upgrade from Mainstage 2 to Mainstage 3 on my new MBA.  Haven't downloaded Omnisphere yet and have a gig coming up.  Was wondering if it was possible to take built-in patches from Mainstage 2 and move them to Mainstage 3.  (Most s

  • Error message -39 when syncing?

    Hey, I've recently moved my iPhone back to my MacBook Pro after having it fixed and everything was fine until I added some photos from iPhoto. I have been getting the message 'error -39'. Any ideas? Thanks, Imogen

  • PoE for IP Phones and non PoE switches

    Like everyone has already pointed out, a PoE device will need to be connected directly to a 802.3af compliant PoE switch. If you only have one jack for every workstation, then you will have to connect the phone to the wall/switch, and connect the com