Include attribute in business object

Hi Experts,
I am using Business object type BUS2121, i want to include  attribute product_type in this.
I have created one subtype  for this object type and create this attribute into this.But still it is not coming in BUS2121.
Please suggest your suggestions.
Regards,
Shivshankar.

You will not be able to see that when you are trying to display BUS2121 from SWO1. If you mention BUS2121 BO in your Workflow then the Workflow will refer to your custom BO.For example if you use BUS2121 as the business Object for your Workflow. All the custom event that you have mentioned in your custom BO will appear.
Thanks
Arghadip

Similar Messages

  • Language attributes for business objects ERC_CDCY

    Hello,
    I need to activate TREX index ERC_CDCY from our e-recruiting system using SES_ADMIN transaction.
    When I activate it, I receive error message UNCAUGHT_EXCEPTION (CX_SY_OPEN_SQL_DB) at the
    relational index level (Relation of candidacy).
    I opened a message with SAPnet and got the following answer:
    Indexes are only created in english compared to others systems that contains indexes in both languages (EN, FR). We could not find any french attributes for business objects ERC_CDCY which is required (at least 7 words) to index it in french language.
    Do you know which transaction or SPRO menu path I could use to maintain de language attributes and the 7 words?
    Thanks for you help
    Hugo

    Hello Huga,
    About maintaining the language in E-Rec  you can have a look at the table
    V_T77RCF_SELANGU, there you can maintain the different language.
    The exception you are getting might be coming from the TREX side. please check the following notes:
    1260684  SQL statement terminates: "Too Complicated SQL
    1249465   TREX 7.1: Installing TREX for Embedded Search
    Best Regards,
    Deepak.

  • How to Set / change the attribute of Business Object

    Hi all,
    Say I have a Z Business Object -> ZBO
    Inside the BO, I have an attribute -> ZA1
    And one method -> ZM1
    Is there any way in which  i can set / update the attribute ZA1 (for any particular instance) outside the Business Object (I mean without writing any code in the program of the Business object)?
    Thanks,
    Deb

    >
    Debidutta Mohanty wrote:
    > But Inside the class -> Can be assigned or changed -> Using Method -> Correct ?
    >
    > That means, inside the Business Object aslo, we can have one method to assign or change attribute. Is there any Macro to change the attribute ?
    Yes.
    BOR attribuites are a piece of code. You can see this by hilighting an attribute and clicking on the "Program" button. That code returns the attribute value, usually something from a DB table, something calculated, or a private attribute.
    To change what the attribute returns, you need to change the underlying data. How you do it depends on what your attribute code does in first place. This is why we can't give you an exact answer. If your attribute retrieves a value from a table entry then you need to change the table entry. If it is a calculated value then you need to change the data used in the calculation to make your attribute return something else. If it returns a private attribute value then you need to update this via a method.

  • Problem reading attributes of Business object

    Hi Guru's
    I would like to read the attributes of a business object given the wi_id of the task in a class. I basically want to use the attributes outside the workflow to generate an HTML for extended notification.
    So in essence i want to know if there is a function module that i can use to retrieve that data.
    Thank you in advance!

    Please you can use SWC_GET_PROPERTY macro in your program after retrieving the Object.
    Or you can just do the coding that is done in the attribute section after you retrieve the Object key of the Object from the container. Please note that you have to use SAP_WAPI_READ_CONTAINER.
    Thanks
    Arghadip

  • Business Object Repository ( B O R )

    Can some one please send me some data or links from where I can get data on Business object repository .

    Hi,
         SAP's Business Object Repository gives you an improved way to integrate business processes with external partners -- an increasingly necessary ability in the burgeoning e-marketplace economy.
    The age of e has had a profound effect on the IT industry. Not only has it changed our way of life, but it has also forced systems such as SAP to embrace a new era of openness. Marketplace demands for flexible automation of inter-business workflow and intelligent data exchange have forced formerly very proprietary ERP systems to begin helping customers integrate with other companies and with e-marketplaces data formats. For the first time, companies must expose their business processes to the outside world.
    In order to achieve this openness, SAP provides a technical infrastructure for the R/3 product, the Business Object Repository (BOR), which provides a simple yet powerful mechanism for external systems to trigger core business processes (such as placing an order) without concern for the underlying data structure. This level of abstraction is beneficial because it decouples R/3 from the external system. Either system is therefore free to change its internal business processes without affecting the other. SAP provides this technical infrastructure using a component-based view of its system. Each component or object provides a view of the data and the business processes that interact with that data. External systems can access this data via BAPI methods, which in turn access the underlying data structures of the system. It is the responsibility of the object and the BAPI to ensure the integrity of the data. This encapsulation of the data not only lends itself to external interfaces, but by using objects from within SAP, you can greatly reduce implementation, testing, and maintenance effort via the promotion of code reuse.
    Business Objects
    A business object is a problem-domain entity that you model in the SAP system, such as SalesOrder, BillingDocument, and Employee. The BOR stores all the objects in the R/3 system. The repository is a group of all the objects in the R/3 system. If the focus of objects is to model atomic business processes then it can be said that the BOR provides an enterprisewide view of business processes. By designing your ABAP code to fit your business processes you increase the ability of that code to flex when those processes are altered or integrated with external systems. This had made the object-oriented approach, which the BOR provides, essential to developing inter-business or e-business functionality.
    Attributes
    A business object is primarily represented by its attributes. You perform actions, such as create, update, or delete on the attributes by calling the methods of the object.
    Attribute NetValue of Object BUS2032 (SalesOrder).
    The majority of attributes are data-dictionary fields (for example, the NetValue attribute is defined by VBAK-NETWR). When you access an attribute of an object, you execute a SQL statement that retrieves the corresponding field in the database.
    Definition of attribute NetValue.
    You can also define attributes that do not exist in the data dictionary. These attributes are called virtual attributes. For example, a business partner has an attribute called BirthDate that is stored in the data dictionary. You can add a virtual attribute to the BusinessPartner object called Age. The age of a business partner is not stored in the database, but you can calculate it using the current date and the birth date of the business partner. If you implement the ABAP code that calculates Age, every time you access the Age attribute, the code executes and returns the business partners age.
    Definition of virtual attribute Age.
    This is an excellent example of one of the tools that a component-based approach provides. The external system does not need to concern itself with how to gather the data that it requires. The calling program needs only to access the attribute for the data to be returned. This is how business objects decouple the calling program (whether it be in R/3 or external to R/3) from the internals of R/3.
    The BOR lets you define multi-line attributes. These attributes define one-to-many relationships between an object and other fields. These objects can be defined in the data dictionary or can also be virtual attributes.
    An attribute that uniquely defines an object in the system is called a key attribute. In the case of a SalesOrder, the key attribute is VBAK-VBELN (the TableName and FieldName). It is not uncommon for an object to have several key fields. An example of this is object is the SalesArea (BUS000603) object type which has SalesOrganization (TVTA-VKORG), DistributionChannel (TVTA-VTWEG) and Division (TVTA-SPARTE) as key fields.
    Methods
    As mentioned earlier, the methods of an object represent the actions you take with objects attributes. An action in this example would include retrieving the status of one or more sales orders based on specific criteria. Methods are analogous to function modules in that they have importing and exporting parameters as well as exceptions, which you view by selecting a method and clicking on the toolbar button. This allows external systems (or internal developments) to pass and accept parameters from these methods just as if they were using function modules -- allowing external systems to call methods.
    In Figure 4, the methods shown with the green LED are BAPIs that are called specifically from external systems. They can, however, be called from within the system itself. The method shown with the stop sign is obsolete, but retained for backward compatibility, and should not be used in new developments.
    Methods of SalesOrder.
    Delegation and Subtyping
    One of the most complex concepts in object-oriented development is that of inheritance. This concept lets you extend core functionality by creating a child of the parent object that inherits all of its attributes and methods. For example, a Manager object is a subtype (child) of the Employee object. The Manager object has all the attributes of an Employee object (such as EmployeeID or Name) but also has some extra attributes (such as CompanyCar or ParkingSpace). SAP has not implemented inheritance in the BOR. However, it has provided subtyping and delegation, which offer an alternative way to extend R/3 functionality.
    Subtyping
    A subtype of an object is another object whose creation is based upon a parent object (see the preceding manager/employee example). The subtype maintains references to all the attributes and methods of its parent object. This means that any methods and attributes defined on the parent can be executed and accessed on the child object. I have often heard less-experienced developers refer to subtyping as copying the parent object. Although the effects can be similar, in order to achieve an understanding of some of the more advanced concepts, such as interface inheritance, it is important to realize that this is not accurate.
    If a subtype object were merely a copy of its parent, then all the code contained within the parent would be physically copied to the child. This is not the case. The subtype simply maintains references to its parents methods and attributes. The real difference is that the subtype lets you redefine these methods and attributes. You can easily add your own business rules to the parent methods by redefining the subtypes method. In the following example, I will show why this distinction is so important.
    Subtyping Case Study
    As an ABAP developer at Acme Tyres Pty. Ltd., you have been given the task of implementing some security measures for the companys online store. The requirement is simple: The password must be at least six characters long.
    Modifying SAP code leads to costly and complicated upgrades due to the modified code being overwritten by the newly delivered SAP code. Therefore, The challenge is finding a way of implementing the business logic without modifying SAP code.
    After some investigation, you realize that the method CHANGEPASSWORD (in BAPI) on the object KNA1 (Customer) is called when customers change their passwords. All you need to do is create a subtype of KNA1 and then redefine the CHANGEPASSWORD method adding the ABAP code to ensure that the password is a minimum of six characters long. It is of course not wise to change SAP code even assuming you have the passwords, which can be provided only be SAP. After the method is redefined, you just need to implement the business rules in ABAP.
    FIGURE 5 Redefinition of ChangePassword method.
    It is imperative that once you redefine the method it still behaves in a similar manner. You are allowed to add extra business logic, but the method must still change the password rather than do something unexpected, like delete a customer. This is particularly important when SAP is being accessed from external systems. The external system will expect a method to provide certain functionality. The developer should take care to ensure that this expectation is met.
    Delegation
    Now that you have implemented a new CHANGEPASSWORD method, you need to tell the SAP system to use the redefined version of CHANGEPASSWORD and not the version that was delivered on the KNA1 object. This is similar to object-oriented inheritance but the two concepts do have fundamental differences.
    Delegation for objects.
    By making an entry in the delegation table, you tell R/3 that before executing a method on KNA1, it should first check if that method has been redefined on the subtype. If it has, then the system executes the redefined method . If it hasn't, then the system executes the original method. Figure 7 illustrates this process.
    Execution flow for methods with delegation.
    This delegation is powerful because it lets you implement your own business logic without modifying any SAP code. As long as the objects are properly delegated, your method will be executed.
    Responsibility
    So far I have shown you two major components of an object, its attributes and methods. The difficulty in SAP is that it has traditionally been a data-driven, procedural-development approach. The BOR is not well understood by developers and managers and thus it is shunned by those that stand to gain the most from it. If managers and developers alike would take a formalized approach to development using business objects, significant savings in the development, testing, and maintenance phases would be achieved. This is due to the high level of re-use that business objects encourage.
    Having said this, when a powerful tool is put into the hands of an inexperienced person, chaos can (and usually does) ensue. If object-oriented design principals are not adhered to, then the resulting code has poor reusability and maintainability. Although an in-depth discussion of design issues is beyond the scope of this article, I will introduce in the following section one of the more fundamental design aspects of BOR programming: Responsibility.
    When you are given the task of creating a method or attribute on an object, one of the most important questions you should ask is, Does this attribute or method belong on this object? This question is fundamental to an object-oriented design and the answer can make a world of difference. Answering this question incorrectly has detrimental effects on the development effort resulting in methods and attributes strewn across myriad objects, with no coherent structure. If the methods and attributes were strewn across several objects, it would be more difficult to provide a uniform interface to external systems. If an external system wants to execute a particular business process in R/3, it may need to access several business objects, thus increasing coupling and reducing the layer of abstraction between R/3 and the external system.
    Lets take, for example, the requirement to be able to update a sales order. This is a common requirement and one that SAP usually implements for you. For the sake of the example, lets assume that SAP has not implemented this method. You will need to implement your own UPDATE method on one of the business objects. The question here is: Which object? This question is what I term as defining responsibility. Which object is responsible for having the UPDATE method on it? As shown in Figure 4, the answer in this cases is BUS2032 (SalesOrder). If you put it on any other object then you run the risk of no one else knowing of its existence. Next time there is a requirement to update a sales order, the developer will develop an additional method. You would then have two separate pieces of code that implement the same functionality. This duplication doubles development, testing, and maintenance requirements. On large projects, this can become a real problem and a maintenance and testing nightmare.
    SAP recognizes the challenges facing developers in the e-business era. It is aware that if it wants to take R/3 to the next phase, it needs to continue evolving the ABAP language and ensure that powerful development tools are available to SAP developers.
    Rising to the challenge, SAP has begun developing extensions to the ABAP language called ABAP objects (see "Introducing ABAP Objects," in the IntelligentERP feature archive for an excellent introductory article to ABAP objects by Jürgen Heymann and Horst Keller). These extensions will provide ABAP developers with a full range of object-oriented tools. Eventually, these new extensions will make BOR obsolete. However, the use of object-oriented development is sure to be an integral part of future SAP developments, regardless of where the world of e takes us.
    Reward points
    Regards

  • Business Object and Netweaver, Event Insight

    Hello,
    Can anyone tell me if Business Objects requires Netweaver Application Server?  Also, Event Insight, includes Sybase CEP, Business Object and other components.  Is that all on one server that is a Netweaver Application Servier?  Or is it some combination of Netweaver and non-netweaver on a partitioned server or some other set-up.
    Event Insight, I think is shown as 1 server.
    Thx

    Hi
    The Business Objects Enterprise Intelligence Platform (former Business Objects Enterprise) does not require Netweaver as application server.
    You can have a look at: http://www.sdn.sap.com/irj/sdn/bi where yoo find lots of information and overview presentations
    Kind Regards
    Roland Hoeller

  • Interface in Business object(swo1)

    HI All,
    Can anybody kindly explain me what is INTERFACE and ATTRIBUTES in business object(SWO1).
    Also kindly guide how does it works.
    Thanks,
    Sanjay

    Hi Sanjay.
    You can see your answer in the below link:
    SAP Business Objects - BAPI User Guide CA-BFA) - SAP Library
    Hope to be helpful.
    bests,
    Parisa.

  • How to restrict permissions for individual business object fields?

    I know that ACE can restrict permissions (read/write/delete) for entire business objects (Business Partner, Opportunity, Activity...).
    Is it possible to assign security permissions (read/write) to individual attributes of business objects? For example, I want that some users could not view phone number for Business Partner.

    We had similar requirement for transaction but that was more to do edit or non-edit authorization at field level, but i feel this will work for your scenario too.
    First there is no standard tool available to do this, so, you'll have to create your own authorization objects in transaction SU21 (Basis will be able to do that) lets say ZAUTHOBJ, and then assign permitted activities for this object i.e. create/generate, change, display. Then you this authorization object in UI coding to check the permission level and give access at field level. Don't forget to assign this object to your PFCG role.
    I'm not technical so can't tell you where to put the code on UI (may be some prepare output method), your tech team will be able to help you.
    Also, its good idea to have seperate auth object for each field you want to restrict because of scalability in future.
    Hope this gives you some idea...
    Regards,
    Vikas

  • Unicode upgrade of Business Objects

    Hi All,
    Can someone let me know how to do Unicode upgrade of Business objects.
    For programs, we can set the unicode attribute, in the similar way how to set this Unicode attribute for Business objects?
    Amogh

    Hi Amogh.
    We have the same issue.
    Whe are in the middle of the ABAP unicode enabling and we haven't found a solution for some customer Business Objects - e.g. Z_BUS2017. They are OK (UCCHECK transaction) but they haven't the Unicode flag. The standard Object BUS2017, program MM07MMOB have the Unicode flag activeted (view TRDIR-UCCHECK).
    If you have got a solution please, advice us.
    Best regards,
    Carlos

  • Problem with Business object attributes in UWL Workitem description

    Hi All,
    I have developed a workflow which sends the workitem for two level approvals. Once the workflow is triggered workitem sent to the respective user for approval. When user opens the workitem in inbox he can see all the data which comes from the 'Z'  Business object in R/3 and he can approve the same. Everything works fine when this process happens in R/3 system.
    The problem comes when user opens this workitem in UWL or this workitem is sent to user mail ID executing  'SWN_SELSEN' report, all the attributes of the business object are displayed in the workitem description  except 2 . These are the Minimum annual salary(GRMIN) and  Maximum annual salary(GRMAX) fields from 'T510N'  table.
    Regards,
    Vaishali.
    Edited by: vaishali rautray on Dec 24, 2008 7:52 AM

    Hi Saumya,
    Thanks for the quick reply.
    For storing the Minimum and maximum annual salary values I have created two attributes in the business object which are referring to database fields. T510N is a customizing table. I could see the values for the same, if I test the Business Object or Trigger the w/f in R/3 and check the approval work item in R/3. These values disappears only in case of web interfacing i.e. If I send the same work item to outlook mail or check it in UWL.
    I had checked the same and thought if there is any problem with BO or some other processing takes place before these values are retrieved. But I wonder why this happens only if I process the work item outside R/3 system?
    Regards,
    Vaishali.

  • Business object attribute assignment

    Hi Al Experts,
    We have a transaction in SAP called SWF_BAM where we can trigger a proxy call on the basis of events triuggered.
    I created a z BO and i am trying to create the binding between my BO and proxy structure.
    Here we can link the BO attributes with proxy structure.
    In my proxy structure i have a table type .
    Is there any way to create an attribute in Business Objetc of a table type??
    Please guide me thanks in advance.

    Rick,
    Thanks for reply.
    It always ask for reference field.
    its not working.
    actually that table type of proxy structure is appearing as container element and we have business  object attributes comes as container element
    we can do it in container element but it is not allowing me to do in business object.
    Please tell me any way to do it.
    One question
    can we achieve this using ABAP class?
    Thanks in advance

  • Mandatory check failed for attribute process type of business object

    Hi Guys,
       Im facing an error with the Mandatory check failed for the attribute process type of the business object activity.
    I have the subscription business transaction customizing subscription assigned
    and the transaction types are visible when I create the activity but when I assign the transaction type then the following error is seen

    Hi,
    did you also synchronize the adapter object CRM_DNL_PROCTYP?
    Is the CDB table CDBC_PROC_TYPE properly filled in CDB respectively in your local DB?
    Regards,
    Wolfhard

  • How to access Business object type attribute from a method/function modul ?

    Hello,
    i have created a business object type object along with attributes and methods. Now inside the method i want to access the attributes. inside the method i am writing:
    data a type XXX.
    a = me->attribute
    this is creating a compilation error.
    Now the method is defined as a function module in some package, so can anyone inform me how to access object attributes from the function module ?
    pointes are awarded
    Regards

    Hello,
    thanks for your answer, but this too did not work, "=>" is for static attributes and the attributes i have are not static. Moreover, i tried it but it gave the same error :
    the abap error was when i was checking the code is :
    the type me=>documenttype is unknown
    as you know in SWO1 i created an object and when i create a method you link it to a function module and this is where you have the implementation of the method, so from this method how can i access the attributes on the main object that i created in SWO1
    regards

  • Attributes Problem in Business Object

    Hi,
    We had a requirement of creating a new Business Object with a couple of attributes(both Database and Virtual Attributes)
    So, as per the requirement, I created my Business Object with all the required attributes. And I have coded the required Business Logic for my Virtual Attributes.
    Now, I created my Business Object's method's using these attributes(OBJECT-ATTRIBUTE_NAME) in my methods wherever required.
    Finally, I tested the Business Object in SWO1(Business Object Builder), here are my observations...
    1) The Database attributes is getting created properly and I can see the values for the required
    2) The Virtual Attributes are getting created as per the Business Logic and I can see the desired result for this also.
    3) The methods are giving desired results.
    Now, my doubt is, when I trigger one of this Business Object's method from workflow, the attribute values(OBJECT-ATTRIBUTE_VALUE) are not visible inside the method. But if I test the same BO using SWO1, I can see all the Attribute values(OBJECT-KEYFIELDS).
    I can only see the KEY FIELDS of the Business Object in Debug mode, I mean, I can view OBJECT-KEY-KEYFIELD value, but not the OBJECT-ATTRIBUTENAME inside the BO'S method in Debug mode-when triggered from Workflow.
    Well, I am triggering the Workflow using the SWUD transaction and infact I am creating the required Instances in the first screen of SWUD.
    Can anyone make me clear why this is happening?
    Regards,
    <i><b>Raja Sekhar</b></i>

    Hi people,
    Thanks for immediate reply.
    Well, I think I didnt explain my problem clearly...
    Well, here is my clear explanation.
    I created a new Business Object named ZOBJECT say...
    It has 3 key fields...
    PERNR(Employee Number),BEGDA(Start Date) and ENDDA(End Date)
    It has 2 attributes...
    One is a Databsase Attribute - ENAME which gets populated from database PA0001.
    Another is a Virtual Attribute - EMAILID which gets populated from some Business Logic.
    And it has one Event...ZEVENT
    It has one method...
    SENDMAIL - Which sends the email to the EMAILID Attribute.So my coding looks something like this...
    METHOD SENDMAIL.
      DATA : W_FROMEMAIL TYPE PA0105-USRID_LONG,
             W_TOEMAIL TYPE PA0105-USRID_LONG,
             W_SUBJECT(100),
            IT_TEXT TYPE STANDARD TABLE OF SOLI.
      W_FROMEMAIL = '[email protected]'.
      W_TOEMAIL = OBJECT-EMAILID.
      W_SUBJECT = 'Test Mail'.
    Populate the mail content into IT_TEXT Internal table
      call function 'YHSENDEMAIL'
          EXPORTING
            FROMEMAIL = W_FROMEMAIL
            TOEMAIL   = W_TOEMAIL
            SUBJECT   = W_SUBJECT
          TABLES
            IT_TEXT   = IT_TEXT.
    ENDMETHOD.
    So as shown above I designed my Business Object.
    And I tested this Business Object from SWO1(Business Object Builder) Transaction itself. I am able to get the desired result. Everything seems perfect till now.
    Now, I created my workflow with ZOBJECT-ZEVENT as the Start Event.
    I created one Standard Task to send EMail which in turn calls up my ZOBJECT-SENDEMAIL Method.
    So when I called this method, I found that OBJECT-EMAIL inside the method is not populated, ultimately, no mail is going.
    I dont understand why the attribute values are not populated when I call the same method from workflow.
    When I checked the workflow log, I can see my attribute values for the ZOBJECT. But in the Method, I cant access the attribute values as such...But I am able to access the Key fields of the method...
    Can anybody explain me the reason for this behavior?
    I checked the BINDING, Everthing seems perfect from this side...So I dont think it's a binding problem.
    Regards,
    <i><b>Raja Sekhar</b></i>
    Message was edited by: Raja Sekhar

  • DQE - Business Object Attributes not shown

    Hi,
    can anybody please help me in solving the following problem.
    I want to implement drag & relate for my EP 6 (sp13). I connected a sap crm system an imported some business objects from there (DRSPFLI and DRCARR).
    When I now want to check the relations with the relations editor. The autocomplete function doesn't work and even if I want to edit the relation manually I have the problem that no attributes of the selected business objects are shown for selection.
    Something seems to fail at the importing process of my business objects. (Hint: I can see the crm system in the metadata loader)
    Has anyone a idea how to fix this problem?
    thanx a lot
    Christoph Hofmann

    Hi,
    unfortunately this didn't solve it.
    The confusing is, that I see the System in the loaded DQE window at the metadata loader, but the corresponding business objects of this system appear without any parameters.
    I have no idea what else to do!
    christoph

Maybe you are looking for

  • Poor image quality in preview - CR2008Sp4

    Hi, I have a report, designed in CR 2008 SP4, with a logo image(blob field - bmp) on the top of the page. When previewing the report from my Win Forms app, the image quality is poor/grainy. If I export it to PDF (either from the previewer or from cod

  • 27" Retina iMac dead

    Less than one week old, my 27" Retina iMac is- dead! I put it to Sleep a few hours ago, and returned to find that I could not wake the machine. Screen trouble? Pressing the Power button, to turn it OFF, and pressing it again to turn it ON produced NO

  • Costing relevancy

    Hi All, When i add components in BOM, automatic costing relevancy is coming in statua long text. how can we keep this field blank when ever adding the component in BOM. Regards

  • 11g: How to populate LOV from button click

    Hi, I want to populate a LOV when the user clicks a button (no af:inputlistofvalues is used) How to do this? regards Peter

  • Problem with fonts display in safari and mail ???

    hello ! sometimes i have problems with fonts display safari use a mathematics font instead of my preferences fonts i have to copy-paste in a text-editor to see the right font !!! i have the same problems sometimes in mail is anybody have infos about