on 07-14-2017 3:36 PM
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
You can CAST the elements of a CDS view to data elements. The semantic attributes are taken over then. See examples under
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
The Blog entry could help you if you use OData services
https://blogs.sap.com/2016/10/21/conversions-sap-gateway-foundation-part-1/
Hi,
Were you able to make this work?
Thanks.
Loed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
check FM of conversion exit, you'll find conversion table you need to join with..
B&R,
-dkvd-
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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é.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.