Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Output set or unset during sales order save

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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