cancel
Showing results for 
Search instead for 
Did you mean: 

CDS - conversion exit output for a field

Former Member
0 Kudos

Hi ,

I have created one Cds in which field data element have conversion exit output. I need to display value which get in convert after conversion exit.even in Se11 when i open the data it shows value without converting it but when we display it shows corrcted value(converted output because of conversion exit).

How we can achieve in my cds.

Rgsd

Priyanka

soumya_r
Participant
0 Kudos

Hi,

i have a same issue now. having converted values in abap table storage and display value is character in AUSP table/CAWN table. which i need to filter the values. are you able to find the cast operation or annotation or semantic?

Regards,

Soumya

Accepted Solutions (0)

Answers (6)

Answers (6)

horst_keller
Product and Topic Expert
Product and Topic Expert

You can CAST the elements of a CDS view to data elements. The semantic attributes are taken over then. See examples under

https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abencds_f1_cast_ex...

Former Member
0 Kudos

Hi,

Thanks. I tried but no luck.

My Field is AFKO - Pronr . when we display in SE11 it shows the number but in display it shows character because of conversion exit. As suggested i have used the cast operation as follows but no luck:

cast(orderheader.pronr as PS_PSP_PRO )as wbselement,

Still it is showing the numeric output.

Priyanka

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

What does "in display" mean? What role does SE11 play here? From your description, it is not clear what you want.

soumya_r
Participant
0 Kudos

Hi,

i am facing the same problem. like the table stores value for a column like 1234567890, which is unconverted value. which has value like primary_supplier_cat which is displayedin SE16n. it happens in finance tables, which has conversion exit for abap reports or transaction. but how can one achive the same in CDS view like cast or semantic for currency or something?

there is no semantic/objectmodel/conversion function for these columns.

so, hope you got it?

regards,

Soumya

ClausB
Active Participant
0 Kudos

The Blog entry could help you if you use OData services

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

Loed
Active Contributor
0 Kudos

Hi,

Were you able to make this work?

Thanks.

Loed

avscs123_
Discoverer
0 Kudos

Hi,

I was facing the same issue with AUSP, so In case of AUSP have a join with CABN and fetch the field ATNAM and display to respect conversion exit.

For rest of the cases, Observe the CONVERSION_EXIT_*OUTPUT function module and observe the Select query which is responsible for conversion and you can utilize the same in your CDS.

Reward If it solved your query.

Thanks,

Aditya Chauhan

0 Kudos

Hi,

check FM of conversion exit, you'll find conversion table you need to join with..

B&R,

-dkvd-

Jagadeesh
Explorer
0 Kudos

Hi All,

Could you please tell me the solution? I am also facing the same issue. For example, if i exposed MATNR value from one of my DB table through CDS view, it is not giving in the converted format even though my DB table having the converted value . In my case i need to get the converted material value.

How can i get the converted material value from CDS view?

Can any one help me on this?

Best Regards,

Jagadeesh

0 Kudos

Hello Priyanka,

Have you been able to find a solution on this? I face the same issue than you (I am reopening the discussion one year later).

Regards,

Destiné.