Hi Everyone,We have a requirement where we need to enable the Confirmation button for Sales orders which are of type Item requirements.My question here is, would it be feasible? If yes, how can we enable the button? I could not find the code written to disable the button when we select order of type Item requirements.Also I need to check the behavior that after confirmation how that Sales order can be used for load planning.Will enabling the button through customization break any standard functionality? If yes, should this customization be avoided?
Hi Rhushikesh,
If you have the requirement for a confirmation, have you considered creating a sales order from the project instead of an item requirement?
Hi Andre,
Yes, the item requirements are being created from Project only.
And additionally we have developed Sales order header & line entity, which creates the item requirement sales orders for a specific projects.
Hy,
may be you explain the business case behind the scene, it is not quite clear what is the purpose of the item requirement?
Hi Andreas,
The only information I have at this point of time from functional consultant is that they want to run the confirmation functionality for the Sales orders of type item requirement.
So my question is would it be feasible to run the confirmation process for item requirement sales orders?
If I try to confirm the item requirement sales order through code using below code snippet, the system did not throw any error, but it did not change the document status to Confirmed as well.
class ConfirmSO_RC { /// /// Runs the class with the specified arguments. /// /// The specified arguments. public static void main(Args _args) { SalesTable salesTable = SalesTable::find('000562'); SalesFormletter salesFormletter = SalesFormletter::construct(DocumentStatus::Confirmation); salesFormletter.update(salesTable, DateTimeUtil::getSystemDate(DateTimeUtil::getUserPreferredTimeZone()), SalesUpdate::All, AccountOrder::None, false, false); Info('confirmed'); } }
as I'm a functional consultant from my point of view the item requirement is just an internal document to control the project driven item demand. As far as I know it is not common to use a item requirement as an external document. So may be your functional consultant should consider the whole process from the perspective what is the purpose of an item requirement inside D365FO.
Hi Rhushikesh
What about other types of sales orders, what should happen to them w.r.t confirmation? there are multiple ways to handle this but i need this information before i can suggest something.
Thanks.
Hi Ritesh,
I am not aware much about the business process, since I am technical person.
But this is what have been asked for, that Confirmation should work for Sales orders of type Item requirements.
For other types, the process will remain standard.
Hi everyone, with below 2 class extensions, I am able to confirm the Sales orders of type Item requirements.Thank you for your responses.[ExtensionOf(classStr(SalesTableType_ProjectItemReq))] public final class XXXSalesTableType_ProjectItemReq_Extension { boolean mayConfirmationBeUpdated() { boolean ret = next mayConfirmationBeUpdated(); ret = true; return ret; } }
[ExtensionOf(classStr(SalesTableType_ProjectItemReq))] public final class XXXSalesTableType_ProjectItemReq_Extension { boolean mayConfirmationBeUpdated() { boolean ret = next mayConfirmationBeUpdated(); ret = true; return ret; } }
[ExtensionOf(classStr(SalesTotals_Sales))] public final class XXXSalesTotals_Sales_Extension { public void prepareTaxAmountCalculation() { next prepareTaxAmountCalculation(); // Project Accounting will calculate the taxes if (salesTable.SalesType == SalesType::ItemReq) { calculateTaxAmount = true; } } }
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 683 Most Valuable Professional
André Arnaud de Cal... 563 Super User 2025 Season 2
Sohaib Cheema 398 User Group Leader