cancel
Showing results for 
Search instead for 
Did you mean: 

Publishing an oData from CDS View with Parameters

matheusog
Participant
0 Kudos

Hi experts!

I have a CDS View with parameter that i want to publish as an oData service.

My view have two parameters:

     - GJAHR:GJAHR --> CHAR 04   

     - AFABE:AFABE_D --> CHAR 02

How i publish this CDS View in SEGW?

When i used an import by reference, it recognize the parameters, but when generating the class, i have an error (the class is generated with a blank type).

Ex.:

TYPES:

BEGIN OF tt_zcds_parameters.

INCLUDE TYPE . "no type is specified, and this generated an error in the class activating

Thanks!

Matheus Goulart

Accepted Solutions (0)

Answers (3)

Answers (3)

vishnucta
Active Participant
0 Kudos

vishnucta
Active Participant
0 Kudos

Give @OData.publish: true in the CDS Editor.Then activate the servie in /iwfnd/maint_service.

Regards,

Vishnu

EkanshCapgemini
Active Contributor
0 Kudos

Hi Matheus,

This blog series may help you.

Regards,

Ekansh