Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)
Suggested answer

Automatic batch creation for the inventory journals

(0) ShareShare
ReportReport
Posted on by 4,624

I was asked to create, invent batch for the inventory journal at the time of posting the journal. With the JournalTransList object in the JournalCheckPost class (check journal), not able to update the invent journal trans table at the time of validation/posting. Have placed the code in the journal line insertion and thinking it wasn't the right time to create the invent batch yet we do create journals in the standard way as well as through interface. Kindly suggest the best place to update invent journal trans with invent batch at the time validation / posting.

*This post is locked for comments

  • Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Automatic batch creation for the inventory journals

    Hello Harish,

    Do you mind marking Kakileti's as verified answer?

    Would be great.

    Many thanks and best regards,

    Ludwig

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Automatic batch creation for the inventory journals

    Thank you Kakileti..

    your solution is very helpful, it solved my problem.

    Regards,

    Harish gundety

  • Maxim Gorbunov Profile Picture
    Maxim Gorbunov 456 on at
    RE: Automatic batch creation for the inventory journals

    Hi Udhaya,

    You do not need to write any code for this. Just use batch number groups (technet.microsoft.com/.../aa591648.aspx)

    Regards,

    Maxim

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Automatic batch creation for the inventory journals

    Hi Udhaya chandran,

    I would like to suggest you to debugg and write your code in the following class,

    at Validation : "JournalCheckPost\checkJournal"

    at Posting     : "JournalCheckPost\runPost"

    or

    after Posting : "JournalCheckPost\runPostEnd"

    adding caller table id condition.

    Thanks,

    Satish Kakileti.

    Note: If my answer is helpful, please mark it as answer.

  • udaY-ch Profile Picture
    udaY-ch 4,624 on at
    RE: Automatic batch creation for the inventory journals

    Hi Ludwig,

    Thanks for your reply!!! We do create inventory journals through interface as well as through standard way -> InventoryManagement\Journals\Item transactions\Inventory adjustment. At the time of posting, I'm supposed to create and update the inventatchId to the stock dimension.

    This has to be applicable (updating InvetBatchId while posting) for both manual journal creation and automatic journal creation and posting (through the interface).

  • Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Automatic batch creation for the inventory journals

    Hello udhaya chandran,

    I am not sure what you want to achieve exactly. Is it that you want to have inventory journals automatically posted through a Batch Job or is it that you want to have them automatically created? For that latter case, what are the criteria and the Trigger for the automatic creation?

    Would be great if you could provide some background info on the requierment.

    Many thanks,

    Ludwig

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans