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

  • Edselv Evert Profile Picture
    435 on at
    RE: How to find when the record will inserted at back end

    Hi,

    Anyone help on this,

    Thanks.

  • Edselv Evert Profile Picture
    435 on at
    RE: How to find when the record will inserted at back end

    hi Crispin,

    I have inserted the record in my table, and my table have credit and debit fields this both fields referred Ledger Dimensions based on this records i will insert two records(One is Debit and other one is credit) in "GeneraljournalAccountEntry" table.Where i will write the code for that.

    Thanks.

  • Vilmos Kintera Profile Picture
    46,149 on at
    RE: How to find when the record will inserted at back end

    Kindly mark all helpful answers next to each post with a checkbox. Open a new topic for a new question, so it does not get too long and confusing about the content.

  • Edselv Evert Profile Picture
    435 on at
    RE: How to find when the record will inserted at back end

    Hi All,

    Thanks for your help, i have followed your suggestion and i have found how the record will inserted. Please help next scenario,

    During invoice i want to insert sales order line details to my customized table so for that where i will start to write the code i.e as per best practice where i will write the code to insert data to my table.

    Any one help.

    Thanks.  

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at
    RE: How to find when the record will inserted at back end

    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

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at
    RE: How to find when the record will inserted at back end

    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).

  • Edselv Evert Profile Picture
    435 on at
    RE: How to find when the record will inserted at back end

    Unterstand, I need help on this anyone suggest.

    Thanks.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 48

#3
shanawaz davood basha Profile Picture

shanawaz davood basha 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans