LIMIT IN QUERY TO LIMIT RESULTS

I was reading the article here:
http://www.inquiry.com/techtips/oracle_pro/10min/10min1200/10min1200-3.asp
I am working from an oracle 8i database with a few thousand records in it.
Can you help me out here? I tried the example method, and it appears to me that it is only returning sets of data
that are below the ROWNUM I request. For example, if I use .... WHERE ROWNUM<100 ... It looks like it only gets data from the first 100 rows of the table instead of a count of the query's result row numbers.
When I put a very loose term into the search, it should return the max, 100 lines, but only returns 87. I know one query produces 156 results, but this limit cuts off at 60.
I really would like to be able to show 30 results per page and have users click 'next page' to view the next 30. It seems absurd to me that with Postgress, or MySQL I can do this very easily with ... LIMIT 100,30 .... Oracle DB does not have the capability? I don't know.
Please, if you know you can help. (PLEASE!)

Perhaps a less offensive way to put it might have been simply to ask, "does anyone know how to do this in Oracle as I am relatively inexperienced in this environment" instead of "It seems absurd to me that with Postgress, or MySQL I can do this very easily with ... LIMIT 100,30 .... Oracle DB does not have the capability?". The implication is clearly that these other environments are superior, which is offensive, especially when avowed by someone who has demonstrated his limited knowledge of Oracle.

Similar Messages

  • Best way to limit results from a query.

    I need to limit the number of results returned from the database to the first x rows. What I need is a database independant way to achieve this - i.e. I can't use LIMIT, TOP, etc. in my query.
    My question therefore is does statment.setMaxRows(x) restrict my results at the database level or my application's view to the database? I.e. will the complete SELECT * run within the database but the first x will be returned to the resultset, which could be quite a performance drain at db level. Or will this have the same effect as running a query SELECT TOP X FROM... which will be a much quicker query to run?
    Any help greatly appreciated!

    The best, and only fool proof way to limit results (rows, columns) from a query, and not waste database resources is to code your query so it only returns the rows and columns that you need. That might mean providing date ranges, sequence number ranges and all other WHERE criteria that can be used to filter the data to exactly what you need.
    There are ways to limit what is available to your Java program, but in most cases, the entire SQL must be completed before any results can be returned. The simplest example is; using the SORT command to get the data into the order you require, will first require that all rows be made available to the sort. The fact that you only want the top 5 rows doesn't matter to the DBMS because it cannot give them to you incrementally.
    Focus on getting your SQL as efficient as possible. If the SQL runs efficiently, you can use almost any of the JDBC commands to limit, list, cursor forward and backward, etc, without regard to their overhead.

  • In VB how do I pass my low and high limit results from a TestStand Step into the ResultList and how do I retrieve them from the same?

    I am retrieving high and low limits from step results in VB code that looks something like this:
    ' (This occurs while processing a UIMsg_Trace event)
    Set step = context.Sequence.GetStep(previousStepIndex, context.StepGroup)
    '(etc.)
    ' Get step limits for results
    Set oStepProperty = step.AsPropertyObject
    If oStepProperty.Exists("limits", 0&) Then
    dblLimitHigh = step.limits.high
    dblLimitLow = step.limits.low
    '(etc.)
    So far, so good. I can see these results in
    VB debug mode.
    Immediately after this is where I try to put the limits into the results list:
    'Add Limits to results
    call mCurrentExecution.AddExtraResult("Step.Limits.High", "UpperLimit")
    call mCurrentExecution.AddExtraResult("Step.Limits.Low", "LowerLimit")
    (No apparent errors here while executing)
    But in another section of code when I try to extract the limits, I get some of the results, but I do not get any limits results.
    That section of code occurs while processing a UIMsg_EndExecution event and looks something like this:
    (misc declarations)
    'Get the size of the ResultList array
    Call oResultList.GetDimensions("", 0, sDummy, sDummy, iElements, eType)
    'Step through the ResultList array
    For iItem = 0 To iElements - 1
    Dim oResult As PropertyObject
    Set oResult = oResultList.GetPropertyObject("[" & CStr(iItem) & "]", 0)
    sMsg = "StepName = " & oResult.GetValString("TS.StepName", 0) & _
    ", Status = " & oResult.GetValString("Status", 0)
    If oResult.Exists("limits", 0&) Then
    Debug.Print "HighLimit: " & CStr(oResult.GetValNumber("Step.Limits.High", 0))
    Debug.Print "LowLimit: " & CStr(oResult.GetValNumber("Step.Limits.Low", 0))
    End If
    '(handle the results)
    Next iItem
    I can get the step name, I can get the status, but I can't get the limits. The "if" statement above which checks for "limits" never becomes true, because, apparently the limit results never made it to the results array.
    So, my question again is how can I pass the low and high limit results to the results list, and how can I retrieve the same from the results list?
    Thanks,
    Griff

    Griff,
    Hmmmm...
    I use this feature all the time and it works for me. The only real
    difference between the code you posted and what I do is that I don't
    retrieve a property object for each TestStand object, instead I pass the
    entire sequence context (of the process model) then retrieve a property
    object for the entire sequence context and use the full TestStand object
    path to reference sub-properties. For example, to access a step's
    ResultList property called "foo" I would use the path:
    "Locals.ResultList[0].TS.SequenceCall.ResultList[].Foo"
    My guess is the problem has something to do with the object from which
    you're retrieving the property object and/or the path used to obtain
    sub-properties from the object. You should be able to break-point in the
    TestStand sequence editor immediately after the test step in question
    executes, then see the extra results in the step's ResultList using the
    context viewer.
    For example, see the attached sequence file. The first step adds the extra
    result "Step.Limits" as "Limits", the second step is a Numeric Limit (which
    will have the step property of "Limits") test and the third step pops up a
    dialog if the Limits property is found in the Numeric Limit test's
    ResultList. In the Sequence Editor, try executing with the first step
    enalbled then again with the first step skipped and breakpoint on the third
    step. Use the context viewer to observe where the Limits property is added.
    That might help you narrow in on how to specify the property path to
    retrieve the value.
    If in your code, you see the extra results in the context viewer, then the
    problem lies in how you're trying to retrieve the property. If the extra
    results aren't there, then something is wrong in how you're specifying them,
    most likely a problem with the AddExtraResult call itself.
    One other thing to check... its hard to tell from the code you posted... but
    make sure you're calling AddExtraResult on the correct execution object and
    that you're calling AddExtraResult ~before~ executing the step you want the
    result to show up for. Another programmer here made the mistake of assuming
    he could call AddExtraResult ~after~ the step executed and TestStand would
    "back fill" previously executed steps. Thats not the case. Also, another
    mistake he made was expecting the extra results to appear for steps that did
    not contain the original step properties. For example, a string comparison
    step doesn't have a "Step.Limits.High" property, so if this property is
    called out explicitly in AddExtraResult, then the extra result won't appear
    in the string comparison's ResultList entry. Thats why you should simply
    specify "Step.Limits" to AddExtraResul so the Limits container (whose
    contents vary depending on the step type) will get copied to the ResultList
    regardless of the step type.
    I call AddExtraResult at the beginning of my process model, not in a UI
    message handler, so there may be some gotcha from calling it that way. If
    all else fails, try adding the AddExtraResult near the beginning of your
    process model and see if the extra results appear in each step's ResultList.
    Good luck,
    Bob Rafuse
    Etec Inc.
    [Attachment DebugExtraResults.seq, see below]
    Attachments:
    DebugExtraResults.seq ‏20 KB

  • Same query giving different results

    Hi
    I m surprised to see the behaviour of oracle. I have two different sessions for same scheema on same server. In both sessions same query returns different results. The query involves some calculations like sum and divisions on number field.
    I have imported this data from another server using export / import utility available with 9i server. Before export every thing was going fine. Is there some problem with this utility.
    I m using Developer 6i as the front end for my client server application. The behaviour of my application is very surprizing as once it shows the correct data and if I close the screen and reopen, it shows wrong data.
    I m really stucked with the abnormal behaviour. Please tell me the possiblities and corrective action for these conditions.
    Regards
    Asad.

    There is nothing uncommitted in both the sessions. But still different results are returned.
    I m sending u the exact query and result returned in both sessions.
    Session 1:
    SQL> rollback;
    Rollback complete.
    SQL> SELECT CC.CREDIT_HRS,GP.GRADE_PTS
    2 FROM GRADE G, COURSE_CODE CC, GRADE_POLICY GP
    3 WHERE G.COURSE_CDE=CC.COURSE_CDE
    4 AND G.SELECTION_ID=45 AND G.GRADE_TYP=GP.GRADE_TYP
    5 AND G.TERM_PROG_ID=17 AND GP.TERM_ID=14
    6 /
    CREDIT_HRS GRADE_PTS
    3 4
    4 3.33
    4 3.33
    3 4
    3 4
    3 4
    3 4
    7 rows selected.
    SQL>
    SESSION 2:
    SQL> rollback;
    Rollback complete.
    SQL> SELECT CC.CREDIT_HRS,GP.GRADE_PTS
    2 FROM GRADE G, COURSE_CODE CC, GRADE_POLICY GP
    3 WHERE G.COURSE_CDE=CC.COURSE_CDE
    4 AND G.SELECTION_ID=45 AND G.GRADE_TYP=GP.GRADE_TYP
    5 AND G.TERM_PROG_ID=17 AND GP.TERM_ID=14
    6 /
    CREDIT_HRS GRADE_PTS
    3 4
    4 3.33
    3 4
    3 4
    3 4
    3 4
    6 rows selected.
    SQL>
    U can see in session 1, seven rows are returned while in session 2 six rows are returned. I have issued a rollback before query to be sure that data in both sessions is same.

  • Passing Parameters to SQL Query and Displaying Result

    The user enters a serial number in a text box and then pushes a button to get info about the serial number. I do this with two regions. The first region has the text box and the button. The second region is a Report type region and contains the following SQL:
    select case
    when "WARRANTYSTATUS"."OUTOFWARRANTYDATE" >= sysdate then
    'Serial Number '||"WARRANTYSTATUS"."SERIALNUMBER"||' is in warranty.'
    else
    'Serial Number '||"WARRANTYSTATUS"."SERIALNUMBER"||' is out of warranty.'
    end as "The result is:"
    from "WARRANTYSTATUS"
    where "WARRANTYSTATUS"."SERIALNUMBER" in (:P1_SERIALNUMBER)
    For a single serial number of the form CU5-0799 every thing works. I am a little suprised this works because the SERIALNUMBER in the WARRANTYSTATUS table is of type varchar2 which means the serial number in the where clause must be surrounded by single quoties. Not sure where the single quoties are being added.
    However, what I like to do is to enter more that one serial number, seperated by commas, in the same text box, and then the query return a result for each serial number. What I would like to enter is:
    CU5-0799, CU5-07132, CU5-89345
    The problem is this string of three serial numbers will needs to be have single quotes around each serial number at the level of the sql statement. So the question is how do I make this work?? Thanks for the help in advance.

    Bob,
    If you would change your OTN handle to something more mnemonically friendly, that would help us. Thanks.
    This topic is addressed fully, with various techniques described, here: Re: Search on a typed in list of values .
    I am a little suprised this works because the SERIALNUMBER in the WARRANTYSTATUS table is of type varchar2 which means the serial number in the where clause must be surrounded by single quoties.
    Not true. Quotes are used for literals, not bind variables.
    Scott

  • Is it possible to submit a list item and at same time query/search the results if parameters are matched.

    Hello,
    Is it possible to submit a list item and at same time query/search the results if parameters are matched.
    Example - user logon to site enter search parameters and hit submit button. Once done parameters gets saved in list and shows search results on page. I have been asked to do this with
    SP designer and InfoPath doesn’t work due items limits.
    Please suggest.
    Thanks,
    Manish
    Manish

    Hi Manish,
    may i ask if you need,
    when user account click the login button, it will be authenticate the user and then it will show search result page?
    may i know how the keyword of words to be put? is it together with the user account box, password and keyword?
    or it will be like, after user authenticate, it will redirect to search page, so that user may use the search page to input the keyword?
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Same Query returning different result (Different execution plan)

    Hi all,
    To day i have discovered a strange thing: a query that return a different result when using a different execution plan.
    The query :
    SELECT  *
      FROM schema.table@database a
    WHERE     column1 IN ('3')
           AND column2 = '101'
           AND EXISTS
                  (SELECT null
                     FROM schema.table2 c
                    WHERE a.column3 = SUBSTR (c.column1, 2, 12));where schema.table@database is a remote table.
    when executed with the hint /*+ ordered use_nl(a c) */ these query return no result and its execution plan is :
    Rows     Row Source Operation
          0  NESTED LOOPS  (cr=31 r=0 w=0 time=4894659 us)
       4323   SORT UNIQUE (cr=31 r=0 w=0 time=50835 us)
       4336    TABLE ACCESS FULL TABLE2 (cr=31 r=0 w=0 time=7607 us)
          0   REMOTE  (cr=0 r=0 w=0 time=130536 us)When i changed the execution plan with the hint /*+ use_hash(c a) */
    Rows     Row Source Operation
       3702  HASH JOIN SEMI (cr=35 r=0 w=0 time=497839 us)
      22556   REMOTE  (cr=0 r=0 w=0 time=401176 us)
       4336   TABLE ACCESS FULL TABLE2 (cr=35 r=0 w=0 time=7709 us)It seem that when the execution plan have changed the remote query return no result.
    It'is a bug or i have missed somthing ?
    PS: The two table are no subject to insert or update statement.
    Oracle version : 9.2.0.2.0
    System version : HP-UX v1
    Thanks.

    H.Mahmoud wrote:
    Oracle version : 9.2.0.2.0
    System version : HP-UX v1Hard to say. You're using a very old and deprecated version of the database, and one that was known to contain bugs.
    9.2.0.7 was really the lowest version of 9i that was considered to be 'stable', but even so, it's old and lacking in many ways.
    Consider upgrading to the latest database version at your earliest opportunity. (or at least apply patches up to the latest 9i version before querying if there is bugs in your really low buggy version)

  • Problem of running the jump query from the result line

    Dear expert,
    I have a problem when running a jump query from the result line. Apparently, the values of the caracteristics haven't been sent to the jump target.  However, the configuration in RSBBS seems to be good as the jump works well from the other lines.
    Does anyone have some ideas on that?
    Thanks in advance!

    Hi,
    If you are supposed to bring across characteristic values to your target, then you will not be able to jump from the result line. The configuration expects that the values of the characteristic marked as being used in the jump are filled with unique values. When you use the result line as a source for your jump, the values in the result line will most likely be based on the sum of multiple characteristic values.
    Hth,
    -Jacob

  • How To Make Search Query Showing the Result As List of Buttons.

    Can some one give me an idea how to start to make a Search Query showing the results as list of buttons.. i have already have my buttons with names. i just dont know how to make a search query.
    this is my on screen keyboard i made..
    im making a system that the result were a list of buttons.. showing like this
    This was supposed to be the output of the query that i need to do..
    Please help me.. i just need a idea or tips how to make this one.

    Here is code I posted recently for another question
    Public Class Form1
    Const BUTTON_SIZE As Integer = 20
    Const SPACE As Integer = 5
    Sub New()
    ' This call is required by the Windows Form Designer.
    InitializeComponent()
    ' Add any initialization after the InitializeComponent() call.
    Dim buttons As New List(Of List(Of MyRadioButton))
    For row = 1 To 6
    Dim newRow As New List(Of MyRadioButton)
    buttons.Add(newRow)
    For col = 1 To 6
    Dim button As New MyRadioButton()
    button.row = row
    button.col = col
    button.Height = BUTTON_SIZE
    button.Width = BUTTON_SIZE
    button.Left = col * (BUTTON_SIZE + SPACE)
    button.Top = row * (BUTTON_SIZE + SPACE)
    button.Name = String.Format("radGr1{0}_{1}", row.ToString(), col.ToString())
    Me.Controls.Add(button)
    newRow.Add(button)
    AddHandler button.CheckedChanged, AddressOf Radio_Change
    Next col
    Next row
    End Sub
    Private Sub Radio_Change(ByVal sender As Object, ByVal e As System.EventArgs)
    Dim button As MyRadioButton = CType(sender, MyRadioButton)
    Dim row As Integer = button.row
    Dim col As Integer = button.col
    End Sub
    End Class
    Public Class MyRadioButton
    Inherits RadioButton
    Public row As Integer
    Public col As Integer
    End Class
    jdweng

  • Can i query from a results which got from another query?

    if i query a container and i get a results,then if i want to query in the results,can i?and how to do it?
    thanks a lot!

    Hi Turingcat,
    In the dbxml shell you can use contextQuery. Here is an example on a test container holding the following documents:
    dbxml> getDocuments
    4 documents found
    dbxml> print
    <doc><node><aa>1</aa><bb>2</bb></node><node><aa>3</aa><bb>4</bb></node><node><aa>5</aa><bb>6</bb></node></doc>
    <doc><node><aa>1</aa><bb>2</bb></node><node><aa>3</aa><bb>4</bb></node></doc>
    <doc><node><aa>1</aa><bb>2</bb></node><node><aa>3</aa><bb>4</bb></node><node><aa>5</aa><bb>6</bb></node><node><aa>7</aa>
    <bb>8</bb></node></doc>
    <doc><node><aa>1</aa><bb>2</bb></node></doc>, that first retrieve all the documents that have a <bb>6</bb> node:
    dbxml> query "for $i in collection('mnodes.dbxml')/doc where $i/node/bb=6 return $i"
    2 objects returned for eager expression 'for $i in collection('mnodes.dbxml')/doc where $i/node/bb=6 return $i'
    dbxml> print
    <doc><node><aa>1</aa><bb>2</bb></node><node><aa>3</aa><bb>4</bb></node><node><aa>5</aa><bb>6</bb></node></doc>
    <doc><node><aa>1</aa><bb>2</bb></node><node><aa>3</aa><bb>4</bb></node><node><aa>5</aa><bb>6</bb></node><node><aa>7</aa>
    <bb>8</bb></node></doc>and afterwards, queries the result set and retrieves the document(s) that has a <aa>7</aa> node:
    dbxml> contextQuery "let $s:= . where $s/node[aa=7] return $s"
    1 objects returned for expression 'let $s:= . where $s/node[aa=7] return $s'
    dbxml> print
    <doc><node><aa>1</aa><bb>2</bb></node><node><aa>3</aa><bb>4</bb></node><node><aa>5</aa><bb>6</bb></node><node><aa>7</aa>
    <bb>8</bb></node></doc>Now, using the APIs, C++ or Java, you can achieve this functionality by obtaining a result set (either through an XmlQueryExpression.execute() call or an XmlManager.query() call), and than constructing an XmlQueryExpression which will be used while iterating the result set to query against each XmlValue context item (the XmlQueryExpression.execute() forms of the method with an XmlValue &contextItem parameter).
    Regards,
    Andrei

  • Query to get result

    Hi All,
    We are using SQL Server 2012. We have Table1 like below.
    Table1:
    SecurityKey
    Description
    PID
    110
    qqq
    1
    111
    ddd
    1
    112
    fff
    1
    113
    vvvv
    1
    114
    bbb
    1
    115
    ggg
    1
    116
    hhhh
    1
    One of the third party system adds records into the following table like this.
    Table2
    ID
    MasterID
    Type
    Amount
    SecurityKey
    Date
    TransNum
    1
    110
    Buy
    600
    0
    01/13/2014
    2178
    2
    111
    Buy
    100
    110
    01/13/2014
    2179
    3
    112
    Buy
    200
    110
    01/13/2014
    2180
    4
    113
    Buy
    300
    110
    01/13/2014
    2181
    5
    114
    Sell
    100
    110
    01/14/2014
    6
    115
    Sell
    200
    110
    01/14/2014
    7
    116
    Sell
    300
    110
    01/14/2014
    In above table, primary key is combination of ID, MasterID and Type. All ‘Buy’ type transactions are entered into Table2 by Vendor system by running scheduled job. SecurityKey 110 has child records. So, in Table2, 111, 112, 113 belong to 110. Next day, another
    system creates exact matching ‘Sell’ transactions to all buy transactions except for parent (here record with MasterID 110). When ‘Sell’ transactions are created, TransNum is not populated.
    I need to write a select query in such a way that I need to get all ‘Buy’ Transactions for a particular date and get corresponding ‘Sell’ Transactions with TransNum populated.
    The result set should look like this.
    2
    111
    Buy
    100
    110
    01/13/2014
    2179
    3
    112
    Buy
    200
    110
    01/13/2014
    2180
    4
    113
    Buy
    300
    110
    01/13/2014
    2181
    5
    114
    Sell
    100
    110
    01/14/2014
    2179
    6
    115
    Sell
    200
    110
    01/14/2014
    2180
    7
    116
    Sell
    300
    110
    01/14/2014
    2181
    How can I write select query to get result set above by applying ‘Buy’ transaction TransNum to
     corresponding ‘Sell’Transaction. I see only amount and SecurityKey as joining columns.
    Thanks,
    Spunny

    ;With CTE
    AS
    SELECT ROW_NUMBER() OVER (PARTITION BY SecurityKey,Type ORDER BY MasterID) AS Seq,*
    FROM Table2
    WHERE SecurityKey > 0
    SELECT t1.ID,
    t1.MasterID,
    t1.Type,
    t1.Amount,
    t1.SecurityKey,
    t1.[Date],
    COALESCE(t1.TransNum,t2.TransNum) AS TransNum
    FROM CTE t1
    INNER JOIN CTE t2
    ON t1.SecurityKey = t2.SecurityKey
    AND t1.Seq = t2.Seq
    AND t2.Type = 'Buy'
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Unable to access Query Rules and Result Sources in SSA

    I have access to our Search Service Application (SSA) within Central Administration.  I am able to get to all of the options within Search Administration except for Query Rules and Result Sources.  Does this require farm admin access or is there
    something special that needs to be done for access to these two areas?  I can get to all of the Diagnostics, Crawling, and the other Queries and Results options without issue.  Our farm admin has been looking at it, but we have not been able to determine
    why my access is not allowing me to get to those options.  Any info you may have about this will be much appreciated.
    Thanks!
    Brian

    Hi scalawagd,
    This issue seems to be about permissions. Please add the user into the search service administrator group and give him full control, compare the result. You can try to give the user permission like the screenshot:
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Using SUM BY to limit result of 3 union queries (11g)

    Hey guys,
    First time posting here (btw, I've tried changing my handle name via edit profile here to no success! Ugh!).
    I need to modify a report that's built off of 3 union queries.  Here's a simplified table version of the union result:
    Label
    Year
    Category
    Score
    Ct
    A
    2005
    1a
    4.0
    1
    A
    2005
    2b
    3.5
    1
    A
    2005
    3c
    2.5
    1
    B
    2006
    1a
    2.8
    1
    B
    2006
    2b
    4.0
    1
    Ct is a calculated item where I did a CASE on a field just to get a count of 1 on this column.  I need to limit this result where per label, per year, there are 3 categories.  So, looking at above table, Label A rows will be the only set returned.  To "hopefully" get 3 under the Ct column where there are 3 categories per year, per label, I have tried "SUM(Ct by Year)" but it didn't give the correct result.  I have also tried "SUM(SUM(Ct by Year) by Label)" and that didn't work either (not that I expected it to work).  I also messed around with GROUP BY to no success either.
    Has anyone run into something like this?  Any input/tip is appreciated. THANKS!!
    Twiggy99

    Are you using outer query to get the same?
    btw: What is when you use count instead of sum?

  • How to limit results in search help CV01 (incl. COM_SE_F4_HELP_EXIT)

    Hi experts,
    in transaction CV03N I want to limit the result list (table RECORD_TAB) of the search help CV01 using authority check. The user should not even see the document shorttext (from table DRAT) of some TOP SECRET documents in the F4-help result ... Actual solution: no user has rights for CV03N ... :-P
    I found out, that the search help for the dynpro field DRAW-DOKNR is CV01,
    including following search helps:
    CV01T
    CV01O
    CV01C
    CV01B
    CV_TREX
    Also there is a search help exit (function modul) COM_SE_F4_HELP_EXIT for CV01.
    I tried to enhance the search help exit using the prepared BADI COM_SE_F4_RESULT_ITEMS, but after i did a short test with the relevant method, i found that there is something not working as i expected ...
    Problem:
    in the function modul COM_SE_F4_HELP_EXIT there is a step prepared called STEP SELECT.
    * STEP SELECT    (Select values)
    * This step may be used to overtake the data selection completely.
    * To skip the standard seletion, you should return 'DISP' as following
    * step in CALLCONTROL-STEP.
    * Normally RECORD_TAB should be filled after this step.
    * Standard function module F4UT_RESULTS_MAP may be very helpfull in this
    * step.
      IF CALLCONTROL-STEP =  'SELECT'.                 "here i put Session BREAK-POINT
        PERFORM STEP_SELECT
                  TABLES   SHLP_TAB
                           RECORD_TAB
                  CHANGING SHLP
                           CALLCONTROL.
    *                                      Don't process additional STEP. ..
        RETURN.
      ENDIF.
    But after i put a BREAK-POINT and than start CV03N, searching a document via F4 + press ENTER, no debugging (!).
    I have to mention that the search help proceeded was CV01T.
    Question:
    can anyone explain why STEP SELECT is not proceeded in FM COM_SE_F4_HELP_EXIT using F4-help in transaction CV03N?
    I appreciate any hint in my "search help combat"
    regards
    Jörg
    Edited by: Thomas Zloch on Apr 26, 2011 10:11 PM - please do not promise "re-ward"

    INCLUDE with FORM
    ***INCLUDE LZCV_SHLPF01 .
    * nach dem Muster der Suchhilfe SAPBC_GLOBAL_F4_SFLIGHT
    * ausführlich Doku siehe dort und in den einz. incl. FB Dokus
    *&      Form  AUTHORITY_CHECK
    *       text
    *      -->P_RECORD_TAB  text
    *      -->P_SHLP_TAB  text
    *      <--P_SHLP  text
    *      <--P_CALLCONTROL  text
    FORM authority_check
           TABLES   shlp_tab    TYPE      shlp_desct            "#EC NEEDED
                    record_tab  STRUCTURE seahlpres
           CHANGING shlp        TYPE      shlp_descr
                    callcontrol TYPE      ddshf4ctrl.
    * Ablauf:
    * 1. GET Inhalte der Suchilfe Parameter (siehe SE11, CV01T)
    * 2. Feldinhalte in interner Tabelle anpassen (--> no Authority)
    * 3. PUT neue Inhalte der Suchhilfe Parameter an Ergebisliste übergeben
    * Teil 1
    * ¯¯¯¯¯¯
      CALL FUNCTION 'F4UT_PARAMETER_VALUE_GET'   "Inhalte Parameter DOKAR holen
        EXPORTING
          parameter               = 'DOKAR'                     "CV01T
          fieldname               = 'DOKAR'  "it_drat
        TABLES
          shlp_tab                = shlp_tab
          record_tab              = record_tab
          results_tab             = it_drat
        CHANGING
          shlp                    = shlp
          callcontrol             = callcontrol.
      CALL FUNCTION 'F4UT_PARAMETER_VALUE_GET'   "Inhalte Parameter DKTXT holen
        EXPORTING
          parameter               = 'DKTXT'                     "CV01T
          fieldname               = 'DKTXT'  "it_drat
        TABLES
          shlp_tab                = shlp_tab
          record_tab              = record_tab
          results_tab             = it_drat
        CHANGING
          shlp                    = shlp
          callcontrol             = callcontrol.
    * Teil 2
    * ¯¯¯¯¯¯
      LOOP AT it_drat.
        AUTHORITY-CHECK                             " here prepare the change of Paramaters
                 OBJECT 'C_DRAW_DOK'
                     ID 'DOKAR'
                  FIELD it_drat-dokar.
        IF sy-subrc NE 0.
          it_drat-dktxt = text-001.
    *     [!]Text ausgeblendet...Auth.Check(DOKAR)
          MODIFY it_drat.
        ENDIF.
      ENDLOOP.
    * Teil 3
    * ¯¯¯¯¯¯
      CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
        EXPORTING
          parameter               = 'DKTXT'                     "CV01T
          fieldname               = 'DKTXT'  "it_drat
        TABLES
          shlp_tab                = shlp_tab
          record_tab              = record_tab
          source_tab              = it_drat
        CHANGING
          shlp                    = shlp
          callcontrol             = callcontrol
    *     EXCEPTIONS
    *       PARAMETER_UNKNOWN       = 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.
    ENDFORM.                    " AUTHORITY_CHECK

  • Limit result source to site column

    I have a site column "BusinessArea" and created managed property with same name "BusinessArea" which at the moment has 4 possible values: "Property", "WC", "LA", "MA". In my default page,I have
    a dropdown with these 4 possible value. based on selection of dropdown item, i am passing it as query string parameter to load the cutom landing page .for example :
    .aspx?BusinessArea=Property. so my custom landing page has 4 possible value.
    My custom landing page has a search box in the master page. So when user clicks the search button ,I want to limit search to this specific BusinessArea site column selected by the user not the entire site. For example if user is in "Property" landing
    page and types "Payment" in search box and hits search button then the searchcenter page should return the all the list items where site column BusinessArea="Property" and any other property matches "Payment".
    Thanks in advance!!

    i dont think you can restrict an admin to change it. check this http://en.share-gate.com/blog/sharepoint-2013-search-settings-and-search-box-drop-down-menu
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

Maybe you are looking for

  • From which table i can get all activities ?

    I can get all active processes use below sql, select * from fuego_depproc a where a.fuego_status != 'D', but i don't know from which table i can get all activities of each process, who can tell me ? thanks.

  • How to specify class name in environment or system property

    Hi, Iam learning ejb. I was practicing the stateless session bean. I wrote a sample hello world application. While executing the client am getting the following error. {color:#ff0000}Exception in thread "main" javax.naming.NoInitialContextException:

  • Struts warnings/errors in logs

    I took over someone elses project and there are a lot of struts error messages in the logs, what files/reasons is to root cause of these messages. (1) attribute module must be declared for element type forward - 15:34:09 [Digester (Line: 1439)] Parse

  • Install Issue with JDev 10.1.2

    JDev appeared to install correctly but when I launch the jdev.exe it get a pop up that says "Java Virtual Machine Launcher: could not find main class" - the app then opens but I can't seem to add any java source files to a project and I get a java.la

  • Lazy Line Painter in Edge Animate

    Hello, I'm trying to achieve something pretty simple, but it's not working for now... I would like to trace a SVG dynamically, by code. To do that, I used Lazy Line Painter, which seamed to be pretty easy to use. So I made my SVG, imported it to Lazy