Unit 3: Creating Object Database Field Attributes
Use
In this unit you create and implement the object
database field attribute sold-to party. Database field attributes are attributes that evaluate the content of a database field directly. In this case, the attribute reads the sold-to party from the database and creates from it a reference to an object of the type customer.The system helps you implement this attribute by generating source text automatically.
Procedure
Make sure that the object type entered here only has one key field and can be identified via the database field entered.
The attribute is transferred into the object type definition with the automatically-proposed name SoldToParty.
Implementing attributes in the implementation program
Check your object type. To do so, choose .
If you have completed the previous unit, you will see that no further implementation is required. Database field attributes that refer to fields in the table VBAK are already fully implemented.
Result
Testing the SoldToParty attribute
This regenerates your object type.
The Test Object Type <Object Name>: No Instance screen appears.
Identify an object of the type sales order by entering the number of a sales order of your choice. Use the F4 input help if necessary.
The Test Object Type <Object Name> screen then appears, in which you can test your object type (execute methods, check attribute values).