Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Dynamically creating AA distribution for Journal Entry

Posted on by Microsoft Employee

I am trying to create AA distributions for a saved GL Journal Entry.  I am using the econnect sql procedure taAnalyticsDistribution in my Dexterity code, but the AA is not created.  

Only AAG10000, AAG10002 & AAG10003 are getting affected, but with wrong values and the table AAG10001 does not get affected i.e., no record is created in this table.

FYI, the GL Journal Entry is also dynamically created from my code.  I try to create the AA distribution after I successfully create the Journal.  

Below are the parameters that I pass to the taAnalyticsDistribution procedure

EXEC @return_value = [dbo].[taAnalyticsDistribution]

@I_vDOCNMBR = N'3859',

@I_vDOCTYPE = 0,

@I_vaaAssignedPercent = 60,

@I_vDistSequence = 16384,

@I_vACTINDX = 1,

@I_vaaTrxDimID = 3,

@I_vaaTrxCodeID = 4,

@I_vaaSubLedgerHdrID = 224,

@I_vaaSubLedgerDistID = 16384,

@I_vaaSubLedgerAssignID = 1,

@I_vUpdateIfExists = 2,

@O_iErrorState = @O_iErrorState OUTPUT,

@oErrString = @oErrString OUTPUT

Thanks,

Islam

*This post is locked for comments

  • Naga Kiran Profile Picture
    Naga Kiran on at
    RE: Dynamically creating AA distribution for Journal Entry

    Are you getting any error as output. if so please share that.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans