Regarding  HR Adhoc  Query

I came across a situation in the course of my job that certain people are able  to execute S_PH0_48000513 (HR Adhoc Query) without being added to the User Group. This was surprising.
Can any of you tell me if this is because what security settings ? I am not sure if this could be some settings with auth object  S_QUERY .
Acccording to the http://www.insightcp.com/res_15.htm it should not work if they are not added to any uset group. But in reality it is otherwise.
Any thoughts on this , also if anyone can explain how security in Adhoc Query works , that would also be wonderful

Hi,
Most pobably these users are assigned with a role wherein they are assigned with the value S_PH0_48000513 under the auth object s_tcode or with the authorization object s_querry.
Check this.
Go to tcode S_BCE_68001397.
In the Authorization tab enter value S_TCODE
click ENTRY VALUES button
In the next screen in the values field enter S_PH0_48000513
and execute.
It will show you which users are able to execute the said tcode
Similarly check which users/roles are assigned with the auth object s_querry.
In the roles assigned to the said users check if the r assigned with profile sap_all or sap_new profile.
Or in the roles assigned to them the auth object S-Tcode containf the value S_PH0_48000513  or *  OR
if there is an authorization  object s_querry.
Note * means he is authorised to all tcodes.
If the auth object s_querry exists make it inactive.
A detailed analysis of the roles can give the way to regulate .
If resolved dont forget to award few points.
Regards

Similar Messages

  • 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

  • Question regarding AdHoc Query

    I have to write a single adhoc query whose output will be two different reports.
    One report should display pernr,perid, firstname, lastname, age, years of service, hire date,birthdate,
    job title. The other should display pernr, firstname, lastname,hiredate, birthdate and department. So when first report is displayed the field department should be hidden and viceversa. Is it possible using adhoc query or custom report is better option. Any inputs will be highly appreciated.
    Thanks

    Hi,
    Please check OSS notes 333517 and 357093. Both notes, though from 2000, contain detailed functionality and recommendation around u201Clength of serviceu201D.
    Hope this helps.
    Donnie

  • 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

    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?

  • Additional field in adhoc query

    Hi all, I need to be able to report on the IT105 subtype 0001 system ID for employees who are withdrawn from the company, however, when someone leaves their IT105 record is delimited so adhoc query will not output anything.  Has anyone coded an additional field that will look at the latest record regardless of the date?
    If you have, please can you share the code with me!?
    Many thanks!

    Hi Tanya ,
    Please find the code below. It is designed for additional structure z105_last which is bassed on P0105 type.
    data l_it_p0105 type standard table of p0105.
    clear: l_it_p0105, z105_last.
    call function 'HR_READ_SUBTYPE'
      exporting
        tclas                 = 'A'
        pernr                 = peras-pernr
        infty                 = '0105'
        subty                 = '0001'   
        begda                 = '18000101'
        endda                 = pn-endda
      tables
        infty_tab             = l_it_p0105
      exceptions
        others                = 1.
    if sy-subrc = 0.
      describe table l_it_p0105.
      read table l_it_p0105 into z105_last index sy-tfill.
    endif.
    Regards,
    Sergey

  • 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

  • Can we call a function module in ADHOC query

    Hi
    Can we call a function module in ADHOC query if yes how.
    Also we ned to know how to call a function module in SAP query.
    An early responce is appreciated.
    Thanks and best regards
    Rajeev

    Okay as far as I understand your aim is:
    To fill a field in the output list with a value that is based on the current line information and calculated by a function module
    So go to SQ02 and create an additional field in the InfoSet.
    You can refer in the coding to the technical names you can see in the left tree window like P0000-PERNR.
    More information is avaiable in the Help part look for additional field in SQ02.
    Regards,
    Michael

  • 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

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

  • How to enter /559 in Adhoc query?

    How can we enter Secondary wage types in Adoc query? Step by step

    Hi,
    You can download the Employee wise Bank Details of IT0009 or using Adhoc query
    You have employee wise WT reporter
    Now do a Vlookup with the Employee Wt report  and the Adhoc query.
    If you have problems in vlookup
    pls send both the files to me on hemant.mahale capgemini com
    Regards
    Hemant V. Mahale

  • Entry date not proper in adhoc query

    Hi,
    Entry date field in action infotype ( in the adhoc query) always returns 00.00.0000. Whereas the standard reports brings the entry date properly (This is from prelq.hiredate). How we can bring the values into this particular field.The feature 'ENTRY' returns DATYP but data is not maintained in IT41. System should bring the hiring action date (0000 start date) as the entry date. We want to use this entry date field in the adhoc query.
    Thanks in advance.
    Sreeja

    Hi Sreeja
    Please  read the following paragraph of the consulting note 508026 :
    "Exception:
    If the query is started with a key date selection, the query calls
    function module HR_LEAVING_DATE with the key date and not with the start
    and end date of the personnel action in which the key date exists. You
    can use modification note 562031 to change this system response."
    Please also make sure, that the corrections of note 561514 are contained in your system.
    I hope that this information be useful for you.
    Regards,
    Jun

  • How to track changes in Adhoc query?

    Hi all,
    We have requirement for retrofitting  the changes done in one Server to other, in the process the Changes in New server should not be overwritten.Currently for Adhoc queries - we're downloading from one server-  loading to the New server.
    Is there any way to track the changes in Adhoc query to avoid overwriting the changes.
    Thanks  in advance.
    Harika.

    Hi,
    You can download the Employee wise Bank Details of IT0009 or using Adhoc query
    You have employee wise WT reporter
    Now do a Vlookup with the Employee Wt report  and the Adhoc query.
    If you have problems in vlookup
    pls send both the files to me on hemant.mahale capgemini com
    Regards
    Hemant V. Mahale

  • Infotype 0120 - changes in adhoc query program

    Hi All,
    I have to make some code changes for the std infotype 0102 - Grievances NA in the adhoc query. My requirement is :-
    1) A range from 000-999 should be available for each Employee for the Grievance Number field. P0102-GRNUM.
    2) If a record already exists for the employee for a particular Grievance Number -GRNUM(e.g - 467) and Stage- GRSTG(e.g.- Stage1), the system should not allow to enter another record with the same Grievance Number and Stage for the same employee.i.e. No duplication should be allowed. i.e only 3 records for 1 Grievance Number as there are only 3 stages.
    Please advice me how to proceed for the same.
    Thanks & Regards,
    Preeti

    hi
    Its not getting clear that u want the changes for ADhoc query or in pa30.
    if u want validations in adhoc query as u have mentioned in the question
    u need not to go to a user exit.
    In adoc query itself u can incorporate these changes
    u can go to infoset of this query and write a abap code which checks the Infotype 102 for the grievance no.
    If u want the validation on while creating the record then u have to use user exit ZXPAUD01 or can use BADI's also .
    Regards
    Manish
    Award reward paoints If Useful

Maybe you are looking for

  • Breaking out Audio tracks to Mono

    I am recording with both a shotgun (left channel) and Lav (right channel) microphones and the final product will be delivered as mono using one channel or the other, how do I make one channel mono while stilll retaining the other channel so I can swi

  • How to see the generic users in 11.5.10 which have not been enddated

    Hi all, Can anybody let me know how to see the generic users in 11.5.10 who are not enddated? Thanks.

  • [SOLVED] WoW 4.3 and Wine 1.5.7

    I thought what the hell, I'll check out the trial of this game considering everyone on the planet has played it at some point or another. Lots of people are using Wine to play it so I came to the conclusion that it should work fine in Wine, but appar

  • Canonical XML parser

    Do anybody know or have some XML parser to make Canonical XML? I need it to make digital signature. Thanx, erx

  • InDesign CC will not launch

    When I try to open the app, or open an existing file, Adobe Application Manager launches. But nothing else happens. I'm on an iMac running 10.7.5. Thoughts?