ABAP Query - Want to limit the number of records to 5

I have a query based on a a table join (MKPF with MSEG) infoset. I want to limit the number of records to first five.
How to deal with it?

select data from tables using join and where conditions....into internal table....
now move the first 5 records to second internal table and use them...
or else in ur select statement u can use...
select  data from tables <join condition> upto 5 rows.
Message was edited by:
        Ramesh Babu Chirumamilla

Similar Messages

  • How to limit the number of records in WebI Report

    Hi,
    I have a requirement where I need to display the WebI Report data only if the number if record is less than 65k.
    Incase if the records are more than 65k then the report should be blank and a text message needs to be displayed.
    The client dont want to set the number of records either in universe or at the edit query at the report. They want to limit once the report is executed.
    Please let me know if its possible to do it at the report level.
    Thanks in advance!!
    Best Regards
    SAP BO

    Optional prompts are not a problem.
    Assuming you first query uses the following SQL statement
    select a,b,c from t where x=y and z=@prompt(...)
    The query for checking the number of rows should use the following SQL code
    select count(*) from t where x=y and z=@prompt(...)
    The original query should be modified as follows
    select a,b,c from t where x=y and z=@prompt(...) AND (select count(*) from t where x=y and z=@prompt(...)) < 65000
    Regards,
    Stratos

  • Limit the number of record to download to excel from a report

    I am just wondering if there is a way to limit the number of rows that I want to download to excel from a report in apex, right now when I click download to excel it downloads all records. If I am displaying 15 records on report page I want the ability to download only those records.
    Any help with that would be appreciated.
    Kind Regards,
    Sofia.

    Sofia,
    The same report query runs for downloading the data into excel, I don't think you can limit the number of records in download.
    You can achieve it using custom code, like on click of download excel redirect to another page and then restrict the data as per your need, or you can use the custom procedure to download the limited data.
    Denes' utility to download into excel.
    http://htmldb.oracle.com/pls/otn/f?p=31517:108:1476564836494581:::RP,::
    Regards,
    Manish

  • Limit the number of records in result list cartridge

    Hi experts
    I want to use result list cartridge for displaying some products but also want to limit the returned results to some max records.
    Is there any way i can limit the number of results in result list cartridge?
    Thanks

    Results list has a 'recordsPerPage' property that will limit the number of records on the page.
    Are you looking to limit it at some other place?
    HTH,
    Pankaj.

  • Limit the number of records per page in webi

    Hello All,
    How do i limit the number of records per page in webi?
    i was asked to have not more than 20 records per page.
    In " NUmber of Vertical records per page"(Quick display mode) the default value was 100, i am trying to set it to 20 ...but its not updating....its still taking 100.
    I am on BO XI 3.1 Sp2 fix pack 3
    Please let me know a way to accomplish this.Any inputs appreciated
    Thanks

    It can be done as follows:
    1. create a variable at report level as:
            v Test = Floor(RowIndex()/20)
    2. Added this variable in the Block as a new column.
    3. Select the v Test column, Right Click and set as section (also you can apply break).
    4. Go to structure mode select section\break and go to properties tab and select the property "Start on new page".
    Regards,
    Rohit

  • I want to limit the number of scan done by a barcode scanner to 50, how can i do that

    I am scanning data from my 2d barcode scanner, now i want that after 50 scans my barcode scanner should prompt that scanning of 50 barcode complete, how can i do that? i know logic might be easy but its not sticking me. Please help.

    Hey,
    Everytime you get a valid scan increment a counter and compare with 50. If limit is reached you are done.
    Regards
    CMW
    LV 13.0.1 Developer Suite with Automated Test; Win7 x64

  • I want to limit the number of emails displayed and kept on my iphone.  There used to be a setting to limit but it appears to be gone in 7.0

    With the upgrade to this horrible 7.0 ios I find that now all 22K plus of emails from my Gmail account are on my phone.  How do I change the setting so only 50 or 100 are displayed?  This option seems to be removed. 

    Verizon is not doing that it is the mail that is doing that.
    Check your device settings for email and read the owners manual as to how to set up mail to download. How you want it, leave on server, etc.
    Good Luck

  • Is it possible to limit the number of returned Records by SQL ?

    Hello all together,
    i want to limit the number of records fetched by a sql-query
    to a fixed maximum for example 200.
    is there a way to do this like
    SELECT * FROM CUSTOMERS FETCH FIRST 200
    under 8.1.6 EE ?
    thx for any idea
    Lutz

    Use ROWNUM ...
    WHERE ROWNUM < 201
    There are a few "gotchas" with rownum, such as "rownum >
    20 and < 201" not working. Search the forum or see the
    documentation for more detail.

  • Classic Report limit the number of rows displayed

    Hi All,
    In my application I have a classic Report which show the data of a simple query. For lay-out reasons I want to limit the number of display to 5 instead of the default 15. I've looked in several forums and they told me that I have to set the number of rows in the report attributes.
    But it did not what I want. I'm Using APEX 4.1.0 on a Oracle 11G database
    My question is: How can I limit the maximum number of rows in a classic SQL Report.

    Hamertje16 wrote:
    In my application I have a classic Report which show the data of a simple query. For lay-out reasons I want to limit the number of display to 5 instead of the default 15. I've looked in several forums and they told me that I have to set the number of rows in the report attributes.And did you do so?
    But it did not what I want. I'm Using APEX 4.1.0 on a Oracle 11G databaseHow did it not do what you want? Displayed an error? Displayed no rows? Displayed 15 rows? Displayed some other number of rows? We can only help if we fully understand the nature of the problem.
    My question is: How can I limit the maximum number of rows in a classic SQL Report.To display 5 rows per page set the report's Number of Rows attribute to *5*.
    However, pagination settings get cached for the duration of the session. For this change to be instantly visible, either log out, restart the brower, and log in again, or manually re-request the page from the browser address bar, adding 'RP' in the ClearCache position in the URL.

  • Limitting the number of records in query

    I like to limit the number of records retrieved in the query. I set Query All Records block property to NO, Query Array Size to the number I want to retrieve. Before doing that, I set form Preference - Array Processing checked. The result is form always retrieves all records meets the search condition. Could someone tell me what's wrong with it?

    I do not understand why and what exactly you want to do. The query array size defines the number records your form should fetch at a time, i.e. if you have 100 records in the database and you set the array size to 20, forms will perform 5 fetch cycles to retrieve all records. However, this is transparent to the user and he will see all 100 records. This property is used for performance tuning when working with a large volume of records.

  • How to Limit the Number of Users Logged into HTML DB

    I'm using LDAP based SSO and I'd like to limit the number of users who can log into the application at a given time. If my users are assigned to groups, can I also limit the number of users who belong to a certain group who can be logged in at one time? Can anyone think of any HTML DB APIs that might be useful in doing this?

    Well if you apply a "time-out" on the session and if the there is a HTML DB table in the FLOWS account that can be queried to see the number of sessions, then you could restrict HTML DB sessions to a certain number. But if you have multiple HTML DB applications, how are you going to know which HTML DB session goes which application?
    It is very ugly. I realistically cannot see a way. Maybe the Oracle folks have a way of limiting the sessions internally within HTML DB
    Just out of curiosity, why do you want to limit the number of users? Maybe if you explain that then that might help in coming up with a solution.
    Mike

  • Limit the number of open production order

    Dear PP experts,
    I am working on discrete scenario where client want to limit the number of open production order per work center. The more elaboration is like, for one work center the only specific number of production should remain open (e.g. 5 production order in assembly shop) when user is trying to open 6th production order system should restrict that.
    Does any standard functionality available in system or needs development?
    Regards,
    Shekhar

    Dear,
    You can do it with avilability check for materail and capacity.
    In OPJK do the for your production order type as no release if materail and capacity i missing.
    Hope clear to you.
    Regards,
    R.Brahmankar

  • Can I limit the number of appointments made by everyone at a specific time and place?

    I want to limit the number of people who make an appointment at a specific time and place.  Can I do this?

    Which Adobe software are you using?

  • How to limit the number of builds in tfs build queue

    Hey.
    I have a problem, i want to limit the number of requests for build that developers can trigger with gated check-in's.
    More like this, i have my developers and they trigger 10 builds , and 10 is my limit , so when another developer preform a gated check-in I want tfs reject that request and send a mensage to the developer saying something like this "you can't queue
    more builds, wailt until queue is free".
    Anyone know how to do that?
    Thanks,

    Hi Jptfc,
    For your situation, you can check whether it is possible to set themaximumnumber or concurrently running buildsin parallel on the Build Controller. Then multiple builds can be built concurrently, and the queued builds number will be not lessin the meanwhile.
    Check this
    thread for more informaiton.
    If you want tfs reject request and send a mensage to the developer when the queued builds number equals the limit, maybe you can use Visual Studio
    extention
    . I don't have tried with it, and you can try it on your test server. Or you can open a new thread in Visual Studio Integrate forum for a better response.
    Best regards,

  • How to limit the number of connection to BI Publisher ?

    Hi,
    My Customer wants to limit the number of users
    that can concurrently view BI Publisher reports,
    but they don't want to restrict access to BIEE.
    Is it possible to meet this requirement?
    Thank is advance for any explanation.
    Regards,
    Toshihiko

    Hi.. Toshihiko
    Login to Answers,
    Go to Settings > Administration > Manage Privileges
    Now go to Oracle BI Publisher Enterprise Section..
    Under this you found View BI Publisher Reports
    Here you can give permissions to Users & Groups
    Thanks to my colleague Naresh about this...
    Thanks & Regards
    Kishore Guggilla

Maybe you are looking for

  • Argument does not exist in Table?

    Hi, I'm trying to create Planned Independent Requirements using the BAPI_REQUIREMENTS_CREATE. Getting the error "Argument does not exist in Table". I'm passing the following parameters. REQUIREMENTS_ITEM       MATERIAL    = '000000000000015197'.     

  • Port Mapping Question

    Well, I thought I had this all figured out... About a year ago I set up an older AirPort Extreme Base Station (Version 5.7) successfully to port to an iMac running OS X Tiger Server. As Leopard came out I decided that I wanted to do a little upgradin

  • Using data tab causes SD users to be black-listed! Why is this happening?

    Several SQL Developer users in our workgroup were recently black-listed by our IT department for submitting queries that ran for hours against large tables. Many of these users emphatically stated that they had not submitted ANY queries. Finally some

  • IPv6 address allocation

    I've got a best practices question. We're planning our transition to IPv6.  We've gone to ARIN and aquired a /48 for the company.  My question is about the best way to manage that space. Our company already has one a second office location (which is

  • Problem while running the scheduled jobs?

    Hi any body know the reasons for this? 1) one job got cancelled with error "ABAP/4 processor: SPOOL_INVALID_JOB, log: "The current ABAP program had to be terminated because the ABAP processor detected an internal system error. The current ABAP progra