Notifications
Announcements
No record found.
Gen. Journal Line
To access Shortcut Dimension 3 Code and other additional shortcut dimensions in AL, you need to use the GetDimensionSet or GetShortcutDimensionCode function from the Codeunit DimensionManagement.
GetDimensionSet
GetShortcutDimensionCode
Codeunit DimensionManagement
DimensionSetID
DimensionManagement
Here’s an example code snippet:
al Copy code
procedure GetShortcutDimension3Code(GenJnlLine: Record "Gen. Journal Line"): Code[20] var DimensionManagement: Codeunit "Dimension Management"; ShortcutDimensionCode3: Code[20]; begin // Retrieve Shortcut Dimension 3 Code ShortcutDimensionCode3 := DimensionManagement.GetShortcutDimensionCode(3, GenJnlLine."Dimension Set ID"); exit(ShortcutDimensionCode3); end;
Dimension Set ID
3
GetShortcutDimensionCode(DimensionNo: Integer; DimensionSetID: Integer): Code[20]
General Ledger Setup
GetDimensions
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 2,116
Khushbu Rajvi. 764 Super User 2025 Season 2
YUN ZHU 635 Super User 2025 Season 2