web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

how to map the general journal account entry and budget tmp balance in ax 2012 r3

(0) ShareShare
ReportReport
Posted on by 1,737

i am unable to find out the relation between the budget tmp balance and general journal account entry.

try to write the below code in budget tmp balance table insert method.

select generalJournalAccountEntry
where generalJournalAccountEntry.LedgerAccount == this.DimensionFocus;

but it is not working

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,146 Super User 2025 Season 2 on at

    Hi Srinivas,

    The BudgetTmpBalance is a temporary table. It has no relation. What are you trying to achieve functionally? Just selecting a record in another table on an insert method has no use. Why are you trying to create a link if it is a temporary table?

  • srinivas pamidi Profile Picture
    1,737 on at

    Hi Andre,

    I am writing the below code to getting the Dimension Focus  description in Actuals vs budget report.

    select generalJournalAccountEntry

       where generalJournalAccountEntry.LedgerAccount == this.DimensionFocus;//"2221100-00000021-00000101-00000027";

       //Fetch the Value combination record

       dimensionAttributeValueCombination = DimensionAttributeValueCombination::find(generalJournalAccountEntry.LedgerDimension);

       // Get dimension storage

       dimensionStorage = DimensionStorage::findById(generalJournalAccountEntry.LedgerDimension);

       if (dimensionStorage == null)

       {

           throw error("@SYS83964");

       }

       // Get hierarchy count

       hierarchyCount = dimensionStorage.hierarchyCount();

       //Loop through hierarchies to get individual segments

       for(hierarchyIndex = 1; hierarchyIndex <= hierarchyCount; hierarchyIndex++)

       {

           //Get segment count for hierarchy

           segmentCount = dimensionStorage.segmentCountForHierarchy(hierarchyIndex);

           //Loop through segments and display required values

           for (segmentIndex = 1; segmentIndex <= segmentCount; segmentIndex++)

           {

               // Get segment

               segment = dimensionStorage.getSegmentForHierarchy(hierarchyIndex, segmentIndex);

               // Get the segment information

               if (segment.parmDimensionAttributeValueId() != 0)

               {

                   // Get segment name

                   segmentName = DimensionAttribute::find(DimensionAttributeValue::find(segment.parmDimensionAttributeValueId()).DimensionAttribute).Name;

                   //Get segment value (id of the dimension)

                   segmentValue        = segment.parmDisplayValue();

                   //Get segment value name (Description for dimension)

                   if(segmentName == 'MainAccount')

                   {

                   MainAccountDescription  = segment.getName();

                   }

                   if(segmentName == 'BusinessUnit')

                   {

                   BusinessUnitDescription  = segment.getName();

                   }

                   if(segmentName == 'Zone')

                   {

                   ZoneDescription  = segment.getName();

                   }

                   if(segmentName == 'Department')

                   {

                   DepartmentDescription  = segment.getName();

                   }

                   this.SG_Name = MainAccountDescription + ' -' + BusinessUnitDescription + ' -' + ZoneDescription + ' -' + DepartmentDescription;

               }

           }

       }

    But relation between the general journal account entry and budget tmp balance are not working.

    Can you guide me is any other way to get the dimension focus description in report.

    In Report first record of dimension focus is

    2221100-00000021-00000101-00000027

    i want to display like this.

    Raw Materials - RIL-1-West-Purchase

  • Verified answer
    srinivas pamidi Profile Picture
    1,737 on at

    Now it is Completed.

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans