{"title":"Codeunit 6243 Sust. Entry Reverse Mgt., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/6243-sust-entry-reverse-mgt/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":6243,"name":"Sust. Entry Reverse Mgt.","app":"Sustainability","url":"https://jonas-paprotka.de/ref/codeunit/6243-sust-entry-reverse-mgt/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/6243-sust-entry-reverse-mgt/source/","path":"src/Apps/W1/Sustainability/app/src/Ledger/SustEntryReverseMgt.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"table:6261":{"name":"Sust. G/L - Sust. Ledger Rel.","url":"https://jonas-paprotka.de/ref/table/6261-sust-g-l-sust-ledger-rel/"},"codeunit:8703":{"name":"Feature Telemetry","url":"https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/"},"codeunit:27":{"name":"Confirm Management","url":"https://jonas-paprotka.de/ref/codeunit/27-confirm-management/"},"table:6210":{"name":"Sustainability Account","url":"https://jonas-paprotka.de/ref/table/6210-sustainability-account/"},"codeunit:408":{"name":"DimensionManagement","url":"https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/"},"table:6216":{"name":"Sustainability Ledger Entry","url":"https://jonas-paprotka.de/ref/table/6216-sustainability-ledger-entry/"}},"procs":[{"name":"ReverseEntry","line":22,"kind":"procedure","params":1,"steps":[[28,"call","ValidateEntryForReversal",1],[30,"call","CreateReversalEntry",2],[31,"call","UpdateOriginalEntry",2],[33,"ext","table",6261,"RemoveRelations",1],[35,"ext","codeunit",8703,"LogUsage",3],[37,"event","OnAfterReverseEntry",0]]},{"name":"ReverseEntries","line":40,"kind":"procedure","params":1,"steps":[[57,"ext","codeunit",27,"GetResponseOrDefault",2],[65,"call","ValidateEntryForReversal",1],[71,"call","ReverseEntry",1]]},{"name":"ReverseEntriesForGLEntry","line":77,"kind":"procedure","params":1,"steps":[[88,"call","ReverseEntry",1]]},{"name":"ValidateEntryForReversal","line":92,"kind":"procedure","access":"local","params":1,"steps":[[112,"ext","table",6210,"CheckAccountReadyForPosting",0],[115,"ext","codeunit",408,"CheckDimIDComb",1],[116,"ext","codeunit",408,"GetDimCombErr",0],[120,"ext","codeunit",408,"CheckDimValuePosting",3],[121,"ext","codeunit",408,"GetDimValuePostingErr",0]]},{"name":"CreateReversalEntry","line":124,"kind":"procedure","access":"local","params":2,"steps":[[133,"validate",6216,"User ID"],[156,"event","OnBeforeInsertReversalSustainabilityLedgerEntry",0],[157,"write",6216,"Insert",1]]},{"name":"UpdateOriginalEntry","line":160,"kind":"procedure","access":"local","params":2,"steps":[[164,"write",6216,"Modify",1]]}]}