A material is to used till the stock of the material is there, and when the stock gets exhausted, it has to be discontinued.
This material is the header material of a BOM.
The requirement is that once the stock is exhausted, new sales order should not be allowed to be created.
How to specify that sales to be allowed for this material till stock is available?
Which user exit should be used for this?