cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Creating PostgreSQL OData in BAS.

0 Likes
1,990

How to create PostgreSQL OData in SAP Mobile Development Kit through BAS and How to get as a service in Cloud Foundry.

Accepted Solutions (0)

Answers (4)

Answers (4)

Hai-lin_Wei
Product and Topic Expert
Product and Topic Expert

Hello Dirisinala,
Here we can input a PostgreSQL instance name which is existing in Cloud Foundry, if it hasn't been created yet. Please try to create one in CF.

Please note:

1. if can't find 'PostgreSQL, hyperscaler option' in Service Marketplace of subaccount, Then global account administrator should assign 'PostgreSQL, hyperscaler option | postgresql-db' service firstly in BTP Control Center(https://controlcenter.ondemand.com/index.html), then configure entitlement in BTP cockpit page.

2. service 'PostgreSQL' in Service Marketplace is deprecated now. (avoid using it.)

3. you can find "-bind", "pgsql:<your pgsql instance name>", in the created tasks.json. see more details, please refer https://help.sap.com/doc/f53c64b93e5140918d676b927a3cd65b/Cloud/en-US/docs-en/guides/getting-started...

4. run csdl-to-war task in BAS will deploy the metadata as odata service finally.

Thanks
Hai-lin.wei

0 Likes

Hi Hai-lin Wei,

I am facing this below error after running Csdl-to-war:

Hai-lin_Wei
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi venkata_dirisinala,

An OData service can be deployed successfully with my trial account at API Endpoint: https://api.cf.us10-001.hana.ondemand.com (postgresql instance is used.)

"Executing task: /extbin/local/openvscode-server/extensions/vsc-extension-mbt-1.13.1/resources/server-odata-sdk/bin/csdl-to-war.sh /home/user/projects/MBT/example.SimpleSchema.csdl.xml /home/user/projects/MBT -workspace /home/user/projects -application testTrial -version 1.0.0 -bind postgresql:postgreSql-instance -cf:push -sap:cf -cf:logs -console:log -log:trace"

Please note, if encounter the issue in below screenshot, please uncomment the service in manifest.yml file.

Hai-lin_Wei
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello Dirisinala,

please upgrade the MBT extension to the latest 1.13.4 version. the download-logs task can be found in that version.

And please feel free to mail at hai-lin.wei@sap.com for further question. Thanks a lot!

0 Likes

Hi Hai-lin Wei,

Whether this option is available for Trail version. If available please let me know.

Hai-lin_Wei
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi

can you please use Terminal -> Run Task -> "download - logs" to download CF logs.
you may need "cf enable-ssh <appName>" to enable ssh if not enabled yet. the "download - logs" will check if ssh enabled or not.

0 Likes

I am not able to see to download -logs in Terminal -> Run Task and then i tried that Cf enable-ssh but same issue after using that command also.