Skip to Content

Odatajs doesn't find any data in db table SCP Web IDE

Hello experts,

currently I am working on getting an odata service up and running in order to display data from a HANA table.

The challenge that I am facing is with the odata service that throws an error every time I run the odatajs as an Application

the odatajs.xsodata has the following simple code:

	"DummyData" as "scenarios";

Also my workspace file structure looks like the following:

Does anyone has idea how I can fix this error?

Would be much appreciated.

az5vx.png (43.5 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jul 10 at 07:50 AM

    Hi Maissa,

    Your db design time artefacts all have "pending deployment" label. Build and deploy that first to create the DB objects.

    Add a comment
    10|10000 characters needed characters exceeded

    • You can follow this tutorial to get started with SAP BAS:

      But take note that if you continue learning from succeeding tutorials, they tend to teach you the newer programming model which obviously you are not using yet. so what i can suggest is to stop following the tutorials once you already have setup your own SAP BAS.

      The next step for you to do is to import your current project into SAP BAS. You can achieve this if you have save your project into a central git repository. It's like this, you push your current from SAP WebIDE to your central git repository (i like to use GitHub), then switch to SAP BAS and then clone your repository from there.

      Then lastly, I have this blog that provides details on how to deploy an MTA project using the terminal -- i used VS Code IDE but you can do the same in SAP BAS. Follow the steps starting from step 4 of Deploy the application to SCP Cloud Foundry:

      If this does help you, kindly mark this answer as "Accepted" :-)

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.