Ad-Hoc query output issue
Hello Experts,
Recently we have upgraded the system and we are facing issues with Ad-Hoc query output.
Issue : After entering data in selection fields and click on "OUTPUT" button we are getting output. now I changed the selection field data and click on "OUTPUT" button then we are getting message "No Data selected".
But when clicked on "HIT LIST" button for changed selection fields then we are getting HIT LIST count and after click of "OUTPUT" button we are getting output.
So at this point this is unclear why it is working after HIT LIST? This is not consistent but appearing most of the time.
Regards,
Saurabh
Thank you for reply. Yes I have checked SQ03, 02 and 01.
It is not specific to particular query it is appears to be for all the queries.
The important thing is to get the output we need to click first HIT LIST button and then OUTPUT. Is there any specific settings maintained for displaying output without clicking HIT LIST ?
Similar Messages
-
When I access Ad Hoc query (S_PH0_48000510) to run an existing report, instead of selecting the output button right away, I click on Hit List, get the number of records, then I click on display (eyeglasses). The pop-up window shows me 24 records, all of which I am expecting to see as they fall within my selection criteria. I select them all, then click on the output button. Only 7 records show upu2026 And, there are no error messages or authorization messages. I checked the layout and filter, and everything looks correct. Does anyone have any ideas as to what I'm missing? There are no calculated fields; this is just a simple query.
Thanks in advance!!Hi Debbie,
One thing we did in all of our custom Infosets was to include the start date and end date of every infotype as well as the date changed and who changed it. Thus, when we run reports that are date specific we can say that the start date and/or end date must fall within that range and we can also output that info.
I do not know your data or selection criteria, but the problem may lie with data that is no longer current or "top of stack" that excludes hits from being included in the output. One example is with IT0000-Actions. You may be seeking those employees who had a Rehire action since January 1st. But a later transfer or leave of absence action may now be "top of stack" and the current action, thus is no longer "Rehire", Your output would only be those whose latest action is Rehire and the others with later actions would be left off. Adding the start and end date fields will sometimes allow the output of the older Rehire record as would deleting the action type in the selection once the Hit List was maintained in the Reporting Set section. You would now see the Rehire along with the other actions.
Paul
Paul -
Capture SAP Ad-Hoc query output in report
Hi All,
I have to run an Ad-hoc query from report (se38 program) and after execution of that Ad-hoc query I have to capture the output of that query and use in Report.
I am trying the follwing approach but getting Run time error (internal Error)
SUBMIT XXXXX EXPORTING LIST TO MEMORY
Data:
v_spool like pri_params-plist,
v_text like pri_params-prtxt,
v_print_parms type PRI_PARAMS,
V_valid TYPE c LENGTH 1,
v_spool = sy-uzeit.
v_text = sy-uname.
call function 'GET_PRINT_PARAMETERS'
exporting
destination = 'locl'
list_name = v_spool
list_text = v_text
user = sy-uname
importing
out_parameters = v_print_parms
valid = v_valid
exceptions
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
others = 4.
IF V_valid = 'X' AND sy-subrc = 0.
SUBMIT SAP_QUERY_AD_HOC
TO SAP-SPOOL
SPOOL PARAMETERS v_print_parms
ARCHIVE PARAMETERS archi_parameters
WITHOUT SPOOL DYNPRO
WITH p_wsid = 'X'
WITH p_bgname = 'ZHR_OM_PA'
WITH p_sgname = 'ZHR_PA_PERSONNELADMIN'
WITH p_quname = 'Z_HRDATA' AND RETURN.
ENDIF.
Thanks in AdvanceMy friend. Runtime error is like saying "it doesn't work please help me". You need to give more details if you want someone give detailed anwser. It's technical forum so please try to explain technical nature of your problem. In other words, what is the dump saying?
Regards
Marcin -
Ad Hoc Query Data Issue for Position Based Infoset
Experts,
I've created an infoset that is based on the S object using the PCH database. For this infoset, I've included several infotypes with focus on 1000, 1001, and 1028. I've included the Address infotype (1028) as this is where we store our work location information. For some reason though when I attempt to pull information from 1028, specifically the House Number and Street field, the Postal Code field, and the City field.
For some reason though, no data is being returned in those fields. I've verified for the position (in PP01) that I'm querying on that the data is maintained in 1028, and I've verified that I'm attempting to report on the correct fields by verifying the field technical names I'm pulling in the Ad Hoc Query with those I know have data stored in them on the infotype for the specific position.
Would anyone have any guidance on what could be happening here or what I might need to adjust to be able to pull this data?
Thanks in advance for your time and help.
Best Regards,
JoeTo add some further clarity to this item, the Address infotype on the Position (S) object is pulling from a dropdown of selectable Buildings. If unfamiliar, the Building drop is populated by configuration data from the IMG. The fields that are populated then in the Address infotype actually come then from the Building entries and are simply populated onto IT1028 (address) depending on which Building is selected.
I think this is what it occuring then when I select the fields from the Address infotype and I see nothing populated in the Ad Hoc query since the field information is not actually stored in IT1028 but on in the Building entry.
Has anyone else experiencing this particular problem? If so, have you found a solution?
Regards,
Joe -
Oracle: 10.2g
with my_tab as (select 99999 player_id, 'John Smith' player_name, 'Bulls' team_name, 16 points, 1 sequence from dual union all
select 99999 player_id, 'John Smith' player_name, 'Pistons' team_name, 4 points, 2 sequence from dual union all
select 55455 player_id, 'Bob Johnson' player_name, 'Rockets' team_name, 6 points, 1 sequence from dual union all
select 66489 player_id, 'Chris Terry' player_name, 'Kings' team_name, 2 points, 1 sequence from dual union all
select 99999 player_id, 'John Smith' player_name, 'Lakers' team_name, 8 points, 3 sequence from dual union all
select 66489 player_id, 'Chris Terry' player_name, 'Nuggets' team_name, 19 points, 2 sequence from dual union all
select 66777 player_id, 'Bob Terry' player_name, 'Spurs' team_name, 99 points, 1 sequence from dual union all
select 66331 player_id, 'Charles Smith' player_name, 'Jazz' team_name, 13 points, 1 sequence from dual)
select player_id,
player_name,
first_team_name,
sum(points) points,
||first_team_points
||' for '
||first_team_name
||
Total_Points
from (
select player_id,
player_name,
team_name,
points,
min(team_name) keep (
dense_rank first order by sequence
over
partition by player_id
first_team_name,
min(points) keep (
dense_rank first order by sequence
over
partition by player_id
first_team_points
from
my_tab
group by player_id,
player_name,
first_team_name,
||first_team_points
||' for '
||first_team_name
||
Current output:
1 66489 Chris Terry Kings 21 (2 for Kings)
2 99999 John Smith Bulls 28 (16 for Bulls)
3 55455 Bob Johnson Rockets 6 (6 for Rockets)
4 66777 Bob Terry Spurs 99 (99 for Spurs)
5 66331 Charles Smith Jazz 13 (13 for Jazz)
Desired Output:
1 66489 Chris Terry Nuggets 21 (2 for Kings)
2 99999 John Smith Lakers 28 (16 for Bulls, 4 for Pistons)
3 55455 Bob Johnson Rockets 6
4 66777 Bob Terry Spurs 99
5 66331 Charles Smith Jazz 13
Details:
- Sequence column is the sequence number of which team the player currently plays on, meaning the if a player was trade or switched teams like John Smith, the highest sequence is the players current team, so the Bulls was his first team, Piston 2nd, and Lakers current (since the highest sequence number)
-If a player changed teams (returns in more than one row of results) I would like:
A) current team listed as Team, so for John Smith above it should be Lakers
B) in perentesis, he should have his first team listed 1st along with point total scored on that team, 2nd team second w/point total and so on....
Like: John Smith Lakers 28(16 for Bulls, 4 for Pistons)
Not sure how to change my query around, thanks.
Edited by: user652714 on Mar 25, 2009 4:25 PM
Edited by: user652714 on Mar 25, 2009 5:06 PM>
...but how do i go about concatenating the 'points' and 'total_points' columns. I tried to do something like...
>
something like this,
with my_tab as (select 99999 player_id, 'John Smith' player_name, 'Bulls' team_name, 16 points, 1 sequence from dual union all
select 99999 player_id, 'John Smith' player_name, 'Pistons' team_name, 4 points, 2 sequence from dual union all
select 55455 player_id, 'Bob Johnson' player_name, 'Rockets' team_name, 6 points, 1 sequence from dual union all
select 66489 player_id, 'Chris Terry' player_name, 'Kings' team_name, 2 points, 1 sequence from dual union all
select 99999 player_id, 'John Smith' player_name, 'Lakers' team_name, 8 points, 3 sequence from dual union all
select 66489 player_id, 'Chris Terry' player_name, 'Nuggets' team_name, 19 points, 2 sequence from dual union all
select 66777 player_id, 'Bob Terry' player_name, 'Spurs' team_name, 99 points, 1 sequence from dual union all
select 66331 player_id, 'Charles Smith' player_name, 'Jazz' team_name, 13 points, 1 sequence from dual)
SELECT player_id
, player_name
, Min(team_name) KEEP(DENSE_RANK First Order BY r_sequence) As team_name
, Sum(sum_points)||' '||Max(Case When r_sequence > 1 Then
'(' || REGEXP_REPLACE(SUBSTR(all_points,2),' ,[^,]$') || ')'
End) As total_points
FROM (SELECT player_id
, player_name
, team_name
, sequence
, Sum(points) As sum_points
, ROW_NUMBER() OVER(Partition BY player_id, player_name Order BY sequence Desc) As r_sequence
, STRAGG(' '||Sum(points)||' for '||team_name)OVER(Partition BY player_id,player_name Order BY sequence) As all_points
FROM my_tab
Group BY player_id
, player_name
, team_name
, sequence)
Group BY player_id
, player_name
Order BY Case When instr(total_points,'(') > 0 Then
regexp_replace(total_points,'([[:digit:]]+)[ (].*','\1')
End
, player_name;output
PLAYER_ID PLAYER_NAME TEAM_NAME TOTAL_POINTS
66489 Chris Terry Nuggets 21 (2 for Kings)
99999 John Smith Lakers 28 (16 for Bulls, 4 for Pistons)
55455 Bob Johnson Rockets 6
66777 Bob Terry Spurs 99
66331 Charles Smith Jazz 13Regards,
Christian Balz -
Ad hoc query - Infoset, after selection it is giving two different output
Hi All,
We are facing problem in ad hoc query, after PQAH Ad hoc query, when we go to one infoset, so after making some selection and putting some output field,
When we click on refresh data button(in lower pane) so it gives only one record, which is incorrect, but when we click on u2018Start Outputu2019 button it gives 3 records those are correct.
Can anyone tell me, why this is giving different output.(first time 1 record, and second time 3 records) record 3 output is correct.
Regards,
Kumar
Edited by: kumar r12 on Mar 18, 2011 9:00 AMHi Kumar,
Are you looking at the "Hit List" or the output of the results in the lower pane? The hit list will only give you the number of persons who will be in your output. The refresh button should give you a preview of the output.
What persons or fields are different or not shown in the preview area vs. the output? Also, what are the dates for the data? Are you looking at current data or looking for history? The output may be showing you history and the preview only current data. Most concerns with Ad Hoc Query output are related to dates - for the selection and the output.
Paul -
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 -
Hello Gurus,
I am having an issue with query output.Please find below the details of it
Unsold claims: Total---> 200
Dispatch: Total--->118,086
Unsold claims/dispatch--->0.001694
This should be the output but its coming --.0033120 because itu2019s dividing with max value in dispatch which is 60,386.
Reason: The aggregation property of Dispatch is max value. I am not supposed to do any changes in Modeling. So can we do any thing at reporting level to get the desired output?
Desired output---->0.001694
Output coming---->.0033120
Please help me in getting the desired output at query level.
Regards,solved with the help of nested exception aggregation
-
Issue with Saving the Query output data in Excel format
Hi,
Recnetly we had upgraded from 4.6c to ECC 6.0.
In ECc 6.0 environment, when user try to export the query output , we are getting only XML option to save the data.
But user want to save the data in EXcel format, he was able to do that in 4.6C.
pleas eprovide some inputs, on this issue.
Thanks,
Sanketh.I cannot for the life of me imagine, why a link to a post in the 'Business One Forum' where one uses ODBC to transfer query-data to MicroSoft Excel is of relevance to the OPs question, even if the same is not a security issue.
Never mind. [note 40155|https://service.sap.com/sap/support/notes/402155] deals with various symptoms in the ALV-Excel combination as as of release 4.6C. There are various others, mostly in components BC-SRV-ALV and BC-ABA-LI - also: I remember that when we upgraded from 4.5B to 4.7C there was an issue with Excel-templates -> the solution was in the release notes somewhere. So, in addition to SMP you might want to check the release notes and/or upgrade guide for solutions.
And yes, moderators ... this is not a security issue, this should go to ECC-Applications/Upgrade. -
hi there,
I have an issue with the display of hours 00:00:00 in the query output in BW.
The system assumes it as 0 or blank and therefore display it under unassigned hour.
I am using the reference of 0TIME for this hourly display.
When I checked the 0TIME i could not find the corresponding SID value for 00:00:00 hours.
Can anybody please advise what needs to be done?
Thanks in advance,
Kind regard,
KateHi Kate,
I am experiencing the same problem as you: an InfoObject, created referencing 0TIME, represented in the BEX Query as "#" when the Value is "00:00:00".
How did you work it out?
The Formula Variable strategy is not applicable in this case because 0TIME is not a key figure !
Bye
Aldo -
Benefit cost reporting in ad hoc query
Is it possible to use ad hoc query to report on future dated benefit cost changes? I have tried several different ways but have not been successful.
I tried changing the date of the reporting period to match that of the effective date for the benefit cost change but the system still outputs the old costs.
I also tried using the benefit cost calculation date as a selection field and then enter the effective date for benefit change but that did not work either.
Does anyone have any insight? Thanks in advance for your input!Did you ever find an answer to your question? I am having the exact same issue. Unless a new infotype is saved with the dates that coincide with the cost configuration change, I cannot report on the new cost via Ad hoc or SAP query. The only thing that works is the standard health plan cost report but my users prefer to use query so they can get every field they need.
-
Ad hoc query without personnel no
hi,
In Ad hoc query t.code S_PH0_48000510 ,infoset(/SAPQUERY/HR_ADM) when I select personnel no & issue output, system is displaying personnel name instead of personnel no. Is there any changes need to be done or is it a system bug ECC6.
Regards,
Karthik.kDefining ad hoc query you can select personnel number as output field by right clicking on "Personnel number" in "Key fields" group. In the context menu you can find "Output" and three possibilities:
1. Only text - which is default and means an employee's name,
2. Only value - which means personnel number,
3. Value and text - in this case two columns are displayed: personnel number and the employee's name.
Regards,
Renata -
AAP and EEO Report by Ad Hoc Query
SAP Gurus,
My client went live with basic modules of SAP Jan 2007. The problem is with AAP EEO Report. We will develop ABAP report later. For now we want to generate the AAP EEO report by using Ad Hoc Query. We are storing the EEO and AAP codes in IT1610 for Job. If I have to build query what is the best way :
1- I tried an infoset with PNPCE and apart from the basic PA infotypes I selected 1000, 1001 and 1610 for job. But when I select EEO and AAP category in output I dont get the actual data. I know I am doing something wrong here but dont know what ?
2- If I will start a table join with IT0000, IT0001, .etc and V_T5U13 .will it work ?
Any other suggestions how can we address this issue temporarily by ad hoc query ?
SanghamitraFirst, do not try and reinvent the wheel...the EEO-1 and AAP reports are standard supplied SAP reports and can be found under Human Resources --> Personnel Management --> Administration --> Infosystem --> Reports --> Administration US --> Compliance.
The EEO-1 report is changing for 2007 and the latest support packs must be installed to give you the new tables and table entries, features and report layout needed for this year. See SAP Notes 976273, 435204 and 986115. The IT1610 itself changes as do the definitions, so the support pack installation is a must,
If you still want to try to get this information via Ad Hoc Query, you will need to utilize a PCH based Infoset. Create this based on the object Position. The position is your link between the person with HR Master Data and the Job with job related data such as IT1610. With this infoset, you can do the reporting on the EEO Job classes from IT1610 and the Ethnic groupings from IT0077-Additional Personal Data for the employee and gender from IT0002. -
Out put problem in Ad hoc query reports
Hi Gurus,
I am tryting to generate a report through Ad hoc query in S_PH0_48000510 - Ad Hoc Query SAP/Query/HR_ADM - > Selected several options like personnel number / employee name / entry date / leaving date.
But when we select it shows the input details but when i try for output the entry date / leaving date even the names of the employees are not reflecting.
But the age/date of birth other fields are coming in output.
Kindly let me know the solution to get a out put. If there is any changes need to be done in the back end. Pls advice with the path details.
Thanks & Regards,
Pradeep KrishnamurthyHi Madhu,
Yes, I did but out put is not coming.
Regards,
Pradeep Krishnamurthy -
Hi All,
i have used CMS in SQL 2008 R2. i have added couple of servers in its group. i have executed a query & i need to send the query output in the form of email.
basically query is checking the rows count from couple of user tables in servers.
issue here is how to copy the data that is used by CMS? i need to work on automate the rows count in difft user table in db servers
could you please suggest how can i achieve this?Copy to what?
SELECT COUNT(*) FROM sys.objects
Running the above statement returns two columns (server name and count)
All the servers SS2005 and onwards , then use
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'name',
@recipients = '[email protected]',
@query = 'SELECT COUNT(*) FROM sys.objects',
@subject = 'Count rows'
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence
Maybe you are looking for
-
currently i am working in InDesign CS5.5 version 7.5 i am working on a project that requires working with another person who is using the latest version of CC, how will CC effect my current project and will i be able to share the file ?
-
Is there a way to get a complete listing of the standard reports delivered with SAP? Examples of the reports would be helpful as well.
-
Comparing Table between two dbs DBMS_RECTIFIER_DIFF.DIFFERENCES
We have streams replication between two databases db1 & db2 (table level streams replication). We would like to compare tables between these databases. we can use DBMS_RECTIFIER_DIFF.DIFFERENCES to find out differences. However what is value to be pa
-
General Eclipse Question (Not a NetBeans vs Eclipse Thread!)
I am going to play around with Vaadin, and I am going to use Eclipse and the Vaadin plugin for this play. In reading the Book of Vaadin, the author actually recommend downloading Eclipse, unZIPping it, and running it from that unZIPped archive instea
-
Somehow, I've made a library management error. The photos in this particular project are filed in chronologically named folders (2007, 2008 etc with sub-sets of albums). The thumbnails in each of the albums are fine - no problem. But in the project i