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)

Inventory recalc batch job relative date parameter

(0) ShareShare
ReportReport
Posted on by

My company wants to run Recalc Inventory as a periodic scheduled batch job at 11:00 pm each night. We need to be able to specify one of the parameters - "Recalculate inventory up to" to be the current date of the job.

The form does not allow a date formula, or for that matter, anything other than a finite date chosen from the Date/Calendar choice popup.

 I have looked at using a period code with no success.  Maybe I don't know how to set it up properly to generate the current date in the "up to" date parameter.

Does someone have the recipe?

Thanks.

Denis

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    I am not sure about the date formula you are referring to. As per Inventory recalculation is concerned, value for the field "Recalculate inventory up to" is stored in date variable transdate on class InventCostClosing(base class of InventCostClosingRecalc) and business logic is available in method initInventClosing of class InventCostClosing(line #25).

    If we specify period code, this value is defaulted based on period code(code is available

    in method initTransDate of class InventCostClosing).

    Please let me know if anything is missing/required.

    Thanks,

    Chaitanya Golla

  • Suggested answer
    guk1964 Profile Picture
    10,888 on at

    see https://community.dynamics.com/ax/f/33/t/187189

    Basically you can make it work with a future date but that affects GL posting

    Otherwise you need a customisation to use today's date when run in batch mode.

    https://www.axug.com/communities/community-home/digestviewer/viewthread?GroupId=205&MID=14715&tab=digestviewer&CommunityKey=182d53cf-429b-4c75-a580-d5950846fd14

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans