cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to create service definition in SAP CAP

Mayursatardekar
Explorer
0 Kudos

I am currently going through course "Building Side-by-side extensions on SAP BTP". I am trying to create a CAP based service, but I am getting an error while creating service definition.

In this step we have to add risk-service.cds file to SRV for folder, but when I am trying to create it. I am getting an error "Can't find local module '../db/data " for the statement using {riskmanagement as rm} from '../db/data';

his is the code for your reference, kindly suggest what needs to be done.

Accepted Solutions (1)

Accepted Solutions (1)

gregorw
Active Contributor
0 Kudos

It would help if you provide a direct link to the course.

The problem you face is, that there isn't .cds file in your db folder. Please cross check the course if you missed this step. I guess it was named schema.cds.

Mayursatardekar
Explorer
0 Kudos

gregorw Thanks!, I somehow missed that step, it is working fine now

Answers (0)