Hi Matteo,
Yes, you can achieve your requirement for custom field Z_PRICE as below
- Let us say you have added a field Z_PRICE inside structure BBPS_CTR_HEADER
- Now, you need to define the currency reference from same structure BBPS_CTR_HEADER
- Hope, your context node is created using structure BBPS_CTR_HEADER, then system automatically converts the currency decimals based on reference key of same structure BBPS_CTR_HEADER
If on_enter event is not triggered, create an event handler DUMMY and attach to the field Z_CURRENCY. So that on an enter event, framework renders the view by updating decimal places based on key
Hope this helps you.
Regards,
Rama