Is it possible to let user restrict the number of the records in OVS?

is it pissible ?
For example a user can input 500 record .....
Then when we search and we can get the value set by the user '500' so we can restrict our record in our application.
Best regards,
Anders

Dear Anders,
u can have an i/p field (say var) for the user where he can specify the no. of records and u can use the following logic.
TYPES: BEGIN OF ST_BOQ,
          ITEMNO       TYPE ZITEMNO,
          MATNR        TYPE MATNR,
          MAKTX_P      TYPE ZPOTEXT,
           SRNO         TYPE ZSERIALNO,
       END OF ST_BOQ.
DATA: IT_BOQ TYPE TABLE OF ST_BOQ,
      WA_BOQ LIKE LINE  OF IT_BOQ.
data: var1 type i.
var1 = 10.
        SELECT * FROM ZBOQ_ITEM UP TO var1 rows INTO CORRESPONDING FIELDS OF TABLE IT_BOQ .
Regards
Sajid

Similar Messages

  • Alert about the loading time & Restrict the number of the rows retrieved

    Hi everybody, maybe the question is stupid, but I didn't find yet an answer...
    I'm using BIP 10.1.3.4.1
    Because I have many reports with a huge amount of data to display (in HTML format) and customers once clicked on "View" have to wait a lot of time, they asked me if there is the possibility to do the following things:
    1. restrict the number of the rows retrieved (this for each report); this request has to be dynamic (different rows' number for each report and for each user); so, I can't modify the query into the data template in order to retrieve a fixed number of rows;
    2. show an alert who says for example " The data loading will take 5 minutes. Do you want to proceed ? YES - NO" This to inform the users how much time they have to wait if they click on Yes.
    I checked under the Administrator TAB...but I didn't find nothing "native" about the two questions above.....
    So, I ask you if there is a way to activate these features (if they exist "native") or a workaround to implement what I described above.
    Any help will be appreciated.
    Thanks in advance
    Alex

    Hi Vetsrini, thanks for your answer.....but what does it mean ? There are no solutions for my requests ? I remember that Discoverer had the possibility to have an alert as I would like to have with BI Publisher and there was the possibility to choose how many rows it was required from the customer....Is it possible that with BIP is not applicable ?
    Have a good day
    Alex

  • How do I let user enter a number?

    how do I let user enter a number?Any method or proccess.Plz help.

    On the command line you can use:
    BufferedReader in = new BufferedReader(new InputStreadReader(System.in));
    String line = in.readLine(); // characters so far
    int number = Integer.parseInt(line);Notify that if the user enters something different from a number an exception in thrown. In that case you should possibly ask him again.
    In swing applications of applets you would do it different.
    regards
    Sven
    regards
    Sven

  • Why is the word count different when I use word count from the tools menu to the number at the bottom of my mac word document

    Why is the word count different when I use word count from the tools menu to the number at the bottom of my mac word document

    This forum is for Apple's defunct office suite 'AppleWorks' - since the word count is not in the places you mention I assume you are talking about Microsoft Word? Though it's just possible someone in this forum might also use Word and know the answer, you would stand a higher chance of getting an answer in Microsoft's own forums. You could also try asking in the forum applicable to your operating system - Lion, Mavericks or whatever - on the reasonably chance of finding someone familiar with Word.

  • How to limit the number of seleted records?

    Hi,
    I have a performance issue in the context of SQL .
    I used JDBC to excute a select statement. The number of found records might be too large (e.g. 10000). To display them, I set a marge (e.g. 50 ) It is fine for display purpose.
    However, the execution of select statement took long time although I only needed 50 of them.
    Is it possible to make the execution of SQL select statement only work until it found 50 records?
    it seems that i dreamed. But maybe there is a walk around.
    Regards,
    PY

    You could also try calling the Statement (or
    PreparedStatement etc.)'s setMaxRows() method.when using Oracle, does it use the "ROWNUM < maxRows" to limit the number of entries or does it actually retrieve all the data from the database and only then limit the result to the requested amount?
    THX

  • Searching for the number in the bigint value...

    HI!
    Could anybody help me with the searching for the number in the bigint value. ex:
    9567423742840 i need to get only the 2nd and 3rd number (56) from this value...
     ^^
    and the same thing with symbols in the strings..
    is there any special function in jsp available for that?
    thanks

    try looking into the String class. There should be a substring or similar function that lets u get only a part of another string. You can convert the int into a string by doing something like new Integer(yourIntValue).toString() and then using that string for your substring function. There may be other ways to do it too, but this is the one I remember off the top of my head.
    Hope it helps
    package com.DJ_Java;

  • Indesign CS3: How to get the number of the current layer?

    Hallo!
    How to get the number of the current layer in a page?
    Thanks,
    Alois Blaimer

    InterfacePtr<ILayerList> layerList(documentUIDRef, UseDefaultIID());          <br /><br />int32 layerCount = layerList->GetCount();<br /><br />To findout layer name use<br /><br />IDocumentLayer* documentLayer = layerList->QueryLayer(layerIndex);<br />                         <br />PMString layer=documentLayer->GetName();

  • Date - how to get the number of the week

    I have a Date - string - w/e can be convered thats not the problem
    but how do I get the number of the week cuz the database holds events per week so I need to know the number of the week.
    I tried going true the api but I failed to find the right fuction, aldoh I recall seeing it somewhere a while ago.
    anyways got a deathline so easy dukies, first come first serve.

    how's this then?int weekOfYear = 0;
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd"); //your String format
    Date date = null;
    String dateString = "2003/06/16";
    try {
      date = sdf.parse(dateString);
    } catch (ParseException pe) {
      //hande bad date format
    if (date != null) {
      GregorianCalendar calendar = new GregorianCalendar();
      calendar.setTime(date);
      weekOfYear = calendar.get(Calendar.WEEK_OF_YEAR);
    Warning: Be careful of your locale settings when using week of year, you may need to investigate setFirstDayOfWeek(int value) and setMinimalDaysInFirstWeek(int value) to ensure you get the results you expect.

  • How to know the number of the week in iCal ?

    Hi !
    I'm very enjoying iCal. But, there is something very important for me that I can't find in iCal !
    I need to know the number of the week (in Month, Week or Day views).
    Is that a way to easily see it ?
    Regards,
    ant
    iMac G5   Mac OS X (10.4.2)  

    there's no option for a week view in iCal, but John Maisey wrote this applescript.
    paste it in the Script Editor (Applications --> AppleScript --> Script Editor) and run it once...
    if your weekview starts on an other day change this line:
    set daysText to "MonTueWedThuFriSatSun"
    to (example)
    set daysText to "SunMonTueWedThuFriSat"
    --Copy below this line into Script Editor and click run --
    --Annual Week numbers
    --John Maisey
    --4/2/5
    set numberOfWeeks to 1000 -- change as needed
    set daysText to "MonTueWedThuFriSatSun"
    set aDate to (current date)
    set day of aDate to 1
    set month of aDate to January
    set aDay to weekday of aDate
    set weekNo to 1
    --Day of week as num. starting with 0
    set aDayText to (characters 1 thru 3 of (aDay as text)) as text
    set dayOff to ((offset of aDayText in daysText) - 1) / 3 as integer
    if dayOff is less than 5 then
    set StartDate to aDate - dayOff * days
    else
    set StartDate to aDate + (7 - dayOff) * days
    end if
    tell application "iCal"
    set newCal to make new calendar at end of calendars with properties {title:"Week No."}
    set myCal to (count of every calendar)
    end tell
    repeat with myCount from 1 to numberOfWeeks
    if (month of StartDate is December) and (day of StartDate is greater than 28) then set weekNo to 1
    if (month of StartDate is January) and (day of StartDate is less than 5) then set weekNo to 1
    set weekText to "Week No. " & weekNo
    tell application "iCal"
    tell calendar myCal
    make new event at end of events with properties {start date:StartDate, allday event:true, summary:weekText}
    end tell
    end tell
    set weekNo to weekNo + 1
    set StartDate to StartDate + 7 * days
    end repeat
    --

  • I created a book at the Ibooks author. But there are pages where the number of the page does not appear. How I can solve this problem? I thank you very much for any tip.

    I created a book at the Ibooks author. But there are some pages which the number of page is not visible. What can I do to see the number of the page?

    Have you changed the template?
    Some pages may not have numbers in place as default.  If you have changed the page or the template page, you may have added a object which as pushed the number out of view, or an image may be in a layer on top of the text.
    If you select one object on the page...then go to Edit, select all, you should see the outlines of any content no matter that content may not be seen. Look at the bottom for a page width rectangle outline.. IF its there, you need to shuffle the content until you find that box, and use Arrange > bring to front.

  • Hi.  I purchased Adobe Acrobat Xi Pro from a store (card).  I submitted the number (under the scratch area on the card) on the adobe website, with my personal details etc.  When I submitted the form, I got an error message:  413 header length too large (a

    Hi.  I purchased Adobe Acrobat Xi Pro from a store (card).  I submitted the number (under the scratch area on the card) on the adobe website, with my personal details etc.  When I submitted the form, I got an error message:  413 header length too large (and on top the page reads JRun Servelet Error).  What does this mean? What should I do next?

    Hi.  I purchased Adobe Acrobat Xi Pro from a store (card).  I submitted the number (under the scratch area on the card) on the adobe website, with my personal details etc.  When I submitted the form, I got an error message:  413 header length too large (and on top the page reads JRun Servelet Error).  What does this mean? What should I do next?

  • I've got an iPad and iPhone 4S, both of which are set up for facetime. When someone calls me, both the iPad and phone ring, even though the phone is set to receive facetime calls on the number and the iPad is set for an email account. why is this?

    I've got an iPad and iPhone 4S, both of which are set up for facetime. When someone calls me, both the iPad and phone ring, even though the phone is set to receive facetime calls on the number and the iPad is set for an email account.
    How can I change the setup so on the email only the iPad rings and on the phone number only the phone rings?

    No it's not stealing. They have an allowance that you can share with so many computers/devices. You'll have to authorize her computer to play/use anything bought on your acct. You can do this under the Store menu at top when iTunes is open on her computer.
    As far as getting it all on her computer....I think but I am not sure (because I don't use the feature) but I think if you turn on Home Sharing in iTunes it may copy the music to her computer. I don't know maybe it just streams it. If nothing else you can sign into your acct on her computer and download it all to her computer from the cloud. Not sure exactly how to go about that, I haven't had to do that yet. I wonder if once you authorize her computer and then set it up for automatic downloads (under Edit>Preferences>Store) if everything would download. Sorry I'm not much help on that.

  • The number of the rows in a tabular style

    hello to all
    i have a problem creating a column that gives me the # of the row in tabular with form builder
    can anybody give me help with that please?

    The rownum pseudo-column hold the number of the row but it doesn't work like you expect. It is assigned before sorting for example and it is not absolute. SQL conceptually deals with sets and sets have no inherent order. See http://www.oracle.com/technology/oramag/oracle/06-sep/o56asktom.html
    If you want to have an absolute number in a row you will need to maintain it yourself with PLSQL code.

  • How to extract the number of the image which looks like a number

    Now,I can generate a image which contains a random number,but I can not extract the number of the image.Any one can help me?

    [url http://forum.java.sun.com/thread.jspa?threadID=779212&messageID=4433641#4433641]Crosspost.

  • After VLSP, to find the number of the master delivery

    We are using VLSP tcode for splitting a single delivery to multiple deliveries. Say that we know the number of the multiple ones but we don't know the delivry number of the master delivery. How can we find it? Is there a table that creates a record for keeping the delivery number of the master one?
    Thanks in advance for the answers....

    Hi,
       Kindly consider that the delivery split produce "results" & "remainder" delivery documents, the most probable that the remainder document is the original master doc before the split so it should be the one with oldest serial number.
    Best regards.

Maybe you are looking for

  • Next record

    I'm using vb script. I'm making a quiz. I connect to a database for the questions and choices. I have a test page and a test processor page. On the test page I display the question and 4 choices. On the test processor page, it tallies up the score an

  • Difference between Former budgeting and Budget Control System.

    Dear experts, I am looking for a document/guide which can explain the salient feature of BCS and how the same is more beneficial compared to Former budgeting. Additionally, help is also sought on how to migrate from former budgeting to BCS upon upgra

  • Free transform tool fail

    Hello. Im really frustrated with how the free transform tool works for me (or in that case, it doesnt work) I am using Illustrator CS4 on a PC. Adobe Help for that software states: Select one or more objects. Select the Free Transform tool . Start dr

  • How to properly query table? (uix)

    I have my query form from which I execute dataaction which do sth like this: ViewObject empvo = findViewObject("SubMyTableView1"); empvo.setWhereClause(whereclause); empvo.executeQuery(); but when I go to the result page i get only 10 first rows, and

  • Interactive Report "in" filters do not maintain trailling spaces

    I recently came across an interesting situation regarding interactive reports and "in" filters. When building the in list through the filter wizard, any trailing spaces in the column data is trimmed, which leads to inaccurate report results. This doe