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