Enum fields cannot be exported as it is in Electronic reporting. We need to use a workaround that is detailed in that post.
In our case I would like to export the item type stored on a purchase order line.
In the Model mapping designer, select Enumeration and click Add root
Type in a Name
Select the enum in the Enumeration drop down field
In our case the enum is ItemType
In the Data model section, select the node and click Edit
We need to use the CASE function.
Select the data method getItemType() in the PurchLine table to retrieve the item type field.
Then, for each enum value, type in the value you want to display in your report.
The formula is:
That’s it you can now export enum fields in Electronic Reporting !