on ‎2020 Oct 13 4:12 AM
Area - ABPA RESTful Programming model.
I created CDS view with below fields. Data element behind the attributes have the conversion exit.
Because of the Conversion exit, my service Binding Preview tool, is not loading the application.
So I checked the transaction code /IWBEP/ERROR_LOG. I have error Message, Conversion exit not allowed for entity attribte << attribute name >>.
But I need the attribute, should be shown on my application.
Attribute use the Standard data element Domain.
Example : PS_PSPID ( Domain )
/BOBF/TIMESTAMP ( Domain )


Request clarification before answering.
Hi,
You can cast field to the data element which doesn't have conversion exit. Then it will work. Refer to below code.
cast( created_on as changedatetime ) as CreatedOn,
Here changedatetime dataelement doesn't have conversion exit.
Thanks
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
the conversion exit (from BOPF) mentioned in the question is only meant for dynpros (SAP GUI) and therefore, leads to a dump in OData.
In general, only data elements with no conversion exit should be used together with the built-in CAST expression in the CDS data model when building OData services.
For example, the standard reuse data element `ABP_CREATION_TSTMPL` or any data element with domain `TZNTSTMPL` can be used instead of the mentioned /BOBF/ Timestamp.
Hope this helps.
Kind regards,
Carine
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
any solution for this problem ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi. Could you try doing a casting of the field to Timestamp field in the wrapper CDS. Might help.
cast(zfield as timestamp) as zfield.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.