Skip to content

Commit

Permalink
Explain correspondence
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoTheissen committed Aug 29, 2024
1 parent 74a3612 commit d834e79
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
11 changes: 10 additions & 1 deletion examples/Common.CorrespondingContentIDs-sample.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"$Version": "4.0",
"$Reference": {
"https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Core.V1.json": {
"$Include": [{ "$Namespace": "Org.OData.Core.V1", "$Alias": "Core" }]
},
"https://sap.github.io/odata-vocabularies/vocabularies/Common.json": {
"$Include": [{ "$Namespace": "com.sap.vocabularies.Common.v1", "$Alias": "Common" }]
}
Expand Down Expand Up @@ -30,7 +33,13 @@
{ "$Name": "items", "$Collection": true, "$Type": "self.SalesQuotationItemToBeCopied" }
],
"$ReturnType": { "$Type": "self.SalesOrder" },
"@Common.CorrespondingContentIDs": [{ "ParameterValue": "items", "ReturnedEntity": "$ReturnType/Items" }]
"@Common.CorrespondingContentIDs": [
{
"@Core.Description": "Correspondence between sales quotation item and sales order item",
"ParameterValue": "items",
"ReturnedEntity": "$ReturnType/Items"
}
]
}
],
"default": {
Expand Down
4 changes: 4 additions & 0 deletions examples/Common.CorrespondingContentIDs-sample.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx">
<edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Core.V1.xml">
<edmx:Include Namespace="Org.OData.Core.V1" Alias="Core" />
</edmx:Reference>
<edmx:Reference Uri="https://sap.github.io/odata-vocabularies/vocabularies/Common.xml">
<edmx:Include Namespace="com.sap.vocabularies.Common.v1" Alias="Common" />
</edmx:Reference>
Expand Down Expand Up @@ -27,6 +30,7 @@
<Annotation Term="Common.CorrespondingContentIDs">
<Collection>
<Record>
<Annotation Term="Core.Description" String="Correspondence between sales quotation item and sales order item" />
<PropertyValue Property="ParameterValue" PropertyPath="items" />
<PropertyValue Property="ReturnedEntity" NavigationPropertyPath="$ReturnType/Items" />
</Record>
Expand Down

0 comments on commit d834e79

Please sign in to comment.