Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
Community interest groups have now moved from Yammer to Microsoft Viva Engage. To join a Viva Engage community and take part in the latest discussions, fill out the Request access to Finance and Operations Viva Engage Community form and choose the community you want to join.
The following steps explain how a user assigned to the system administrator or electronic reporting developer role can configure an Electronic reporting (ER) format to do counting and summing based on data of the already generated text output. You can perform these steps in any company.
To complete these steps, you must first complete the steps in the "ER Configure format to do counting and summing (Part 1: Create format)" procedure.
This procedure is for a feature that was added in Dynamics 365 for Operations version 1611.
Create a format configuration to add counting and summing details
- Go to Organization administration > Workspaces > Electronic reporting.
- Select Reporting configurations.
- In the tree, expand Intrastat model.
- In the tree, select Intrastat model\Intrastat (DE).
- To customize the format that Microsoft provides, add lines with summary details at the end of the Intrastat report. Derive your own instance of the Intrastat configuration from the Microsoft instance to make modifications.
- Select Create configuration to open the dialog.
- In the New field, enter
Intrastat (DE), Microsoft. - In the Name field, type
Intrastat (DE) with counting & summing. - Select Create configuration.
Configure this report to count and sum based on output details
- Select Designer.
- Select Yes in the Collect output details field.
- This flag activates at run-time the process of collecting output details for generating the Intrastat file.
- You need to count for different Intrastat directions, so add a dedicated model enumeration to the data sources' list of this format configuration.
- Select the Mapping tab.
- Select Add root to open the drop dialog.
- In the tree, select
Data model\Enumeration. - In the Name field, type
Direction. - In the Model enumeration field, enter or select a value.
- Select the value
Direction.
- Select the value
- Select OK.
- Select Add root to open the drop dialog.
- In the tree, select
Functions\Calculated field. - In the Name field, type
$BlockName. - Select Edit formula.
- In the Formula field, enter
"block". - Select Save.
- Close the page.
- Select OK.
- Select Add root to open the drop dialog.
- In the tree, select
Functions\Calculated field. - In the Name field, type
$RecName. - Select Edit formula.
- In the Formula field, enter
"record". - Select Save.
- Close the page.
- Select OK.
- Select Add root to open the drop dialog.
- In the tree, select
Functions\Calculated field. - In the Name field, type
$InvName. - Select Edit formula.
- In the Formula field, enter
"InvoicedAmountEUR". - Select Save.
- Close the page.
- Select OK.
- In the tree, select
Intrastat\Data. - Select Edit for the Collected data key name field.
- Select Add data source.
- Use
$BlockName.
- Use
- Select Save.
- Close the page.
- Select Edit for the Collected data key value field.
- In the Formula field, enter
IF(Intrastat.CommodityRecord.Direction=Direction.Import, "Import", "Export").- Use
IF(Intrastat.CommodityRecord.Direction=Direction.Import, "Import", "Export").
- Use
- Select Save.
- Close the page.
- Count the lines of this sequence. The results are used with the name
blockseparately for different directions. ValueImportis used for any arrivals Intrastat transactions. The valueExportis used for any Intrastat dispatches transactions. Consider this to be a virtual Excel spreadsheet. For each transaction a row where the first columnblockis filled with the valuesImportandExportaccordingly.
- Count the lines of this sequence. The results are used with the name
- In the tree, expand
Intrastat\Data: Sequence. - In the tree, select
Intrastat\Data: Sequence\Arrivals?. - Select Edit for the Collected data key name field.
- Count the lines of this sequence. The results are stored using the name
record.
- Count the lines of this sequence. The results are stored using the name
- In the tree, select
$RecName. - Select Add data source.
- Select Save.
- Close the page.
- Select Edit for the Collected data key value field.
- In the Formula field, enter
Intrastat.CommodityRecord.CommodityCode. - Select Save.
- Close the page.
- Count the lines in this sequence. Use the results with the name "record" for different commodity codes. Consider this count as a virtual Excel spreadsheet. For each transaction, create a row where the first column "block" contains the values "Import" and "Export" accordingly, and the second column "record" contains the commodity code value.
- In the tree, select
Intrastat\Data: Sequence\Dispatches?. - Select Edit for the Collected data key name field.
- In the tree, select
$RecName. - Select Add data source.
- Select Save.
- Close the page.
- Select Edit for the Collected data key value field.
- In the Formula field, enter
Intrastat.CommodityRecord.CommodityCode. - Select Save.
- Close the page.
- In the tree, expand
Intrastat\Data: Sequence\Dispatches: Sequence?. - In the tree, expand
Intrastat\Data: Sequence\Dispatches: Sequence?\Record = Intrastat.CommodityRecord. - Select the Format tab.
- In the tree, select
Intrastat\Data\Dispatches\Record\Invoice amount EUR. - Select the Mapping tab.
- Select Edit for the Collected data key name field.
- In the tree, select
$InvName. - Select Add data source.
- Select Save.
- Close the page.
- Summarize the invoiced amount values for lines in this sequence. Use the results with the name "InvoicedAmountEUR" for different Intrastat directions and commodity codes. Consider this summary as a virtual creation in an Excel spreadsheet. For each transaction, create a row where the first column "block" contains the values "Import" and "Export" accordingly. The second column "record" contains the commodity code value, and the third column "InvoicedAmountEUR" contains the invoice amount value.
- In the tree, expand
Intrastat\Data\Arrivals?. - In the tree, expand
Intrastat\Data\Arrivals?\Record = Intrastat.CommodityRecord. - Select the Format tab.
- In the tree, select
Intrastat\Data\Arrivals\Record\Invoice amount EUR. - Select the Mapping tab.
- Select Edit for the Collected data key name field.
- In the tree, select
$InvName. - Select Add data source.
- Select Save.
- Close the page.
- Select Save.
- Close the page.