Skip to Content
0

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

Jan 18 at 07:58 AM

246

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
avatar image
Former Member
Jan 23 at 04:52 AM
0

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

Show 3 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0
Former Member

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

1
Former Member
Former Member

Thank you Pratheek. Appreciate your help.

Regards,
Ram

0