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?

Similar Messages

  • Problem in Adhoc Query's set operation functionality.

    Hi Experts,
    I am facing problem executing Adhoc Query's set operation functionality.
    In Selection Tab, following operations are performed :-
    Execute a query and mark it as 'Set A'.(Say Hit list = X)
    Execute another query and mark it as 'Set B'.(Say Hit list = Y)
    In Set operation Tab, following operations are performed :-:-
    Carry out an Operations 'Set A minus Set B'.
    which results in Resulting Set = Z.
    Transfer the resulting set 'in hit list' and press the copy resulting set button.
    In Selection Tab, Hit list is populated with Z.
    And when output button is pressed, I get to see 'Y' list and not 'Z' list.
    Kindly help.
    Thanks.
    Yogesh

    Hi Experts,
    I am facing problem executing Adhoc Query's set operation functionality.
    In Selection Tab, following operations are performed :-
    Execute a query and mark it as 'Set A'.(Say Hit list = X)
    Execute another query and mark it as 'Set B'.(Say Hit list = Y)
    In Set operation Tab, following operations are performed :-:-
    Carry out an Operations 'Set A minus Set B'.
    which results in Resulting Set = Z.
    Transfer the resulting set 'in hit list' and press the copy resulting set button.
    In Selection Tab, Hit list is populated with Z.
    And when output button is pressed, I get to see 'Y' list and not 'Z' list.
    Kindly help.
    Thanks.
    Yogesh

  • Problem with Adhoc Query

    Hi
    I am trying to take out a report on employee's education through Adhoc query. When I am taking the report for all employees it is coming out perfectly. But when I am giving some selection conditions it is showing me blank fields.
    Suppose I want see educational details for only one employee having personnel number 1415.
    In the selection field of personnel number I am giving 1415 but all the fields related to education is coming blank.
    Samriddhi

    Please check the conditions you are giving in the selection screen is not matching with the data available
    For example Start Date
                       Employee Group
                       etc.
    make sure you are giving the proper values
    Best Regards

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

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

  • 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- problem with the output file format

    Hi Gurus,
    I have a problem in exporting the output of an adhoc query to Excel format.
    The menu option I chose to export the report data into Excel is List>Export>Spreadsheet.
    However,I think I've just pressed the wrong option to export my report and now I can't seem to change it from a HTML file option.
    Can anybody help me correct this output setting.
    Points assured for apt help...

    Hi Sushil,
    There are two ways to save the output in the excel format.
    As you have mentioned, you can use
    List -> Export-> Spreadsheet.
    Then select table. Now the output will open in a spreadsheet.
    The other way is
    List -> Export-> Local File
    Here you need to select the option spreadsheet. Then mention the path where you want the file to be stored. Also mention the format as .xls
    Hope this helps
    Regards,
    Brinda

  • Adhoc Query Join Problem

    Hi All,
    I have created a query on PNP logical database which looks very simple, Lets say it has pernr, first name, last name, and Mailing ZIP on the output. P0006-SUBTY = 'MAIL'
    Now, the problem is .... if someone do not have mailing address subtype populated then that pernr's record is not appearing on the output. ZIP should be blank if the Mailing Address subtype is not saved for that pernr.
    I am using PNP in my infoset so I think I do not have any control over the joins, PNP should not behave like this I guess, is it normal behavior or it can be fixed? or this is one of the reasons to go for Custom ABAP Reports as it cannot be done in SQ01?
    Is the only solution through Adhoc queries to add all these PA tables in Inner Joins instead of using PNP, in SQ02?
    Thanks in advance.

    It is a common behavior of Adhoc query in PNP. You will need to create custom fields and put logic for subtypes. Using joins is not a good solution, for performance issues you cannot join many tables and HR tables have begda and endda in tables which may create problems for proper joins.

  • Adhoc query problem

    Hi friends,
    I want to provide a report by Adhoc Query,
    My report consists personnel numbers and reason for actions(PA0000),
    In review pane, there aren't any problems, value and text fields are be displayed,
    but when I push "Start OUTPUT" button, output view is different from  review pane,
    there are some columns with "UNKNOWN TEXT" header and texts not be shown,
    just values are be displayed while I need the text and the value in my report.
    I really appreciate any help you can provide.
    Best Regard,
    Leila

    Hi Leila,
    Please check the following screen might be helpful.
    Right click on the field to see the pop up screen and select the desired values.
    Thank you
    Sri

  • Blank entry in adhoc query

    Hi All,
    Im have created a data source with table joins T001W and T134M.
    Filed MANDT has been maintained when the join condition has been established at Data source level.
    Adhoc query in business rule identifies the deficiency. But some filed in the result has blank entry.
    Attached the screen shot for your reference.
    Can you please let me know, how to fix the blank entry issue.
    Thanks
    Ashok S

    Hello Ashok,
    In this case, you have foundation and plug-in in both systems. I assume you have set data source and business rules in GRC system, am I right?
    If this is the case, you might have several problems as before SP 10 for GRC 10.0, backwards compatibility was not implemented yet. It means that you must follow SAP note 1352498 in order to synchronize your systems.
    If this is not the case, have you checked these values in SCU3 in ECC system?
    Best Regards,
    Fernando

  • How to enter /559 in Adhoc query?

    How can we enter Secondary wage types in Adoc query? Step by step

    Hi,
    You can download the Employee wise Bank Details of IT0009 or using Adhoc query
    You have employee wise WT reporter
    Now do a Vlookup with the Employee Wt report  and the Adhoc query.
    If you have problems in vlookup
    pls send both the files to me on hemant.mahale capgemini com
    Regards
    Hemant V. Mahale

  • How to track changes in Adhoc query?

    Hi all,
    We have requirement for retrofitting  the changes done in one Server to other, in the process the Changes in New server should not be overwritten.Currently for Adhoc queries - we're downloading from one server-  loading to the New server.
    Is there any way to track the changes in Adhoc query to avoid overwriting the changes.
    Thanks  in advance.
    Harika.

    Hi,
    You can download the Employee wise Bank Details of IT0009 or using Adhoc query
    You have employee wise WT reporter
    Now do a Vlookup with the Employee Wt report  and the Adhoc query.
    If you have problems in vlookup
    pls send both the files to me on hemant.mahale capgemini com
    Regards
    Hemant V. Mahale

  • Adhoc Query report not working fine

    Hi,
    We have a customized infotype  9222 which stores the previous experience of the employees.
    Now I have created a adhoc query in which I have added this infotype.The problem which I am facing is when I put the Indian company codes and run the report, the report is working fine . But when I put a Ukraine Company Code and then run the report ; the report does not picks the experience details of the employees and it shows Zero Yrs and Zero months.
    I have checked in PA30 the experience details are maintained  for the Ukraine employees.
    Is their any setting in the system which allows the infotype for a particular company? or what may be the reason for the strange behaviour of the report towards a specific compant code. Please reply asap

    Hi ,
    Pls check do you have authorization or not for to create Object Directory entry.
    Thanks and Regards,
    Revathi.

  • Adhoc Query Execution / Portal Authentication

    Hi there,
    When executing an adhoc query via the query designer I am asked to authenticate via the portal before the query is executed.
    Is this the way it should work in netweaver 2004s ?  Or do we have a communication problem between portal & BW?
    My portal consultant wasnt really able to give me any ideas.
    thanks
    Mark

    Hi,
    You have any Idea on the User Administration mapping done in the Portal Iview?
    I guess the Single Sign On done is not proper (SSO).You can achive this in the User Administration Properties of the System Created in Portal for BW. Portal Consultant will be the best person who can solve this.Else you can get the help of Basis who takes care the SSO.
    Regards
    Happy Tony

  • Adhoc Query error AQ_AD_HOC 221

    Hi All,
    I have added 7 fields with char1 as value in th it0077 group in the additional filed. My problem is while using the adhoc query output when i select only the infotype 77 fields i am getting the following error
    Mesage ID: AQ_AD_HOC Message number: 221
    Error when generatimg the report (see long Text).
    but when i select any other infotype fields and also 77 infotype fields then its coming fine. I dont know where i m doing wrong.
    I have used LDB PNPCE, and in the coding part of the additional fields i am using rp_provide_from_last.
    Please let me know where i am going wromg.
    Thanks and Regards,
    Salish Nair

    Hi,
    There may be many reasons for that issue. Can you please debugg the code to more deeper. Put break point in perform generate_report in the Fm AQ_INT_SAVE_QUERY_DEFINITION.
    Procedure
    If the selection screen is too large, you need to reduce the number of your selections.
    Make sure that the assigned InfoSet is correct. The name of the assigned InfoSet is stored in the menu option 'Extras -> Template Information'.
    Output at least one field. Otherwise you will not be able to save or generate reports.
    If you do not have this problem, execute the query using the 'Output' function.
    Otherwise, there is an error in the InfoSet Query.
    Thanks & Regards,
    Sandip Biswas

Maybe you are looking for

  • I cannot open any Adobe reader pdf documents in windows

    I have tried every solution on the support and I still cannot open documents. For example I tried to open "benefits" pdf document and nothing but a blank screen comes up. I have adobe reader 10. PLEASE HELP!!!!!!!!

  • While loop condition check

    Dear All, attached is an NI that does the following. 1. The user inputs a frequency and amplitude range to drive a speaker. 2. A laser displacement sensor measure the speaker displacement, checks if it is in the desired range, and jumps on to the nex

  • HTTPService in ActionScript

    I'm writing a service call in Actionscript (httpservice) and it doesnt seem to work as expected. I've looked around and haven't found anything that really explains this seemingly simple task, but some that come close. I'd appreciate some help. I have

  • Customization needed for capacity setting

    Hi all I cofigured the work center (Shift defination,shift sequence,break time) I have given for one shift there is 21 hours capacity available (as for three machines and each machine working 7 hours per shift) But when I check in t-code CM03(Capacit

  • [Solved] Can't find a way to run network manager in kde

    Struggling a little to get wi-fi set up on an arch machine running kde I've installed plasma-applet-networkmanagement but I can't get it to run There isn't any launcher for the applet on the menu anywhere but I have been able to find a .deskop file f