Adhoc query - length of service fields

Hi all,
I have question regarding the length of service fields in adhoc query (Actions infotype data fields PNP database).
When I select these fields I get different results according to reporting period; if i select a keydate then the service is calculated according to this date, but if I select a reporting period, then the service is calculated according to the start date of the reporting period.
Is this expected behaviour? Please let me know how this can be coded to reference the end date of the reporting period.
many 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

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

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

  • Adhoc query----Selection

    hi,
    in the adhoc query, for a particular field in custom infotype which is used for selection, iam not able to get the text , but able to see only the value. (if i press F4)
    what could be the reason?

    Hello Novice,
    Indeed text fields in query have never existed for all fields. In old releases if a
    text field did not existed, customers had to create additional fields for that with their own coding.
    As of release 46C a general method for identifying texts is available (not only for HR logical databases). It also evaluates the text based on DDIC information. Using this method it is possible to create
    exceptions for text retrieval not only at field level (via customizing table TEXC_FLD), but also at data element level (TEXC_DE) and domain level (TEXC_DOM).
    So with the new text identification in SAP query customers have the possibility of creating these missing text in an easy way, and also to define exceptions in case the text provided is not the desired one.
    You can check the note 491403 'Identifying text in SAP Query' . This note describes where you can find documentation on indentifying text in the system and on how to proceed if text for a
    field cannot be identified. If you ran the report RS_TEST_IDENTIFY_TEXT
    you could see the result for field the fields. Please, choose "HR Class" upon executing for Text Recognition.
    Hoping this information is helpful.
    Kind regards,
    Graziela

  • 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

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

  • Some fields missing in Adhoc Query

    In infotype PA0006 (Addresses) we have 4 telephone nr fields in view (PA0006-TELNR, NUM01, NUM02, NUM03).
    I have a requirement to make them all available in adhoc query.
    In SQ02 for the HR infoset, Infoset P0006 is already available in the database window, but only includes TELNR & NUM01.  Num02/3 are not available for me to drag into the field group for the users to be able to use.
    The table view clearly has these fields (+05 & 06), so I don't know why they arent available in mt database view in SQ02?
    Is there anyway to get them in, so I can make them available to the users, or is there a field property somewhere that excludes these from being available in SQ02?
    Thanks for any advice
    Graham

    You can add whole table PA0006 to your infoset by navigating to "Additional fields" section > right click > create > additional table PA0006.
    Then enter:
    SELECT SINGLE * FROM PA0006
    WHERE PERNR                = P0006-PERNR
       AND SUBTY                = P0006-SUBTY
       AND OBJPS                = P0006-OBJPS
       AND SPRPS                = P0006-SPRPS
       AND ENDDA                = P0006-ENDDA
       AND BEGDA                = P0006-BEGDA
       AND SEQNR                = P0006-SEQNR
    Then you will have all fields from IT0006 in your infoset.

  • Text (T) symbol  for field kostl not found  in adhoc query selection

    Dear Freinds,
                  We have developed a custom infotype , as per our requirement one of the field i have added is the Kostl field ( this i have created exactly the same way in infotype 0001).
    I have to devlop a report using ADHOC Query based on this custom infotype , so i have developed a adhoc report ( selecting the logical database PNPCE option as it is not allowing for PNP), when i selecting  the required feilds from the Custom infotype i can see for the field KOSTL field doesnt have the symbol(T)  against the field . However for another ADHOC report when i am selecting from the infotype 0001 i can see the T symbol for the KOSTL . So i went and check in the custom type structur and transparent table as well , the search help etc is exactly same as that of the which are there for this field in the standard infotype 0001(Kostl). Because i have to display the description of the cost centre along with the kostl field , howeve iam able to get for Pernr descirption , for pernr iam able to see the T symbol against the field Pernr.
    Please could any one guide why this field doesnt have the   symbol  T.
    regards
    divya.

    Why don't you the same data element of the KOSTL.
    Eventhough you created your own infotype you can still use the stanadard data element.
    If you use the standard datatype you will get those feature avalable
    Warm Regards

  • Adhoc query-Problem with Personnel no output field

    Hi Gurus,
    We are trying to run an adhoc query using a customized Info set(PNPCE logical database).
    While running the query,we had selected Personnel no(from Payroll status P0003 table) as output field and Company code(from Org assignment P0001) as input field in the selection.
    Problem is in the output field we are seeing the Personnel name details in place of Personnel no.Could anyone please suggest what could be the reason behind this and how to fix it.
    Your help will be highly appreciated.
    Warm Rgds
    Sushil

    Hi Sushil,
    The default output for fields with a text and a value (Name = text, PERNR = value) is the text.  You can change this by right clicking on the output box in Ad Hoc and selecting "Value".  If you want both name and number, select "Value and Text". 
    You can also change this default to Value from Text if in Ad Hoc, you go to Edit --> Settings.  On the last tab, change the radio buttion for output default to Value from Text.  This will change it for all fields so you would see the eight digit number rather than the name of the position or org unit.  Thus, you may want to keep it at Text and use the right click to change specific fields as needed.
    By the way, it is usually best to utilize the personnel number field from IT0000-Actions, although it can be obtained from any infotype if you include that field in the field group when creating your infoset. 
    Paul

  • Adhoc query missing field labels

    Hi,
    We have a problem regarding adhoc query. The fields are not showing all characters when you hit the refresh button at the bottom. For example, i chose to output Personnel Area, upon executing the refresh button, it is showing 2 characters only instead of four (US01 and is showing US only). This happens for some fields as well. It seems the labels are being cut. But when you check the field documentation, it says 4 characters. Also, when you click on the "output" button, everything is ok. Meaning, you can see all 4 characters for Personnel Area.
    The infoset we are using has been there for a long time already and there were no problems like this before, It was just now that this thing happened and were not sure what triggered this.
    please let us know if you have any thoughts about this, Thanks in advance!

    Hi Sanghamitra,
    Yes, i am referring to the reading pane at the bottom. However, there are quite number of fields that seem to be reduced. Also, the reading pane is working ok before and it shows the exact characters that you actually want to see. It has the same results as that when you hit the output button. We're not sure how it happened or if it was impacted by any support packs. With that, we want to know how to bring it back to its original appearance before.

  • Adhoc query custom field selection

    Hi Experts,
    In adhoc query, we have added a custom field and we find that it is giving correct output.  However, we want to make the "selection" box appear and we don't know how to do it.  Would you have instructions?
    If we add standard/ready-made fields to a field group, both the selection and output boxes are already available but if we copy the standard to make a custom field, only the output box is available.

    Hi,
    Where do we find this customizing field we need to select? We have tried accessing sq01 and changed a query we have created. We clicked on the basic list button and checked the checkboxes for list field and selection field.  When we got to infoset query, the selection checkbox is still missing.  Are we checking the right path?  The infoset is also missing that checkbox.
    We also got a suggestion here that maybe the problem is on the "extras" tab in SQ02 - that our field should have an entry there.

  • ADHOC Query - display field OPELO IT 0045

    hi experts,,,
    really need your help on this, i really need to add field OPELO - Loan amount balance in SAP Adhoc query.
    Please help.
    Thank You

    Hi,
    Where do we find this customizing field we need to select? We have tried accessing sq01 and changed a query we have created. We clicked on the basic list button and checked the checkboxes for list field and selection field.  When we got to infoset query, the selection checkbox is still missing.  Are we checking the right path?  The infoset is also missing that checkbox.
    We also got a suggestion here that maybe the problem is on the "extras" tab in SQ02 - that our field should have an entry there.

  • Increase length of output field in ABAP Query

    Hello All,
    I have one ABAP Query in which inside the  system  generated program for the Query, there is a write statement -
    write 030(020) anlav-invnr
    Because of this statement,  the field invnr is displaying in only 20 chars & the last two chars of the field invnr are not getting displayed.
    I want to display all 22 chars for field invnr.
    How can I increase the output length for this field.
    Please help.
    <vague subject corrected by moderator, please choose a meaningful one next time>
    Edited by: Thomas Zloch on Mar 3, 2010 2:34 PM

    >
    Jain Arpita wrote:
    > write 030(020) anlav-invnr
    Means displaying INVNR field at 030th position with 20 chars width. To increase the width you just give 022 instead of 020 like below.
    write 030(022) anlav-invnr
    Thanks
    Venkat.O
    Edited by: Venkat.O on Mar 3, 2010 11:28 AM

  • Text fields are not displayed for custom infotypes in Adhoc query

    We have developed a custom infotype , which we had incldued in the adhoc query.  when we generate output , it is showng codes instead of text . In the output filed , it is hwoing only vaue and Vale and text is diabled.
    please let me know , how to add text in the out filed filed
    thanks
    rajaram B bhat

    HI
    But in the out put filed , when  i click on the output filed , i am get three drop downs , only text , only value and valu & text.
    Only value is enabled and other two ate disabled.
    How to enable the othet two , i.e text only and value & text
    thanks & regards
    Rajaram B Bhat

  • 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

Maybe you are looking for

  • HELP! I need audio CD burning software that features "gain" control...

    ...that ISN'T Roxio Toast! (I realise that this is not a question about iTunes specifically, but I wasn't sure where else to post this.) I burn a lot of compilation CDs for the car, and for years I used Roxio's Jam 2.5 and 2.6 because they allowed me

  • Loss of Window "Views"

    Upgraded an App and when I restarted, all of my Folder settings (Icon size, Text size) all changed and the files within the folders were all jumbled up. I went through all the folders (!!!!!), reset/re-organized everything (open/close folders and the

  • Create a tree with recursive call for sub-rows

    Hello, I would like to create a generated menu dynamically created from values returned by sql. Structure is as follow : Menu   |   +-- MenuItem <--+          |        |          +--------+I can't know the maximum depth of the menu. How can I create

  • Manual white balance

    How do I manually white balance my three Sony HDR-HC1 hidef (consumer) video cameras in a dark theater? I produce DVDs of ballets for a local ballet company and I have trouble with color disparities between different camera angles when I am editing t

  • Partition Size Question

    Hi all! New here, and I just need some clarification on something. I'm thinking of reformatting my Macbook Pro and installing Windows 7 on it once I get a copy. Ideally I would like my entire hard drive to be Windows. Is this possible or do I need to