Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2895

Re: XSDS.$importEntity: "Failed to execute action: TypeError: artifact is null"

$
0
0

Hi Dirk,

 

you can access any catalog table using method $defineEntity. You do not need a synonym.

 

In the following example table _SYS_REPO.ACTIVE_OBJECT is accessed for instance:

try{    $.import("sap.hana.xs.libs.dbutils","xsds");    var XSDS = $.sap.hana.xs.libs.dbutils.xsds;    var ActiveObject = XSDS.defineEntity("ActiveObject","\"_SYS_REPO\".\"ACTIVE_OBJECT\"");       var oActiveObject01 = ActiveObject.$get({       "PACKAGE_ID": "sap.hana.ide.catalog",       "OBJECT_NAME": "config",       "OBJECT_SUFFIX": "json"    });       $.response.setBody(JSON.stringify(oActiveObject01));   
}catch(e){    $.response.setBody(e.message);
}

 

Best Regards,

Florian


Viewing all articles
Browse latest Browse all 2895

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>