cancel
Showing results for 
Search instead for 
Did you mean: 

CDS @Odata.publish:true - published OData not available in T-Code SEGW

Former Member
0 Kudos

Dear Experts,

I have published OData via CDS using annotation OData.publish:true. Activated via /IWFND/MAINT_SERVICE and created Fiori app with this Odata (Everything works fine). However, OData service is not available in SEGW. I wanted to implement DPC class for some custom requirement, but not able to do that as it is not available in SEGW and no DPC class I am able to find.

Example:
CDS -> ZDEMO_PRO
OData -> ZDEMO_PRO_CDS ( _CDS as created via annotation)

Can you please provide your support there, How OData service can be made available in SEGW so that I could implement DPC class or there is any alternate way to implement DPC for Odata generated via annotation.

Thank you in advance.


Regards,
Ram

Accepted Solutions (1)

Accepted Solutions (1)

pratheek_kv2
Explorer

Hi Ram,

That's the difference. If you need to redefine MPC or DPC, you have to use SEGW and add Datasource as CDS.

To do this, Create a SEGW project and then right click on Data Model and select 'Reference' and click 'Data Source' and add your Header CDS.

If you do not need any redefinition, only then go for OData.Publish.

Regards,

Pratheek

Former Member
0 Kudos

Hi Pratheek,

Thanks for this information.

Just for more clarity -

Does that mean, if Odata is created via CDS it will never be available at SEGW (not even for view purpose)?

I had one fiori app based on this OData, and if there is no such provision to implemente DPC other than creating new OData via SEGW then new fiori app itself would need to be created right.

Regards,
Ram

pratheek_kv2
Explorer

Hi Ram,

Yes. Service Created using OData.Publish cannot be viewed in SEGW. Not even in Display Only Mode.

Regarding the question about your app, that totally depends. The Entity Set names should hopefully remain the same when you create a SEGW project and link it to your CDS. This means the only change would be in your ODATA Name in the Manifest.json.

If the Entity Names change, then you will have to have a new app or change the entity names everywhere in your code but I feel this won't be the case.

Note: Entity and EntitySet's are automatically created with your CDS name when you add a

Referenced Data Source( RDS ) and their names remain the same as CDS Name.

Regards,

Pratheek

Former Member
0 Kudos

Thank you Pratheek. Appreciate your help.

Regards,
Ram

Answers (0)