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 find when the record will inserted at back end

(0) ShareShare
ReportReport
Posted on by 435

Hi All,

I have doubt in Sales Order invoice process record creation at back end.

If i will invoice the sales order means records will be inserted in "CustInvoiceJour" table and "GeneralJournalEntry" and "GeneralJournalAccountEntry" tables and also some tables.

My question : 

1)What are all the tables gets inserted in this invoice process

2)When the record will inserting "CustInvoiceJour", "GeneralJournalEntry", "GeneralJournalAccountEntry" tables, I want the call stacks for all this insertion at SO invoice.

Please help on this how to find.

Steps taken by me:

I have set break point in insert method of all the tables which i have mentioned above but not hitting at the time of invoice. 

Anyone help.

Thanks.

*This post is locked for comments

I have the same question (0)
  • Edselv Evert Profile Picture
    435 on at

    Hi Crispin,

    Thanks for your response.

    I have started this process at SalesFormLetter.main() method but i am not able to find the stack for this tables insertion please give some more hint on this.

    Thanks.

  • Edselv Evert Profile Picture
    435 on at

    Hi Crispin,

    I am not using Workflow for this process, I want to know about standard ax how will work based on that i will implement my new requirement. So for that i need a call stack for this table insertion.

    Thanks.

  • Edselv Evert Profile Picture
    435 on at

    Unterstand, I need help on this anyone suggest.

    Thanks.

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Postings and journalization are initiated through the FormLetter framework. If you right click that class > Add-ins > Type hierarchy browser, you could see what other classes are extending this framework, typically one for module. In your case CustInvoiceJour belongs to the Sales module, so those would be starting with the Sales* module prefix, as suggested by Crispin.

    Financial postings for journal entries are going through the LedgerJournal* and LedgerVoucher* classes, also called from the FormLetter framework.

    The easiest way to find the call stacks would be to check the cross-references for majority of the cases starting from your tables, however that might miss a couple of entries (like when RecordInsertList, UnitOfWork, or Map objects are involved).

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    Please find the call stacks(along with linenumbers) made during the salesorder invoice process below:

    CustInvoiceJour:

    [s]    \Data Dictionary\Tables\CustInvoiceJour\Methods\insert                                                  1

    [s]    \Classes\SalesInvoiceJournalCreateBase\createJournalHeader                                             62

    [s]    \Classes\SalesInvoiceJournalCreate\createJournalHeader                                                  8

    [s]    \Classes\FormletterJournalCreate\createJournal                                                         18

    [s]    \Classes\FormletterJournalCreate\run                                                                    6

    [s]    \Classes\SalesInvoiceJournalCreate\run                                                                 10

    [s]    \Classes\FormletterService\createJournal                                                               29

    [s]    \Classes\FormletterService\run                                                                         77

    [s]    \Classes\FormletterService\postSalesOrderInvoice                                                       14

    [s]    \Classes\DictClass\callObject                                                                            

    [s]    \Classes\SysOperationServiceController\runOperation                                                    93

    [s]    \Classes\SysOperationServiceController\runServiceOperation                                             22

    [s]    \Classes\DictClass\callStatic                                                                            

    [s]    \Classes\SysDictClass\invokeStaticMethod                                                               26

    [s]    \Classes\SysDictClass\invokeStaticMethodIL                                                             39

    [s]    \Classes\SysOperationRPCFrameworkService\runServiceOperation                                            5

    [c]    \Classes\SysOperationServiceController\runOperationWithRunAs                                            7

    [c]    \Classes\SysOperationServiceController\run                                                             22

    [c]    \Classes\FormLetterServiceController\run                                                                3

    [c]    \Classes\SalesFormLetter\run                                                                           77

    [c]    \Classes\SalesFormLetter_Invoice\run                                                                    6

    [c]    \Classes\SalesFormLetter\main                                                                         100

    [c]    \Classes\FormFunctionButtonControl\Clicked                                                              

    GeneralJournalEntry:

    [s]    \Data Dictionary\Tables\GeneralJournalEntry\Methods\Insert                                              1

    [s]    \Classes\RecordSortedList\insertDatabase                                                                

    [s]    \Classes\LedgerPostingGeneralJournalController\transferReferences                                      48

    [s]    \Classes\LedgerPostingGeneralJournalController\transfer                                                11

    [s]    \Classes\LedgerVoucher\post                                                                            92

    [s]    \Classes\LedgerVoucherPost\end                                                                         10

    [s]    \Classes\FormletterJournalPost\endLedgerVoucher                                                         6

    [s]    \Classes\SalesInvoiceJournalPostBase\endLedgerVoucher                                                  18

    [s]    \Classes\SalesInvoiceJournalPost\endLedgerVoucher                                                      16

    [s]    \Classes\FormletterJournalPost\post                                                                   256

    [s]    \Classes\FormletterJournalPost\run                                                                     11

    [s]    \Classes\SalesInvoiceJournalPostBase\run                                                                6

    [s]    \Classes\SalesInvoiceJournalPost\run                                                                   30

    [s]    \Classes\FormletterService\postJournal                                                                 42

    [s]    \Classes\FormletterService\run                                                                         80

    [s]    \Classes\FormletterService\postSalesOrderInvoice                                                       14

    [s]    \Classes\DictClass\callObject                                                                            

    [s]    \Classes\SysOperationServiceController\runOperation                                                    93

    [s]    \Classes\SysOperationServiceController\runServiceOperation                                             22

    [s]    \Classes\DictClass\callStatic                                                                            

    [s]    \Classes\SysDictClass\invokeStaticMethod                                                               26

    [s]    \Classes\SysDictClass\invokeStaticMethodIL                                                             39

    [s]    \Classes\SysOperationRPCFrameworkService\runServiceOperation                                            5

    [c]    \Classes\SysOperationServiceController\runOperationWithRunAs                                            7

    [c]    \Classes\SysOperationServiceController\run                                                             22

    [c]    \Classes\FormLetterServiceController\run                                                                3

    [c]    \Classes\SalesFormLetter\run                                                                           77

    [c]    \Classes\SalesFormLetter_Invoice\run                                                                    6

    [c]    \Classes\SalesFormLetter\main                                                                         100

    [c]    \Classes\FormFunctionButtonControl\Clicked                                                              

    [c]    \Forms\SalesTable\Designs\DesignList\buttonUpdateInvoice\Methods\Clicked                                9

    GeneralJournalAccountEntry:

    [s]    \Data Dictionary\Tables\GeneralJournalAccountEntry\Methods\Insert                                      10

    [s]    \Classes\RecordSortedList\insertDatabase                                                                

    [s]    \Classes\LedgerPostingGeneralJournalController\transferLines                                          103

    [s]    \Classes\LedgerPostingGeneralJournalController\transferReferences                                     125

    [s]    \Classes\LedgerPostingGeneralJournalController\transfer                                                11

    [s]    \Classes\LedgerVoucher\post                                                                            92

    [s]    \Classes\LedgerVoucherPost\end                                                                         10

    [s]    \Classes\FormletterJournalPost\endLedgerVoucher                                                         6

    [s]    \Classes\SalesInvoiceJournalPostBase\endLedgerVoucher                                                  18

    [s]    \Classes\SalesInvoiceJournalPost\endLedgerVoucher                                                      16

    [s]    \Classes\FormletterJournalPost\post                                                                   256

    [s]    \Classes\FormletterJournalPost\run                                                                     11

    [s]    \Classes\SalesInvoiceJournalPostBase\run                                                                6

    [s]    \Classes\SalesInvoiceJournalPost\run                                                                   30

    [s]    \Classes\FormletterService\postJournal                                                                 42

    [s]    \Classes\FormletterService\run                                                                         80

    [s]    \Classes\FormletterService\postSalesOrderInvoice                                                       14

    [s]    \Classes\DictClass\callObject                                                                            

    [s]    \Classes\SysOperationServiceController\runOperation                                                    93

    [s]    \Classes\SysOperationServiceController\runServiceOperation                                             22

    [s]    \Classes\DictClass\callStatic                                                                            

    [s]    \Classes\SysDictClass\invokeStaticMethod                                                               26

    [s]    \Classes\SysDictClass\invokeStaticMethodIL                                                             39

    [s]    \Classes\SysOperationRPCFrameworkService\runServiceOperation                                            5

    [c]    \Classes\SysOperationServiceController\runOperationWithRunAs                                            7

    [c]    \Classes\SysOperationServiceController\run                                                             22

    [c]    \Classes\FormLetterServiceController\run                                                                3

    [c]    \Classes\SalesFormLetter\run                                                                           77

    [c]    \Classes\SalesFormLetter_Invoice\run                                                                    6

    [c]    \Classes\SalesFormLetter\main                                                                         100

    [c]    \Classes\FormFunctionButtonControl\Clicked                                                              

    [c]    \Forms\SalesTable\Designs\DesignList\buttonUpdateInvoice\Methods\Clicked                                9

    Hope this information helps you.

    Thanks,

    Chaitanya Golla

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