Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Auto reserve an InventTrans

Posted on by 360

Hi all,

this is my scenario.

I have a salesline with qtyordered = 2, that was automatically reserved by the system (1 piece with batchid 0001 and 1 piece with batchid 0002).

 i remove manually the reservation for the piece with batchid 0001 and assigned to another order, so it is not available right now.

Through code, i need to reserve ONLY the inventTrans related to batch 0001 considering that now i have availability in batchid 0003 and batch 0004 and the code must follow all the standard logic like a salesline creation. The only difference is that the auto reservation has to reserve only an inventTrans and not all the inventtransid.

Thanks

Nino

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,280 Super User 2024 Season 2 on at
    RE: Auto reserve an InventTrans

    Hi Nino,

    I have no suggestions here. I never had the requirement to change the standard behavior of reservations. You can try to use the debugger and see what standard logic is triggered when you change the reservation manually. Then you might get an idea where to hook in.

  • nino232323 Profile Picture
    nino232323 360 on at
    RE: Auto reserve an InventTrans

    Hi Andrè,

    I'm creating an auto reservation for an invent trans related to a sales line (not all the salesLine but a piece).

    Thanks

    Nino

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,280 Super User 2024 Season 2 on at
    RE: Auto reserve an InventTrans

    Hi Nino,

    Are you creating an auto reservation for another document type then sales orders or are you adjusting the existing logic of auto reservation on sales lines?

  • nino232323 Profile Picture
    nino232323 360 on at
    RE: Auto reserve an InventTrans

    Hi Andrè, sorry for the delay with my answer.

    The requirement is to replicate the auto reservation done by the system when a new sales line is created. The only difference is that I need to reserve only a part of inventTransId (an invent trans).

    I'm trying to use the InventUpd_Estimated class, but it works only with all the inventTransId.

    Thanks.

    Nino

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,280 Super User 2024 Season 2 on at
    RE: Auto reserve an InventTrans

    Hi Nino,

    I'm a bit lost here. What is the exact business requirement? You are talking about both reservations and a sales order creation. I would like to understand what exact requirement you are trying to fulfill.

    Can you also tell where exactly you need help? Did you do some coding yourself already? Is the outcome incorrect or do you have errors?

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

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans