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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Answered

Not able to add directive code to Purchase order work type- Put

(0) ShareShare
ReportReport
Posted on by Super User 2025 Season 2

we have a scenario where we are keeping an incoming stock to intermediate location and then transfer to Bulk location in warehouse. I am trying to set up work template and facing below issue:

Not able to add directive code to purchase order type - Put.

pastedimage1665567032355v1.png

Can any one help me out?

I have the same question (0)
  • Suggested answer
    Grygory.Ivanov Profile Picture
    on at

    Sagar,

    I believe this is behavior by design. In such cases you would want to keep your put directive for the last step last in your list of location directives. When everything else is evaluated (every other directive code), last one with no directive comes into play. This makes sense as you would want to have generic no-directive code instruction for cases when nothing else matching, and for cases like yours, too.

  • sagar_patil Profile Picture
    Super User 2025 Season 2 on at

    Grygory, I din't understand what you are saying...can u please elaborate more?

  • Grygory.Ivanov Profile Picture
    on at

    What I was trying to get to is:

    - Work templates must have last step without directive code - otherwise it is intermediate step;

    - When this last step is evaluated, system is trying to find generic location directive (without directive code);

    - Using generic location directive for Put action is usually a good thing as you will always have a location rule, which you can override if you want;

    So, lets imagine this is your work template:

    work-templates.png

    Step 5 will not have directive code as this is the last step.

    However, system will loop through all Put directives anyway. Here is, for example, what you might have:

    location-directives.png

    so step 3 in the work template will be evaluated and location directive with specific directive code will be found. All PUT location directives except the last one (#50) have directive code. #50 does not have anything as shown above.

    Step 5 will loop through all location directives - and will stop at #50 only. This kind of setup allows getting staging steps addressed always first, and last step will be always a final location. If you have multiple rules for final locations - there is a query that you can build on top of that, too.

  • sagar_patil Profile Picture
    Super User 2025 Season 2 on at

    Hi Grygory, This approach work fine in case of Sales order. But my ask is for Purchase order. Without linking Directive code on work template to directive code on location directive, system is not giving me final put location.

    pastedimage1665634871404v1.png

  • Verified answer
    Grygory.Ivanov Profile Picture
    on at

    OK, but it is still the same even in case of POs. You need to use no disposition code location directive.

    Example of the work template is:

    work-templates_2D00_2.png

    Location directives are:

    1411.location-directives_2D00_2.png

    It will give you the location in your work if you set at least one location directive with empty directive code. You may have more than one location directive with empty directive code! But you can also use other fields, like disposition code - to specify pallet size, for example, and specific locations that must be assigned in such case.

    P.S. In my example of location directives above, empty directive code record goes first before other more specific ones. This is done to identify the final location first, and then assign proper staging area (low-bay). 

    If you still get empty final location with this setup - it is a good idea to check work creation history log and check if locations in the empty directive can be picked for the work.

  • sagar_patil Profile Picture
    Super User 2025 Season 2 on at

    Thank you so much. It worked for me.

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

News and Announcements

[Smoke test 2510.1]

Quick Links

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans