Limit records in business object

Hi,
I'm using oracle primavera Java API. How do I limit the records from the busness object.
In oracle I used rownum for limit.
Please let me know How to use oracle native query like count(),rownum etc.. in primavera API.
Thanks
Govindan P

What you need to do is create a RANK function on the created date and then filter this by 5. You can see more information on this at Re: Limit number of records in pivot table

Similar Messages

  • Retrieve multiple records of  Business Object in a Application Service?

    Hi,
    I am working on CE71.
    I want to know how to retrieve multiple records of a Business Object in a Application Service?
    Regards,
    Rahul

    Hi,
    This can be achieved by adding find method on one or multiple attributes of the business object.
    Suppose There is a customer business object with attributes (name, id , city, country ). Now you can add findByCity operation that will return all the Customer Objects which have the City = as entered by user.
    Now this find operation can then be called by your application service and this list can then be returned as output of the application service.
    Hope this helps,
    Ashutosh

  • 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

  • Add extra Business Objects to model CRM 2007: Web Client Records

    Hello,
    Could anyone tell me how I can add more Reference Objects in Case Management?
    I copied the model CRM 2007: Web Client Records and added a new node (with for example Business Object Service Order) just like product and installations (which are visible under the reference objects)
    I created a new element type under SCMG_SP_CASE_RECORD --> Z_CRM_SPS_CASE_RECORD and in the customizing we attached the model to the case type under Case Management --> Extended Customizing --> Process Actions --> Assign Action Profile to Case Type.
    Still the new Business Object in the model isn't visible under Case Management in de WebUI.
    Could anyone tell me if I'm missing something or is there a config guide available how to add more business objects?
    Looking forward to your replies.
    Kind regards,
    Joost Christenhusz

    Eddie,
    Are you familiar with Access Control Engine (ACE)?
    Go through this -> http://help.sap.com/saphelp_crm50/helpdata/en/04/0177f9bb67ac4cafb84bb4d4c1d8fc/content.htm.
    and https://websmp205.sap-ag.de/~sapdownload/011000358700002121742006E.
    Authorizations in CRM are controlled through ACE.
    Hope this helps.
    Amar.

  • Does Business Objects read SMF and RMF records on a mainframe?

    Post Author: byrsch
    CA Forum: Performance Management and Dashboards
    I need to know if Business Objects reads SMG and RMF mainframe records and if I can do analytical work like I do with SAS with it?

    Hi Ravi,
    Files, DLLs, executables, etc corruption is the most probable suspection in this issue scenario.
    Best would be to uninstall BO again, removing registry entries and then re-install again with the default DB as suggested by Arvind and then later it could be point to SQL Server.
    Please share your further views/thoughts.
    Regards,
    Arun

  • Business Objects XI report timeout

    Hi All,
    I'm running a quite simple environment:
    Windows 2003 R2 SP2
    IIS 6
    Oracle Database (remote on Linux but same subnet)
    Business Objects Server XI R1 SP3.
    I'm having an issue with reports getting time out errors after 2 minutes before they have had a chance to complete.
    What I want to do is increase the setting that lets the report run before it errors. I can monitor my database and still see SQL being passed when the 2 minute limit is reached.
    I have changed the 'Default Website Properties' Connection Timeout setting in IIS to 500 seconds and restarted, this has not helped the problem. I have looked through all the settings under Servers in the CMC, I can't see the right one. I'm not asking for the connecting setting before I need to log back in, I need the setting that will let a report run for 10 minutes before it errors.
    If I run a problem report via Schedule, it completes but is very close to 2 minutes. If I run it On Demand, it times out after 2 minutes, but I can still see the query selecting data then gets terminated.
    Thanks in advance, Jason.
    Edited by: Glenn Rieger on Oct 20, 2008 2:52 AM
    Edited by: Glenn Rieger on Oct 20, 2008 2:55 AM

    I had the same problem on a 12 mo cost report that produced 95,000 records and read close to 400,000.  Could only run 4 months. 
    Changed the "Database Records Read When Previewing or Refreshing" parameter to 0 (unlimited) in CrystalReportsProcessingServer
    and changed the "Maximum Cache Size (KB)" parameter in CrystalReportsCacheServer from 250,000 to 500,000 - then it would run.
    Sorry, wrong thread I think - I was getting "max processing time or max records limit reached" error message but I think my problem was max records rather than timeouts.
    Edited by: Richard Carlson on Dec 22, 2008 9:03 AM

  • Pagination +Business Objects Web Services SDK

    hello there
    please help me,
    i use pagination with Business Objects Web Services SDK but i can't limit number of records to aspecific number like
    NameValuePair[] objNameValuePair = new NameValuePair[2];
            objNameValuePair[0] =  NameValuePair.Factory.newInstance();
            objNameValuePair[0].setName("page.records.horizontal.limit");
            objNameValuePair[0].setValue("15");
            objNameValuePair[1] = NameValuePair.Factory.newInstance();
            objNameValuePair[1].setName("page.records.vertical.limit");
            objNameValuePair[1].setValue("600");
            view.setMediaArray(objNameValuePair);
    waiting for your help.
    thank you.

    i waiting your help?
    is the Question more difficult to answer it??

  • How to delete the index for the business object BUS0033

    Hi to all experts,
    I'm applying note 1349496 the error here is no records with F4 help for the funds center .
    solution from the note
    Implement the attached program corrections. Then, in the transaction, delete the index for the business object BUS0033, reactivate it, and start the indexing in the indexing mode "Full". The system then displays the data correctly in the F4 search help.
    how to do the second part i have already applied the note .

    any help

  • RFC for getting a list of business objects.

    Hi!
    I'm currently using the RFC "RPY_BOR_TREE_INIT" (I am setting the "ALLOBJTYPS" column in the "FILTER_OBJECT_TYPES" input structure to "X") to retrieve a list of all business objects along with the hierachy.
    I get back a table having nearly 2000 rows. I now want to display these in a hierarchical fashion similar to how the BAPI explorer does it. However, I see that for a number of rows in the table returned via the RFC above, the BAPI explorer does not show those categories/objects.
    I wanted to know how does the BAPI explorer decide whether a category/object needs to be displayed or not. In my application, I want to display the <i>exact</i> same hierarchy as the BAPI explorer, and currently my app is displaying a lot of extra stuff.
    Any help will be greatly appreciated. I have no idea who else to ask. My SAP consultants dont have any idea, and so we raised a help request with SAP, but they've said that since RPY_BOR_TREE_INIT is meant only for internal use, they wont help us.
    Is there any other RFC (meant for public use) which I can use to display the exact same tree as the BAPI explorer?
    Thanks,
    Mustansir

    ...at least not to the extent that you are looking for.
    Please check the E-learning:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d78ab1f9-0901-0010-8495-8ca0facaea2e?prtmode=navigate
    at: https://www.sdn.sap.com/irj/sdn/businessone-elearning
    ...or go the sample code for the DataBrowser (sub-)object in the "SDK Help Center"...
    ...or go to the DI API sample (no. 2 I think I remember).
    ...to find out how you can navigate between the records of the result of your SQL query; from there you could e.g. export the objects to XML...
    HTH

  • Business Objects is not returning all rows from Query

    We set the rowcount to 1000000 and the business objects query only returns 16,960 rows.  We then uncheck the limit for the rowcount and the first run of the query returns 65,535.  The subsequent run of the query returns all the rows which is greater than 65,535.  We are on release 6.1A of business objects and selecting from Microsoft SQLServer 2005 in 2000 compatablility mode. We noticed that the rowcount being sent to SQLServer is replacing the set number with the 65,535 the first time the query is sent and subsiquent queries have the correct rowcount set.  What would be causing the rowcount to be reset and how can it be fixed?

    We set the rowcount to 1000000 and the business objects query only returns 16,960 rows.  We then uncheck the limit for the rowcount and the first run of the query returns 65,535.  The subsequent run of the query returns all the rows which is greater than 65,535.  We are on release 6.1A of business objects and selecting from Microsoft SQLServer 2005 in 2000 compatablility mode. We noticed that the rowcount being sent to SQLServer is replacing the set number with the 65,535 the first time the query is sent and subsiquent queries have the correct rowcount set.  What would be causing the rowcount to be reset and how can it be fixed?

  • Service Interface for the Business Objects

    Hello everyone. I'm developing a Web Service using the service interface that provide JDeveloper for their Business Objects. I have a relationship between two EO as described below:
    EntityA 1 ...... * EntityB and it is a composition relation.
    Each ID in the entities are sequencial. There is no problem for create EntityA and EntityB at the same time. My probelm is that if I want to create only EntityB. I can't use the default method provided by the AppModule, neither make a custom method like:
    public boolean createEntityB(EntityBRowImpl mayEntityB){
    //Sample code.
    }because always a new row is created, and as EntiyB is a child of EntiyA, require the father's id and of curse an error ocurr. Also, can't let someone write the ID in the foreing key of the EntiyB.
    How can I solve this please?
    Thanks in advance. Any suggestions are very wellcome.
    PS: I'm using JDeveloper 11.1.1.5

    The error you're hitting is presumably JBO-25030.
    Look to the "merge" command. In the parent you specify just the key of the preexisting parent record, and then in the child you specify your new child record.
    CM.

  • Scope of  Business Objects in MDM

    Hi MDM Experts
    What is the scope of Business Objects in MDM,
    How MDM can leverage its features and functionalities by using Business Objects.
    Regards
    Gaurav

    Hi
    I know that "MillerCoors" was using SAP MDM & BO DQ
    The comparison between SAP MDM & BO DQ capabilities are listed below. Putting it straight.
    1) Both have data quality capabilities. Validations for SAP MDM & Transforms for BO DQ. But the capabilities of BO DQ are much stronger than SAP MDM
    2) Both have de-duplication functionalities. While SAP MDM does not provide fuzzy matching capabilities, you more effectively find duplicates using BO DQ. But, merging of records, selecting individual fields for merged record is not possible in BO DQ. SAP  MDM has an upper hand here.
    3) Data enrichment is not possible in SAP MDM. BO DQ has built in dictionaries for Address check, zip codes etc.
    Both tools have capabilities to connect to third party service like D&B. SAP MDM via the Enrichment Controller & DQ via web services.
    4) Data Management workflow capabilities of integrating users, data stewards in the data quality process is better in SAP MDM.
    Based on these points, if one is going for a BO DQ + SAP MDM approach, to get the best results we can design all the data quality validations, transformations, de-duplication, enrichment in BO DQ & the master data management activities like data governance, business process etc in SAP MDM.
    Read the below weblog for more information
    /people/ketan.phanse/blog/2008/11/27/taking-the-best-from-bo-dq-sap-mdm-worlds

  • Loading documents and attaching them to business objects

    Hi,
    I am trying to load documents (Word and PDF files) into a content management server linked to a SAP CRM system. The documents need to be attached to business objects such as interaction records (BUS2000126) and service tickets (BUS2000116).
    I have experimented with FMs <b>BDS_BUSINESSDOCUMENT_CREATEF</b> and <b>ARCHIV_CONNECTION_INSERT</b> but haven't yet found the right combination of values. The best I have done is to create a link which is visible in the GUI as an icon, but when I double click on it, I get an error message saying that the document does not exist (error 404).
    The import parameters I am using in BDS_BUSINESSDOCUMENT_CREATEF are:
    LOGICAL_SYSTEM = [blank]
    CLASSNAME = ZCSIP_LTR (a value from table TOADV)
    CLASSTYPE = BO
    CLIENT = [default]
    OBJECT_KEY = [blank]
    FILES
      DOC_COUNT = 00000001
      COMP_COUNT = 00000001
      COMP_ID = [blank]
      DIRECTORY = U:\DOCUMENTS\TEST DATA\
      FILENAME = FA.PDF
      MIMETYPE = application/pdf
    SIGNATURE
      DOC_COUNT = 00000001
      PROP_NAME = BDS_CONTREP
      PROP_VALUE = ZT (my content repository name)
    The FM returns a GUID as the OBJECT_KEY ...
    Then I am using ARCHIV_CONNECTION_INSERT as follows:
    ARCHIV_ID = ZT
    ARC_DOC_ID = [GUID returned by BDS_BUSINESSDOCUMENT_CREATEF]
    AR_OBJECT = ZCSIP_LTR (a value from table TOADV - as above)
    MANDANT = [default client as above]
    OBJECT_ID = [GUID of the object I want to attach the document to]
    SAP_OBJECT = [Business object identifier] e.g. BUS2000126
    DOC_TYPE = PDF
    Can what I need to do be achieved through just using BDS_BUSINESSDOCUMENT_CREATEF? What import parameters should I use? What values should they contain?
    Many thanks in advance,
    Peter

    Hi,
        BDS classname BUS2032 and classtype BO
    but function module 'BDS_BUSINESSDOCUMENT_CREATEF' and cl_bds_document_set class method
    here is the code..
    DATA: o_document_set TYPE REF TO cl_bds_document_set,
    wa_signature LIKE bapisignat,
    i_signature LIKE bapisignat OCCURS 1,
    wa_files LIKE bapifiles,
    i_files LIKE bapifiles OCCURS 1,
    i_object_key LIKE bapibds01-objkey.
    CREATE OBJECT o_document_set.
    MOVE: '1' TO wa_signature-doc_count,
    '1' TO wa_files-doc_count,
    'c:\temp' TO wa_files-directory,
    '1.jpg' TO wa_files-filename.
    APPEND wa_signature TO i_signature.
    APPEND wa_files TO i_files.
    i_object_key = '0000261877'.
    BREAK-POINT.
    CALL METHOD o_document_set->create_with_files
    EXPORTING
    classname = 'BUS2032'
    classtype = 'BO'
    CHANGING
    object_key = i_object_key
    files = i_files
    signature = i_signature
    DATA : files LIkE BAPIFILES OCCURS 1 WITH header line.
    files-doc_count = '1'.
    files-directory = 'c:\temp\'.
    files-filename = '1.jpg'.
    APPEND files.
    CALL FUNCTION 'BDS_BUSINESSDOCUMENT_CREATEF'
    EXPORTING
    LOGICAL_SYSTEM =
    classname = 'BUS2032'
    classtype = 'BO'
    CLIENT = SY-MANDT
    OBJECT_KEY = '0000261877'
    IMPORTING
    OBJECT_KEY =
    tables
    files = files
    SIGNATURE =
    EXCEPTIONS
    NOTHING_FOUND = 1
    PARAMETER_ERROR = 2
    NOT_ALLOWED = 3
    ERROR_KPRO = 4
    INTERNAL_ERROR = 5
    NOT_AUTHORIZED = 6
    OTHERS = 7
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF
    And check the OSS Note 317250.
    <b>Reward points</b>
    Regards

  • Display of messages from R3 Business Objects in Web Dynpro

    Hi,
    Please let me know how to display the messages that are given by the R3 Business Objects(BOs) in the WebDynpro view.
    Example : Suppose I save a record using the GCP APIs and need to display the message "Save successful/save aborted due to...." given by BO in the view.
    Awaiting your kind response.
    Regards,
    Mahesh

    Hi Anil,
    The method you suggested displays the string that I enter in my code (man.reportsuccess"...").
    But what I want is to just display the text that I get from the backend and not the string I write in code.
    The question is...how to access this backend BO messages??
    Regards,
    Mahesh

  • BAPI for Business Object BUS2013 - PurchSchedAgrmt

    I am trying to develope a LSMW that will create Purchasing Schedule Agreements from legacy system data.  I've searched the Business Object Attributes in LSMW and I don't see BUS2013 as an option... is this because there is no corrisponding IDoc Interface for this BO?  Is it possible to create a data transfer BABI that will work with this BO if one doesn't exist?
    It seems like BAPI_AGREEMENT_MAINTAIN will create a schedule agreement, is this not a data transfer BABI?

    I am using version 4.7, with Web AS 6.2...
    I did look into doing a recording but this is a huge pain, because i need to create purchasing schedule agreements with multiple line items.  The only option then is to create two recording... one recording to create the agreement with the first line item and then do a second recording which adds each additional line item.
    I'll give you some points for your help... i'm going to leave the thread open though in hopes that someone else may have an "out of the box" solution that they have used.

Maybe you are looking for