Hi,
I have seen this in the documentation :
Relation (Business Object Extension)
Syntax |
with <data type with representation term Identifier>
|
Description | The Relation annotation enables you to create a reference to a business object by using the identifier of an element, for example, ID, PartyID, or UUID as the target of the reference. Thus, you can create an element that is like the element you are referring to and retrieve the data of this element, for example, for an object value selector or a query. Tooltips and labels are not retrieved from the element you are referring to. You need to specify the namespace in the annotation, if the namespace has not yet been specified in the definition of the business object extension. You can combine the Relation annotation with the Scenario, Label, and Tooltip annotations and with default values but not with the Reference, Decimal, and Transient annotations. |
Examples |
|
Do you understand the use-case of this annotation ?
I have tried and I don't see any difference between :
element
MyProductID : ProductID;
and
[Relation(AP.CRM.Global:Opportunity.Item.ItemProduct.ProductKey.ProductID)]
element
MyProductID : ProductID;
Thanks and best regards,
Charles PAULET