Hi Experts,
I am trying to build an associations for two table VBRK and VBRP. Below is the syntax but we are not seeing the items in the output.
Please let me know anything wrong in the syntax.
var oDocItems = XSDS.$defineEntity("oDocsItems", '"SAPRHE"."VBRP"');
var oDocs = XSDS.$defineEntity("oDocs", '"SAPRHE"."VBRK"', {
items: {
$association:{
$entity: oDocItems,
$on: "$SOURCE.\"items\".\"VBELN\" == $SOURCE.\"VBELN\""
}
}
});
var oResult = oDocs.$query().$execute();
Thanks,
Naga