How to order/get top 10 records of Business Object

Hi Guys,
I need some help here.
Im trying to find out how should I go about ordering my return results by .findByMultipleParameters.
Is there a simple method to also get eg. top 30 records after sorting the results?
There are some new class - OrderBy, Paging in 7.11 (EhP1 SP02) but I'm not on this version yet.
Thanks all for your help in advance.
Thanks.

Hello Bertina!
I think you talk about it:
   List<QueryFilter> list = new ArrayList<QueryFilter>();
   list.add(QueryFilterFactory.createFilter("products.name", Condition.EQ, "Pen"));
   list.add(QueryFilterFactory.createFilter("products.code", Condition.EQ, 30));
   OrderBy orderBy = new OrderBy("products.name");
   Paging paging = new Paging(10);
   myService.findByMultipleParameters(lista, orderBy , paging, "");
A sample code, that is work fine for you.
Regards, Ronaldo.
Edited by: Ronaldo Rampelotti on Jun 18, 2009 10:36 PM

Similar Messages

  • How do i get information about a business object?

    By using reflection i am able to get the list of objects and properties in SAPbobsCOM.BoObjectTypes.
    How can i get a classified list of all objects from the same.
    I mean classified with respect to modules.
    DI API business objects are grouped to the following modules of SAP Business One application :
    Administration
    Finance
    Marketing Documents and Receipts (Sales - A/R and Purchasing - A/P)
    Business Partners
    Inventory and Production
    MRP
    Banking
    Service
    Humanresource

    Hello
    If you read more in the help, you can see which modules holds the corresponding objects...
    Example:
    Marketing Documents and Receipts (Sales - A/R and Purchasing - A/P)
    object called: documents and you may track the correct object types (oOrders, oInvoices, etc)
    if you see the help on Documents object, you can find detailed description there
    Regards
    János

  • How do i get a price on Business Objects Edge?

    I have tried the following numbers
    866-681-3435x1
    Products and Services
    800-872-1727
    main office
    610-661-1000
    And I still can't get anyone on the phone. I need to find out how much it will cost me to buy Business Objects edge before i waste any time trying to use it.

    Hello Casey,
    You can call 1-800-877-2340 and select Option 4 and then Option 1.  This is the Tele-Sales number.  They should be able to assist you or point you in the correct direction.
    Sincerely,
    Dan Kelleher

  • How can I get Video Recording! on my Blackberry curve 8320 ???????????? HELP PLEASSEEEEE

    Hi, Im a bet stressed out i just got the blackberry Curve 8320 from Tmobile and realized it has no Video recording however the person that sold it to me says they downloaded a program like a converter or something and they used to have video recording on it.  Can you please tell me how i can get video recording on mine Please. Thank you.

    to use video you need an upgrade. The name is handheld device software OS. I believe you have 4.2. 4.5 is required.
    You have to wait for TMobile to release the 4.5 OS.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • How can I get Top Sites to open full screen?

    How can I get Top Sites to open full screen?

    http://support.apple.com/kb/PH11881
    System Preferences > General
    Uncheck the box beside "Close windows when quitting an application".

  • How do a get a record of the apps I have downloaded

    How do a get a record of the apps I have downloaded

    You can view the apps that are still available in your country's app store via the Purchased tab in the App Store app on your phone.
    If you want to view your account's purchase history then log into your account on your computer's iTunes via the Store > View Account menu option, you should then see a Purchase History section with a 'see all' link to the right of it. Click on that and you should then see a list of your purchases. That should show free as well as paid-for items. On your phone you can view the last 90 days purchases via http://reportaproblem.apple.com.
    You can't view a list of actual downloads (e.g. you can't view how many times, and when, you've downloaded a particular app), only what you've purchased (included free items).

  • How to increase the number of data Business Object can pull for a report?

    Hi,
    I would like to ask around how to increase the number of data Business Object can pull for a report. I have a report which pulls data depending on the date range (ex. From 01/01/2007 - 01/10/2007). But, when the data that is pulled exceeds 5000, the report fails. Is there anyway to increase the number of data that BO can pull?
    Thanks

    Bobby,
       to my knowledge we can't change that. Let me explain this, we have setting in the source system for DS default Data Transfer. there we will assign the processes. if you want to assign 4 you need to change the setting in the source system. For flat files we can change in BW System. We can maintain the setting in the Infopackage level(wht we are assigned in the Source System), but we can't change the process.
    in order to check the setting in source system  SBIW--> General Settings --> Control Parameters for Data Transfer.
    we need to change here, this will effect to all the Data Sources. Before making changes check with your basis.
    All the best.
    Regards,
    Nagesh Ganisetti.

  • How to call the method of a Business Object?

    Hi,
    Can someone guide me how to call the method of a business object?
    For example, I want to use the method SalesDocument.Copy of the Business Object VBAK. How can I do that? If you are familiar with any similar scenario please help.
    Regards,
    Renjith Michael.

    Hi
    double click on the copy  and
    go to abap tab
    there u can get functionmodule name
    u can call that
    Rewards if helpful

  • How to do the Unicode Check for Business Objects ?

    Hi all,
    How to do the Unicode Check for Business Objects ?
    Note: All business Objects are stored in BOR (Business Objects Repositary)
    Thanks in advance
    Sri..

    Hi..
    i have used the  UCCHECK  transaction for some business Objects
    For some business objects it is showing that No Unicode Errors found Ex: Z00MARA
    and for Business Objects it showing the message like : There is no program corresponding to this selection.
    Why system is showing like this ?
    Thanks in advance
    Sri..

  • Get hierarchal list of business objects

    Hi,
      I'm using SWO_QUERY_OBJTYPES to get a list of business objects, but I need to display a hierarchy similar to the BAPI explorer. What business object can I use to browse business objects? If no business object is available, what function calls are available to get at the data?

    Hi Chris,
    this is an excerpt from the SDK Help file.
    It works on other object too, of course.
    Private Sub DataBrowserOperations()
        '// A Data Browser object can not be created, it is invoked
        '// as a property of a business object.
        '// The BusinessPartners object is used to demonstrate the
        '// use of a DataBrowser object
        Dim BusinessPartners As SAPbobsCOM.BusinessPartners
        '// A DataBrowser object contains a Recordset object.
        '// Because a DataBrowser Object can not be created,
        '// a Recordset Object should be created and then assigned
        '// (linked) to the Recordset Property of the DataBrowser
        Dim oRecordSet As SAPbobsCOM.Recordset
        '// Get a new BusinessPartners object
        Set BusinessPartners = oCompany.GetBusinessObject(oBusinessPartners)
        '// Get a new Recordset object
        Set oRecordSet = oCompany.GetBusinessObject(BoRecordset)
        '// Perform the SELECT statement.
        '// The query result will be loaded
        '// into the Recordset object
        oRecordSet.DoQuery ("Select cardcode from ocrd where cardtype = 'C'")
        '// Asign (link) the Recordset object
        '// to the Browser.Recordset property
        BusinessPartners.Browser.Recordset = oRecordSet
        '// Access the data
        '// Once the Browser points to a row in the
        '// result set you can use the properties directly
        BusinessPartners.CardCode
        BusinessPartners.CardName
        '//Get the next Business Partner
        If BusinessPartners.Browser.EOF = False Then
            BusinessPartners.Browser.MoveNext
        End If
        '//Get the previous Business Partner
        If BusinessPartners.Browser.BoF = False Then
            BusinessPartners.Browser.MovePrevious
        End If
    End Sub

  • Hi How do we create Methods inside the Business objects of Z

    Hi Abapers,
                        How do we create Methods inside the Business objects (z objects) and how *** an import parameter or export parameter  to be defined for the new Methods.
    Regards
    Bhaskar Rao.M

    Hi Bhaskar,
    that ´s not difficult.
    Open your Bus.Obj. in SWO1 with CHANGE/EDIT
    Click on the "Methods" header line and then use the button for "Create".
    If you want to add the method on basis of a function module, choose next in the next pop up. Then the system will offer you the ex/import parameter from the function module. So this is a really simple way.
    If you don´t have a FM, it is a little bit more difficult.
    Choose No on the quetion about a FM, fill in the next pop up  methode name (no blanks allowed).
    Dialogue is for user related method (call screen...) synchronous for methods which have to give back a result directly in to the workflow.
    After completing the screen the method will be displayed as new method at the end of method list. Now add parameters (first click on the method name, then choose parameter button, same functionality to add program to the method).
    Programm:
    Code snip:
    BEGIN_METHOD ZWFCHECKMIRO CHANGING CONTAINER.
    DATA:
          ZBELNR TYPE RBKP-BELNR,
          ZGJAHR TYPE RBKP-GJAHR,
          RESULT TYPE HRP1001-ISTAT,
          BELNR TYPE BKPF-BELNR,
          GJAHR TYPE BKPF-GJAHR,
          BUKRS TYPE BKPF-BUKRS.
    to import parameter
      SWC_GET_ELEMENT CONTAINER 'Zbelnr' ZBELNR.
      SWC_GET_ELEMENT CONTAINER 'Zgjahr' ZGJAHR.
    *(or SWC_GET_TABLE)
    here add the functionality of your method!
    to export parameter
    SWC_SET_ELEMENT CONTAINER 'Result' RESULT.
      SWC_SET_ELEMENT CONTAINER 'Belnr' BELNR.
    *(or SWC_SET_TABLE)
    !!! Important: naming convention!!! Use same writing of parameter names in
    PARAM area (button PARAMETER) and here in code.
    To use your method, change it to implemented after adding your code.
    -> Edit -> Change release status -> object type component -> into implemented
    (Sorry , have a german screen here, possibly terms are a little bit different.
    Hope this helps a little bit.!
    regards
    Dirk

  • How to get  meta data of business objects  in BOR

    i need to get all the meta data information of  business objects present in BOR.
    for example purchase order BUS2012
    1.  I need to get for example  the attributes information how to get it?
    2. if  business object contains further child business objects then how to get attributes of those child business objects  also? 
    I am writing ABAP code,  i want to retrieve all attributes with help of ABAP program .
    any ideas?

    Hi..
    You have to use SWC_GET_ELEMENT CONTAINER '( string name of your attribute)' your_attribute.
    All attributes are part of container issue.. SWC_GET_ELEMENT command can give you these values.
    Hope to help...

  • Getting top record

    Hi all
    I'm writing a job using Data Services and need to get top 1 record in my query object. Unfortunately there is no other way, like Max or min doesn' mean to my senario. How can I get the first record like what we have in SQL Server as Select top 1 ....
    Thanks for your help in advance.

    Another option is to add a new column to your query transform, call it ROWNUM, and use gen_row_num() as the mapping.
    Then add a second query transform and include "ROWNUM=1" in the where clause.
    Make sure you include any sorting in the first query transform.
    Manoj's SQL transform solution will probably be faster, but this one will work for any kind of data source, not just SQL Server.

  • How can we get changed records in delta in case of numeric pointer

    Deall All,
    Thanks to all of you gurus i have been able to Get delta update for my query.
    There is one last issue how can i include changes records in my delta update when i am using numeric pointer for data selection.
    or
    It can only be doen by time stamp.
    can you explain me details of using time stamp.
    Thanks & regards,
    Gaurav Sood

    Dear Gaurav,
    Here we have three options for delta updation:
    Time Stamp:   If we want to update change in the records with respect to the time interval then this option is selected.
    Calend. Day:   If we want to update change in the records with respect to day to day basis then this option is selected.
    Numeric Pointer:  If we want to update in case of record which is completely new with respect to Field name then we use this option.
    And we have got some settings like:
    Safety Interval upper limit:
    This field is used by Data Sources that determine their delta generically using a repetitively-increasing field in the extract structure.
    The field contains the discrepancy between the current maximum when the delta or delta init extraction took place and the data that has actually been read.
    Leaving the value blank increases the risk that the system could not extract records arising during extraction.
    Example: A time stamp is used to determine the delta. The time stamp that was last read is 12:00:00. The next delta extraction begins at 12:30:00. In this case, the selection interval is 12:00:00 to 12:30:00. At the end of extraction, the pointer is set to 12:30:00.
    A record - for example, a document- is created at 12:25 but not saved until 12:35. It is not contained in the extracted data but, because of its time stamp, is not extracted the next time either.
    For this reason, the safety margin between read and transferred data must always be larger than the maximum length of time that it takes to create a record for this DataSource (with a time stamp delta), or it must display an interval that is sufficiently large (for determining delta using a serial number).
    Safety Interval Lower Limit
    This field contains the value taken from the highest value of the previous delta extraction to determine the lowest value of the time stamp for the next delta extraction.
    For example: A time stamp is used to determine a delta. The extracted data is master data: The system only transfers after-images that overwrite the status in the BW. Therefore, a record can be extracted into the BW for such data without any problems.
    Taking this into account, the current time stamp can always be used as the upper limit when extracting: The lower limit of the next extraction is not seamlessly joined to the upper limit of the last extraction. Instead, its value is the same as this upper limit minus a safety margin. This safety margin needs to be big enough to contain all values in the extraction which already had a time stamp when the last extraction was carried out but which were not read. Not surprisingly, records can be transferred twice. However, for the reasons above, this is unavoidable.
    Data Source Is Real-Time Enabled
    The 'real time enabled' indicator determines whether a delta-enabled Data Source can be used as a supplier of data for a real-time daemon.
    And there are two options provided like
    1)     New Status for changed records:
    If you select this option each record to be loaded delivers the new status for the key figures          and characteristics. DataSources with this delta type can write to ODS objects or master data tables.
    2)     Additive Delta:
    The key figures for extracted data are added up in BW. Data Sources with this delta type can supply data to ODS objects and Info Cubes.
    Hope this helps u..
    Best Regards,
    VVenkat..

  • How can I get delta records for Generic Delta

    Hi BW Gurus,
    I am using Generic Extractor using View from CATSDB and CATSCO talbes. At the time of modifying and changing records I am unable to get those records in BW despite enabling delta in RSO2 screen. I am able to view those modified and added records in R/3 in tables. Plz help me how I get those records to BW.

    hi,
    After we loaded all the historical data uing full upadate . Implemenattion process is over , But we will have the Transaction data that will raise daily , So we have to store that New / changed data in Delta q , And extract them each day by Delta Update
    So we will create an Info packege with the update mode as Delta , And schedule them when to start extraction , So we create the process chain uisng RSPC by giving the Info packege name . And extract the Detla daily as per schedule .
    award pts if helpful..

Maybe you are looking for

  • Report to display purchase orders

    Hi I am Venkat can any one send me report to display a list of Purchase orders open for period more than one year. I need the following output fields to be dispayed are Vendor, Period, Purchasing organization, PO number, Document date, GR status, che

  • Signle task send to mutiple sales rep by e-mail

    Guru, I am creating single task and I want to send same task to multiple sales rep by e-mail. I created distibution list and also task, after that I sent e-mail to all sales rep. What happen is only person responsible recived e-mail in the calendar n

  • How to create dashboard through CSOM to show workflow from external lists

    We have following requirement. SharePoint 2013 standard edition environment is installed. SO no BI site template is possible. Development has to be through CSOM only. Vendor data is stored in external database in SQL server 2012. There are number of

  • Suppressing Bex Messages

    Hi, I have a condition in my query and because of this I got a message popping-up when running the query.  The instruction said i can deactivate the message using RSRT1.  So That's what I did.  I took note of the BRAIN no. 144 and and tick on the sup

  • OAMSSA-20023 error while logging in as xelsysadm

    Hello, Installed 11.1.1.3 on linux recently and went through the configuration scripts. I am trying to login as xelsysadm in the http://<localhost>:14000/oim and getting an error "Incorrect Username or Password was specified" on the login screen. Upo