Making small modifications to an existing report is a very common task. Together with creating new pages and codeunits, this is probably one of the most repetitive and frequent jobs for a developer.
Let's say that we would like to make the following changes to the standard sales order report:
- Show the Customer Category field in the sales order header
- Print GIFT in the sales lines for item lines with 100% discount
The current version of the AL Language extension does not have any artifact such as the ReportExtension object that could be used to modify or merge existing reports. Therefore, it is always required to create a brand new report from scratch, even if we need to make very small modifications to the dataset and/or layout.
The easiest way to accomplish this task, then, is to copy and give a different ID to an existing...