Query output

Hi,
I have SERVER_UID_RPT table with the following details.
table consist of records of entry & exit for the employees.
But i want to query those user which have only entry granted but the exit granted entry is not there in table for the user & vice versa users having exit granted but entry granted record for the same user is not in table,
How do i find such entries from table?
also how to find total time for a user in day or in month?
CREATE TABLE "ITIP"."SERVER_UID_RPT"
   (     "CARD_HOLDER_NAME" VARCHAR2(100),
     "EVENT" VARCHAR2(100),
     "VDATE" VARCHAR2(19),
     "NETWORK" VARCHAR2(100),
     "DOOR" VARCHAR2(100),
     "SITE" VARCHAR2(100),
     "CARD_NO" NUMBER(10,0),
     "PRIORITY" VARCHAR2(100),
     "ISALARM" VARCHAR2(5) NOT NULL ENABLE,
     "CATEGORY" VARCHAR2(100),
     "LOG_DATE" VARCHAR2(19),
     "EMPLOYEE_CODE" VARCHAR2(100),
     "FIRST_NAME" VARCHAR2(100),
     "LAST_NAME" VARCHAR2(100),
     "ADDRESS1" VARCHAR2(100),
     "ADDRESS2" VARCHAR2(100),
     "CITY" VARCHAR2(100),
     "STATE" VARCHAR2(100),
     "COUNTRY" VARCHAR2(100),
     "PHONE" VARCHAR2(100),
     "FAX" VARCHAR2(100),
     "EMAIL" VARCHAR2(100),
     "DOB" VARCHAR2(19),
     "DOJ" VARCHAR2(100),
     "GENDER" VARCHAR2(100),
     "HEIGHT" VARCHAR2(100),
     "BLOODGROUP" VARCHAR2(100),
     "DRIVINGLICENSE" VARCHAR2(100),
     "EMERGENCY_ADDRESS1" VARCHAR2(100),
     "EMERGENCY_ADDRESS2" VARCHAR2(100),
     "EMERGENCY_CITY" VARCHAR2(100),
     "EMERGENCY_STATE" VARCHAR2(100),
     "EMERGENCY_COUNTRY" VARCHAR2(100),
     "EMERGENCY_CONTACTPERSON" VARCHAR2(100),
     "EMERGENCY_PHONE" VARCHAR2(100),
     "DEPARTMENT_UDF" VARCHAR2(100),
     "DESIGNATION_UDF" VARCHAR2(100),
     "COMPANY_UDF" VARCHAR2(100),
     "EMPLOYEEUID_UDF" VARCHAR2(100)
   ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
  TABLESPACE "ITIPINVENTORY" ;
  ALTER TABLE "ITIP"."SERVER_UID_RPT" MODIFY ("ISALARM" NOT NULL ENABLE);
insert into table SERVER_UID_RPT values(SONAWANE HARSHAD,Entry granted,06/01/2012 01:26:35,NET 23,5TH FLOOR SERVER ROOM,Root Site,675,,0,Verinet E2/4 Cards,2012-06-01 01:21:26,20090900(ELE),HARSHAD,SONAWANE (FACILITY ),,,,,,,,,2009-10-11 00:00:00,2010-10-11 00:00:00,Male,,,,,,,,,,,FACILITY,FACILITY,BNPP ISPL)
insert into table SERVER_UID_RPT values(SONAWANE HARSHAD,Exit granted,06/01/2012 01:26:45,NET 23,5TH FLOOR SERVER ROOM,Root Site,675,,0,Verinet E2/4 Cards,2012-06-01 01:21:36,20090900(ELE),HARSHAD,SONAWANE (FACILITY ),,,,,,,,,2009-10-11 00:00:00,2010-10-11 00:00:00,Male,,,,,,,,,,,FACILITY,FACILITY,BNPP ISPL)
insert into table SERVER_UID_RPT values(CHAUHAN AMIT,Entry granted,06/01/2012 05:58:43,NET 23,5TH FLOOR SERVER ROOM,Root Site,511,,0,Verinet E2/4 Cards,2012-06-01 05:53:34,S8(BMS),SANJAY,YADAV  (FACILITY),,,,,,,,,2010-05-07 00:00:00,2010-05-08 00:00:00,Male,AA,O +VE,,,,,,,,,FACILITY,BMS,BNPP ISPL)
insert into table SERVER_UID_RPT values(CHAUHAN AMIT,Exit granted,06/01/2012 05:58:56,NET 23,5TH FLOOR SERVER ROOM,Root Site,511,,0,Verinet E2/4 Cards,2012-06-01 05:53:47,S8(BMS),SANJAY,YADAV  (FACILITY),,,,,,,,,2010-05-07 00:00:00,2010-05-08 00:00:00,Male,AA,O +VE,,,,,,,,,FACILITY,BMS,BNPP ISPL)
insert into table SERVER_UID_RPT values(MAYEKAR PRAMOD,Entry granted,06/01/2012 08:55:07,NET 23,5TH FLOOR SERVER ROOM,Root Site,1068,,0,Verinet E2/4 Cards,2012-06-01 08:49:58,CO20088093,PRAMOD,MAYEKAR,,,,,,,,,2009-10-06 00:00:00,2010-10-06 00:00:00,Male,,,,,,,,,,,SECURITY,SECURITY SUPERVISOR,BNPP ISPL)
insert into table SERVER_UID_RPT values(MAYEKAR PRAMOD,Exit granted,06/01/2012 08:55:59,NET 23,5TH FLOOR SERVER ROOM,Root Site,1068,,0,Verinet E2/4 Cards,2012-06-01 08:50:52,CO20088093,PRAMOD,MAYEKAR,,,,,,,,,2009-10-06 00:00:00,2010-10-06 00:00:00,Male,,,,,,,,,,,SECURITY,SECURITY SUPERVISOR,BNPP ISPL)
insert into table SERVER_UID_RPT values(SONAWANE HARSHAD,Entry granted,06/01/2012 09:07:09,NET 23,5TH FLOOR SERVER ROOM,Root Site,675,,0,Verinet E2/4 Cards,2012-06-01 09:02:02,20090900(ELE),HARSHAD,SONAWANE (FACILITY ),,,,,,,,,2009-10-11 00:00:00,2010-10-11 00:00:00,Male,,,,,,,,,,,FACILITY,FACILITY,BNPP ISPL)
insert into table SERVER_UID_RPT values(SONAWANE HARSHAD,Exit granted,06/01/2012 09:07:26,NET 23,5TH FLOOR SERVER ROOM,Root Site,675,,0,Verinet E2/4 Cards,2012-06-01 09:02:19,20090900(ELE),HARSHAD,SONAWANE (FACILITY ),,,,,,,,,2009-10-11 00:00:00,2010-10-11 00:00:00,Male,,,,,,,,,,,FACILITY,FACILITY,BNPP ISPL)
insert into table SERVER_UID_RPT values(SONAWANE HARSHAD,Entry granted,06/01/2012 11:34:47,NET 23,5TH FLOOR SERVER ROOM,Root Site,675,,0,Verinet E2/4 Cards,2012-06-01 11:29:39,20090900(ELE),HARSHAD,SONAWANE (FACILITY ),,,,,,,,,2009-10-11 00:00:00,2010-10-11 00:00:00,Male,,,,,,,,,,,FACILITY,FACILITY,BNPP ISPL)
insert into table SERVER_UID_RPT values(SONAWANE HARSHAD,Exit granted,06/01/2012 11:35:03,NET 23,5TH FLOOR SERVER ROOM,Root Site,675,,0,Verinet E2/4 Cards,2012-06-01 11:29:57,20090900(ELE),HARSHAD,SONAWANE (FACILITY ),,,,,,,,,2009-10-11 00:00:00,2010-10-11 00:00:00,Male,,,,,,,,,,,FACILITY,FACILITY,BNPP ISPL)
insert into table SERVER_UID_RPT values(MAYEKAR PRAMOD,Entry granted,06/01/2012 11:35:35,NET 23,5TH FLOOR SERVER ROOM,Root Site,1068,,0,Verinet E2/4 Cards,2012-06-01 11:30:28,CO20088093,PRAMOD,MAYEKAR,,,,,,,,,2009-10-06 00:00:00,2010-10-06 00:00:00,Male,,,,,,,,,,,SECURITY,SECURITY SUPERVISOR,BNPP ISPL)
insert into table SERVER_UID_RPT values(MAYEKAR PRAMOD,Exit granted,06/01/2012 11:36:12,NET 23,5TH FLOOR SERVER ROOM,Root Site,1068,,0,Verinet E2/4 Cards,2012-06-01 11:31:06,CO20088093,PRAMOD,MAYEKAR,,,,,,,,,2009-10-06 00:00:00,2010-10-06 00:00:00,Male,,,,,,,,,,,SECURITY,SECURITY SUPERVISOR,BNPP ISPL)
insert into table SERVER_UID_RPT values(M .C BIDESH,Entry granted,06/01/2012 11:49:43,NET 23,5TH FLOOR SERVER ROOM,Root Site,1020,,0,Verinet E2/4 Cards,2012-06-01 11:44:34,CO20088045,BIDESH,M .C  (FACILITY ),,,,,,,,,2010-11-02 00:00:00,2011-11-02 00:00:00,Male,,B +VE,,,,,,,,,FACILITY,FACILITY,BNPP ISPL)
insert into table SERVER_UID_RPT values(M .C BIDESH,Exit granted,06/01/2012 11:50:10,NET 23,5TH FLOOR SERVER ROOM,Root Site,1020,,0,Verinet E2/4 Cards,2012-06-01 11:45:02,CO20088045,BIDESH,M .C  (FACILITY ),,,,,,,,,2010-11-02 00:00:00,2011-11-02 00:00:00,Male,,B +VE,,,,,,,,,FACILITY,FACILITY,BNPP ISPL)
insert into table SERVER_UID_RPT values(SONAWANE HARSHAD,Entry granted,06/01/2012 12:45:12,NET 23,5TH FLOOR SERVER ROOM,Root Site,675,,0,Verinet E2/4 Cards,2012-06-01 12:40:05,20090900(ELE),HARSHAD,SONAWANE (FACILITY ),,,,,,,,,2009-10-11 00:00:00,2010-10-11 00:00:00,Male,,,,,,,,,,,FACILITY,FACILITY,BNPP ISPL)How do i find such entries from table?
also how to find total time for a user in day or in month?
Thanks
Edited by: BluShadow on 11-Jul-2012 13:52
added {noformat}{noformat} tags for readbility.  Please read {message:id=9360002} and learn to format your own questions to help people to help you.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

First problem you have is this:
     "VDATE" VARCHAR2(19), Dates should be dates, not strings. Since you have it as a string you'll have to use
to_date(vdate,'MM/DD/YYYY HH24:MI:SS')every time you reference it.
select * from server_uid_rpt sur1  --Entry with no exit
where event = 'Entry granted'
   and not exists (select 1 from server_uid_rpt sur2
                    where sur2.card_holder_name = sur1.card_holder_name
                      and sur2.event = 'Exit granted'
                      and to_date(sur2.vdate,'MM/DD/YYYY HH24:MI:SS') >
                          to_date(sur1.vdate,'MM/DD/YYYY HH24:MI:SS'))
union
select * from server_uid_rpt sur3  -- Exit with no entry
where event = 'Exit granted'
   and not exists (select 1 from server_uid_rpt sur4
                    where sur4.card_holder_name = sur3.card_holder_name
                      and sur4.event = 'Entry granted'
                      and to_date(sur4.vdate,'MM/DD/YYYY HH24:MI:SS') <
                          to_date(sur3.vdate,'MM/DD/YYYY HH24:MI:SS'))For total time in a day or a month, use a start_date and end_date.
with ent as
    (select card_holder_name, to_date(vdate,'MM/DD/YYYY HH24:MI:SS') vdate
       from server_uid_rpt
      where event = 'Entry granted'
        and to_date(vdate,'MM/DD/YYYY HH24:MI:SS') >= :start_date
        and to_date(vdate,'MM/DD/YYYY HH24:MI:SS') < trunc(:end_date + 1))
    ,ex as
    (select card_holder_name, to_date(vdate,'MM/DD/YYYY HH24:MI:SS') vdate
       from server_uid_rpt
      where event = 'Exit granted'
        and to_date(vdate,'MM/DD/YYYY HH24:MI:SS') >= :start_date
        and to_date(vdate,'MM/DD/YYYY HH24:MI:SS') < trunc(:end_date + 1))
select card_holder_name, sum(time_in) from
  (select ent.card_holder_name, (ex.vdate - en.vdate) time_in
     from  ent
          ,ex
    where ent.card_holder_name = ex.card_holder_name
      and ex.vdate = (select min(vdate) from ex
                      where ex.card_holder_name=ent.card_holder_name
                        and ex.vdate > ent.vdate))
group by card_holder_name;

Similar Messages

  • Central Management server - executed a query but how to send the query output in the form of mail?

    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

  • ERROR displaying in the query output... urgetn

    hi experts,
    For the amount keyfigures in the query output it displaying ERROR after the amount like ex- 2000 ERROR.
    plz let me know how to rectify this..
    regards
    vadlamudi

    hi,
    i have created only two keyfigures EMP_BASIC and EMP_HRA. and in the transformations i have mapped with 0DOC_CURRCY.
    but in the report its showing ERROR only after the amount. plz tell me exactly with what field i need to map???
    regards
    vadlamudi

  • Issue In query output

    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

  • Change layout of Adhoc query output list for Custom infotype

    Hi All,
    The fields in the Infoset query output on a custom infotype are aligned with the fields u2018payment typeu2019 and u2018amountu2019 appearing repeatedly(in columns) as declared in the Infotype and the output will be a long horizontal list.
    Instead, the requirement is that the output list should show vertically so that If I choose u2018Payment Typeu2019 and u2018Amountu2019 as output fields, it will show a long vertical list as in the case of a standard infotype (IT0008).
    Also, this way enables user to use Payment Type as a selection criteria so as to just pulling the needed payment type. When we use IT0008 in the infoset it works fine but in custom IT it does not work.
    Any pointers/suggestions on how we can achieve this would be helpful.

    Hi yu liang,
                     You can find vendor list having Vendor No. & without showing total liability for every vendor.
    after executing the report,
    1.You need to select "change layout (ctrl+F8)",
    a small window comes, it has two part -> column content & hidden fields.
    then u select "Vendor" from hidden field & move it to column content.
    2. at column content there is a column named "Total". u need to remove check for your column name "amount".
    now select "copy" button or enter. u will find the req. report.
    u can save it also by ur name.
    hope its helpful to u.......
    plz, reward points as a way of thanks if helpful...

  • To download the query output to falt file

    Hi all,
    i have a query which i know will give more than 65k records as the output for a selection.
    i cannot run this query in excel due to its limitation.
    if i run on web i cannot download this as downloading is happening to excel file only.
    The customer ideally wants to download the query result to a text file(csv,tab-delimited etc) which inturn it will upload to MS-Access.
    How do i achieve this?
    SAP has given response use try using these options:
    1.open interfaces to receive the output of a query via the MDX language.
    2.open hub tool as it is designed for big amounts of data.(i suppose this is not possible as i want to download query output not the data target contents)
    how do i achieve my scenario with option 1?
    Are there any alternatives??
    Any useful help will be rewarded.
    Regards,
    Dhanya.

    hi vivek,
    thnks for the useful reply.
    i have some problem with my ID,hence loggin in through my coleague's ID.
    i will assign u points as i get logged in.
    I did as u said by downloading it to unconverted format.
    the file got download to a text file.where the output has
    1.header rows(10 lines almost)
    2.the values r coming in single quotes e,g:
    '144000023073      'TAAS SETTLEMENT CONV 738 '19333000   '30.09.2006          '0.000
    how can i remove all this?
    Regards,
    Dhanya
    I

  • How to get the Query output to Excel

    Hi ,
    Can you tell me how to get the Query output to excel with out using any third party tool?
    Can you tell me how to write the code in Webservice and call it..
    Please explain it Elaboartly..
    Thanks in Advance!!!
    Mini

    whats your source system?
    you can use Live office, or query as a webservice if you are getting data from universe
    if you're getting data from SAP BI query and you have a java stack on your netweaver then you can get the data directly using sap bi connector in xcelsius.
    good luck

  • Query Output to download in flat file through APD  or other means?

    Hello Experts,
    I am currently on BW3.5 system and have requirement to load query output in flat file in .csv format. I checked the option of APD but looks like we cant directly load the query output in flat file like in APD (BW  3.5 system) .
    One way i can think of it...load  the query output in transactional ODS and built an infospoke on it to write into flat file.
    Please advice if there are any better methods to store the query output in flat files.
    Thanks!

    Hi,
    Use RSCRM_BAPI.
    See
    Re: RSCRM_Bapi
    See the help on RSCRM_BAPI
    Re: Running Quaries automatically and saving them in as a Excel file in Server
    Re: Data transfer to external systems
    Re: Loading from a Custom R/3 Table
    Re: How can I schedule my Bex report to execute in background
    Re: How can I insert the RSCRM_BAPI into Process chain?
    Thanks
    Reddy

  • How to replace # or Not assigned with blank in BEx Query Output.

    Hi,
    While running the query through BEx Query desginer or Anlayser, I am getting # or Not assigned where there are no values.
    The requirement is to "Replace # or Not assigned with a blank" in the output.
    I want to know, is there any setting in BEx query desginer where we can do this. How to do this.
    Please share your inputs on this. Any inputs on this would be appreciated.
    Thanks,
    Naveen

    Check out SDN-thread: "Re: Remove 'Not assigned'" for more details
    Ideas from SDN research:
    "a solution i have used is to put each RKF column in a CKF colum then in each CKF use RKF + 0, the outcome is that your # should now be 0s, in the query properties you can set the option to display 0s as blank."
    "try to enter a text for the blank entry in the master data maintenance of the relevant objects and set the display option for the objects to 'text'."
    Threads:
    SDN: How to replace # or Not assigned with blank in BEx Query Output.
    SDN: Re: Remove 'Not assigned
    SDN: How to replace # or (Not assigned) with blank in BEx Query Output.
    SDN: Bex Analyzer : Text element system's table ?  
    SDN: change message in web application designer ["nonavailable" ->  136 of SAPLRRSV]
    SDN: Not Assigned ["Not Assigned -> 027 of SAPLRRSV]
    SDN: replacing '#'-sign for 'not assigned' in queries
    SDN: # in report when null in the cube
    SDN: How to replace '#' with blank when there is no value for a date field
    Edited by: Thomas Köpp on Sep 13, 2010 5:20 PM

  • How to store select query output in arrays.

    i created a varray type variables and now want to assign some data though select query output in pl/sql code as well as in reports 6i.

    You're in the wrong forum (this one is for issues with the SQL Developer tool). You were in the right one where you posted first, but don't reuse unrelated threads as you did.
    Regards,
    K.

  • Output mismatch between BEx query output and WebI Report output

    Hi All,
    I have a BEx query in which there are only characteristics placed in rows.
    There are combinations of the values of the characteristics giving different records in the query output.
    Date is one of the characterisctics in the query output.
    There is an output mismatch between the query output and the WebI report output in the following case:
    When there are 'Not Assigned' or '#' or blank values, there are additional entries(rows) in the WebI report, giving repeating or wrong entries in the Date field. This is incorrect data.
    Is this because of the  'Not Assigned' or '#' or blank values of the Characteristics or is there any other reason?
    How do I fix this?
    Please helo me with this.
    Thanks and Regards,
    Srilakshmi B

    Hi Rajesh,
    I need to verify the WebI report output for records with # and 'Not assigned' values for the cHracteristics in the report.
    So I cannot check the WebI report by hiding the # or Not assigned values.
    The problem is that in the Query output the records are like these shown below:
    Char1                    CHar2                          CHar3                       Date field
    A                             B                                 C                                Date1
    #(Not assgined)      #(Not assgined)      #(Not assgined)             No value
    Where as the WebI report output is as below:
    Char1                    CHar2                          CHar3                       Date field
    A                             B                                 C                                Date1
    #(Not assgined)      #(Not assgined)      #(Not assgined)            Date1
    As shown here, there are wrong/repeating entries for the Date field in the WebI report output.
    Please check this and let me know what could be the issue and how do I fix it.
    Thanks and Regards,
    Srilakshmi B

  • Query output transfer to excel file

    hi all,
    how can i query output transfer to excel file ? i am not using any tool. please suggest me. is there any method that i transfer that output to excel file?

    You can create a csv file. See dump_csv function from Tom Kyte.

  • Want to See Selected Input Variables in the query output

    Hi al
    My client gives a requirment like they want to see selected variables in the query output. Like suppose if i am  entering Profit center, controlling area, version, caldayas a input on the screen. Now they want to see only Profit center and version on the query result.
    Please let me know if any one has this solution.
    Regards,
    Amit Shetye

    Hi
    Can you please give us user requirement and according to ure requirement so we given replies . If ure requirement please explain detail
    But it is not neccessary that we can put something in free char and all. Inspite of that they wanted to select the input variable as per their requirement. They dont want to restrict them in Free char.

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

  • SAP Query  output  download to Excel

    Hi  All,
    Once I export/download  Query Output to Excel  the fields are not in the order of  Actul Query output
    <u><i><b>Char fields are treated as Key fields and displayed Left side.</b></i></u>
    As it is a SAP Query where to keep this kind of setting(key columns = 0).?
    Thanks in advance and useful answer will be awarded.
    cheers!!
    Komatsu

    when u download data to excel sheet, u can't handle the data from SAP....The data in excel takes excel properties and accordingly data gets adjusted to the formats of excel.
    If u need formatting u need to use OLE concepts in SAP from which u can set the formats of Excel Sheet.

  • SAP Query  output  download to excel   fields order is different

    Hi All,
    while download Query Output to Excel the fields are not in the order of actual Query output
    Char fields are treated as Key fields and displayed Left side.
    As it is a SAP Query where to keep this kind of setting(key columns = 0).?
    Thanks
    Komatsu

    when u download data to excel sheet, u can't handle the data from SAP....The data in excel takes excel properties and accordingly data gets adjusted to the formats of excel.
    If u need formatting u need to use OLE concepts in SAP from which u can set the formats of Excel Sheet.

Maybe you are looking for