Can we craeate  custom Business objects

Hi All,
Can anybody please tell me wheather we can create custom business objects .
<b>I am not talking about the delegation of the standard business object to custom business object.</b>
If yes then
What can be the scenario where we are going to create custom businessobjects.
PLEASE GIVE ME A EXAMPLE.
Thanks

Hi Prabhu,
I would say you can view this case similar to other ABAP program development. i.e. You should search if there is any std BO available which can serve the purpose , if yes, try to use this by extending or as it is, otherwise you will have to create the Custom Object ( in similar way , as you create Custom Reports during development etc..)
e.g. Consider that you need to start the workflow based on Sales order creation, and assume in system you do not find any BO for Sales order, then you will go ahead and create the one for the Sales order, otherwise you will extend the existing one and use it.
Hope this helps to visualize the situation in which you need to create the BO from scratch.
Regds,
Akshay

Similar Messages

  • Can we link two business objects  in workflow?

    Dear All,
    Can we link two business objects  in workflow?My problem is that I have to take a standard BO for triggering my z workflow .But later  in one step  I am using BO which is Z as I am calling a standard Sap transaction in one of the method inside Zobject.
    Please let me know how to go for it .
    Kind Regards,
    Anshu Kumar

    Hi Anshu,
    You can use the standard BO as the BO for your workflow and trigeger the workflow from its event. To pass values from the standard BO to the custom BO used in the activity step, you need to do proper binding between the std and custom BO in the activity step.
    Do proper binding between event -> workflow -> task container.
    For assistance on binding in workflows refer to the followng links:
    http://****************/Tutorials/Workflow/Workflow.htm
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/workflow%252bscenario
    /people/sapna.modi/blog/2007/02/19/workflows-for-dummies--introductionpart-i
    Hope this helps!
    Regards,
    Saumya

  • SAP Cloud Application Studio Create Custom Web Service From Custom Business Object and Consume in External System

    Hi Experts,
    I have requirement to create custom business object and create Web Service for that and use in external system (SAP ECC / SAP CRM / Third Party).
    1) Is it possible to create custom object web service and used in external system ?
    2) When we create the Web service from custom business object what the necessary steps(action : Create , Read , Update) require?
    3) Sample Scenario :
    My Custom Business Object
    businessobject Custom_Integration {
      element EP_VAL1 : LANGUAGEINDEPENDENT_MEDIUM_Text;
      element EP_VAL2 : LANGUAGEINDEPENDENT_MEDIUM_Text;
      element IP_RES : LANGUAGEINDEPENDENT_MEDIUM_Text;
    I have created the Web Service using this custom business object.
    3) How i can use this web service in external system? what are the prerequisite steps in external system to consume this service in it?
    Please anyone have idea about this how to do this and how to achieve this using SDK and custom business object.
    Many Thanks
    Mithun

    Hello Mithun,
    Does this section in the documentation help you:
    SAP Cloud Applications Studio Help -> Developers Desktop -> Web Services
    The entry "Task -> Create a Web Service" describes how to create a Web Service on your own BO
    The entry "Task -> Test a Web Service" helps you how you can use it in a foreign tool / application.
    HTH,
       Horst

  • I can't see release business object in bapi explorer.

    Hi,
    i can't see my business object in bapi explorer which is already released.
    Regards,
    Gurprit

    Hello Gurprit
    I am not sure whether customer BAPIs are displayed in the BAPI explorer at all. However, you could try to push the <i><b>button with the filter icon</b></i> and choose option "<b>All </b>(BAPIs)".
    Regards
      Uwe

  • How to save the instance in standard lead from custom business object

    Hi Experts,
              I am unable to save the instance(Record) in standard Lead business object from custom business object.
    Steps:
    created one custom business object with mandatory fields for creating instance in standard lead.
    in quick create screen i bind  data elements to standard lead business object elements.
    issue:
    when i click on preview i am getting exception as Arguments not found
    can you please tell me that How to save the instance in standard lead from custom business object with step by step .

    Hi Vijay,
    Please refer this link under that mentioned that how to create lead using ABSL code
    Web 2 Lead in SAP Cloud for Customer, step by step - Part 1 - myCloudDoor myCloudDoor
    Under the "Action-CreateLead.absl" mentioned how to create lead
    the above link for convert web 2 lead functionality and under they create lead using web data from ABSL code.
    Regards,
    Mithun

  • Code for Custom Business Object and Adding/Updating Data

    Hi,
    I would like to update/insert data thru Custom Business Object to sql Server.Pls let me know is it possible in MSA.If yes I would appreciate if you can share the code/Process in this forum.
    Thanks and Regds
    Harish

    Harish
    Depending on what data you update you need to do the following:
    If updating SAP tables or customer tables which are an extension of a SAP object like business partner, material, activity or similar:
    1. Create the extension of the data object via the easy enhancement workbench (EEWB). This will also create mapping functionality from MSA to CRM Server and extend the BDocs.
    2. Go to the BDoc modeler. Find the sBDoc for data exchange (type Write BDoc), that contains your object and check whether the new segment is there.
    3. In the Mobile Application Studio (MAS) you can now create a custom business object related to the standard sBDoc mentioned in 2 which is mapped to the new segment. This way the data exchange happens together with the main object
    4. Drag & drop the fields of the new BO to a new tile, and link that tile to the existing main object in the UI via the appropriate relation.
    If you would create a new business object / BDoc for a set of attributes belonging to a main object and not use an extension of the existing BDoc then the data would get its own flow and when replicating it would not come together with the main data. This can lead to data inconsistencies and in surplus effort administrating this data.
    If you have your own objects not related to a SAP object, you can do it the following way:
    1. Create your own table(s)
    2. Create a Write sBDoc on the table(s)
    3. Create BO's on each BDoc segment / table
    4. (as above)
    Hope this helps,
    Kai

  • Can we delegate a business object to more than one Subtypes?

    Can we delegate a business object to more than one Subtypes?
    So unless we delegate that Sub type , will the new method of that sub type  be not called from our WF?
    Edited by: kittu reddy on Nov 25, 2008 7:50 AM

    No this is not possible. I will like to know what is the business case you will require this.
    Thanks
    Arghadip

  • Can i Create A business object of my own without inheriting

    hi gurus,
                  Can i Create A business object of my own without inheriting from any other business object. i Know how to create sub type.

    yes, u can choose 'create' button in SWO1 and not fill field Supertype.
    or copy your new BO from already exist.

  • Need Ideas for creating and using Custom Business Object

    Hello Guys,
    I am developing an application which uses a Request->Approve->Create approach for creating Purchase documents.
    Now I am a little puzzled about how to make use of the Business Object BUS2014.
    The application I am developing has its own unique 'Request Number'  (say REQID)  which will point to the Request for Creation of a purchase order.
    Whenever a Request is created (from a Z-Tcode) a workflow needs to be initiated and it has to be sent to the approver.
    The Purchase Document will be created once the approver approves.
    Now my confusion here is, if I use BUS2014, the object will be instantiated only during the final step of the workflow. But I need an instance during the beginning of the Requestor ->Approver negotiations as I am playing with events. These events needs an Object_key.
    How should I proceed here?
    Should I create a new logical Business Object like ZPOREQ where I have the above mentioned REQID as the key?
    And should I have an attribute of type BUS2014 inside the custom BO?
    How will I make use of the methods like BUS2014.Create etc which I may need to create the purchase document?
    Any small direction will be a huge help for me to get used to this wilderness.

    Hi,
    You should continue with the ABAP class idea. The business objects are kind of "obsolete" already, and if there is a need to create a new "object", ABAP classes are the way to go. Business objects are still useful, but I normally use them only when an existing standard business object fulfills the requirements (possibly with slight additions) which is almost never. 
    From my point of view you can use the existing class. Depending on the circumstances I normally have just one class that I use for both workflow and the possible other functionality that is required, but you have to understand that I have this goal in my mind already when starting the development process. As your class most probably has many useful features already (such as you have the header and item data as attributes etc. (if I understood correctly?), these are also useful in in workflow (class attributes will be available in WF container etc.). 
    If you are hesitant to use the same class directly in your workflow, you could also create a new class ZCL_REQUEST_FOR_WF (with the workflow interface), and then simply add your existing class ZCL_WF_REQUEST as an attribute to this new class. Then this new workflow class could include the pure workflow stuff, and your existing class the non-workflow stuff. But this most probably will not make much sense - just implement the if_workflow interface in your existing class (this is just one possibility that you might consider.)
    Regards,
    Karri

  • Maximum Numbers of profiles that can be created in Business Objects CMC??

    Hi,
    I want to know if there exists any limitation in the number of profiles  that could be created in Business Objects Enterprise CMC. My question is because I need to  restrict the reports that users can see  in the InfoView and a way to do this is  creating a profile for each customer for example. I want to create 5000 profiles approximately
    Thanks a lot

    Hi,
    i never heared of a limitation there. Even in your size.
    If you need an official Answer i would recommend creating an OSS Message at SAP.
    Regards
    -Seb.

  • How can i download sap Business objects client tools 4.1 ?

    Hiii,
             I want to download sap business objects client tools 4.1 .I did not find it .so can you please help me to download this files
    thanks,
    venu.

    Hi Venu
    Have you check the installation guide? could you refer the SAP Note for SAP BO
    2013261 - SAP BusinessObjects BI Platform 4.1 SP04 Install Guide
    BR
    SS

  • Create Human Task - Can't add a business object parameter

    Greetings,
    Working with the appliance virtual SOABPM 11GR1 PS 5.2.0-M. I have modeled a process and now I'm trying to implement an interactive task as a human task. In the BPM Process Navigator, in the properties dialog associated to the interactive task, the create human task dialog, I'm trying to add a parameter being a business object previously defined and which appears in the Business Catalog. When I click the + sign above the Parameters box, in the Data object navigator that opens, I only see the process data objects defined in the process structure but not the business objects defined in the project business catalog. What I'm doing wrong ?
    Many thanks in advance.
    Nicolas

    Nicolas,
    Once you have defined a business object in that catalog that only defined the type. You then need to create a process data object of that type for use within your project. Then when you are creating your human task you will be able to drag that process data object as a parameter and the type will be set automatically.
    Thanks,
    Adam DesJardin

  • How to handle the call transaction in method of a custom business object

    Hello all,
    There is a custom report " RPTCORAPP" for approving leaves . As per my requirement i have develop a copy of leave workflow and for approval process i have call  "RPTCORAPP" in Custom method of custom object. i have made a transaction for this custom report for approving attendances. I am calling this method though call transaction statement within method.
    Problem: while approving the attendance workitem is not disappearing from the portal. Problem is due to call transaction statement.
                   once workitem come to the user, user click on it. control goes to the report, which display all the leave to approve on
                   the portal.
                   If after approving/ rejecting attendance user close the screen.workflow remain in the "process" status.Control wont come  back after call transaction statement in the method.
                 At the same time if user clicks on back button inspite of closing the screen. it is working fine. workitem disappears from the portal.
    How to handle the scenarion. if after approving/rejecting, i want the control to come back to the NEXT STATEMENT after call transactionstatement in my method.
    Please help it out........:)

    Hi swami,
    thanks for reply. but i am not using BDC in my method. iam just calling a custom transaction thriugh statement
    Call transaction 'ZHR_APPROVE_CLINOUT'. This transaction directly run the report RPTCORAPP and display all the request.

  • How can you clone a business object?

    i want to create a Item in another company , when an item is created by a user  on a given company. The item will be a clone of the original.
    I want to set something like
    DestinationItemObject =  SourceItemObject
    DestinationItemObject.Update  ( or add for that matter )
    is this possible?
    This will save me having to go through all the properties.

    Hi Indika,
    There is no direct Copy or Duplicate option, rather what u can do is when the user adds the Item in one DB in the Item Click u can save the ithe in XML format and using DI u can access this XML file and create the same in the another company.
    Hope it helps,
    Vasu Natari.

  • How do I deal with problems during business object construction?

    Hi Everyone.
    I'm wondering about best practices for program control flow when business objects can't be constructed properly.
    In my servlet I want to create a new Transaction business object based on the parameters of the HttpServletRequest.
    transaction = new Transaction( request );The Transaction, in turn, has a Customer business object representing the Customer doing the transaction. The Customer is also constructed based on request parameters. So I have in the Transaction constructor,
    public Transaction( HttpServletRequest request ) {
        customer = new Customer( request );
    }In the Customer constructor I want to do some validation. For example, I want to check that the requested Customer exists in the database.
    If the validation fails, should I throw an exception, which could then eventually be caught by the Servlet which would send back an "Invalid Customer" message to the end user?
    But it seems to me like this violates the "never use exceptions for flow control" rule (as described for example at http://onjava.com/pub/a/onjava/2003/11/19/exceptions.html?page=2).
    It is a normal function of my application to deny a transaction to a non-valid customer... so it seems like I shouldn't need to bring in the exception handling overhead for this normal business process.
    OK, so I guess put "is_valid" flags in the business objects and set them on constructor errors then check them??
    public Transaction( HttpServletRequest request ) {
        customer = new Customer( request );  // customer.is_valid flagged false
        if ( !customer.get_is_valid( ) ) {
            this.is_valid = false; // transaction.is_valid is also false now because its Customer is not valid
        } else { // customer is valid
            // finish the rest of the Transaction construction business logic
            // of course this will turn into a mess of deeply nested "else valid" clauses
            // if there are many validation checks...
    }...and then in the servlet...
    transaction = new Transaction( request );
    if ( !transaction.get_is_valid( ) ) {
        // Send back error message to user.
    } else {
        // Finally do some business logic.  Maybe after another mess of nested "else valid" clauses.
    }This gets so hard to read it seems like the throwing Exceptions as part of normal control flow option is preferble.
    Is there third option I am missing?
    What are your opinions?
    Thanks,
    Bishop

    Build your Transaction and Customer objects based on the data in the request. Then validate the customer, since an invalid customer is "normal" for you.
    I'd consider using some sort of factory-like method for creating these objects from the request, since you're tying (sort of) your business stuff to the fact you're currently using a webby (servlet-based) front end...but that's more an aside.
    So, in pseudo-ish code:
    Transaction t = createTransaction(request);
    if (t.validCustomer()) do work;
    else return to wherever;This is only a first-pass idea, and other requirements might knock it for six, but it's a startpoint.

Maybe you are looking for