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

Similar Messages

  • SQL08 Need example of creating AND using a Fact (degenerate) dimension

    Can someone post a link to some examples of setting up and using a Fact (degenerate) dimension.  Ive got the SSAS 2008R2 Adventureworks DW project setup and I see a few Fact dimensions in there, but id like some descriptions to go along with this or
    something similar.
    My scenario:
    Orders - attributes include :  Order#, OrderStartDate, SalesPerson, BusinessType, MarketType
    OrderTransactions - attributes include:  OrderKey , TransactionAmount, TransactionType, TransactionDate, AccountKey
    Description:
    Its more or less the typical Order > Order Detail type scenario, with the addition of Orders have some additional attributes.
    So I want to be able to measure on for example:
    Order counts - broken down by BusinessType and MarketType , and then within a date range
    Revenue - which will be totals of transaction amounts, again grouped by BusinessType and MarketType, but also be able to drill down to see the related Order#

    Hi Shiftbit,
    According to your description, you need some examples about create and use degenerate dimensions, right?
    Degenerate dimensions, also called fact dimensions, are standard dimensions that are constructed from attribute columns in fact tables instead of from attribute columns in dimension tables. Here is document that describes how to create and use degenerate
    dimensions step by step, please refer to the links below.
    https://msdn.microsoft.com/en-us/library/ms167409(v=sql.100).aspx
    http://www.jamesserra.com/archive/2011/11/degenerate-dimensions/
    Regards,
    Charlie Liao
    TechNet Community Support

  • Create webservice using different Business Objects

    Hi Experts
    Is it possible to create a webservice using different business Objects i.e "BOL Intergration for cases" and "Business Partner"?
    This is a scenario:
    I created webservice and on Business Object field I chose "BOL Intergration for cases" reason being that I want to see all attributes related to  root object  "case" and at the same time I also want to view attributes related to business object Busines Partner  root  object "Account" Is it possible to do that?
    Thanks for your help
    Regards
    Maria

    Hi,
    >>>I created webservice and on Business Object field I chose "BOL Intergration for cases" reason being that I want to see all attributes related to root object "case" and at the same time I also want to view attributes related to business object Busines Partner root object "Account" Is it possible to do that?
    sure it is - you can even create two WS for each of those and the third on that will be using both previous
    Regards,
    Michal Krawczyk

  • How to create and use custom exceptions with ADF JClient

    Hi
    The forms developed using ADF JClient by default use pessimistic locking and throw an AlreadyLockedException if more than one user tries to modify the same record. I need to customize this exception so as to display the name of the Oracle user who has locked the record. Is this feasible? If yes, how can I achieve this.
    PS: I've already tried creating my own messageBundle to customize the error messages. Even though I can change the message there, I'm unable to find any information in AlreadyLockedException or JboException that directly gives me the user or the oracle session id that has locked the record.

    T A,
    this information is not exposed through the JDBC driver and thus nit available to BC4J. So the answer is that you can't get this information.
    Frank

  • DEBMAS IDOC for CREATE and UPDATE

    How do i use DEBMAS IDOC dynamically for create and update customer information.
    I have a file as source which would have combination of information for new and change customer information. and there is a field in the file with t code xd01(create) and xd02(update).
    Please advise.
    -Vasu

    Hi,
    The field MSGFN is the one which decide the operation.
    Please pass the values accordingly to indicate the Create/Update.
    In inbound IDOC case ,process code will check MSGFN and do the action.
    Regards,
    Akshay.

  • 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

  • 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

  • Need Ideas for Minimalist Website and Image Gallery

    I am looking for ideas for creating a minimalist online image gallery/portfolio? I want to either use html for the site and then flash for the portfolio images or some other method. I want to click on the thumbnails and then a large image will open.
    Should I use Flash, Dreamweaver, Would it be easier to load the images dynamically to a folder. Does anyone have an example they could show me. Thanks.

    I second Mahendra's suggestion for JAlbum Excellent product!  Just so you know, you don't need to use their image hosting.  Simply download the software and install it on your PC.   The beauty of JAlbum is that it generates thumbnails and HTML pages for you from your folder of images.  Lots of different Skins available. CSS can be customized.  And you can't beat the price. 
    Minimalism is nice but on the web, if you don't have some real text in the HTML markup you're essentially invisible to search engines, language translators and web assisting technologies like screen readers.  I realize this is a portfolio, but you want to maintain some degree of visibility so people can find you.  For this reason, Flash sites don't do well.  HTML is preferred.
    Good luck with your project,
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • OSS note 1480794 for  the "Steps to Create endpoints using a "Business Conf

    Hi All, 
    I am nearly complete with the Duet Setup Wizzard but I do still have a few red lights on my check tool.
    My main problem is:
    When I follow the instructions in OSS note 1480794 for  the "Steps to Create endpoints using a "Business Configuration Scenario" XML:"
    When I press activate I get the below errors:
    Unknown webservice definition with name CustomerERPBasicDataByIDQueryResponse_In_V2 / http://sap.com/xi/APPL/SE/Global
    Unknown webservice definition with name CustomerERPRelationshipContactPersonByIDAndContactPersonInternalIDQueryResponse_In / http://sap.com/xi/APPL/SE/Global
    Unknown webservice definition with name CustomerERPBasicDataUpdateRequestConfirmation_In / http://sap.com/xi/APPL/Global2
    Unknown webservice definition with name CustomerERPRelationshipContactPersonCancelRequestConfirmation_In / http://sap.com/xi/APPL/Global2
    Unknown webservice definition with name CustomerERPRelationshipContactPersonCreateRequestConfirmation_In / http://sap.com/xi/APPL/Global2
    Unknown webservice definition with name CustomerERPByIDQueryResponse_In / http://sap.com/xi/APPL/SE/Global
    Unknown webservice definition with name CustomerERPRelationshipContactPersonUpdateRequestConfirmation_In_V1 / http://sap.com/xi/APPL/Global2
    Unknown webservice definition with name MaterialBasicDataByIDQueryResponse_In / http://sap.com/xi/EA-APPL/SE/Global
    Unknown webservice definition with name ProductionBillOfMaterialVariantItemByVariantIdentifyingElementsQueryResponse_In / http://sap.com/xi/EA-APPL/SE/Global
    Unknown webservice definition with name ProductionBillOfMaterialVariantBasicDataByMaterialAndPlantQueryResponse_In / http://sap.com/xi/EA-APPL/SE/Global
    I have restarted the Wizzard a few times to check my setup and I cant find any steps that I have missed that would cause these error's.
    Hope you can advise.
    Many Thanks
    Mike

    Hi Sameh,
    do you want to go live with the full scope of Starter Service , or do you just needs part of it?
    With the steps outlined in the blog everything is 100% supported (this is not a hack, but just another way to configure Starter Services).
    However, not all the functionality of the Starter Services will work (e.g. like the Updating / Creation of a new contact). But if you do not need that you are perfectly fine.
    I remember that with EhP4 you need to be on SP06 of ECC-SE. Maybe this is also the reason in your case why the service is not available.
    Regards,
    Holger.

  • Is CDN built in Azure Websites or CDN needs to be created and linked to website for content sharing

    Is CDN built in Azure Websites or CDN needs to be created and linked to website for content sharing...

    Hi
    CDN is a separate service in Azure and you can serve your content there.
    Then your azure website can use those CDNs that you provide in azure (just like any other CDN out there like Jquery Ajax etc ..)
    Regards
    Aram

  • I received an email from an acquaintance with her handwritten personal  signature at the bottom. Is thereafter way for me to create and use such signatures at the end of my emails from apple products?

    I received an email from an acquaintance with her handwritten personal  signature at the bottom. Is thereafter way for me to create and use such signatures at the end of my emails from apple products?

    Settings > Mail > Signature

  • I created an account but haven't yet purchase any products yet! I'm a publisher launching  a magazine so i need something for design and making a layout for magazine! Please help is there a number i can talk to someone ?

    created an account but haven't yet purchase any products yet! I'm a publisher launching  a magazine so i need something for design and making a layout for magazine! Please help is there a number i can talk to someone ?

    Adobe Connect Support phone numbers
    or
    Cloud Plans https://www.adobe.com/products/creativecloud/buying-guide.html

  • I would like to take excel classes / tutorials (intermediate to advanced) and practice on this computer. Could someone clarify, what software and operating system is needed? Can I just use numbers? Do I need to download Excel for Macs and use Camp Boot?

    I would like to take excel classes / tutorials (intermediate to advanced) and practice on this computer. Could someone clarify, what software and operating system is needed? Can I just use numbers? Do I need to download Excel for Macs and use Camp Boot?

    Numbers is a joke compared to Excel. If I were you I would find a class/tutorial first, find out what they use (and it won't be Numbers) and see if you need the Mac or Windows version of Excel. Note that Excel is not sold as a seperate product from the Microsoft Office suites.
    Clinton

  • Need Ideas For Storage Units Data Storage Capabilities - Special Attributes? History? 2 Ind-UMs

    Hello experts,
    The company I'm working for is looking into permanently-storing pallet level information (keep a history of the pallet movements) and use RF-scanners to move product in the warehouse. They have made a decision to implement Warehouse Management's Storage Unit Management functionality. They looked into Handling Units as well, but they don't want to use HUs for many reasons.
    They would also like to store 2 units of measure at the Storage Unit level without activating "Catch Weight Management" because that would require them to run parallel systems for a while and also deal with CWM functionality restrictions. Keep in mind that most of the products they handle are catch-weight products, so UM conversions don't work for them.
    Solutions I have in mind:
    For storing 2 independent UMs: Store the quantity of the 2nd unit of measure in a custom table at the Storage Unit level and use custom RF-scanner programs to "receive, issue, scrap, and move" goods in the warehouse. These custom RF-scanner programs would update SAP standard table with 1st (base) UM and also custom table with 2nd UM.
    For permanenlty-storing SU history: Use custom table to to store Storage Unit History. The custom programs created to handle the SUs would update this custom table.
    Last time I checked, the history of a Storage Unit is not recorded in SAP, correct? ONLY in Handling Units, correct?
    OR are there any documents/tables that permanently store the Storage Unit number so they can be queried after the Storage Unit is consumed/issued?
    I know SAP keeps improving its applications with every release, so I'm just looking at my options here.
    Does anyone else have any other ideas on how to approach this other than Using Handling Units & Catch Weight Management?
    Thanks in advance!
    -Mr. Bello
    Message was edited by: Jürgen L

    For storing 2 independent UMs
    Can you please explore the LS26 option there also system is allowing you to change the parameter"Unit of measure" and displays the stock on different UoM, hopefully this will solve your problem and you need not design a custom table to store the value at different UoM level
    For permanenlty-storing SU history:
    System store the storage unit related value in table : LEIN however the moment you do any consumption or movement to non SU the entries goes off from this table hence i think the approach taken by you seems the only one approach  to store the historical data. (Make sure you are taking into consideration of the archiving activity as you proceed further the size of database will get bigger and time to generate any report will take longer then expected

  • Getting error while creating subsite using custom template in sharepoint2013

    Hi,
    I am getting the following error while creating subsite using custom template in sharpoint2013. even publish features are enabled.
    Please suggest me on this.
    Thanks in advance.

    You need to enable the PerformancePoint Service Site Collection Features(PPSMonDatasourceCtype)
    on the target site collection. go to site action > site settings> site collections features > and enable it and now try again.
    Similar case: http://imughal.wordpress.com/2012/09/20/dependency-feature-ppsmondatasourcectype-id-05891451-f0c4-4d4e-81b1-0dabd840bad4-for-feature-bicenterdataconnections-id-3d8210e9-1e89-4f12-98ef-643995339ed4-is-not-activated-at-this-scop/
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

Maybe you are looking for

  • ACS 5.3, EAP-TLS Machine Authentication with Active Directory

    I have ACS 5.3. I am testing EAP-TLS Machine Authentication using Active Directory as an external Identity Store. II was testing and everything was going fine until I did some failure testing. My problem: I deleted my computer account out of Active D

  • Spotlight just stopped working.

    Spotlgiht search just stopped working. I recently upgraded to 10.8.5 Any suggestions? Here is spotlight in system preferences:

  • Movement of Material from Quality.

    Hi ALL, The inspection lot is created with Insp. type "04" ..'Goods receipt inspection from production'...The usage decision as "DEV2" has been  made for the lot...but the qty for offgrade  has been posted to Quality instead of unrestricted. and new

  • Portal Runtime error - An exception occured : when accessing the SRM Portal

    Dear Consultants,                                  We are logging onto the SRM Portal using url link. SAP Netweaver 7.0 But when we are trying to access any tabs in the Navigation frame of the portal it is throwing an error. Error - Portal Runtime er

  • As much as the space in HD is necessary to be able to make a Client Copy??

    Hi everybody!! As much as the space in HD is necessary to be able to make a Client Copy?? After the installation, the still servant with approximately 11 GB of free space in C (Total 30 GB) and around 100 free GB in E (Total 190 GB) , in E installed