08-13-2013 4:40 PM
Hello,
We have an output type determine during sales order creation. we need to create a requirement routine for the output type so that output is trigerred from sales order when certain condition are satisfied. Now we know that requirement routine gets triggered on creating the sales order(before save )
The issue is there are certain data which gets populated during save of sales documents and we want to check that data in output requirment routine and based on the conditions we want to decide whether to trigger the output or not during saving the sales order.
If we code in VOFM routine, it will trigger before the save. We can code in user exit, save document prepare in MV45AFZZ. The issue is how can the functionality of VOFM routine can be achieved in a sales order exit. If we code the same logic if req rotuine in user exit, I do not think so that the output will be set/unset during sales order save ?
regards
Pamela
08-14-2013 8:07 AM
Rather than setting the output in requirement routine why not keep the check in the driver program.
If the condition is met trigger the output else post appropriate meesage and exit.
Regards