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

Similar Messages

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

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

  • Additional field in SAP Query

    This problem is about sap query. I have created an additional field in an infoset. The initial header text of this additional field is english. Then I created a query which use the additional field as an output field. If I use this query in other language, however the additional field header remains english. How can I maintain addtional field header to support mutil-language?
    Thanks in advance!
    --Alex Miao

    Hi Alex
    Please see if below example helps you to understand:
    Supposing, we are displaying material description within our query.
    1. So we define the join with MARA & MAKT while creating infoset in transaction SQ02.
    2. We create feild groups to identify the fiels we use for selection and display.
    3. Here after selecting language key from MAKT, by default this will take SY-LANGU always for the case.
    4. To make it applicable for different languages we can code in INITIALIZATION Event.
    5. To do so we can do it by two options: Use menupath: Goto->Code->Initialization
    i) First option using variable: <b>MAKT-SPRAS = SY-LANGU.</b>.
    ii) Second option using Parameter-Id: <b>SET PARAMETER ID 'SPR' FIELD SY-LANGU</b>.
    6. Save & Generate.
    Now when we execute the query, we are defaulting the language as System Language.
    Hope the above info helps you for better understanding.
    Kind Regards
    Eswar

  • 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

  • Adhoc query -sq02- Additional fields

    HI experts
    I am working additional fields in SQ02 .
    I added a additional field for an infotype in SQ02  .Issue when I go to Tcode PQAH and run the query .I Could not able to see the selections check box for my additional fields which is useful to select as input field .
    And when I right click on my additional field I could see  options 'Only value'  but for other fields I could see ' only value ' , 'only text' and ' value and text' .
    If any one worked on these kind of issues .Please give pointers .and requirement is specific.

    Hi Kamesh,
    I have the same issue - did you resolve this issue, and please could you share how?
    Thanks,
    Vaishali

  • SQ02 - Ad Hoc Query - Custom additional fields

    HI experts
    I am working additional fields in SQ02 .
    I added a new additional field for an info type in SQ02.
    Issue is when I right click on my additional field I can see options 'Only value' but for other fields I can see ' only value ' , 'only text' and ' value and text' .
    When creating the new field in SQ02, the check box "Determine LIKE reference using text field" is disabled.
    Is there is configuration somewhere or any other way, where I can also get the text for the custom additional field?
    I can see that this question has been asked earlier, but there are no responses.
    Also on SAP documentation, this field is shown as enabled.
    But I cant get the text for a additional field working. Please coyu post your suggestions?
    Thanks,
    Vaishali

    Hello Srini,
    Thank you for your time.
    Consider the additional field SYHR_A_P0001_AF_PL_CTRY (country) in Infotype 0001 in the infoset.
    This field does not populate any country code or text for us, so I need to create a custom additional field that will have the same functionality.
    I have created two new additional fields - Z_Country_Code and Z_country_text in additional fields section of IT0001.
    One field fetches country code and other fetches the text corresponding to this code.
    What I want to achieve is the standard functionality that is available for standard fields - P0001-WERKS for example.
    In the query output, you could select to display text/code/ text and code.
    For the additional field "Country", I have to select two separate fields - Z_Country_Code and Z_country_text  to achieve the same  functionality.
    How can I achieve this?
    When we define a custom additional field, in the field definition section, there is a check-box "Determine LIKE reference using TEXT FIELD" , but this is disabled when I create the additional fields. Perhaps, if this is enabled, then I can define the text table.
    Any ideas how to enable this text box?
    Vaishali

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

  • How to make SAP Query additional field as one of the selection field ?

    Hi experts,
    I'm working on a AdHoc query. I added some Additional fields to the infoset. I put Abap code to populate this additional fields as output fields but I want to make these fields as selection fields also.
    How can I accomplish this ?
    I'd appreciate any answer or suggestion.
    Thanks in advance.

    See Extended / Quick Search capability with attributes in the following SAP notes.
    [482338 - Using Extended Search in ISA B2B, ver. 30|https://service.sap.com/sap/support/notes/482338]
    [792556 - Quick search using several attributes|https://service.sap.com/sap/support/notes/792556]
    [888528 - ISA R/3 4.0: Extended catalog search not consistent|https://service.sap.com/sap/support/notes/888258]

  • 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

  • SAP Query - Additional field that collects information from table RESB

    Hello gurus. I have a question.
    I want to create a SAP Query that shows me the stock level of a list of materials, and also show me the total quantity of order reservations in an additional field.
    I created an InfoSet with table MARD, which is the one that holds the Stock information in a plant. Then I created an additional field which would read information from table RESB, the table that holds order reservations per material.
    So I wrote this piece of code:
    SELECT * FROM RESB
    WHERE MATNR EQ MARD-MATNR and
           WERKS EQ MARD-WERKS.
    ENDSELECT.
    if ( sy-dbcnt NE '0').
          MOVE RESB-BDMNG to ZQTY.
    ELSE.
          MOVE '' to ZQTY.
    ENDIF.
    This works fine. However, this is currently just catching the first record in table RESB that matches my condition.
    What I would like is to collect every instance of RESB-BDMNG and add them to field "ZQTY", have it loop in RESB until it finishes finding every record that match the MATNR and WERKS. With this I could get the total number of order reservations that this material has in that table.
    Could someone share some coding that would help me achieve this?

    Yes! That did it. That's what I needed to do. Thank you so much.
    While I'm at it, let me ask you a related question.
    When I execute the query, in the first records of the query where there's no value from RESB to transfer, the value of field ZQTY appears empty. Once it finds the first record in RESB and it populates ZQTY with a value, then the rest of the records with no hit get the proper value of 0.
    Do you know why the first records in the query appear empty and not with a 0? Is there anything I should add to the coding to fix this?

  • 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

  • Additional fields in SAP Query

    Hi ,
    We have a requirement in HR reporting wherein we are providing the late attendance records of the employees. That is the person is scheduled to come at a respective time but he comes in late and this record is created in attendence infotype . Now we need to see the variance in his planned and actual arrival . Majorly all the fields are availabe in the Infosets but the one with the variance is not there . So do we need to create a custom report for the same or it can be handled in the SAP query adding one field for calculation. If it can be handled , how can that be possible .
    Thanks & Regards

    Please check this link:
    Re: query report
    I guess, it can help for your case too...
    Even this:
    Re: sap query infoset and fieldgroup
    Re: Additional field in SAP Query
    Kind Regards
    Eswar

Maybe you are looking for

  • ODBC connection to Oracle 7 will not reset

    We are using Oracle JDBC drivers for all but one of our datasources which is an old Oracle 7 database. The ODBC connection to this database will not reset when the database is bounced or the database server is rebooted. We have to restart the ODBC se

  • LOST songs help me

    So I moved to the north west left my computer which my ipod was sync to and now using a new computer. So when I started to use itunes for the 1st time it asked me if I wanted to sync and I said yes...LIke a dummy...Does this mean all my previous musi

  • Exclude Customers from the Dunning process

    Hello SAP gurus, i have a small issue here. We are putting the parameteres for the Dunning notices to be processes in Tcode F150 as follows, Dunning Company code : 1000 Customer : NO* In additional log customers to be Excluded -  N865866 and 12566222

  • ALV calculating totals

    Hello Fellow ABAPers,   I have created a ALV grid report and by trapping the EVENT after_refresh and using method get_subtotals I have read the total lines, recalculated a couple colums based on the totals and using method refresh_table_display EXPOR

  • Upload privieleges problem

    Hi, I encounter the following problem. I have a table called "images" with the fields: ID an URL. I create a Form page in portal when my field URL have the type "UPLOAD FILE(Binary)". When I execute the form, works OK. But I have too a Dynamic Page t