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
Hello Harish,
Do you mind marking Kakileti's as verified answer?
Would be great.
Many thanks and best regards,
Ludwig
Thank you Kakileti..
your solution is very helpful, it solved my problem.
Regards,
Harish gundety
Hi Udhaya,
You do not need to write any code for this. Just use batch number groups (technet.microsoft.com/.../aa591648.aspx)
Regards,
Maxim
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.
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).
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156