{"title":"Pragma directives and actions in AL","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/directives/devenv-directive-pragma/","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/dev-itpro/developer/directives/devenv-directive-pragma, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (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/dev-itpro/developer/directives/devenv-directive-pragma","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Explore the pragma directives and supported actions that control compiler warnings and implicit record contexts in Microsoft Dynamics 365 Business Central.","date":"2026-10-05","meta":{"topic":"overview"},"outline":[{"level":1,"title":"Pragma directives and actions in AL","slug":"pragma-directives-and-actions-in-al","at":0,"chars":850},{"level":2,"title":"Supported pragma directives","slug":"supported-pragma-directives","at":99,"chars":437},{"level":2,"title":"Related information","slug":"related-information","at":536,"chars":314}],"text":"# Pragma directives and actions in AL\n> APPLIES TO: Business Central 2020 release wave 2 and later\n## Supported pragma directives\nThe `#pragma` directive gives the compiler special instructions for the compilation of the file in which it appears. AL supports two pragma instructions. `#pragma warning` supports the disable and restore actions. `#pragma implicitwith` supports the enable, disable, and restore actions.\nAL supports the following pragma instructions:\n devenv-directive-pragma-implicitwith\n devenv-directive-pragma-warning\n## Related information\nDevelopment in AL<../devenv-dev-overview>\nAL development environment<../devenv-reference-overview>\nRegion directive in AL<devenv-directive-region>\ndevenv-directives-in-al#conditional-directives\nDeprecating explicit and implicit with statements<../devenv-deprecating-with-statements-overview>"}