Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Association in XSDS with Unmanged Mode

Hi Experts,

@Thomas Jung

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

Tags:
Not what you were looking for? View more on this topic or Ask a question