cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Conversion Exit issue in CDS View

DEB1989
Explorer
0 Likes
4,072

Hello Team,

I have created one CDS and used this CDS as a OData.

In CDS View one field has a routine (Conversion Exit).

When the CDS is executing ,the result is as excepted. but if i use the OData service which is generated from this CDS then that field display different value (Description is showing) due to conversion exit.

CONVERSION_EXIT_ZADJC_OUTPUT

CDS Output-

OData Output (CDS):-

If i create a OData service from SEGW , then i am able to see expected Output without call conversion exit FM.

OData (SEGW):-

Can you please help me how to get this result from CDS ?

Thanks'

Deborshi

Accepted Solutions (0)

Answers (1)

Answers (1)

GK817
Active Contributor
0 Likes

Hi Deborshi,

You will have to handle it in MPC class. There are multiple ways, please refer to this blog:

https://blogs.sap.com/2016/10/21/conversions-sap-gateway-foundation-part-1/

Gaurav