Avoiding duplicates in the query

Hi..
I've written the following query to meet the requirement.. but getting the duplicates
SELECT   a.rpper, a.idate, a.icycle, b.rpper,
         b.idate, b.icycle
    FROM i_sum a, i_sum b
   WHERE a.rc = b.py
     AND a.py = b.rc
     AND a.prd = b.prd
     AND a.svc = b.svc
     AND a.itype = 'bieral'
     AND b.itype = 'bieral'
     AND a.dir = '-'
     AND b.dir = '-'
     AND (   (a.idate != b.idate)
          OR (a.icycle != b.iycle)
ORDER BY a.rpper, b.rpperThe output i'm getting like
A-G-11/9-SMS    30-Nov-09    112   G-A-11/9-SMS   31-Aug-09    113  
G-A-11/9-SMS   31-Aug-09    113    A-G-11/9-SMS    30-Nov-09   112
-----In the above output the 2nd row is duplicate for my output..
how can i avoid such data
Thanks..

Please consider the following when you post a question. This would help us help you better
1. New features keep coming in every oracle version so please provide Your Oracle DB Version to get the best possible answer.
You can use the following query and do a copy past of the output.
select * from v$version 2. This forum has a very good Search Feature. Please use that before posting your question. Because for most of the questions
that are asked the answer is already there.
3. We dont know your DB structure or How your Data is. So you need to let us know. The best way would be to give some sample data like this.
I have the following table called sales
with sales
as
      select 1 sales_id, 1 prod_id, 1001 inv_num, 120 qty from dual
      union all
      select 2 sales_id, 1 prod_id, 1002 inv_num, 25 qty from dual
select *
  from sales 4. Rather than telling what you want in words its more easier when you give your expected output.
For example in the above sales table, I want to know the total quantity and number of invoice for each product.
The output should look like this
Prod_id   sum_qty   count_inv
1         145       2 5. When ever you get an error message post the entire error message. With the Error Number, The message and the Line number.
6. Next thing is a very important thing to remember. Please post only well formatted code. Unformatted code is very hard to read.
Your code format gets lost when you post it in the Oracle Forum. So in order to preserve it you need to
use the {noformat}{noformat} tags.
The usage of the tag is like this.
<place your code here>\
7. If you are posting a *Performance Related Question*. Please read
   {thread:id=501834} and {thread:id=863295}.
   Following those guide will be very helpful.
8. Please keep in mind that this is a public forum. Here No question is URGENT.
   So use of words like *URGENT* or *ASAP* (As Soon As Possible) are considered to be rude.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • How to avoid duplicates from the form

    when I'm enter MR number , all the data(Part number , Desc details) are displaying correct and then search for desc the duplicate data is displaying actually not duplicate, their MR number is different , but in the form we r showing only the Partnumber & Desc details. and its directly from the table.
    this is the code for search the desc
    DECLARE
    WERE VARCHAR2(2000);
    WERE1 VARCHAR2(1000);
    FIND VARCHAR2(30);
    BEGIN
         :GLOBAL.CODE :=:BLK_MR.SEARCH;
         GO_BLOCK('MR_SELECT_VIEW');
         --WERE :='WHERE MRD_CCNO =  '||TO_CHAR(:BLK_MR.MRNO)||' AND
    -- ITEM_DESC LIKE '''||'%'||:GLOBAL.CODE||'%'||''' ORDER BY ITEM_DESC ';
    MESSAGE(TO_CHAR(:BLK_MR.ITEM61));
    MESSAGE(TO_CHAR(:BLK_MR.ITEM61));
         WERE :='WHERE MRD_CCNO IN ( SELECT VE_CC_NO FROM VE_MASTER WHERE VE_GROUP_CODE=
    '||TO_CHAR(:BLK_MR.ITEM61)||'
    AND VE_SUBGROUP_CODE='||TO_CHAR(:BLK_MR.VE_SUBGROUP)||')
    AND ITEM_DESC LIKE '''||'%'||:GLOBAL.CODE||'%'||''' ORDER BY ITEM_DESC ';
    MESSAGE(WERE);
    MESSAGE(WERE);
         SET_BLOCK_PROPERTY('MR_SELECT_VIEW',ORDER_BY,'');
         SET_BLOCK_PROPERTY('MR_SELECT_VIEW',DEFAULT_WHERE,WERE );
    EXECUTE_QUERY;     
    END;
    how to take the distinct partno from the table, since its is directly from the table.
    b'cos its checking MR number as a where condition

    HI!
    I advise you to create one more block with data type=From clause And as Name nest select (select distinct....)... and then, make, for example on pressing the button change data type of the block:
    set_block_property(block_name, QUERY_DATA_SOURCE_TYPE, get_block_property(block_name(with from clause), QUERY_DATA_SOURCE_TYPE));
    set_block_property(block_name, QUERY_DATA_SOURCE_NAME, get_block_property(block_name(with from clause), QUERY_DATA_SOURCE_NAME));

  • Avoid distinct clause in the query

    hi i have a query from a single table using distinct clause and has columns (a,b,c,d,e,f,g,h,i)
    eg: select distinct a,b ,c,d from table
    where a<>0 and b<>0 and c<>0 and d<>0 and e=o and f=0 and g=0 and h=0 and i=0 ;
    when i see the execution plan with out distinct... it performs a bit faster.
    how do i remove distinct clause and make the query perform better
    this particular query is used as inline view in my vieiw . it is used in from clause .
    please suggest
    second question.... iam getting bitmap index to rowid conversion ...is this good? does it hamper performance . how to avoid this?
    regards
    raj
    Edited by: raj_fresher on Jul 17, 2009 7:48 AM

    Hi Raj
    what is e in the query ?It is the column name you provided yourself in your own unformatted example.
    After 400+ posts I thought you would understand that it's not that hard to put this exact tag => (yes, 6 characters, 4 letters between 2 curly brackets) before and after your code examples or sample data or explain plans.
    That way you maintain formatting and improve readability for us poor readers by magnitudes.
    But, I'm sure you'll succeed as well as all the others who can.
    I always look on the bright side.
    Example:
    Earlier this week another Raj also finally got enlightened about it, and his life has since then changed forever!
    +He drives a Bentley now, you know+ ;)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to rewrite this query to avoid duplicates , please

    Hello Good Morning All,
    Happy New Year,
    Could you please help to rewrite the below two queries (so that i can avoid duplicates) i need to send email to everyone not the dupllicated ones), please?
    Create table #MyPhoneList
     AccountID int,
     EmailWork varchar(50),
     EmailHome varchar(50),
     EmailOther varchar(50),
     IsOffersToWorkEmail bit,
     IsOffersToHomeEmail bit,
     IsOffersToOtherEmail bit,
     IsValidEmailWork bit,
     IsValidEmailHome bit,
     IsValidEmailOther bit
    --> In this table AccountID is uniquee
    --> email values could be null or repetetive for work / home / Other (same email can be used more than one columns for accountid)
    -- a new column will be created with name as Sourceflag( the value could be work, Home, Other depend on email coming from) then removes duplicates
    SELECT AccountID , Email, SourceFlag, ROW_NUMBER() OVER(PARTITION BY AccountID, Email ORDER BY Sourceflag desc) AS ROW
    INTO #List
    from (
      SELECT AccountID
         , EmailWork      AS EMAIL
         , 'Work'       AS SourceFlag
      FROM #MyPhoneList (NoLock) eml
      WHERE IsOffersToWorkEmail    = 1
      AND  EMAILWORK      IS NOT NULL
      AND  IsValidEmailWork    = 1
     UNION
      SELECT AccountID
         , EmailHome  
         , 'Home'       AS SourceFlag
      FROM #MyPhoneList (NoLock) eml
      WHERE IsOffersToHomeEmail    = 1
      AND  EMAILHOME      IS NOT NULL
      AND  IsValidEmailHome    = 1
     UNION
      SELECT AccountID
         , EmailOther  
         , 'Other'       AS Sourceflag
      FROM #MyPhoneList (NoLock) eml
      WHERE EmailOther      = 1
      AND  EMAILOther      IS NOT NULL
      AND  IsValidEmailOther    = 1
     ) eml --select count(*) from #email
    --Email dedupe on source
    SELECT * INTO #distinct FROM #List WHERE ROW  = 1
    Thank you in Advance
    Milan

    Please follow basic Netiquette and post the DDL we need to answer this. Follow industry and ANSI/ISO standards in your data. You should follow ISO-11179 rules for naming data elements. You should follow ISO-8601 rules for displaying temporal data. We need
    to know the data types, keys and constraints on the table. Avoid dialect in favor of ANSI/ISO Standard SQL. And you need to read and download the PDF for: 
    https://www.simple-talk.com/books/sql-books/119-sql-code-smells/
    >> Could you please help to rewrite the below two queries (so that I can avoid duplicates) I need to send email to everyone not the duplicated ones), please? <<
    This mess is not a table because it has no keys, not way to have a key. You are using UNION like we used punch card merges in the o9ld days. 
    What math do you do on the account_id? That is the only reason that you use numeric values Why do you think that an email is fifty characters long? Yes, most them are, but did you bother to look at the maximum length? NO! Why did you name it “Phone_List” when
    it is nothing but email addresses? emails are not phones.  
    Please read this article so you will know why RDBMS does not use assembly language flags like you are doing. 
    https://www.simple-talk.com/sql/t-sql-programming/bit-of-a-problem/
    It would also help if you know what normalization was. Here is one design that is valid. 
    CREATE TABLE Something_emails 
    (account_id CHAR(15) NOT NULL,
     email_address VARCHAR(256) NOT NULL,
     email_type CHAR(5) NOT NULL
     CHECK (email_type IN ('home', 'work', 'misc')),
     PRIMARY KEY (email_address, email_type)
    >> In this table account_id is unique <<
    No, not without the DDL you did not post.
    >> email values could be NULL or repetitive for work / home / Other (same email can be used more than one columns for account_id) <<
    Not a problem. Look at the primary key.  Also why would anyone store invalid data in a table? SQL programmers try to keep it out! 
    >> a new column will be created with name as Source_flag (the value could be work, Home, Other depend on email coming from) then removes duplicates <<
    More kludges! Oh, putting the comma at the front of a line is how non-SQL mimic punch cards. An SQL progtrqammer would put related subsets of columns on one line – we think in sets! After 30+ years of SQL, this is one of the code smells I use to find bad
    code. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • How to tune the query for duplicate records while joining the two tables

    hi,i am executing the query which has retrieving multiple tables,in which one of them has duplicate record,how to get single record

    Not enough info...subject says "tune" the query, message says "write" the query...and where is actual query that you had tried ?

  • How do i avoid duplicate data when synching iphone and mac book to the cloud?

    When I left my job for the last time I uploaded my Microsoft Outlook Contacts to the Cloud so that I could synch it with my Iphone (which I did).  Now I would like to also synch the Address Book on my Macbook  with the Cloud and my Iphone so I can integrated all of these contacts.  First I do not know if I can do this since my MACbook is a few years old aand I do not see the Cloud Icon anywhere on it.   Second of all I am not sure which area (Cloud, Iphone, or Macbook) take precedence when synching.   Can I lose data?  Does one systems dat over ride the other?  How can I avoid duplicate data?    I am a fairly new Mac user and  love the way things are integrated so I think I should not worry but I need help.  thanks, tdag55

    Hi meadowD,
    If you are looking to remove duplicate files from iTunes, you may find the following article useful (in the most recent versions of iTunes 11, the Display/Show Duplicate Items option has been moved to the View menu):
    Apple Support: How to find and remove duplicate items in your iTunes library
    http://support.apple.com/kb/ht2905
    Cheers,
    - Brenden

  • How to avoid to modify the input value in a query

    Hi expert,
    in a Bex query (vers. 7.1), I created an auth variable on 0sales_off object to limit the display of data on a specific agency and it works right!
    But the user can anyway modify the enter value and insert manually another agency into a filter or into the start selection, and even if in this case the query result is not displayed (cause to auth variable), I'd like that the user cannot modify the value authorized agency.
    The auth. variable is set as single value, optional and ready for input and I cannot make the variable as invisible for the start input, because there are users authorized to enter any values without restrictions​​.
    is there a solution for my issue?
    Thanks for your support.
    Claudia

    Hi Claudia,
    I think you will not have any other option as you need to show the variable for specific users and still you need it to accept input.
    As I know you can not hide the variable display for specific users.
    Regards,
    Durgesh.

  • How to avoid duplicates for an result set

    how to avoid the duplicate rows for the below query
    SELECT  to_char(grecode (titleid)) gre_code, to_char(toeflcode (titleid)) toefl_code,titleid
              FROM (SELECT DISTINCT TO_CHAR
                                       (UPPER (TRIM (get_clob_value (table_name,
                                                                     KEY
                                       ) RESULT,
                                    titleid
                               FROM mcp_specifications a JOIN mcp_title_specifications b
                                    ON a.specificationid = b.specificationid
                                    JOIN mcp_titles c ON b.titleid = c.titleid
                              WHERE b.is_parent = 'F'
                                AND UPPER (TRIM (c.university_state)) =
                                                              UPPER (TRIM ('USA'))
                                AND TO_CHAR (get_clob_value (table_name, KEY)) IS NOT NULL
                                AND UPPER (TRIM (SPECIFICATION)) IN
                                                       (UPPER (TRIM ('program'))))
             WHERE UPPER (TRIM (RESULT)) = UPPER (TRIM ('COMPUTER SCIENCE'))
          ORDER BY RESULT ASC;the output of the query would be
    gre_code    toefl_code   titleid
    402             78             5518
    402             78             5519
    402             78             5520
    402             78             5521the output should be
    402 78 any titleid

    Some simplified code:
    SELECT grecode(titleid) gre_code,
           toeflcode(titleid) toefl_code,
           min(titleid) titleid
    FROM   (SELECT DISTINCT TO_CHAR(UPPER(TRIM(get_clob_value(table_name,KEY)))) RESULT,
                   titleid
            FROM   mcp_specifications a
                   JOIN mcp_title_specifications b
                        ON a.specificationid = b.specificationid
                   JOIN mcp_titles c
                        ON b.titleid = c.titleid
            WHERE  b.is_parent = 'F'
            AND    UPPER(TRIM(c.university_state)) = 'USA'
            AND    TO_CHAR (get_clob_value (table_name, KEY)) IS NOT NULL
            AND    UPPER(TRIM(SPECIFICATION)) = 'PROGRAM')
    WHERE  UPPER(TRIM(RESULT)) = 'COMPUTER SCIENCE'
    GROUP BY grecode(titleid),
             toeflcode(titleid)Please note that applying functions like UPPER and TRIM on a string literal can and should be avoided.
    For example:
    UPPER(TRIM('USA')) = 'USA'Why force the database to do both an UPPER and a TRIM on something that can just be represented in uppercase with no surrounding spaces? It's a waste of time.

  • How to avoid duplicates values from alvgird see below code

    how to avoid duplicates values from alvgird see below code
    in below query docno no is repeated again and again
    how i can avoid duplication in this query.
    select * into corresponding fields of table itab
             from  J_1IEXCHDR
                     inner join  J_1IEXCDTL
                        on  J_1IEXCDTLlifnr =  J_1IEXCHDRlifnr
                     where  J_1IEXCHDr~status = 'P'.

    Hi Laxman,
    after that select statement
    select * into corresponding fields of table itab
    from J_1IEXCHDR
    inner join J_1IEXCDTL
    on J_1IEXCDTLlifnr = J_1IEXCHDRlifnr
    where J_1IEXCHDr~status = 'P'.
    <b>if sy-subrc = 0.
    delete adjucent duplicates from itab comparing <field name of itab internal table>
    endif.</b>
    this will delete your duplicate entries.once you done with this call the alv FM.
    <b>  call function 'REUSE_ALV_GRID_DISPLAY'</b>
    exporting
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
       i_callback_program                = v_repid
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = 'IT_USER_COMMAND'
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
       i_grid_title                      = 'Purchase Order Details'
      I_GRID_SETTINGS                   = I_GRID_SETTINGS
       is_layout                         = wa_layout
       it_fieldcat                       = it_fieldcat
      IT_EXCLUDING                      = IT_EXCLUDING
      IT_SPECIAL_GROUPS                 = IT_SPECIAL_GROUPS
       it_sort                           = it_sort
      IT_FILTER                         = IT_FILTER
      IS_SEL_HIDE                       = IS_SEL_HIDE
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        = IS_VARIANT
       it_events                         = it_event
      IT_EVENT_EXIT                     = IT_EVENT_EXIT
      IS_PRINT                          = IS_PRINT
      IS_REPREP_ID                      = IS_REPREP_ID
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      I_HTML_HEIGHT_TOP                 = 0
      I_HTML_HEIGHT_END                 = 0
      IT_ALV_GRAPHICS                   = IT_ALV_GRAPHICS
      IT_HYPERLINK                      = IT_HYPERLINK
      IT_ADD_FIELDCAT                   = IT_ADD_FIELDCAT
      IT_EXCEPT_QINFO                   = IT_EXCEPT_QINFO
      IR_SALV_FULLSCREEN_ADAPTER        = IR_SALV_FULLSCREEN_ADAPTER
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           = E_EXIT_CAUSED_BY_CALLER
      ES_EXIT_CAUSED_BY_USER            = ES_EXIT_CAUSED_BY_USER
        tables
    <b>      t_outtab                          = ITAB</b>
    exceptions
       program_error                     = 1
       others                            = 2
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    Thanks
    Vikranth Khimavath

  • How to avoid Duplicate Records  while joining two tables

    Hi,
    I am trying to join three tables, basically two tables are same one is like history table, so I wrote a query like
    select
    e.id,
    e.seqNo,
    e.name,
    d.resDate,
    d.details
    from employees e,
    ((select * from dept)union(select * from dept_hist)) d
    join on d.id=e.id and e.seqno=d.seqno
    but this returing duplicate records.
    Could anyone please tell me how to avoid duplicate records of this query.

    Actually it is like if the record is processed it will be moved to hist table, so both table will not have same records and I need the record from both the tables so i have done the union of both the tables, so d will have the union of both records.
    But I am getting duplicate records if even I am distinct.

  • How to avoid duplicate data while inserting from sample.dat file to table

    Hi Guys,
    We have issue with duplicate data in flat file while loading data from sample.dat file to table. How to avoid duplicate data in control file.
    Can any one help me on this.
    Thanks in advance!
    Regards,
    LKR

    No, a control file will not remove duplicate data.
    You would be better to use an external table and then remove duplicate data using SQL as you query the data to insert it to your destination table.

  • Help needed to optimize the query

    Help needed to optimize the query:
    The requirement is to select the record with max eff_date from HIST_TBL and that max eff_date should be > = '01-Jan-2007'.
    This is having high cost and taking around 15mins to execute.
    Can anyone help to fine-tune this??
       SELECT c.H_SEC,
                    c.S_PAID,
                    c.H_PAID,
                    table_c.EFF_DATE
       FROM    MTCH_TBL c
                    LEFT OUTER JOIN
                       (SELECT b.SEC_ALIAS,
                               b.EFF_DATE,
                               b.INSTANCE
                          FROM HIST_TBL b
                         WHERE b.EFF_DATE =
                                  (SELECT MAX (b2.EFF_DATE)
                                     FROM HIST_TBL b2
                                    WHERE b.SEC_ALIAS = b2.SEC_ALIAS
                                          AND b.INSTANCE =
                                                 b2.INSTANCE
                                          AND b2.EFF_DATE >= '01-Jan-2007')
                               OR b.EFF_DATE IS NULL) table_c
                    ON  table_c.SEC_ALIAS=c.H_SEC
                       AND table_c.INSTANCE = 100;

    To start with, I would avoid scanning HIST_TBL twice.
    Try this
    select c.h_sec
         , c.s_paid
         , c.h_paid
         , table_c.eff_date
      from mtch_tbl c
      left
      join (
              select sec_alias
                   , eff_date
                   , instance
                from (
                        select sec_alias
                             , eff_date
                             , instance
                             , max(eff_date) over(partition by sec_alias, instance) max_eff_date
                          from hist_tbl b
                         where eff_date >= to_date('01-jan-2007', 'dd-mon-yyyy')
                            or eff_date is null
               where eff_date = max_eff_date
                  or eff_date is null
           ) table_c
        on table_c.sec_alias = c.h_sec
       and table_c.instance  = 100;

  • Duplicate invoice. Query help needed

    Hi All,
    We need to build a query which addresses the following condition
    Some of the invoices were created against the wrong vendors and that money needs to be recovered. Some of them are already recovered while some are not
    * list out all the duplicate invoices between a particular date range(invoice date) with same invoice num ,same invoice amount and same invoice date.
    * If there are any debit invoice created(invoice number postfixed with CR or ADJ),those particualr invoices should not be included.
    The table below shows two type of invoice, the one with bold(invoice num=193666) has debit invoice created and all the three records related to it should not be a part of output data
    while the record(invoice num=00017321) should be a part of output data.
    INVOICE_NUM     INVOICE_AMOUNT     VENDOR_NUMBER     INVOICE_DATE     ORG_ID
    00017321     233.35     A321     1-Dec-11     95
    00017321     233.35     K452     1-Dec-11     95
    *193666     101.67     EM9B     18-May-12     91*
    *193666     101.67     1B02     18-May-12     91*
    *193666CR     -101.67     1B02     18-May-12     91*
    Below is the query which i wrote to identify the duplicate invoice
    select distinct
    a1.invoice_amount,
    a1.invoice_num,
    (select segment1 from apps.po_vendors where vendor_id=a1.vendor_id) vendor_name,
    a1.invoice_date,
    A1.ORG_ID
    from apps.ap_invoices_all a1,
    apps.ap_invoices_all a2
    where 1=1
    and a1.org_id in (91,95)
    and a1.org_id in (91,95)
    and a1.invoice_date between (to_DATE('01-SEP-2011','DD-MON-YYYY')) AND (to_DATE('01-JUN-2012','DD-MON-YYYY'))
    and a2.invoice_date between (to_DATE('01-SEP-2011','DD-MON-YYYY')) AND (to_DATE('01-JUN-2012','DD-MON-YYYY'))
    and a2.invoice_num=a1.invoice_num
    and a1.invoice_amount=a2.invoice_amount
    and a1.invoice_id<>a2.invoice_id
    and a1.invoice_amount<>0
    order by a1.invoice_amount,a1.invoice_num
    Can anybody share their thoughts on how to modify the query above which checks if there are any debit invoice created and not include in the final output.
    Thanks in advance

    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • UDF Value is not coming in the query report

    Hi all,
    i have designed query report based on AR Invoice which has some UDF .
    all udf have FMS applied and all these udf has values.
    when i run report some times udf values are coming in the report and somtimes not even if udf contains values.
    if i open perticular invoice and again update that udf and again run report now udf value will come in the report.
    every time i need to manualy update the udf even if that udf contain value.
    how to avoide this problem.
    Pls suggest solution.
    Regards,
    Chetan

    Hi Chetan,
    Try this,
    -> Open the require document(module).
    Assign this procedure and then ADD the document
    and Run the Query Report.
    1. Goto the UDF and Click (ShiftAltF2).
    2. Select the SEARCH BY SAVED QUERY.
    3. Assign the FMS Query in UDF.
    4. Select the AUTO REFRESH WHEN FIELD CHENGES.
    5. Select the Auto Refresh Field (for example CardCode (or) Remarks).
    6. Check the Display Saved Values.
    OR
    -> Open the require document(module).
    1. Goto the UDF and Click (ShiftAltF2).
    2. When will you add the document at that time
    you can Click the SHIFT + F2 and than ADD the document.
    and than Run the Query Report.
    Regards,
    Madhan.

  • CHAR's value in the query but not in the report??

    Hi all,
    I loaded master data and crm transaction data from ODS to Cube. The data is in the cube but there is no value in my report when running it. EX: there are some CHARs in my report, I checked those CHARs have value in the query but it shows 'not assign' in my report when I run it. What happen?
    Thanks.
    J.

    Please see below text and also the sent link..
    If a navigation attribute is used in an aggregate, this aggregate has to be adjusted using a change run as soon as new values are loaded for the navigation attribute (when master data for the characteristic belonging to the navigation attribute is loaded.) This change run is usually one of the processes that are critical to the system performance of a production BW system. This is why, by avoiding using navigation attributes or not using navigation attributes in aggregates, you can improve the performance of this process. On the other hand, not using navigation attributes in aggregates can lead to poor query response times. The data modeler needs to find the right balance.
    http://help.sap.com/saphelp_nw04/helpdata/en/b2/e50138fede083de10000009b38f8cf/frameset.htm
    cheers,
    Vishvesh

Maybe you are looking for

  • Safari 5 slow to load pages and fails to resolve addresses - flickering men

    At first safari 5 worked great, a day after it began to take ages to resolve and address or worse to load a page. Now I stare at the loading item x of x for ages before a page will come up. Also, open a couple of tabs and all menus start to flicker w

  • Story website not loading in IE 10

    Hello, I'm trying to load the Adobe Story site using Internet Explorer 10. However, it never gets past the "loading" screen. There is a progress bar labeled "Adobe Story" with the "St" logo, but it never advances from this. It does, however, work on

  • PDF scans are blank

    I have a Brother MFC - J410W printer and I am having trouble scanning documents to pdfs. All other operations on the printer work fine (copying, printing, and scanning to any other form of document) When I scan to a pdf, the scan shows up in the fold

  • When is a display too big? (30inch)

    Not scientific for sure, but I am looking for some opinions I am looking to get a 30inch along with a new Mac Pro (currently running the 23inch - and I feel longing for more real estate quite often). I am wondering if, as you sit fairly close, people

  • Object Push Profile (OPP) For iphone

    I just got a Parrot Mini and was told the iphone does not support Object Push Profile (OPP) with their bluetooth technology. This prevents me from sending my contacts data to the Parrot. Once the Parrot has it, the Parrot becomes true handsfree, beca