Ad-hoc query - data on one line pr.employee
Hi,
I try to get data on one line from ad-hoc reporting. When I choose to report on several IT0105 subtypes, the subtypes are written out on one line each pr. employee. This does not look good, and is a hazal to our customer since they need to edit the report in excel. I have tried to code the switches "PERSON_ONLY_ONCE" and "LAST_DATA_ONLY" without results. Any hints/tip?
Thank you,
Kind regards
Hilde
hello hilde,
I think it is not possible to do it with ad-hoc.
you have to use query itself, with creating your own layout.
SQ01
regards
Stefan
Similar Messages
-
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 -
SQL Query to retrieve one line from duplicate records
Hi
I have one table which contains duplicate records in multiple column but the difference is in one column which contains the value 0 or positive. The query i want is to retrieve only the line with the positive value for only the duplicated records.
here below a sample data for your reference:
CREATE TABLE TRANS
CALLTRANSTYPE NVARCHAR2(6),
ORIGANI NVARCHAR2(40),
TERMANI NVARCHAR2(40),
STARTTIME DATE,
STOPTIME DATE,
CELLID NVARCHAR2(10),
CONNECTSECONDS NUMBER,
SWITCHCALLCHARGE NUMBER
INSERT INTO TRANS VALUES ('REC','555988801','222242850',to_date('05/15/2012 09:15:00','mm/dd/yyyy hh24:mi:ss'),to_date('05/15/2012 09:15:25','mm/dd/yyyy hh24:mi:ss'),null,25,0)
INSERT INTO TRANS VALUES ('REC','555988801','222242850',to_date('05/15/2012 09:15:00','mm/dd/yyyy hh24:mi:ss'),to_date('05/15/2012 09:15:25','mm/dd/yyyy hh24:mi:ss'),null,25,18000)
INSERT INTO TRANS VALUES ('REC','555988801','222242850',to_date('05/15/2012 09:18:03','mm/dd/yyyy hh24:mi:ss'),to_date('05/15/2012 09:18:20','mm/dd/yyyy hh24:mi:ss'),null,17,0)
The output i want to have is:
CALLTRANSTYPE ORIGANI TERMANI STARTTIME STOPTIME CELLID CONNECTSECONDS SWITCHCALLCHARGE
REC 555988801 222242850 05/15/2012 09:15:00 05/15/2012 09:15:25 25 18000
REC 555988801 222242850 05/15/2012 09:18:03 05/15/2012 09:18:20 17 0 Thank you.Hi ekh
this is the query i want to have, thank you for the help:
SQL> Select *from
select CALLTRANSTYPE,ORIGANI,TERMANI,STARTTIME,STOPTIME,CELLID,CONNECTSECONDS,SWITCHCALLCHARGE
,row_number() over( partition by STARTTIME ,STOPTIME order by SWITCHCALLCHARGE DESC ) rn from TRANS
where rn=1;
CALLTR ORIGANI TERMANI STARTTIME STOPTIME CELLID CONNECTSECONDS SWITCHCALLCHARGE RN
REC 555988801 222242850 15-MAY-12 15-MAY-12 25 18000 1
REC 555988801 222242850 15-MAY-12 15-MAY-12 17 0 1Regrads
Lucienot. -
Setting reminder with date on one line
On Mavericks, I can do this in reminders.app: "pick up milk today 7pm" and it creates a reminder "pick up milk" and sets the "remind me" properly to 7pm today.
On iOS 7 and iCloud's reminders.app - I haven't figured out how to do this with text. (Siri with iOS will).
I would like to learn if there is a way to do this with text.No, you have to set the reminder info separately in iOS. Or just use Siri to do it for you.
-
hi
how i can execute multi query (select) in one line without using "Enter" key by sql*plus or Toad ?
for example , i want to do as following :
"select * from request_parameter_type where param_name like 'new%' ; / select * from fund ;"
but it show me "invalid character" error on ";" and force to place "enter" between them :
select * from request_parameter_type where param_name like 'new%' ;
select * from fund ;
thx in adv.
Edited by: s_hesam_s on Oct 12, 2008 12:29 AMYou can set the cmdsep variable but it seems just the output of the last statement gets displayed:
SQL> set cmdsep |
SQL>
SQL> select ename from emp | select dummy from dual
2 /
D
X -
IT 001, PPOME AND AD HOC QUERY
hi
i have an issue regarding all employees that their job description is ok in ppome but wrong in IT 001 and in ad hoc query
can any one have solution?Hi,
In table T77S0 (transaction SM30) you can set up what will be transferred to PA IT 0001 from OM:
'X': Transfer short text of org.unit to Personnel Administration
' ': Transfer long text of org.unit to Personnel Administration
PLOGI TEXTC for Job
PLOGI TEXTD for Org.Unit
PLOGI TEXTS for Position
Cheers -
To read more than one line...
I 've this code but it can read from keyboard only one line
(when I type enter after the first line an EOF is raised )>
BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
String sql = "";
System.out.println("Enter your JDBC/SQL query: ");
try {
sql = buf.readLine(); Someone can help me so that I can enter more than a line ?
Thanks a lot.Do you want the user to entry two queries, one per line, or do you want to allow a single query to
be entered on two lines?
What happens when the query is only one line long?
What happens when the user wants to use more than two lines to enter the text?
Suggestion: use a loop and use something simple like a blank line to signal
end of input. It's not hard:
import java.io.*;
public class MultilineInputExample {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
for(int i=0; i < 2; ++i) {
System.out.println("Enter multiline input. End with a blank line");
String input = readMultilineInput(in);
System.out.println("input = [" + input + "]");
//uses a blank (white space) line to signal the end
public static String readMultilineInput(BufferedReader in) throws IOException {
StringBuilder b = new StringBuilder();
String line;
boolean notDone = true;
while (notDone && (line = in.readLine()) != null) {
if ((notDone = !line.trim().isEmpty()))
b.append(line).append(' ');
return b.toString();
} -
SQ01 query, one field not populating in first line, pushing data to next line
Good day all
I have worked with queries for some time and have never encountered this error
I have a few table joins (FAGLFLEXA, BKPF, BSEG, EKKN, SKAT and EKPO), every thing works and displays correctly, except for the one field
EKKN (ABLAD) - Unload Point.
For some reason, when I test the query, it displays correctly with one entry, but as soon as you run the test for more entries, for some reason, the first Unloading point on the report is empty and the value reflects on the next line. If you display the physical documents where the data pulls from, you can clearly see that the entire report pushes down the field to the next line.
For example
Physical SAP Document GL and or PO:
Year Per Do Document No Profit Account Short Text Merch Amount in Grp Segm Posted on Unload Point
2014 001 XF 40000000000 ABCD 86100 Text ACD 72799.60 11 20140106 24/59/68
2014 001 XD 40000000001 ABCC 86100 Text ACC 18755.50 11 20140108 26/00/48
SQ01 report (with one line)
Year Per Do Document No Profit Account Short Text Merch Amount in Grp Segm Posted on Unload Point
2014 001 XF 40000000000 ABCD 86100 Text ACD 72799.60 11 20140106 24/59/68
SQ01 report (with more lines)
Year Per Do Document No Profit Account Short Text Merch Amount in Grp Segm Posted on Unload Point
2014 001 XF 40000000000 ABCD 86100 Text ACD 72799.60 11 20140106 2014 001 XD 40000000001 ABCC 86100 Text ACC 18755.50 11 20140108 24/59/68I found the error! The query was written in a certain format. For example it had many fields which was used to populate the data from different tables. The error occured because of the sequence. The query had to bring in a field but it had to derive it from a purchase order, but the purchase order check was after the said field therefor, when it looked at the Purchase Order, it found the field and populated it, but only on the second line. In the first line it couldnt find the Purchase order yet (as EKKO was lower down), so it didnt populate it yet....
SIGH -
Ad Hoc Query - While executing - System could not read any data
Hello Techies,
When I am excuting my Ad hoc query - for one personnel number for which Infotype 28 subtype 0001 has been maintained
But system is throwing this error -
System could not read any data
Message no. AQ_AD_HOC226
Diagnosis
There is no data available for the specified selections.
System response
The results list in the lower part of the screen still displays the last list to be created.
Please let me know why does it happening ?
Thanks
JaydeepIt was an date selection issue - as while executing the Ad hoc query - the reporting date is today -
changed to all -
Want to break down a date into 4 lines in one field
Hi all,
In report 10g , when a date value mask is like 'DY. MON. DD,YYYY' in a field,
it will be display whole date 'Mon. Apr.14,2008' in one line
but in the report i want it shows like below in one field (break in every word, four lines) because the filed honrizontal width is limited
Mon.
Apr.
14,
2008
how can i reach this in format trigger, i already use srw.set_value(0, to_char(sysdate))
but doesn't work.
Thanks for your help!
appcatTry this
select to_char(hiredate, 'Dy.') || chr(10) || to_char(hiredate, 'Mon.') || chr(10) || to_char(hiredate, 'dd,') || chr(10) || to_char(hiredate, 'yyyy') cdate
from emp
It was just an example. Use chr(10) for carriage return, whereever it is needed. -
Access data on multi-logical database with ad hoc query
Dear all,
I would like to know if it is possible to access data in multi-logical database with ad hoc query.
I recall that I read some document stated that you can access data in multi-logical database with PNP as base.
But I find no document about how to set it up, any comment?
Regards
BillHi Bill...
PNP can be accessible..............
PNP 0000-0999, 2000 to 2999 HR Master Data & Time
PCH.... I don't think so....
Experts please do reply on this please...................
Vijay
Edited by: Vijay Shankar on Sep 13, 2011 11:32 AM -
Ad-Hoc Query (Personal Data Infotype)
Hi,
Our employees are able to update/correct any personal details (name changes, addresses, NI number etc) using ESS.These changes are reflected in the personal data infotype. I would like ot run an ad-hoc query to pick up any personal changes that employees make.
How do I do this?
ThanksYou can do this by checking the AEDTM field of the infotypes.
Regards,
Amit -
PC 10.0 - Error in Ad-Hoc query in Data Source
Hi,
We are facing an error when running an Ad Hoc query in the Data Source. We have built a DS to monitor the job log table TBTCO and was running the query to check if data is getting fetched correctly. But the query does not return any data and shows the message "Table does not contain visible columns". Is this an issue with the configuration of the SAP table or is the error on the PC side?
Thanks,
SoumyaHi Naveen,
The connectors are setup and we are able to monitor other tables but not this particular table TBTCO.
We have already added the table and the required fields into the Data Source. We are getting this error when running the query after that.
Is this because of the Delivery Class L of the table TBTCO?
Thanks,
Soumya -
Incorrect leaving date in ad hoc query
Hi all
Well I am running an ad hoc query for the numbers of leavers from the company and the reasons for it. This is working absolutely fine but its not showing the correct date of leaving for the employees. even if i have changed the period from 01.01.2007 to 04.07.2007, it still picks up the data for all the employees who have left the company before this period like for the years 2002, 2003, 2004, 2005, 2006.
I need urgent help/advice on it.
Please help me out urgently.
Thanks and Regards.Hi Suresh..
Thanks for the prompt reply. I have infotypes 0001, 0002, 0006. I also agree to the fact that infotypes like 0001 stay valid even after the employee has left the organization, but Suresh the problem is that it should not be picked up these in the report when it is run for the period from 01.01.2007 to 04.07.2007. this is what is happening in this scenario. the report is picking up the data which is a lot older than this. Is there any way to fix this problem??
Thanks and Regards -
Employee Entry Date in ad-hoc query
I have maintained dates in IT0041 - datetype 01, IT 0016 KONDT and also IT0000 has Hiring date with Emp Status 3 active.
The entry feature is also active. When i test the Function module, it brings the correct date.
However, when i run ad hoc query the output does not bring Entry Date . The values output for all employees is 00.00.0000. Can someone please guide how to resolve this error.
Thanks in advance
JGHey,
Check this Entry date not proper in adhoc query
Hope its helpful.
Regards,
Manoj.
Maybe you are looking for
-
Crashes when trying to open project/event
I have been working on a large (very, very important) project for the last three months. I had an hour and 20 mins of footage over three camera angles to edit together. I have experienced continuous crashes throughout working on this, I would get abo
-
Setting up a Network form my work to my home computer: Both are Macs
I have a Dual-Core Intel Xeon at work and a MacBook Pro at home. I want to be able to access my office computer from home. Is there a complete step y ste setup guide somewhere to talk me through exactly what needs to be done? I have a home network wh
-
OK, I'm throwing the towel in and I've given up on BB obtaining an iPhone for me
I was the FIRST pre-order at my local BestBuy. My order was placed at 10:15am on 9/14 and everyone told me that I 'should' get my phone during the first weekend of sales. Since placing that pre-order I've: -received multiple order emails with diff
-
Getting this error from DirSync Unable to update this object because the following attributes associated with this object have values that may already be associated with another object in your local directory services: [UserPrincipalName [email prote
-
Reduce vendor invoice in total
Dear all, If i have invoice with many line items in MIRO T,Codes, now supplier invoice came with less amount and i would like to reduce my invoice amount at MIRO before posting, so i need to go to each line items and reduce some amount from each line