Wrong date in query analyzer

hi gurus
While executing a query it is also showing the calendar date as 31.12.9999. Qty & value is also under the same date while there is no such date in cube.
why is it so.

Hi Ritika,
Just check wiht the R/3 side if that date existis or not, i believe it is a junk dates and it will not appear in BI if you set your date profile inside your User Profile.
Just get into BI in the Main Menu  -  System --> User Profile --> Own Data OR can be done from SU3 T-code.
After you change the settings just refresh the screen and try loging in.
Hope this helps You.
Best Regards,
VNK.

Similar Messages

  • Not able to input data in query analyzer

    Hi buddies,
    I am working on IP.I have created a input ready query.For few values of company code there is no transaction data available,but it should show us blank so that I can atleast punch data.I am able to punch data for company codes for which transaction data is avilable .For remaining company codes for which transaction data is not availbale it is showing yellow coloured rows not allowing to input data.
    Solutions would be really appreciated.This is high priority issue.
    With regards,
    Lalitha

    Hi,
    1) if you have no transaction data, it will not show you the company codes, unless you select in your query definition "master data' instead of posted values in the query properties (for company code)
    2) yellow lines are subtotals.... To enable it input ready
    - set query to input ready in query properties
    - set row to plannable in query properties
    - very important: make sure each characteristic of your aggregation level has a unique value either in the filter definition or in the definition of your rows or columns. If not, your query will not be plannable
    D

  • Status of data in Bex query shows wrong date

    Dear Experts,
    The Bex qurey after sucessful execution, show the Status of data as old date i.e. feb 2012. but we observed that the data uplaod happens regularly and sucessful.
    we tried executing the same query using RSRT/Bex Analyzer/Portal. the results are same i.e. showing incorrect status of data.
    Note: The Bex query is built on BI Infoset which sources from DSOs and Master Data infoobjects, and  BI version is 7.0.
    Kindly please help for resolving the issue.
    Best Regards,
    Mannu.

    Hi Vijay,
    The data upload has happend today also and it is sucessful, the reporing status is available for requests from respective infoproviders.
    'Status of data' is not a filed. if it an information to tell the status of data in query result.
    Please find the following steps to find the 'status of data'
    go to RSRT->give the query name and execute-> now after query results-> go to last page-> you can find the 'status of data'.
    Best Regards,
    Mannu

  • Oralce query giving wrong data

    Hi all oracle experts :
    in oracle backend ( LOV ) user is selecting 'long text' instead of 'short text' and as a result user is getting wrong data Ship_To_Adress ( column ). here what i need is :
    Upon data is coming from Long_Text table - it should not bring the wrong data Ship_To address.. It should give no value on the report.
    feasibility of modifying query to maintain two Scenarios - Irrespective of Long or Short text - User should not give wrong 'Ship To' address on the pick ticket.
    please go through the following query and make necessary changes. thanks in advance for your precious time valuable advice
    looking the feasibility of modifying query to maintain two Scenarios - Irrespective of Long or Short text - User should not give wrong 'Ship To' address on the pick ticket.
    Thanks in advance
    Shiva
    SELECT
         wpsv.pick_slip_number          "Pick Slip #",
         wdd.source_header_number          "Sales Order #" ,
         wdd.source_line_number          "Sales Order Line #" ,
    nvl(round(ool.unit_selling_price,2),0) "unitsell price" ,
    (nvl(round(ool.unit_selling_price,2),0))*nvl(wpsv.primary_qty,0) "Extended sell rice",
         '*'||wpsv.transaction_id||'*'          "Task ID" ,
         wpsv.transaction_id               "Task ID#" ,
         msi.segment1               "Item",
         msi.description               "Item Description",
         msi.segment1 || ' - ' ||msi.description               "Item - Description",
         wdd.requested_quantity_uom          "UOM",
         wdd.serial_number               "Serial #",
         wnd.delivery_id               "Delivery#",
         wpsv.from_subinventory          "Pick from Sub-inventory",
         wpsv.from_subinventory          || ' - ' ||
              SELECT
                   segment1||'.'||segment2||'.'||segment3||'.'||segment4
              FROM
                   INV.MTL_ITEM_LOCATIONS
              WHERE
                   inventory_location_id     = DECODE(msi.reservable_type,2,wdd.locator_id,wpsv.from_locator_id)
         ) "Pick From",
              SELECT
                   segment1||'.'||segment2||'.'||segment3||'.'||segment4
              FROM
                   INV.MTL_ITEM_LOCATIONS
              WHERE
                   inventory_location_id     = DECODE(msi.reservable_type,2,wdd.locator_id,wpsv.from_locator_id)
         )                    "Pick from Location",
         wpsv.to_subinventory "Deliver to Sub-inventory",
              select
                   segment1||'.'||segment2||'.'||segment3||'.'||segment4
              from
                   inv.mtl_item_locations
              where
                   inventory_location_id     = wpsv.to_locator_id
         )                    "Deliver to Location",
         wpsv.primary_qty          "Quantity to be Picked",
         party.party_name||CHR(10)||
         DECODE(ship_loc.address1, NULL, '',ship_loc.address1||CHR(10))||
         DECODE(ship_loc.address2, NULL, '',ship_loc.address2||CHR(10))||
         DECODE(ship_loc.address3, NULL, '',ship_loc.address3||CHR(10))||
         DECODE(ship_loc.address4, NULL, '',ship_loc.address4||CHR(10))||
         DECODE(ship_loc.city, NULL, NULL, ship_loc.city || ', ') || DECODE(ship_loc.state, NULL, NULL, ship_loc.state || ', ') || DECODE(ship_loc.postal_code, NULL, NULL,      ship_loc.postal_code || ', ') || DECODE(ship_loc.country, NULL, NULL, ship_loc.country) SHIP_TO_ADDRESS,
         NVL(h.shipping_instructions, '-') shipping_instructions,
         NVL(h.shipment_priority_code,'-') shipment_priority_code,
    NVL(OL.MEANING,'-') "Freight Terms",
         NVL(FLV.meaning, '-') shipping_method,
         NVL(QQA.quote_attachment, '-'),
         RSA.name,
         NVL(h.packing_instructions, '-') packing_instructions,
         NVL(H.CUST_PO_NUMBER,'-') customer_po#
    FROM
    apps.oe_order_lines_all ool,
         APPS.WSH_PICK_SLIP_V               WPSV,
         WSH.WSH_DELIVERY_DETAILS          WDD,
         INV.MTL_SYSTEM_ITEMS_B          MSI,
         WSH.WSH_DELIVERY_ASSIGNMENTS     WDA,
         WSH.WSH_NEW_DELIVERIES          WND,
         APPS.ORG_ORGANIZATION_DEFINITIONS     ORG,
         WMS.WMS_DISPATCHED_TASKS          WDT,
         APPS.OE_ORDER_HEADERS_ALL          H,
         APPS.HZ_CUST_SITE_USES_ALL          SHIP_SU,
         APPS.HZ_PARTY_SITES               SHIP_PS,
         APPS.HZ_LOCATIONS               SHIP_LOC,
         APPS.HZ_CUST_ACCT_SITES_ALL          SHIP_CAS,
         APPS.HZ_PARTIES                PARTY,
         APPS.FND_LOOKUP_VALUES          FLV,
    APPS.OE_LOOKUPS OL,
              SELECT
                   OOH.header_id,
                   MAX(DECODE(rownum,1, FDST.short_text, ''))||CHR(10)||CHR(10)||MAX(DECODE(rownum,2, FDST.short_text, ''))||MAX(DECODE(rownum,3, FDST.short_text, ''))||CHR(10)||CHR(10)||MAX(DECODE(rownum,4, FDST.short_text, '')) quote_attachment
              FROM
                   APPS.FND_ATTACHED_DOCUMENTS     FAD
                   , APPS.FND_DOCUMENTS_TL          FDT
                   , APPS.FND_DOCUMENTS_SHORT_TEXT     FDST
                   , APPS.FND_DOCUMENTS               FD
                   , APPS.FND_DOCUMENT_CATEGORIES_TL     FDC
                   , APPS.OE_ORDER_HEADERS_ALL          OOH
                   , APPS.ORG_ORGANIZATION_DEFINITIONS OOD
              WHERE
                   OOD.organization_id =?Organization ? AND
                   OOH.ORDER_NUMBER = ?SO#? AND
                   OOH.org_id = OOD.operating_unit AND
                   TO_CHAR(OOH.header_id) = FAD.pk1_value AND
                   FAD.document_id = FDT.document_id AND
                   FAD.entity_name = 'OE_ORDER_HEADERS' AND
                   FDT.media_id = FDST.media_id AND
                   FDT.language = 'US' AND
                   FAD.document_id = FD.document_id AND
                   FD.category_id = FDC.category_id AND
                   FDC.language = 'US' AND
                   FDC.user_name ='APS_Pack/AR Invoice/CI/SO Ack Printing'
              GROUP BY
                   OOH.header_id
         ) QQA
         , APPS.RA_SALESREPS_ALL RSA
    WHERE
         wpsv.move_order_line_id     =wdd.move_order_line_id          AND
         (wdd.source_header_number = ?SO#? )                    AND
         wdd.inventory_item_id     = msi.inventory_item_id(+)          AND
         wdd.organization_id          = msi.organization_id(+)          AND
         wdd.delivery_detail_id     = wda.delivery_detail_id          AND
         wda.delivery_id          = wnd.delivery_id(+)               AND
         wdd.organization_id = org.organization_id               AND
         wdt.TRANSACTION_TEMP_ID(+)=wpsv.transaction_id          AND
         wdt.organization_id (+)      =?Organization ?               AND
         wdd.organization_id          =?Organization ?               AND
         wdd.source_header_number      = h.order_number               AND
         h.salesrep_id = RSA.salesrep_id(+) AND
         h.org_id = RSA.org_id(+) AND
         h.org_id                = org.operating_unit               AND
         SHIP_PS.party_id          = PARTY.party_id(+)           AND
         H.ship_to_org_id          = SHIP_SU.site_use_id(+)           AND
         SHIP_SU.cust_acct_site_id     = SHIP_CAS.cust_acct_site_id(+)      AND
         SHIP_CAS.party_site_id     = SHIP_PS.party_site_id(+)           AND
         SHIP_LOC.location_id(+)     = SHIP_PS.location_id           AND
         H.shipping_method_code     = FLV.lookup_code(+)          AND
         FLV.lookup_type(+)          = 'SHIP_METHOD'               AND
         FLV.language(+)          = 'US'                    AND
         QQA.header_id(+)           = TO_CHAR(H.header_id)           AND
         wpsv.line_status          = 'UNPICKED'               AND
    H.FREIGHT_TERMS_CODE=OL.LOOKUP_CODE(+)
    AND OL.LOOKUP_TYPE(+) ='FREIGHT_TERMS' AND
    OOL.header_id = wdd.source_header_id(+) AND
    OOL.line_id = wdd.source_line_id(+) AND
         EXISTS(
              SELECT
                   'Y'
              FROM
                   INV.MTL_ONHAND_QUANTITIES_DETAIL OHQ
              WHERE
                   WDD.inventory_item_id     = OHQ.inventory_item_id     AND
                   WDD.organization_id     = OHQ.organization_id     AND
                   WPSV.from_subinventory = OHQ.subinventory_code
              GROUP BY
                   'Y'
              HAVING
                   SUM(transaction_quantity) >0
    ORDER BY
         2, 11, 12, 6, 3

    Thank you very much indeed for your reply - yes youre right. in oracle backend there are dropdown selections : 1) short text and 2) long text. as per the table user has to select short text so that he will get the correct output , but if by mistake user selects long text then the table is pulling wrong data. so here we need the query to be changed if user selects long text report shouldnt show any data..
    i am not sure but as per my little knowledge in oracle i believe that the problem is lying in the folloiwng query line.. please help me out in this regard. i have a screen shots of oralce backend where user is selecting long text / short text but here theres no option of inserting the files...
    DECODE(ship_loc.address1, NULL, '',ship_loc.address1||CHR(10))||
    DECODE(ship_loc.address2, NULL, '',ship_loc.address2||CHR(10))||
    DECODE(ship_loc.address3, NULL, '',ship_loc.address3||CHR(10))||
    DECODE(ship_loc.address4, NULL, '',ship_loc.address4||CHR(10))||
    DECODE(ship_loc.city, NULL, NULL, ship_loc.city || ', ') || DECODE(ship_loc.state, NULL, NULL, ship_loc.state || ', ') || DECODE(ship_loc.postal_code, NULL, NULL, ship_loc.postal_code || ', ') || DECODE(ship_loc.country, NULL, NULL, ship_loc.country) SHIP_TO_ADDRESS,
    Thank you very much once again
    Shiva

  • How to create a Matrix table using this data in SQL Query Analyzer

    Hello all,
    I have a problem while I am trying to represent my Sql Table namely table1 in Matrix form
    my table Format is
    city1 city2 Distance--------------------------------------------------------
    Mumbai Delhi 100
    Delhi Banaras 50
    Mumbai Rajasthan 70
    Banaras haryana 40
    Mumbai Mumbai 0
    784 entries
    there are 784 cities each having link to other
    Now i want my output as
    Mumbai Delhi Banaras haryana
    Mumbai 0 100 -- --
    Delhi 100 0 50 --
    Banaras
    haryana
    respective distance from one city to other should be shown
    final Matrix would be 784*784
    I am using SQL Query Analyser for this
    Please help me in this regard

    I'm pretty much certain that you don't want to do this in pure SQL. So that means that you want to do it with a reporting tool. I'm not familiar with SQL Query Analyzer, but if it is in fact a reporting tool you'll want to consult its documentation looking for the terms "pivot" or perhaps "cross tab."

  • Report running very slow compared to Query Analyzer - high TimeDataRetrieval

    Hi,
    I have a report in SQL Reporting Services 2005 which calls a stored proc and the report takes a very long time to run and sometimes returns zero records. But when i run the stored proc in query analyzer it takes about 4 seconds!!
    I have checked the execution log on the RS using the below sql:
    Code Snippet
    use ReportServer
    Select * from ExecutionLog with (nolock) order by TimeStart DESC
    It shows that i have a large amount of time for the dataretrieval (601309ms, about 10mins) and does not return any records most likely because of a query timeout:
    TimeDataRetrieval  TimeProcessing  TimeRendering Source Status         ByteCount RowCount
      601309                      2227                     3                         1            rsSuccess 4916           0
    The weird thing is that when i run it in query analyzer, i get about 400 records in 4 seconds !!
    I dont understand what RS is doing to take up so much time like this to retrieve data.
    The report is very simple - it basically returns the records straight out into a table.
    The only thing I somewhat suspected was a parameter data type conflict between RS and SQL, specifically dates. I have a start and end date parameter in the report - i tried specifying this as date and string to see if it made any difference but it didn't.
    Any help would be greatly appreciated.

    Hi Mark,
    I didn't say it was an issue of parameter sniffing, and I didn't point you towards the good article about that <s>. I asked you whether you had read the article, described to you earlier in the thread.
    What I said was that it might be an issue of appropriate and dynamic query optimization, versus a cached query plan.  Parameter sniffing is only one of many ways that SQL Server tries to figure out how to optimize a query.  I thought the article did a good job of discussing some of what goes on during this process, and that by absorbing that you could think of ways to handle the wider issue that would be appropriate to your code.  I also pointed you to a thread in which I discussed this in more detail.
    While there are truly many issues with the date controls in the default parameter interface and how they behave, I don't think that what you're experiencing with the date format is implicated in the performance issue.  I guess it *might* be if (say) there is a non-default param value in your proc but your report parameter allows nulls. 
    Let's say the report server database has a different date default than your production database in your system. I have never sat down and tested this scenario and I guess it might cause problems, So we'll look at that first. 
    Whether the date format is at fault is really easy to prove one way or the other, and once proven can be pretty easy to fix:
    Create a test parameter that is of string type.  SQL Server is really good about dynamic conversion of string dates to date types as you probably know.
    place values (formatted however you want) into this version of the parameter instead of your date control parameter.  Use valid dates, in both formats.
    Does your performance change?
    Do you get the right results but bad performance with US format date strings versus right results with good performance with AU date values?
    Do you get the WRONG results with US format date strings, or with AU date strings?
    Try additional permutations involving casting/converting in your proc.
    FWIW, go ahead in the Query Analyzer and put the SAME values you see in the log into your tests there (in US format, I mean).  Do you get the CORRECT results?  Does performance change?  Hold this thought and see below.
    Another thing you can do is look at the query plan as presented by the Query Analyzer when you present the arguments different ways.  See #7 above -- try presenting the date in different formats.  Does the plan show the same path and the same indexes in use each time, or are some not possible because of the way the date has to be converted?  When this happens, the issue is usually that the conversion must be done for each line compared in the filter.  You can fix this really easily in most cases by cast/convert in the procedure so that your SELECT line is only doing that work once. 
    If the plans are different, and perhaps the indexes used are different and you *can't* fix it by fixing the date before the SELECT, do you need to add an index, or perhaps rebuild one?
    Moving on from the date format, as I said before it may be really important NOT to go by your interactive Query Analyzer performance because what you do there may not be used by SQL Server in determining a query plan to cache and re-use.  In case you haven't read the other discussion that I pointed you to at (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1827775&SiteID=1), think about using RECOMPILE or other options that will force a more dynamic investigation of the query.
     >L<

  • Satatus of Data in Bex Analyzer

    Hello ,
    is it possible to hide "status of data" in bex analyzer ?  I have read some documents but all are say it is only possible with Web Designer.
    I have a query from a Multiprovider and I don't wnt to show Status of data information in the report .
    thank you ,
    blue

    You can goto design mode in the workbook and delete the text element which is showing status of data, come out of design mode and save the workbook.
    Edited by: Pravender on May 18, 2010 2:19 PM

  • Error generating data provider-Query cant be released

    Hello Experts,
    I am working on web template (WAD 3.5) where i have 6 graphs each having independadnt data provider (Bex query).
    I also have drop boxes which represents the selection screen of queries attached to graphs.
    'Affected data providers list' of dropboxes consist of all data providers that are attached to graphs in template, as each graph is supposed to get refreshed if user changes drop box selection.
    Template was working fine until i made the change to query 2 which is dataprovider 2 for graph 2.
    Since then i am not able to run template it gives me error -
    -The query cant be release for OLE DB for OLAP
    -Query couldnt be open
    -Error generating data provider.
    As i checkd that qury independantly in query analyzer, its working perfect without any error.
    What could be the possible reason for this error then??
    regards,
    Pritesh.

    Hi Manpreet,
    Use the 'verify' icon in the query designer to check whether your query definition is correct. Also u  you
    can check if you can execute the query in the backend with transaction RSRT2. In  RSRT2 try re-generating
    the query before running it.
    Hope it helps.
    Regards,
    Javed

  • Wrong result in query.

    Hi, SAP gurus,
    i am creating a aging query on Service Call, to return Calls pending between specified days..
    to get days, i used
    where  datediff(day, oscl1.createdate,getdate()) >= 0 and 100
    below executed query is working fine...
    Select
    oscl1.callid,
    oscl1.custmrname,
    oscl1.itemcode,
    oscl1.itemname,
    oscs.name,
    datediff(day,oscl1.createdate,getdate()) 'Pending (Days)'
    from oscl oscl1
    inner join oscs on
    oscs.statusid = oscl1.status
    where datediff(day,oscl1.createdate,getdate()) between  0 and 100
    and oscl1.status!=-1
    now i am trying to accept days from user
    for that i wrote
    where datediff(day,oscl1.createdate,getdate()) between  [%0] and [%1]
    but the above clause is not getting executed...
    below is my code
    --query not getting executed.
    Select
    oscl1.callid,
    oscl1.custmrname,
    oscl1.itemcode,
    oscl1.itemname,
    oscs.name,
    datediff(day,oscl1.createdate,getdate()) 'Pending (Days)'
    from oscl oscl1
    inner join oscs on
    oscs.statusid = oscl1.status
    where datediff(day,oscl1.createdate,getdate()) between  [%0] and [%1] '-- not getting execute this clause.
    --where oscl1.createdate  between  [%0] and [%1] '-- this clause is working fine.
    and oscl1.status!=-1
    but in where clause if i give condition like
    where oscl1.createdate  between  [%0] and [%1]
    the above clause is working fine,
    does any one know where i am doing wrong in this query..?
    i appreciate your help..
    Thanks and Regards,
    kaviprashu

    Hi,
    Thanks Jitin,
    but i am trying to accept values in days from user...
    for that i wrote :
    where datediff(day,oscl1.createdate,getdate()) between  0 and 30  '-- return Calls pending between 0 and 30 days
    the above clause is working fine...
    but if i try to get value from user and execute clause as below, is not getting executed!
    where datediff(day,oscl1.createdate,getdate()) between  [%0] and [%1]  '-- not getting executed ]
    but if i skip datediff() function, and execute, its working fine...
    where oscl1.createdate between  [%0] and [%1]
    i have doubt, does Query Generator consider ' [%0] ' as date field..?
    how do i accept days from user?
    i appreciate your help..
    Thanks and Regards,
    kaviprashu

  • Problem about printing special character in bex query analyzer

    Hi,
    in bex query analyzer i have created one restricted key figure , in which i have substracted two date with the help of replacement path.
    So i got result.
    But i am facing one problem. when in both date, if one date is null or # then it is giving some big value like -734567.
    But i want some special character like X instead of this big values.
    So how can i do this?
    With the help of if and else it can be done.
    But how can we print special character in report.
    Please help me
    Thank you in advance

    hi,
    You cannot show X in a formula result. You can highlight the row using exception.
    Still if you want to show X in the result then you need to create a formula variable on a char which returns X value all the times.
    Then you can use the three formula variable to write a formula so that it shows the difference:
    date1 -- formula variable
    date2 -- formula variable
    charx -- formula variable.
    the formula will be
    Count(date1)Count(date2)(date1 - date2) + charx *(count (delta(date1) + delta(date2))).
    this would return the X value if any of the dates are empty otherwise their difference.
    regards.
    Arvind.

  • PJC Calendar setDate Wrong date format. Date change failed?

    Forms 10.1.2 using forms demos pjc code.
    The calendar pjc I added to my form works except I can't initialize it with a date. If I try to initialize a date it always produces 'Wrong date format. Date change failed.' error.
    In a post-query trigger, I initialize the calendar's date using:
    SET_CUSTOM_PROPERTY('PJC.CALENDAR',1,'setDate',to_char(:lead.date_received,'DD.MM.YYYY'));
    In the java console, this yields:
    Warning: Wrong date format. Date change failed.
    Warning: Wrong date format. Date change failed.
    I get the same result when using a hardcoded date like:
    SET_CUSTOM_PROPERTY('PJC.CALENDAR',1,'setDate','01.12.2006');
    What is the flaw in my incantation?

    Hello,
    This is the syntax used in the calendarpjc Forms demo:
        call the setDate method on the calendar PJC via the PL/SQL built in
        set_custom_item_property
        convert Oracle date to String recognised by Java
      procedure setDate(d in date) is
      begin
        set_custom_property(lGlobals.hCalendar,1,'setDate',to_char(d,'Mon DD, YYYY'));
      end;     Francois

  • TRUNC() giving wrong data in different versions of Oracle DB

    Hi All,
           I have two oracle data base versions. I need to insert into one temp table with select statement. When i use the same query in both environment am getting different results. Can you please help me on that.
    Version:1
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for 32-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    Version: 2
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    CORE 10.2.0.5.0 Production
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Productio
    NLSRTL Version 10.2.0.5.0 - Production
    Query we used:
    insert into my_temp_table
    select v_name,trunc(d_charge_date)
    from table1;
    my_temp_table structure:
    v_name               varchar2(30),   
    d_charge_date     date;
    Note: Date columns represented with mm/dd/yyyy format....
    in table1 i have data like this....
    v_name
    d_charge_date
    xxx
    12/2/2012
    yyy
    10/23/2010
    abc
    9/29/2013
    after the insertion into temp table am getting the result like below...
    select * from my_temp_table;
    If i run this query in version 1 am getting the correct data..
    v_name
    d_charge_date
    xxx
    12/2/2012
    yyy
    10/23/2010
    abc
    9/29/2013
    but if i run the same insert query in version 2 getting the wrong data
    v_name
    d_charge_date
    xxx
    12/2/2011
    yyy
    12/2/2011
    abc
    12/2/2011
    If i remove the trunc from the insertion statement i didn't get the wrong data like above...
      I don't know the exactly reason. So can you please help me to identify this cause...

    Hi i think the global temporary table having this issue in version b what i have mentioned above.
    insert into /*+append*/global_temporary_temp
    (v_policy_no,n_seq_no,d_next_chgdue_date,v_charge_freq,v_cntr_stat_code,v_iu_au_base,d_cntr_start_date)
    select distinct a.v_policy_no,a.n_seq_no,trunc(a.d_next_chgdue_date),a.v_charge_freq,b.v_cntr_stat_code,c.v_iu_au_base,b.d_cntr_start_date
    from table_a a,table_2 b,table_3 c
    where a.v_status = 'A'
    and a.v_charge_freq is not null
    and trunc(a.d_next_chgdue_date) <= trunc(sysdate)
    and b.v_cntr_stat_code in ('NB010')
    and a.v_policy_no = b.v_policy_no
    and a.n_seq_no = b.n_seq_no
    and a.v_plri_code = c.v_plan_code
    and a.v_parent_event_code = c.v_parent_event_code
    and a.v_charge_pcode = c.v_charge_pcode
    and a.v_charge_code = c.v_charge_code

  • How to restrict the users to make sorting on Field in query analyzer(Excel)

    i want to know that is it possible to put restiction for user to make sorting for posting date or any other Field in Query analyzer(Ms Excel )  after excuting the queryy ? i want restiction on sorting option of Ms excel . pls reply me soon.

    viral
    it depend upon different companies and how they are maintianing securities in that...
    for e.g.
    after discussing iwth ur senior member u will decide to publish a new folder in ur production system...
    let say name of folder is BW Financial Accounting
    Now u will publish ur report in this folder.
    go to query designer
    hit Query in menu
    hit publish and select the BW FINANCIAL ACCOUNTING
    now u interact with Security administrator at ur firm
    he will create proper Authorization object for this Folder BW FINANCIAL ACCOUNTING
    once he/she does that then he will add this authorization object to ur user id
    this way u can test that
    u can acess that folder and query link in that folder.....
    similarly they will add the newly created authorization objects to ur specific user ids and they will then have acess to this .....
    if u want to check authorization objects currently assigned to ur user id
    enter t code /su01
    enter ur user id
    and u can see several authorization objects

  • Query Analyzer - issue in variables

    Hello,
    In query analyzer, I have a requirement for 3 keyfigures.
    1 -> Current Month budget
    2 -> Next Month budget
    3 -> Cummulated Yr to Month budget
    for eg. I fI am in month 02.2006
    column 1-> budget for 02.2006
    column 2-> budget for 03.2006
    column 3-> budget for 04.2005 - 01.2006
    for column1, I have created a new selection and included budget qty and 0calmonth and restricted it to 0CMONTH.
    for column2, I have created a new selection and included budget qty and 0calmonth and restricted it to 0CMONTH, and specified +1 as variable offset.
    for column3, I have created a new selection and included budget qty and 0calmonth and restricted it to 0I_CMY01 or 0CYTCM.
    the output is that column1 show the rigth current month figures.
    column2 is blank
    cloumn3 shows the same figure as column1.
    is there any activation that needs to be done so that these variables work.
    thanks in advance

    Hi,
    <i>for column3, I have created a new selection and included budget qty and 0calmonth and restricted it to 0I_CMY01 or 0CYTCM.</i>
    0I_CMY01 gives what????
    0CYTLM
    This variable denotes an interval from month 1 of the current calendar year to the month before the current calendar month.
    <i>for column2, I have created a new selection and included budget qty and 0calmonth and restricted it to 0CMONTH, and specified +1 as variable offset.</i>
    pl check data in infoProvider for 03.2006...i think data is not there for 03.2006..thats y u r getting blank.
    regards

  • BI query Analyzer

    Hi,
      BI query analyzer is posing problem when connecting to 2004srelease patch 700 revision 259
      when executing  in citrix as it is redirecting to N:\cache\tmp....... if we are doing Execution after
      3 or 4 attempts this error occurs
        its using ie. 7.0
       guys pls help out with any version problems or is it intenet explorer settings may be?
    Thanks,
    p.suresh

    I am not sure which button you pressed and which tool are you using ;however below are the options available.
    Reporting Methods nw2004s
    You can use the BEx Analyzer, the Web Applications and the Web Analyzer for the Business Explorer for free multidimensional
    data analysis as a part of Enterprise reporting.
    Bex Analyzer
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ba/45583ca544eb51e10000000a114084/frameset.htm
    Web Applications
    http://help.sap.com/saphelp_nw2004s/helpdata/en/05/4b583cf7388362e10000000a114084/frameset.htm
    Web Analyzer
    http://help.sap.com/saphelp_nw2004s/helpdata/en/0d/af12403dbedd5fe10000000a155106/frameset.htm
    Hope it Helps
    Chetan
    @CP..

Maybe you are looking for