Adhoc Query: Through Additional Actions

Hi Gurus,
I am using following critera to pull a report:
Selection                                        Output
Additional action(0302)                    PERNR
All actions
report is nort generating any data, i have checked 0302 for records, reecords are there in PA0302.
Wht may be the reason?
Regards,
Sushil

If you do not want to use IT 0000 (Actions), then you can sure add it in  the infoset, go to SQ02 and then add infotype 0302 in your infoset, or create a new infoset.
Then you have to create the simple SQ01 query to meet your needs, I have just tested it and it worked fine.

Similar Messages

  • 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

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

  • SAP Query to join action infotype with additional action infotype

    We have created SAP Query on PA0000 which shows all actions that are executed for an employee.
    The problem is that if two actions are exceuted on the same day then it shows only one action instead of showing both the actions.
    As two actions are executed on the same day it will be stored in additional action infotype(0302).We tried to join PA0000(Action infotype) with PA0302(additional action infotype) in SAP Query by using joins(inner join/outer join) but it shows duplicate records.
    Is there any way to get additional action along with records of action infotype without any duplication in SAP Query.

    All entries that are in PA0000 will be in PA0302, but not vice-versa so you just have to reverse what you are currently doing, i.e.: create a Query on PA0302 and join to PA0000, and then make sure your selection criteria is from PA0302 and not PA0000.

  • How Transportation of Adhoc Query is done through RSAQR3TR report.

    Hi,
    How Transportation of Adhoc Query is done through RSAQR3TR report.i want to transport a new usergroup, new infoset and a query from Develpment to Quality and Production.
    I have gone through the documentation of the RSAQR3TR report and as well as the SAP library material, but still i am confused.
    Please help

    Hi,
    http://www.sap-img.com/basis/transport-of-abap-query.htm
    Hope this helps.
    Regards,
    Rashmi

  • Activation of Additional actions for existing Pers. Nos

    Hi Frdz,
    We have a scenario on additional actions that is; activation of additional actions for existing personnel numbers.
    1. Actually we uploaded personnel actions data without activating the additional actions in T529A. Then we came to know that can activate existing personnel numbers by maintain activation of additional actions T code OG00.
    I tried to activate per above procedure but SYS thrown error Pers.no XXXX X Error while creating additional actions.
    2. As well as I’m facing one more issue in Ad hoc query. When ever I transport query form DEV server to other servers I can’t execute query using assigned T code directly but once we execute query through SQ01, can execute with T code but this procedure can’t follow because in PRD I don’t have any access.
    Hence, kindly let me know the solutions to overcome these issues.

    Hi,
    1. While activating Additional Personnel Actions u vl find the node where in for already created personnel numbers u can activate. So maintain that node.
    2. Usally Adhoc Query authorization vl not be given to one particular user as its related with All The Users authorization as its related with client Administration.
    So Check vth ur basis guy
    Regards
    Pavani

  • Maintaining IT0014 and IT0015 through Personnel Actions or PA30

    Hello,
    I have one query. I would like to know the standard practise for maintaining the Infotypes 'Additional Payments' and 'Recurring Payments'. Is it advised to maintain those through Personnel Actions or directly through PA30? My client wants to know what is the good practise?
    Thanks in advance.
    Madhu

    Madhu
    It depends upon the requirement of the client
    Ex: in some of the cases we have food allownace will be the part of Structure and it is irregular income in that case the user has to maintain at the time of the hiring so in that case you have to maitain it in IT0014 and after some time he may ask the user to cancel the allowance and to add the income in special allowance etc
    Comeing to to IT0015 it is one time payment in order to decide you have to check with the functionality of the wage type

  • 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

  • Can't view data in IT302 - Additional Actions

    Hi Gurus,
    I cannot view any data in IT302 using Ad Hoc Query.
    Correct infoset was set up which include Additional actions infotype.
    IT302 was also properly set up in t77S0> ADMIN-EVSUP set to 1.
    And in T529A all Actions set to be updated in IT302.
    There are also Additional Action entries in table PA0302 but when I search it in Ad Hoc Query for a personnel number the fields (Action Type, Reason) turn up blank.
    Do I still have to make other configurations?
    Any ideas?
    Kindly help.
    Points will be given out
    Thanks,
    Olekan Babatonde

    I was in the need of getting the output based on Additional actions, and was able to figure out the way as how to do it., I am writing this here not that you would still in need but some one in future might come to this thread and get away with the answer.
    1. First we need to add Infotype 0302 to our infoset (Going toSQ02, Menu bar, Edit -> Change infotype selection.
    2. Once you have the infotype under the Data fields.
    3. Try adding each individual field under the field group/data fields by right clicking on the necessary infotype field and selecting Add field to Field group.
    4. Once you got all your IT0302 fields under field group/data fields right side of the window, save your infoset and run the  infoset query.
    5. Now you have the input fields and output fields to be selected from infoset query.
    6. Select input fields as Pernr, and action start date and end date from IT0000
    7. Select output fields from 0302 infotype fields, you may select all the necessary fields in the output, but the required one is "Counter Field"
    8. Once you have your hitlist from the ad hoc query, refresh the list from bottom of the screen and picks up all the ones who have the counter field as 1 - they are the ones, who has additional actions on specific date.
    Hope it helps to the viewers.
    Warm Regards!
    -Kanuku

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

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

  • 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

Maybe you are looking for

  • Is there any link between movement types and documents

    hi is there any link between sales doc and movement types ? is it the only source dependig on schedule line movement type will determined? if with out order we are doing delivery how system will determine movement type Thanks in advance

  • Macbook Pro seems to be bricked by ML install. Upon restart it shows a progress bar which makes it to about 15%, and then the machine simply shuts off. Help?

    Title pretty much says it all. Install seemed to be going fine, then upon restart it hit a gray screen with a progress bar for about 30 seconds. Once the progress bar makes it to about 15% the machine simply shut off. I tried turning the machine on a

  • Composite or Component AV Cable

    Which AV Cable is better for the iphone. The composite or component. I would like to watch it on the TV and charge at the same time and jujst didn't know what the main differences were between the two. THX

  • Ultimate iChat connection problem

    Just yesterday, iChat started refusing to connect to AIM for some reason. The connection continually timed out. Neither iChat, AIM proper, nor any other instant messaging client will connect to the AIM network. I tried changing both the AIM server, a

  • Job Not Found Exception

    AdminUI shows that the task was assigned to the user, as it says RUNNING, but, the task never showed up.  This was in the log.  Any explanation? Ran the exact same workflow again, and all worked fine. <Dec 8, 2009 3:11:14 PM EST> <Error> <com.adobe.i