Skip to Content
author's profile photo
Former Member

Exclude top 10 in BEx query

Hi Experts,

I need to exclude top 10 from the query result. Creating condition in the query with top 10 is easy but how to exclude the top 10 in the query output? Thanks

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Jul 11, 2011 at 07:14 PM

    Hi Waseem

    Here's what you can try out:

    Create a query 1 with the condition to show only TOP 10 values.

    Then create a query 2 and using replacement path variable restrict some characteristic (like doc no) in query 2 with the output of query 1 and exclude this variable from the query 2.

    This way the top 10 values from query 1 should get excluded from the query 2 output.

    Hope this helps.

    Regards,

    Ninad

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Jul 11, 2011 at 07:51 PM

    Hi,

    Create new condition, in this u will create a variable for Top N.

    Keyfigures operators Values

    Eg:qty not equal to &ztopn&(variable)

    Regards,

    Sai.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Waseem,

      Have you tried Ninand Warang procedure . Is it working or not?

      If not you have use the APD concept

      create a query on top of that infoprovider with out any conditions..

      Create A direct update dso..

      In APD use Query as source and DSO as target. In between use ABAP program sort them > delete the first 10 records>

      Create a query on top of DSO will get the Excluding TOP 10.

      Hope it helps..

      Regards,

      Ranganath.