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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Which class is executing Purchase order product receipt

(0) ShareShare
ReportReport
Posted on by 692

Hi All,

I have a requirement

I created two new fields in product receipt form Line level (in purchParmline ).

P4.png

If product receipt is successfully generate then only i wanted to insert these two new fields information into my new table along with inventtransid.

I tried in purchFormletter class but my efforts goes in vain.

If product receipt is successful it will create records in VendPackingSlipJour and VendPackingSlipTrans tables

in this tables i placed debugger, but debugger not raising.

don't' know where i have to write my code.after completion of product receipt in purchase order.

can u give me some suggestions.

Thanks,

Krishna 

*This post is locked for comments

I have the same question (0)
  • Mohammad Raziq Ali Profile Picture
    2,488 on at

    Hi Krishna,

    Please have a look at InventMovement_Purch Class.

    Thanks,

    Raziq

  • Community Member Profile Picture
    on at

    Hi, I have a similar requirement. I need to insert some data into a custom table once product receipt is successfully posted. Did you find any solution for this?

  • Community Member Profile Picture
    on at

    Thanks Sukrut, will trace and get back to you.

  • Community Member Profile Picture
    on at

    Hi Sukrut,

    I tried putting a debugger in PurchPackingSlipJournalCreate in initJournalLine method, the debugger was never fired. Any other suggestions?

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

    Hi,

    Please find the call stack below when we try to post ProductReceipt for a purchase order.
    You can place a breakpoint in the method PostPurchaseOrderPackingSlip(line#14) of class FormletterService.

    [s] \Classes\FormLetterVersionableJournalCreate\createJournalHeader 8
    [s] \Classes\FormletterJournalCreate\createJournal 18
    [s] \Classes\FormletterJournalCreate\run 6
    [s] \Classes\FormletterService\createJournal 29
    [s] \Classes\FormletterService\run 77
    [s] \Classes\FormletterService\PostPurchaseOrderPackingSlip 14
    [s] \Classes\DictClass\callObject 
    [s] \Classes\SysOperationServiceController\runOperation 93

    To make the breakpoint to hit, please disable the checkbox "Execute business operations in CIL" on options window
    (Tools > Options) as shown below.

    Breakpoint.jpg

    Hope this helps you.

  • Community Member Profile Picture
    on at

    Hi Chaitanya,

    Thank for the help.

    I reached to posting part in the run method of FormLetterService. However this place holds code that is too generic. I am afraid that this might not be the right place to make a customization that is specific to posting of new product receipts.

    To keep things a little concise I want to write the code in postPurchaseOrderPackingSlip method. My problem here is I do not have access to purchParamTable record which has the two custom fields I have added.

    From what I understand the run code generates the FormLetterParamTable object which is a Map. Once that's created it loops on it to get the product receipt headers one by one.

    The data that I am looking for is here in the loop but a change here means I will change in a code that's generic to any document posting

  • Community Member Profile Picture
    on at

    Ok I had made an assumption here. I went through the debugger, the code never passes by FormLetterService.postPurchaseOrderPackingSlip  methid while posting a product receipt

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans