{"title":"Set up operation codes","url":"https://jonas-paprotka.de/docs/localfunctionality/spain/how-to-set-up-operation-codes/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/localfunctionality/spain/how-to-set-up-operation-codes, MicrosoftDocs/dynamics365smb-docs at 46907ac (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/localfunctionality/spain/how-to-set-up-operation-codes","source":{"name":"Business Central application docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-docs","commit":"46907ace177f8d31deba47a2fdb57c3336e66252","date":"2026-11-19"},"checked":"2026-11-19","description":"You can add any number of operation codes to the table, except for the system-created codes C, D, and I, which are already available in Business Central.","date":"2026-10-20","meta":{"topic":"how-to"},"outline":[{"level":2,"title":"Steps to set up operation codes","slug":"steps-to-set-up-operation-codes","at":338,"chars":665},{"level":2,"title":"Link operation codes to general product posting groups","slug":"link-operation-codes-to-general-product-posting-groups","at":1003,"chars":1087},{"level":2,"title":"Related information","slug":"related-information","at":2090,"chars":169}],"text":"You can add as many operation codes as you want to the table. However, the operation codes C, D, and I already exist in Business Central. For example, Credit Memos always have the operation code D. You can't set up these values in the table because they're system-created codes. If you try to add them, Business Central returns an error.\n## Steps to set up operation codes\n1. Select Search (Alt+Q) in the upper-right corner, enter Operation Codes, and then choose the related link.\n1. On the Operation Codes page, fill in the fields as described in the following table\n Field|Description\n Code|Enter an operation code. You can only enter one letter or number.<br><br/> Valid codes are numbers 1 - 8, and letters A - Z.<br><br/> To submit a report under the CAC regimen, you must make certain that the code Z, which is required for these types of transactions, is in the list of operation codes.\n Description|Enter a description for the operation code. You can enter a maximum of 30 letters and numbers.\n## Link operation codes to general product posting groups\n1. Select Search (Alt+Q) in the upper-right corner, enter Posting Groups, and then choose the related link.\n1. Choose the General Product Posting Groups action.\n1. On the General Product Posting Groups page, link each operation code to a general product posting group.\n Field|Description\n Code|Enter a code to create a new general product posting group.\n Description|Enter a description for the general product posting group\n Def. VAT Prod. Posting Group|Select a VAT percentage to link it to the general product posting group.\n Operation Code|Select an appropriate operation code to link it to the general product posting group. You can assign the same operation code to different posting groups. Note: It's important to link the operation code to the correct VAT product posting group. The Make 340 Declaration report uses the setup to create trade declarations.\nWhen you add an operation code to the general product posting group, that association is in turn applied to the items that have that general product posting group.\n## Related information\nhow-to-create-report-340\nFind free e-learning modules for Business Central here<https://learn.microsoft.com/training/dynamics365/business-central>"}