Ad-Hoc Query: Unable to fetch IT0008 fields......Help.

Hi,
I have build an infoset on ldb PCH and have enabled object type 'S'. The requirement is to get IT1005 and IT0008 fields in one query.
The infotypes selected includes the PA infotypes 0001, 0002, 0007 & 0008.
While building a query i get data from all PA infotypes except IT0008. Any fields selected from IT0008 is blank in the output.
How could I get IT0008 data fields?
Amit

Hi,
Try using infosets based on other logical data base PNP or PAP.
InfoSets based on PCH database enable you to use InfoSet Query to select objects of one object type, such as business events, qualifications, and positions. so this may not allow IT0008. I am not sure. But using PNP LDB should help.
If you have recieved answer to your question. Please allot points and close the question.
Let me know if you need more information on this.
Thanks,
Dhiraj

Similar Messages

  • Modifying  the Ad-hoc Query Infoset : problem with P9105 fields.

    Hi all,
    Am having problem with Infoset of Ad-hoc Query .
    i need to add the Critical role Field Group to ZHR_PA_01 Infoset of Satandard Area.
    for this i have imported that Infotype 9105 and included the following standard fields by drag and drop.
                    1. Role Category
                    2. Role SubCategory
                    3. Global Identifier 
                    4. Personnel Number
    and then Saved and Generated the infoset succesfully.(No syntax errors)
    But
    While testing, using the T-Code:  S_PH0_48000510
    if i select one of these above fields for the report,
    Am getting the message that "Error when generating the report".
    Error Description:The report cannot be generated because the internal description is invalid or incomplete.
    means what may be the problem.?
    if i select other fields its working fine.
    can any body explain me clearly..??
    Regars,
    Kalam A.

    Hi Manoj,
      yes, i have saved the T-code.and generated the Infoset Succesfully.
    and its showing the those additional fields while testing.
    for remaining fields its working fine.
    but am not getting wats problem with the four fields of P9105 infotype.
    could you please suggest me.?
    Regards,
    Kalam A.

  • Entity Framework Query - Unable to fetch data

    I am working on a WPF application and using Entity framework 6.0
    I have written following query to fetch data from database but could not fetch any data:
    var customersList = context.Customers.Include(x => x.ReturnedCustomerItems.Select(y => y.ReturnedLotItem)).Where(x => x.IsDeleted != false).ToList();
    Notes:
    1. context: Database Context Object
    2. Customers: DbSet for Customer's table
    3. ReturnedCustomerItems: List of Customer Items to be returned.
    4. ReturnedLotItem: Lot Item corresponding to Returned Customer Item. Each Customer Item will have a corresponding lot item..
    Following is the SQL Query I have written to check whether data exits inside database:
    select * from
    transportapp.dbo.customer cust,
    transportapp.dbo.ReturnedCustomerItem ret,
    transportapp.dbo.ReturnedLotItem item
    where
    cust.CustomerId = ret.CustomerId
    and ret.BookingItemId = item.BookingItemId
    As output I got the following data records:
    Following is the Table structure generated by Entity Framework:
    CREATE TABLE [dbo].[ReturnedCustomerItem] (
    [BookingItemId] INT NOT NULL,
    [IsDeleted] BIT NOT NULL,
    [CustomerId] INT NOT NULL,
    [ReturnCharge] DECIMAL (18, 2) NOT NULL,
    [DemurrageCharge] DECIMAL (18, 2) NOT NULL,
    [Weight] DECIMAL (18, 2) NOT NULL,
    [Quantity] INT NOT NULL,
    [ReturnDate] DATETIME NOT NULL,
    [Status] NVARCHAR (100) NULL,
    CONSTRAINT [PK_dbo.ReturnedCustomerItem] PRIMARY KEY CLUSTERED ([BookingItemId] ASC),
    CONSTRAINT [FK_dbo.ReturnedCustomerItem_dbo.Customer_CustomerId] FOREIGN KEY ([CustomerId]) REFERENCES [dbo].[Customer] ([CustomerId]) ON DELETE CASCADE,
    CONSTRAINT [FK_dbo.ReturnedCustomerItem_dbo.ReturnedLotItem_BookingItemId] FOREIGN KEY ([BookingItemId]) REFERENCES [dbo].[ReturnedLotItem] ([BookingItemId])
    CREATE TABLE [dbo].[ReturnedLotItem] (
    [BookingItemId] INT NOT NULL,
    [IsDeleted] BIT NOT NULL,
    [IsReturned] BIT NOT NULL,
    [ReturnCharge] DECIMAL (18, 2) NOT NULL,
    [DemurrageCharge] DECIMAL (18, 2) NOT NULL,
    [Weight] DECIMAL (18, 2) NOT NULL,
    [Quantity] INT NOT NULL,
    [LotId] INT NOT NULL,
    [LotItemId] INT NOT NULL,
    CONSTRAINT [PK_dbo.ReturnedLotItem] PRIMARY KEY CLUSTERED ([BookingItemId] ASC),
    CONSTRAINT [FK_dbo.ReturnedLotItem_dbo.BookingItem_BookingItemId] FOREIGN KEY ([BookingItemId]) REFERENCES [dbo].[BookingItem] ([BookingItemId]),
    CONSTRAINT [FK_dbo.ReturnedLotItem_dbo.ReturnedLot_LotId] FOREIGN KEY ([LotId]) REFERENCES [dbo].[ReturnedLot] ([LotId]) ON DELETE CASCADE,
    CONSTRAINT [FK_dbo.ReturnedLotItem_dbo.LotItem_LotItemId] FOREIGN KEY ([LotItemId]) REFERENCES [dbo].[LotItem] ([BookingItemId]) ON DELETE CASCADE
    I am unable to debug the LINQ expression where I am going wrong. Need help in identifying the mistake.
    Thanks!!
    NB

    The best way of debugging the SQL is to change the where portion
    1) First eliminate the 'where'
    2) Run with only one where statement  : cust.CustomerId
    = ret.CustomerId
    3) Run with the other where : ret.BookingItemId
    = item.BookingItemId
    Then compare the 3 results.  Your database may not contain any data that has both where statements true.
    jdweng

  • Ad hoc query text field reference

    Hi all,
    Faily new to all this and wonder if you have any insight on the following:
    In ad hoc query I'm adding additional fields to a functional area. They subsequently show up in SQ02 in the left hand pane tree structure for that functional area.
    Now, if I double click on one of the additional fields the most central pane shows the details of this field. One of the boxes in there called 'References' contains a field 'Text field' that associates a long text with the code that the field contains.
    As a made-up example: the add. field could be Personnel Area, value "XY01", and it is associated with a field Personnel Area Long Text that contains "Xeta Yoyo Regional Office". This is the association shown in 'References' -> 'Text Field'.
    My problem is that this 'Text field' field seems to be populated automatically, that is there is some kind of automatic link between the field and the foreign field that contains its associated long text. Also it's greyed out so un-editable.
    Does anyone know where this relationship comes from? Does anyone know how to be able to edit this 'Text field' field?
    Grateful for help,
    Richie

    Ok, I'll try to be a bit clearer.
    For infosets in Ad Hoc Query, a field has an option to be related to another, different field that provides the long text version of this. Example: field P1000-OTYPE 'object type' is related to T7770-OTEXT 'object type text'.
    This relationship is displayed for each infoset additional field: right click on the add. field ->  display/change definition, text identification ->  'Determine LIKE reference using text field' in the pop up window.
    Problem is this text field is <b>always</b> greyed out and uneditable. So the question was, how do you set this yourself?
    Hope this clarifies stuff, thanks for any help,
    Richie

  • 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

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

  • 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

  • Ad Hoc query Addition Field code

    Dear Experts,
    I need amend Ad hoc query to be able to report on Expected End MPP Q0088-EEMPP, It is not a standard field in the infotype for SE16 or SAP Query/Ad Hoc. We need to be able to query off this field. Can someone please point me in the right direction about how to get the calculated value from this field added to queries, or what code is needed.
    I have created an additional field in SQ02, i probably need code to make it fetch the data
    thanks
    haji

    Hi,
    Please take a look at standard function module HR_GBSMP_MPP_DATES. It returns the expected end date.
    Hope this helps.
    Donnie

  • Addition of new fields and sub dields in ad hoc query

    hey all,
    hey friends i would like to know how to add additional fields and the sub fields in ad- hoc query.
    i had tried sq02 and went on creating new field but it is nt adng there and no options of sub fields are visible.
    note: i am entirely new to sap hr.. so plz try and help me out in a laymans language.

    At the Date Field, there is 1 node call the Additional fields.
    Then Right click the Additional field and choose create >> additional field.
    Then enter the field name, description, Data type and length.
    After that right click the newly created field name and choose code
    Then enter some simple code.
    E.g.
    For IT2006 the table does not provide the quota balance. If order to display the quota balance we can create an additional field call ZBalance. Then at code section enter the code ZBalance = p2006-anzhl - p2006-kverb.

  • 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

  • Display Currency field in Ad Hoc Query

    I done enhancment in Infotype 23 for Last Salary drawn as currency field and ref type as PA0015 WAERS in Ad Hoc Query.  But I am not able to display the same field with value.  Its always shows me blank.  Is there any settings to be done to display currency field in ad hoc query??  Pl. help me as this is very urgent.

    Hi Praveen,
    i have selected both value and text, still i'm not getting it.

  • Form Error 40507: unable to fetch next query record

    Hi there folks,
    I have a Form (10g) where I have a Master Block and a Detail block. However, the other day, there was an Error reported:
    ORACLE error: unable to fetch next query record
    When we do capture Errors, we also capture the Last Query run. From that, it says that the last record that was queried was in the Detail block (Which is multi-record block) in tabular form. I looked at the Error Message but there is not much information on this Error.
    So, it's just a base table block and it has a drop down list which has two values. Any ideas what could have happened?
    Thanks!

    The Block is based on a a table. As a mattr of fact, there are 3 blocks in the form and they are all based on tables. Now, it migth be wrong for me to assume that the detail block in the one that caused the problem just because the Last Query was based on the detail block.
    Block 1 is a single record block -- Master Block
    Block 2 is a tabular block -- Detail Block
    Block 3 is a tabular block -- Detail Block
    There are two relations:
    Block 1 and Block 2
    Block 1 and Block 3

  • FRM 40507 Unable to fetch next query record ??

    I am working on forms/oracle 10G
    there is this form which has a Combo Box list item.
    data in this list is fetched from a table 'A'.
    while saving data the value in the list item is saved in
    another table 'B'
    Now when i try to query the form using F11 and Ctrl + F11
    it gives me an error :
    FRM: frm 40507 UNABLE TO FETCH NEXT QUERY RECORD
    please guide what should i do ?? ...
    regards

    Details of the FORM :
    a) there is only one table
    b) we are using 2 datablocks . parent and child. This is because the child is
    displaying about 5 records. No parent child relation is set in the datablocks yet or in the table. can we do this in a single table ?
    c) now the user shall select a value from the activity list ( combo box ) . The date and time are auto populated in when new form instance. User then enters data for the child records and clicks save.
    d) data is save correctly.
    e) but while querying data that is saved it errors out saying that : FRM 40507 Unable to fetch next query record
    Will we have to define a parent child relation in the single table or in the datablocks ?
    i m really confused ??
    Regards

  • Ad hoc query report geneartion

    Hi Guys,
    I am seeking your help on ad hoc query report generation.
    My requirement: There is a customized table maintained to fetch the description and the relevant data.. For ex: 
    Type of Vehicle
    Description
    XYZ
    Test description1
    ABC
    Test description 2
    The requirement is to fetch the description using ad-hoc query for all the type of vehicles. I have created a type of vehicle field and included in the field group. So far, I am able to get the type of vehicle on my ad-hoc report. But, the description fails to retrieve. Please note I have also created an additional description field on ad-hoc reports to fetch the description.. After the generation of the info set, I am unable to fetch the type of vehicle with the description.
    Can anyone please guide the field code that needs to be maintained specially to fetch the contents all together?
    Thanks.
    BP

    Hi,
    I have already mentioned that "Please note I have also created an additional description field on ad-hoc reports to fetch the description."

  • PC 10.0 - Error in Ad-Hoc query in Data Source

    Hi,
    We are facing an error when running an Ad Hoc query in the Data Source. We have built a DS to monitor the job log table TBTCO and was running the query to check if data is getting fetched correctly. But the query does not return any data and shows the message "Table does not contain visible columns". Is this an issue with the configuration of the SAP table or is the error on the PC side?
    Thanks,
    Soumya

    Hi Naveen,
    The connectors are setup and we are able to monitor other tables but not this particular table TBTCO.
    We have already added the table and the required fields into the Data Source. We are getting this error when running the query after that.
    Is this because of the Delivery Class L of the table TBTCO?
    Thanks,
    Soumya

Maybe you are looking for

  • Problems changing colour using Graphics class in java.awt

    Hi, The problem only happens when more than two images are on a panel. In this case, I have to strings that are drawn. The first drawn string is called "A" the second drawn string is called "B". However, when i change the colour of "B" to let's say R

  • HELP! I think my iPod is dying

    I have a 2004 fourth-generation 60G iPod with color display. It worked wonderfully for years on a PC. About 1 year ago, it started having problems. I accidentally ran it until the battery was drained. I tried to plug it in to recharge it. This did no

  • Acrobat 8 Pro not compatible with Win 7 Pro 64

    When I changed from Win XP Pro to Win 7 Pro I could not transfer Acrobat 8 Pro. Adobe Support just informed me that Acrobat 8 Pro was not designed for Win 7 and that's it. This was pretty frustrating and gave me the opportunity to search the market.

  • Proper audio setup?

    Hello there! I'm new to Archlinux and this is my first post on this forum. I've been using Ubuntu for about 2 years but I learned nothing about Linux. Now I have fast system where I installed only those things I wanted and I feel I accomplished somet

  • Redaction issue beyond the selected area

    FYI - I am using Acrobat X Pro v 10.1.13 If I convert a MS Word Document to a PDF file the Redaction works fine without affecting the rest of the document. The problem I am describing below only seems to happen on documents that have been scanned to