Ad Hoc Query - cost assignment

Hi Experts,
I'm  trying to pull the contents of 'Cost Assignment' field i.e manually entered cost centre  which is available as a button on infotype 2002 & 2003 screens.
In an Ad-hoc Query, it is not available as a field in any of the standard infosets.
Is there a simple way of adding in the IT2003 cost assignment field?
Please help.
Thanks,
Arpita

Hi,
You need to add table ASSOB_HR to your infoset. The cost assignment data is stored in that table. Use PERNR and INFTY to get the cost assignment data.
Hope this helps.
Donnie

Similar Messages

  • Wat is ad-hoc query designer

    wat is adhoc query and how to make adhoc query.

    Hi Viswanath,
    Ad hoc query means dynamic query ( on demand basis)where your reporting needs are dynamic.
    Check this link:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/08/965b423be8de54e10000000a155106/frameset.htm
    Also check:
    Ad hoc Query Designer
    Ad-Hoc Query Designer
    Ad-hoc Query's
    assign points if useful ***
    Thanks,
    Raj

  • Benefit cost reporting in ad hoc query

    Is it possible to use ad hoc query to report on future dated benefit cost changes?  I have tried several different ways but have not been successful.
    I tried changing the date of the reporting period to match that of the effective date for the benefit cost change but the system still outputs the old costs.
    I also tried using the benefit cost calculation date as a selection field and then enter the effective date for benefit change but that did not work either.
    Does anyone have any insight?  Thanks in advance for your input!

    Did you ever find an answer to your question?  I am having the exact same issue.  Unless a new infotype is saved with the dates that coincide with the cost configuration change, I cannot report on the new cost via Ad hoc or SAP query.  The only thing that works is the standard health plan cost report but my users prefer to use query so they can get every field they need.

  • Ad-Hoc Query for OU's and their Cost Center

    Cost Centers are often inherited from parent OU's. If I try to make an Ad-Hoc query, select some OU's and show the Cost Centers via the relationship A11, the fields are empty unless the Cost Center is hardcoded for the OU.
    Is there a way to create an Ad-Hoc query that shows the Cost Centers even if they are inherited? I can't make any changes to system tables or other customizing.
    Thanks in advance!

    Unfortunately I'm not authorized to use SE16.
    This is my selection:
    Object ID: xxx (Selection)
    Object Type: O (Selection)
    Plan Version: 01 (Selection)
    Relationship Between Objects: 011 (IT1001)
    Relationship Specification: A (IT1001)
    Type of Related Object: K (IT1001)
    Output:
    Object ID (IT1000)
    Object Abbreviation (IT1000)
    Object Name (IT1000)
    ID of Related Object (IT1001)
    Any other way?

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

  • How query cost and execution time are releated ?

    hi experts,
      i am curious to know, how the query cost and execution time is related?
     Query taking less time ,query cost is 65%, but query taking more time but query cost is 0%.
    how to connect both and improve query performance.
    Thanks

    i think you are refering to cost (relative to the batch) execution 65%, where there are more that one statement, it may compare the cost of each statement with in the batch
    i assume it mainly take subtree cost and IO stat as cost, but in some cases i may wrong when there is multi line function and many other facter influence the cost, and i would say it depends on the query
    cost is unit-less
    The reason these costs exist is because of the query optimization SQL Server does: it does cost-based optimization, which means that the optimizer formulates a lot of different ways to execute the query, assigns a cost to each of these alternatives, and
    chooses the one with the least cost. The cost tagged on each alternative is heurestically calculated, and is supposed to roughly reflect the amount of processing and I/O this alternative is going to take.
    refer :
    http://blogs.msdn.com/b/sqlqueryprocessing/archive/2006/10/11/what-is-this-cost.aspx
    Thanks
    Saravana kumar C

  • Transaction Code to AD Hoc Query

    I have created an Ad Hoc Query and Given it a name and saved it.
    Next Time when I wanted to execute that query I go to S_PH0_48000510 - Ad Hoc Query , select that query and press on Output to get the result. In between I have selected the setting "Start via selection screen" in Extras>Settings.
    Hence I get into the selection screen and while I execute, I go to the output result.
    What I am looking for is how to assign a transaction code to this query that I have created, so that I execute that transaction code I am directly into the selection screen. By means of this I can skip some of the steps like going to S_PH0_48000510 - Ad Hoc Query and then selecting the query and then the other steps.

    Both the ad-hoc and the SQ01 queries create a program that can be assigned to a transaction.  However, the program name that is generated contains a 2 digit code that is specific to the client you are working on.  This makes it hard to run the same transaction in DEV, QAS, and PRD.  Instead, create a parameter transaction that runs the START_REPORT transaction with parameters set that run the D_SREPOVARI-REPORTTYPE=AQ, D_SREPOVARI-EXTDREPORT=<sap query name in SQ01>, D_SREPOVARI-REPORT=<user groups belonging to the query>

  • Transport selection screen variant of ad-hoc query

    Hi, I've created an ad-hoc query using sq01,sq02,sq03 and I've assigned it to a transaction and created a screen selection variant.
    Now I want to transport the screen selection variant. RSTRANSP doesn't seem to work for that.
    Thanks

    Hi Alejandro,
    You can transport this to other system by make use of program RSAQR3TR,  before you transport to other systems, please check everything is working fine in Development system, once everything is perfect..
    Please use the program which i have stated above and transport user group first, then infoset and then query,, you can do it in two ways..by downloading and uploading or else by export and import..
    if you still have any queries on this. share with your screenshot what have you done,, so i will help you on it..
    Thanks
    Sriram

  • Ad-hoc  Query - Travel Privilege Field Group

    Hi am new to this Ad-hoc Query...
    can any body tel me this.
    Asia HR is currently using/assigned to AQB : ZHR_UG_01 ABAP Query: User group and AQS: ZHR_PA_ASIA SAP Query: InfoSet which does not include the Travel Privilege Field Group.  The same Travel Privilege Field Group is already included in the Global infoset AQB - ZHR_UG_01 - ABAP Query: User group and AQS - ZHR_UG_01 - SAP Query: InfoSet
    Please tel me how to create ASIA HR as per the requirement.
    Thanks in advance..
    Regards,
    kalam A.

    Hi Kalam,
    seems that you simply have to add this field to the use InfoSet in transaction SQ02.
    Regards,
    Michael

  • 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

  • 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

  • Ad-Hoc Query Field using HR_99S_INTERVAL_BETWEEN_DATES function module

    I have created an additional field in Sq02 to calculate years between two dates and am using function module HR_99S_INTERVAL_BETWEEN_DATES.
    There are no syntax erros but when I run a query in Sq01 and output the field it doesn't calculate instead gives "00000" output.
    The field Code in the additional field
    Clear ZHR_SERVICEYRS.
    DATA: V_MONTHS TYPE  i.
    DATA: V_YEARS TYPE  i.
    DATA: V_MONTHS1 TYPE  char20.
    DATA: V_YEARS1 TYPE  char20.
    CALL FUNCTION 'HR_99S_INTERVAL_BETWEEN_DATES'
      EXPORTING
       BEGDA           = P0002-GBDAT
       ENDDA           = Sy-Datum
      TAB_MODE        = ' '
    IMPORTING
      DAYS            =
      C_WEEKS         =
       C_MONTHS        = V_MONTHS
       C_YEARS         = V_YEARS
      WEEKS           =
      MONTHS          =
      YEARS           =
      D_MONTHS        =
      MONTH_TAB       =
    V_MONTHS1 = V_MONTHS.
    V_YEARS1 =  V_YEARS.
    CONCATENATE V_YEARS1  '.'  V_MONTHS1 INTO ZHR_SERVICEYRS.
    condense ZHR_SERVICEYRS.
    has anybody had similar problems! Help Appreciated!

    Hi Anuj,
    Yes, you use Transaction Code SQ02.  Find your infoset on the list - if you want to create a new infoset you can do so.  If it is an existing infoset, select it and Change.  On the next screen you will see all the infotypes in that infoset on the left.  The fields available for Ad Hoc are on the right.  Open the infotype table on the left and the field group on the right.  If the field is not included in the field group all you have to do is drag and drop from the list on the left to the correct field group.  If the infotype is not already in your infoset, select Edit --> Change Infotype Selection from the top menu bar.  Place a check in the new infotype and then return and do the drag and drop if necessary.  You will find the basic fields already moved to the field group. 
    You say you want information from IT0008-Basic Pay and IT1005-Planned Compensation.  Problem is that if you use the standard HR logical data base, there is no link directly between a person and IT1005.  IT1005 is assigned to a Position or a Job.  If it is assigned to a Position, you can select the "Change Infotype Selection" action and ago to the bottom of the list to Related Objects.  Here select Position and open that to find the IT1005.  If the IT1005 is tied to the Job, there is no direct link. Thus, if it does not already exist, you will need to create an infoset based on the PCH logical database and object Position.  Now you can link that Position to "Holder"-Person and "Described by"-Job.  Again, select the infotypes and fields you want and you will be able to obtain your information via Ad Hoc Query based on that infoset.
    Paul

  • Where to find 'Exempt' indicator for reporting using ad-hoc query?

    I want to run report for a count of exempt and non-exempt employees using ad-hoc query with logical database PNPCE. We maintain the exempt/non-exempt flag on the job.
    Thanks
    Manish

    To meet this exact same requirement at my company.  I added an additional table (T5U13) into the logical database. Within transaction SQ02, go to the field group Organizational Assignment, right-click on the field group.  Click Node Extras.  Click Create icon over on the right-hand side of the screen.  Type in the table name T5U13.  Use this select statement:
    SELECT SINGLE * FROM T5U13              
      WHERE STELL                = P0001-STELL
        AND ENDDA                = P0001-ENDDA
    Then add the fields into your field groups.  I also created a local field so I get the word "Exempt" or "Non-Exempt" in my queries instead of "1" or "2" because i can never remember which is which. 
    Hope this helps!

  • Ad-hoc Query Designer: Create Exception

    Hi there,
    somehow, my Ad-hoc Query designer is going crazy or something. I don't know whether it is a technical error.... hope you can help me.
    When I create an exception, if I don't set the standard operator AND all characteristics to "All" the exception is displayed only for the results.
    When I set all these operators to "All", then the results are also marked in the respective colours. However, I only want to mark everything but the results, but if I choose for this option, only the overall result is displayed.
    Can you help me?
    Thanks,
    Sabine

    Hi Sabine,
    I think I did not fully get what your requirement is, please elaborate on what you want to be displayed. Something general
    1. in tab "exception values" you can specify the key figures on which the exceptions are to be applied and assign value ranges to different colors / levels
    2. in tab "validity area of exception" you can specify
    a) to apply the exception on all or totals only (choicebox), this setting is valid for all characteristics not mentioned in the field below
    b) to apply the exception on everything, totals, everything but totals, fixed value, hierarchy level corresponding to a certain characteristic
    Best regards,
    Björn

  • How to create Ad Hoc Query

    Hi Experts,
    Can anyone explain me the configuration steps required to create Ad hoc Query. Please give me the step by step procedure to create Ad hoc Query, since i am new to this assignment.
    Regards,
    Shadeesh.G
    Please type Adhoc Query in search forum you will find lot of threads related to this issue
    Edited by: Sikindar on Oct 27, 2010 4:22 PM

    Shadeesh,
    We were all new at some time or the other.
    Please try some well established sources of help such as help.sap.com
    A quick hint is to use the transactions SQ03, SQ02 and SQ01. A better way would be to progress a certain distance yourself and then ask for help here when you get stuck.

Maybe you are looking for

  • Transferring home folder from Tiger 4.11 into a MacBook Pro  w/ Leopard

    I just got word that my PB Aluminum 1.67 that was to be repaired via Apple is now going to be upgraded to a Apple MacBook Pro First of I'm (happily) shocked by this offer, and now I begin a new realm into intel technology MacBook Pro, and now... Leop

  • Numeric keyboard???

    Hi, I bought my Powerbook in France where to type numbers the LockShift-Key has to be "On" (as if they were capitals). When i first initialized the computer, I was given the option of a "regular" or "numeric" keyboard, and somehow my choice has cause

  • Problem with CRM_ROLES_OF_USER_GET function module in BW3.5

    Hi, We have a problem in the standard function module.   CRM_ROLES_OF_USER_GET.  This should get the latest roles of the user but it is reading from Buffer and displaying all the old roles. How can i clear the buffer so that this function module will

  • Reg PFAL

    Hi Gurus I want to run PFAL for the cost senter, can any one help me abt the i/p parameters in the selection screen. Regards Suresh

  • [help] Z77A-GD65 not starting fully

    ok so when i turn on the motherboard all the fans in my PC turn on and the LED1 light turns blue for about a second then everything shuts off. My power button stays green even when everything else shuts off and the alarm LED is OFF. I have tried re p