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 :
Finance | Project Operations, Human Resources, ...
Unanswered

How will catch Ledger account in PurchPackingSlipJournalPost

(0) ShareShare
ReportReport
Posted on by 30

Hi all,

For example- suppose I have done PO - Product receipt

Then go to Product receipt- Journal - Voucher

For example - Suppose I got 2 ledger account
1. Ledger account from Posting profile
2. Ledger account from item group

Say
13501 - Posting type = PPV
13018 - Product receipt

I need at add condition like

if(postingType == PPV)

{

 //  then need to change only main account

}

else

{

// no changes

}

Those ledger accounts, I want to catch in PurchPackingSlipJournalPost

Kindly let me know how I will achieve this?

Please give me more shed on this 

I have the same question (0)
  • Hariharans87 Profile Picture
    3 on at

    I just put the breakpoint on the GeneralJournalEntry table insert method and attached the call stack for your reference.

    In this way you get the more detail on debug.

    pastedimage1629196269259v1.png

  • @rp@n Profile Picture
    30 on at

    Thanks Hariharn,

    I will check in system soon. As per the call stack what I understand that I will get the ledger account in PurchPackingSlipJournalPost in endledgerVoucher method.

    Is it correct?

    Please give me more shed on this

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans