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

Similar Messages

  • Consuming Busniess Object Operations in Application Service

    Hi,
    I am currently working on CE7.1.
    Is there any way in CE7.1 to consume the operations of a business object in a application service present in the same application? Please give the procedure in detail.
    I am able to access the business object structure in the application service by maintaining a dependency but not the operations defined for the business object.
    Thanks,
    Rahul

    Hi Rahul,
    I am facing the same problem.
    I am not able to access the Business Object Operations namely CRUD operations in the application service.
    I have defined the BO as dependencies in the application service.
    But when i open the Operations tab, it is empty.
    can you please help me out as to how you solved your problem?
    Thanks & regards.
    Gaurav Raghav

  • How to build forms which retrieve multiple records

    Hi everyone,
    I am newbie to APEX.I have a question in FORM building in APEX.In oracle FORMS(6i) has the capability to search with any fileld on it . there is
    an option to search
    data with the id or department or name field.If it retrieves more than one record there
    is navigation controls to move from one record to another.
    Can we build same kind of FORMS in APEX .I didnt find any wizard to build such kind of
    FORM which has both inserting and querying capability.
    I found one option for that in apex (FROM with report).In the report section i can query
    for the records and link to FORM which populates all the data in the FORM. Is that the
    only option do we have in APEX to build the forms which gives multiple records as
    output.
    anyone plz help me in solving this
    thank u

    can anyone please help me in solving this issue,
    Is it possible to build such kind of forms with retrieves multiple records in APEX.
    Thanks

  • Validate message multiple records in Business Rule

    I have Order message as below:
    <Orders>
    <Order>
    <Header>
    <BillToID>001</BillToID>
    <ShipToID>002</ShipToID>
    <Id>Order001</Id>
    </Header>
    <OrderLine>
    <Id>Line001</Id>
    <Date>2015-01-01T00:00:00</Date>
    <Qty>10</Qty>
    <Status></Status>
    </OrderLine>
    <OrderLine>
    <Id>Line002</Id>
    <Date>2015-01-01T00:00:00</Date>
    <Qty>15</Qty>
    <Status></Status>
    </OrderLine>
    </Order>
    <Order>
    <Header>
    <BillToID>002</BillToID>
    <ShipToID>003</ShipToID>
    <Id>Order002</Id>
    </Header>
    <OrderLine>
    <Id>Line003</Id>
    <Date>2015-01-01T00:00:00</Date>
    <Qty>5</Qty>
    <Status></Status>
    </OrderLine>
    <OrderLine>
    <Id>Line004</Id>
    <Date>2015-01-01T00:00:00</Date>
    <Qty>65</Qty>
    <Status></Status>
    </OrderLine>
    </Order
    </Orders>
    I want to use Business rule to check Quantity value and update status for the order line, that if quantity < 10 set the status to Approved, if quantity between 10 to 50 then set status to Pending, if quantity > 50 need to set the status to Reject.
    The business is simple, if the Order message just have one record, but when the Order message that contain multiple record the business rule just get the first quantity and set the status value. 
    Anyone have any idea to implement with that requirement?
    Thanks in advance!

    Have a look into the below articles and let us know if you face any further issue.
    They are addressing a similar issue
    http://www.neudesic.com/blog/apply-bre-rules-looping-data-dynamic-policy-execution/
    How to construct BRE "Condition" on multiple repeating record
    Thanks,
    Prashant
    Please mark this post accordingly if it answers your query or is helpful.

  • Business Objects Enterprise and Data Services and SAPRouter

    Hi,
    I am relatively new to Business Objects so I am not entirely sure how this works. My question is can Business Objects Enterprise and Data Services be configured in SAPRouter for SAP to dial in and access the systems.
    Regards
    Naureen

    Hi,
    I am new to PI Upgradtion Project.
    We are planning to upgrade PI 7.11 to PI 7.3.
    Can you please help me what are the steps we have to fallow to upgdrade PI and what are the changes/Issues will happen when upgradtion in PI.
    Share me your ideasssssssssssssssssss.......
    Thanks,
    Mallam

  • How to Retrieve a List of Business Objects using DI Server?

    In DI Server (and DI-API) I could not find how I can get a list of business objects, for instance ServiceCall objects.
    and more - say i need the list with a filter on customer code and call status?

    ...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

  • Callprocedure which contain dynamic sql that retrieve multiple records from VB

    hi dear i have problem with using dynamic sql to retrieve multipule records
    and access them from visual basic
    first i use Oracle8 Enterprise Edition Release 8.0.4.0.0
    and odbc microsoft odbc for oracle version 2.573.4403.00
    these are the whole processes to do that
    please check the steps and if u find any error say to me....
    1-table description
    Name Null? Type
    PORT_KEY NOT NULL VARCHAR2(4)
    CITY_KEY NOT NULL VARCHAR2(4)
    and port_key is primary key
    2- package declaration
    create or replace package ww1
    as
    procedure bound_type
    (v_origin in varchar2,v_flag in varchar2
    ,city_key out dbms_sql.varchar2_table
    end ;
    3- package body
    create or replace package body ww1
    as
    procedure bound_type
    (v_origin in varchar2,v_flag in varchar2
    ,city_key out dbms_sql.varchar2_table
    is
    str varchar2(1000);
    cur_hdl integer :=dbms_sql.open_cursor;
    rows_processed integer;
    indx integer :=1;
    begin
    str:='select ltrim(rtrim(city_key)) from special_airport ';
    if ltrim(rtrim(upper(v_flag))) = upper('c')
    then
    str:=str &#0124; &#0124; ' where city_key=ltrim(rtrim(upper('&#0124; &#0124;''''&#0124; &#0124;v_origin&#0124; &#0124;''''&#0124; &#0124;')))';
    elsif ltrim(rtrim(upper(v_flag))) = upper('a') then
    str:= str &#0124; &#0124;' where port_key=ltrim(rtrim(upper('&#0124; &#0124;''''&#0124; &#0124;v_origin&#0124; &#0124;''''&#0124; &#0124;')))';
    end if;
    dbms_sql.parse(cur_hdl,str, dbms_sql.native );
    dbms_sql.define_array(cur_hdl,1,city_key,10,indx);
    rows_processed:=dbms_sql.execute(cur_hdl);
    loop
    rows_processed:=dbms_sql.fetch_rows(cur_hdl);
    dbms_sql.column_value(cur_hdl,1,city_key);
    exit when rows_processed != 10;
    end loop;
    dbms_sql.close_cursor(cur_hdl);
    end bound_type;
    end ww1;
    4- code for calling stored procedure from visual basic
    dim c As New ADODB.Connection
    Dim cmd As New ADODB.Command
    Dim rs As New ADODB.Recordset
    c.Open "dsn=dsnName;uid=uidValue;pwd=pwdValue"
    With cmd
    Set .ActiveConnection = c
    .CommandType = adCmdText
    '---------(call bound_type stored procedure)--------------
    .Parameters.Append .CreateParameter(, adBSTR, adParamInput, , "bwi")
    .Parameters.Append .CreateParameter(, adBSTR, adParamInput, , "a")
    .CommandText = "{call fares_procedures.bound_type (?,?,{resultset 10, city_key }) }"
    End With
    Set rs.Source = cmd
    rs.Open
    While Not rs.EOF
    z = rs.Fields("city_key")
    rs.MoveNext
    Wend
    Set cmd = Nothing
    rs.Close
    Set rs = Nothing
    c.Close
    Set c = Nothing
    ***********result get error*************
    please check the code and steps and if u find any error contact me
    thanks any way
    null

    hi every one i got a simple solusion and its faster than dbms_sql package by 1.5 to 3 times...but it works only for oracle 8i or higher......
    after concatenat the string of dynamic sql
    but it in a ref cursor and loop on it
    TYPE VAR_TABLE IS TABLE OF VARCHAR2(40)
    INDEX BY BINARY_INTEGER;
    procedure bound_type
    (v_origin in varchar2,v_flag in varchar2
    ,city_key out var_table )
    is
    str varchar2(1000);
    type curtype is ref cursor;
    sa_cur curtype;
    i integer default 1;
    begin
    str:='select ltrim(rtrim(city_key)) from special_airport ';
    if ltrim(rtrim(upper(v_flag))) = upper('c')
    then
    str:=str &#0124; &#0124; ' where city_key=ltrim(rtrim(upper('&#0124; &#0124;''''&#0124; &#0124;v_origin&#0124; &#0124;''''&#0124; &#0124;')))';
    elsif ltrim(rtrim(upper(v_flag))) = upper('a') then
    str:= str &#0124; &#0124;' where port_key=ltrim(rtrim(upper('&#0124; &#0124;''''&#0124; &#0124;v_origin&#0124; &#0124;''''&#0124; &#0124;')))';
    end if;
    open sa_cur for str;
    loop
    fetch sa_cur into city_key(i);
    exit when sa_cur%notfound;
    i:=i+1;
    end loop;
    close sa_cur;
    end bound_type;
    null

  • Business Objects Reports and Web Services for Dashboards

    Hello!
    I am writing a Business Object report against my Universe.  I save the report to the CMS and then right click on the report block and click "Publish as a Web Service...".  This opens up that diaglog and I am able to publish the web service.  I then can import the web service into Dashboards 4.1 (Xcelsius) and am working working to figure it out further at this point.
    My question is this:  When I go back to the report in Business Objects, and modify the report, I would like to republish the web service.  I click on Design and rework the report.  Run the report.  Save the report.  I right click on the report block and I don't see the "Publish as a Web Service..." choice.
    What am I doing wrong?
    Business Objects 4.1...
    Thank you.

    Hi Susan,
    Go to the web service publisher, expand the web service, select the block and select edit.
    Select the content and prompt and select Update.
    Regards,
    Abhilasha

  • Business Object linked to application document

    hi All,
    Is there any standard tcode or way to find out a given business object is linked to what all application documents?
    Like for example i would like to know BO FIPP is linked or can be used for what all documents or tcodes??
    How can find out??
    Thanks in advance.
    Regards,
    Raj

    Hello Raj,
    this is indeed a sad thing, not having a control table that links transaction codes to objects or classes. The GOS-Integration (Generic Object Services) are implemented within each transaction and usually the business object types used there are hard coded.
    You can have a look at the where-used-list of ABAP class CL_GOS_MANAGER. You'll find an example here, include LMEORF1M at form routine  bus2053_object_publish.  There  you'll see the common way of how objects are used/published.
    Furthermore, the event creation/handling is also usually hard coded.
    Not all transactions that make use of business objects, also use the GOS. So you'll always get a part of this.
    You can also have a look at the where-used-list of Business Object Interface IFGOS.
    Best wishes
       Florin

  • Business Objects Enterprise SDK application.

    Hi All,
    I am planning to develop a custom web application using BOE 3.1 java SDK's.
    I would like to create only application level users, these users would be mapped with a single BO user account to create enterprise session.
    That means, My application "A" will have say 10 users (i.e. 10 userid and passwords). All these users will their different sets of userid's and passwords (custom application users), they can login into the application using application level credentials,  however to login into the enterprise the application will internally use only one BO user credential (i.e. only one named user acount info.)
    eg:
    user1-login -> application>logins using BO userX userid and password>BO Enterprise session created
    user2-login -> application>logins using BO userX userid and password>BO Enterprise session created
    user3-login -> application>logins using BO userX userid and password>BO Enterprise session created
    and so on.
    The idea is to purchase only one named user licence and create many application level users to login into BOE; but using the same BO user account.
    Is this approach legal in-terms of licensing?
    Would appreciate any help on this.
    Regards,
    Jon

    Hello Adam,
    Thank you very much.
    Please see the following post:
    Business Objects Enterprise 3.1 Licensing
    Tim says:
    names means you can have five users created, any amount logged on concurently (i.e the administrator could have 10 sessions, usera 20 etc no limit) But you can only create 5 different users names
    that means 1 Named user eg: 'A'  can login into the enterprise using his credentials and create any amount of enterprise sessions concurrently for self right??
    Each named user is for a specific user and not to be shared. If you were using concurrent user licensing, than this would be ok to use one enterprise user account.
    5 Concurrent linceses means one user account created in enterprise but, account info can be shared with 5 users, so they can login using same credentials and create five different enterprise sessions?? right?
    so, I can purchase one- 5 concurrent user license and share it with 5 users? OR purchase 5 named user licences and share it with 5 users?
    Either ways my understanding is number of users=number or linceses available (named or concurrent). please correct me if I am wrong.
    Now, which one is cost effective named user lincenses or concurrent?
    Awaiting your response.
    Regards,
    Jon

  • Business Objects and Adobe / Application to add comments per report line

    Good day,
    Is it possible to use a Business Objects report output and post it into Adobe forms? We would like to use a report output and allow users to comment per report line - online - or is there any other application in Business Objects which will make this possible
    For Example:
    Report Line Comment
    Sales 9999.9999 ______________________________________
    Expenses 99999.99 ______________________________________
    Thank you.

    Hi,
    I would suggest you post your question into the corresponding BusinessObjects client tool forum.
    Ingo

  • Business Object creation error: The service mapping is missing

    Hi developers,
    In my CAF 7.1, I have my business object "maintenanceRequest" with several attributes.
    Persistency is remote. Permission check is disabled.
    Create operation is mapped to the external service (enterprise service) createMaintenanceRequest.
    The input fields are mapped, output fields are not mapped since create operation doesn't have any.
    All the other operations are not mapped.
    I have exposed as web service the operation "create",
    I have generated, built and deployed the app.
    When I try to run it from wsnavigator I get an error in the SOAP response:
    com.sap.caf.rt.exception.CAFCreateException: The service mapping is missing
    Please note that the ES works ok (e.g. from Visual Compose 7.1).
    The ES was imported in NWDS 7.1 from service registry.
    Can anyone please help?
    Thanks, regards
    Vincenzo

    Hi Sampath, thanks for your helpful reply.
    I followed the steps from saphelp, but I get errors.
    I mapped my external service destination (an R/3-based Enterprise Service published in service registry) to:
    - UDDI_DESTINATION (error: objectNotExist) [but the ES is correctly published in service registry]
    - wsdl address in backend R/3 system (error: Deserializing WSDL stream failed)
    how should the logical destination be configured?
    Thanks a lot
    Vincenzo

  • 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

  • Problem in retrieving multiple records SAP xMII from SAP using BAPIS

    Hi friends,
             In SAP xMII i called BAPI_USER_GETLIST by passing import parameters 10 and y.In r/3 BAPI returned 10 rows but In xMII it was returned only one Record.
    i want to display 10 records in sap xmii
    1) I created to connection ECC5 in Dataservices-->SAPSERVERConfiguration
    2)In BLS we placed JCO Interface inside Sequence
    3)In BLS I used ECC5 connectrion(using JCO Interface) and called  BAPI_USER_GELLIST
    4)In Links-->Transaction created two input values for "maxnoofrows","withusername" and output value is "userid".
    Input what i mapped 
    Transaction>"maxnoofrows" =====SAPJCOINTERFACE->Request>BAPI_USER_GETLIST>INPUT-->MAX_ROWS
    Transaction>"withusername" =====SAPJCOINTERFACE->Request>BAPI_USER_GETLIST>INPUT-->WITH_USERNAME
    Output what i mapped 
    SAPJCOINTERFACE->Response>BAPI_USER_GETLIST>TABELS>USERLITS >ITEM>USERNAME=====Transaction-->userid
    5)Saved the Transaction.
    6)In Query Template -->xactuateQuery selected
    7)In Datasource Query mode was selected ,Inputrarams i passed 10 and y as parameters.
    It was returned one user id from R/3 inSAP xMII
    please help me to retrive all  10 rows from r/3
    Regards
    Srikanth

    hi,
    What is the data type of Transaction output (userid)?
    Make this as XML type.
    The format which BAPI returns the result does not match with xMII XML format.
    Create a xMII XML document and configure with column name as userid. and by using repeater and XML row add all tho values to the document. Then assign whole doument to transaction output.
    Hope this will help to resolve the issue.
    Regards,
    Kishore

  • 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

Maybe you are looking for