Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

Add new elemet for Enum -ReqPoStatus

Posted on by 2,065

Dear All,

In Master Planning module, at Planned order we have list of planned order item,

on status column, its has 3 element, unprocessed, completed and approved.

I check at reqpo table, its field use base enum reqpostatus,

my question is, if I add new element "Block" with enum value "3"

is there any impact from system side ? since I add new element ?

Please help to advice.

Appreciate your help in advance.

Thank you

New-Element-for-Enum.png

  • benjamin84 Profile Picture
    benjamin84 2,065 on at
    RE: Add new elemet for Enum -ReqPoStatus

    Dear Andre,

    well noted,

    Un grand merci pour ton aide.

    Thanks

  • Verified answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 288,420 Super User on at
    RE: Add new elemet for Enum -ReqPoStatus

    Hi Benjamin,

    For the standard behavior, we are on the same page. For your customization, you can try to let AX do the normal calculation and deduct at the end of the calculation the quantity which are set to 'Blocked' (new enum). I think you can then stay out of the standard calculations.

  • benjamin84 Profile Picture
    benjamin84 2,065 on at
    RE: Add new elemet for Enum -ReqPoStatus

    Hi Andre,

    Sorry for late reply,

    for your concern "If you had a planned order yesterday with qty 10 and it would be recalculated as 14 today, do you want to have two planned orders or one?"

    let me clarify again the scenario,

    previously , we only have 1 planned order id with 10 pcs, standart ax => when its still unprocessed and Master Planning run again, it will have 1 planned order with 14 pcs right.

    currently using standart ax, if we change the status into complete or approved, then when master planning run again, it will create another planned order with 4 pcs.

    do we at the same page for this result ?

    yes, thank you for your advice,

    I already talked again with our user, our user will stick to use completed status or approved status, so when master planning run again it will create another planned order with 4 pcs with unprocessed status.

    thank you.

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 288,420 Super User on at
    RE: Add new elemet for Enum -ReqPoStatus

    Hi Benjamin,

    If you need to split in two planned orders, the impact is huge and it might be error prone! You have to change the core engine of the MRP planning in that scenario. This is far from recommended. You have to help the user getting a future proof system. Verify if the same customization could be applied on Dynamics 365 where a micro-service is used for MRP planning. If the user takes the risk, it would be up to him, but help him understand that the same customization might be not possible on Dynamics 365.

    See also:

    docs.microsoft.com/.../planning-optimization-overview

    community.dynamics.com/.../dynamics-365-supply-chain-management---planning-optimization-service-february-21-2020

    I had a customer in the past who wanted to have changes in the calculation logic as well. We explained the impact and the customer did understand our concerns. We did not do it and searched together with the customer for another way of achieving his requirement.

  • benjamin84 Profile Picture
    benjamin84 2,065 on at
    RE: Add new elemet for Enum -ReqPoStatus

    Hi Andre,

    I already inform from system-wise, but user insist.

    We will have 2 planned order id, for qty 10 and 4.

    my user want to freeze some planned order id since those information will be keep for history of purchase order creation.

    Thank for your reminder andre.

    apreciate

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 288,420 Super User on at
    RE: Add new elemet for Enum -ReqPoStatus

    Hi Benjamin,

    I wonder if your requirement is the best choice. When you run the master planning, it will re-evaluate all conditions and see if the quantity and dates are still valid. If you had a planned order yesterday with qty 10 and it would be recalculated as 14 today, do you want to have two planned orders or one?

    Is the planned order ID important to you? Personally, I would try to avoid this customization and use the standard.

  • benjamin84 Profile Picture
    benjamin84 2,065 on at
    RE: Add new elemet for Enum -ReqPoStatus

    Dear Ada,

    Dear Sergei,

    Appreciate your help.

    thank you

  • benjamin84 Profile Picture
    benjamin84 2,065 on at
    RE: Add new elemet for Enum -ReqPoStatus

    Hi Ada,

    Yes, thank you for explanation,

    right now, I checking to check the class for those enum value.

    would be nice if anyone could inform the class, specifically the method those enum called/processed.

    Thanks

  • Verified answer
    Jie G Profile Picture
    Jie G on at
    RE: Add new elemet for Enum -ReqPoStatus

    Adding new element into an existing Enum type won't impact anything else, as long as the existing elements are not changed. However, you should check how the Enum was used to make it work.

    E.g. If the code is if(status != Enum.E1 and status != Enum.E2){ //then the code assume it as Enum.E3}, then adding a new E4 will not work in the if clause.

  • benjamin84 Profile Picture
    benjamin84 2,065 on at
    RE: Add new elemet for Enum -ReqPoStatus

    Dear Andre,

    my company want to have planned order with status "block", so each time master planning run daily, planned order id not change,

    current, unprocessed status will be processed by master planning make those item have new planned order id again.

    i add on hold status, but system treat its as unprocessed status, hence its has new planned order id.

    i want on hold status and planned order id not change.

    Thanks 

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,420 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,672 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans