2018 Jul 09 12:08 PM
Hi,
i am executing the standard View demo_cds_unit_conversion, i gave to converted unit as 'USD'. But the view is not displaying converted quantity and it is displaying 000000.
Please help me why the conversion is not happening.
Hi,
i am executing the standard View demo_cds_unit_conversion, i gave to converted unit as 'USD'. But the view is not displaying converted quantity and it is displaying 000000.
Please help me why the conversion is not happening.
2018 Jul 09 12:49 PM
As you can see within the CDS view, the error handling is configured, that in case of any error, the result is set to null/the initial value.
In case you wanna find out the reason, copy the view and change the error handling to "FAIL_ON_ERROR" (check the documentation here).
But my "assumption" would be that you wanna do a currency conversion and not unit conversion, because you are trying to pass "USD" (which I interpret as currency) to the unit conversion functionality. For currency conversion you should check CDS View demo_cds_curr_conv.
Regards,
Florian
2018 Jul 10 9:19 AM
Thank you for your response.
one more question please do you have any predefined function like conversion exit alpha output / input.
Thank you,
Madhavi
2018 Jul 10 10:59 AM
These are no standard views.
They are defined in encapsulated package SABAPDEMOS.
Those are demos for purposes of the ABAP documentation only.
You must not use them productively.
2018 Jul 18 6:55 AM
Thank you Keller, i went through all the demo programs, but the cast function is not working for my logic.
i have field1 in the table 1 with character length of 20, but this field is compared to the field1 in table 2 which is 10 characters for the same data. Traditionally i am using conversion_exit_alpha_output for conversion .is there any function that replace this functionality in CDS . please assist me .
2018 Jul 11 11:14 AM
Thank you, i am trying to convert the field ( to conversion exit_alpha _ouput) in the select while creating a view .
is there any functions available to convert the data .
Regards,
Madhavi
2018 Jul 11 3:57 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |