问题
i am able to connect SAP BO server via java (SDK) after this i don't know queries to get all BO Metadata (universe name,classes,objects,report names,report variables separately like oracle) as i need store all bo metadata into my local db(mysql) from BO server. I am new to SAP BO. i was struck on this. please suggest any one on this.All leads are appreciable.
public static void main(String[] args) throws Exception {
IEnterpriseSession enterpriseSession = null;
try {
// Establish connection
System.out.println("Connecting...");
IEnterpriseSession enterpriseSession = sessionMgr.logon(user, pass, host, auth);
IInfoStore infoStore =(IInfoStore)enterpriseSession.getService("InfoStore");
}
my expected output would be that how retrieve all BO Metadata(universe name, classes,objects,report names,report columns) in tabular form lie sql tables
回答1:
Easiest way to retrieve metadata from the BO Server is to use CMS queries. You can use CMS queries with the REST API.
A simple example to retrieve metadata from your universes in your cms:
- API URL: http://host:port/biprws/v1/cmsquery
- HTTP Method: GET
- Data Formats: Application/JSON, Application/XML
- Headers: x-sap-logontoken (you can retrieve a logontoken via the rest api as well)
if you use json use following request body:
{ query:"select * FROM CI_APPOBJECTS WHERE SI_KIND='Universe' order by SI_NAME asc" }
This blog is a good place to start: https://blogs.sap.com/2017/05/10/query-the-businessobjects-repository-using-bi-platform-rest-sdk-rws/
来源:https://stackoverflow.com/questions/56312276/how-to-get-universe-classes-objects-report-names-report-fields-from-sap-using-j