Adding recognition description attributes

Recognition descriptor attributes are often used to select one business object at run time when multiple choices are possible, in our case, preferred, regular and bad customers.

  1. Open the BADCUST business object in the business object editor. Beneath Data Types, right-click BADCUST. From the context, select Open With > Business Object Editor. The editor opens for the BADCUST business object.


    Business object in business object editor

  2. Select the bcustcode attribute. Select the Properties view. Select the Application Info tab.
  3. In the ASI element properties table, right-click td:typeDescriptorElement. From the context menu, select Add Child > td:recognitionDesc. The td:recognitionDesc element is added. Beside the element enter the value BADC. Save your work.


    Adding a descriptor element

  4. Similarly, for the PREFCUST business object, select the pcustcode attribute and add a recognition descriptor element with a value of PREC.
  5. Similarly, for the REGCUST business object, select the rcustcode attribute and add a recognition descriptor element with a value of REGC.
  6. Close all business object editors.

Feedback
(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.