Sometime we may come under a situation where we have to close the sales order through code.
Keyword DIVSOHCLE is used to close the sales order record.
For example:
Below is a sales order which we have to close through our code.
Use the keyword as below:
Pass the sales order number as the parameter and run the code.
Check the sales order code once the code is process, you will find the sales order get closed completely and we won’t be able modify the record.
As DIVSOHCLE is used to close the sales order completely DIVSOQCLE is used to close the particular lines of sales order.
Hence, with the help of above keyword we can manage ho to close the sales order I.e completely or partly.