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: 

Need a user exit before material substitution executes in VA01, 02

Former Member
0 Kudos

My client has a unique need in SAP AFS. When entering an order, they have material substituion turned on and they want it to always execute. The problem is that we have a custom FM that must execute prior to material substitution - it will determine the material first and then material substitiion should use THAT material to detemine if it needs to substitue a material/grid. I have put break points in every exit I could find in the SAPMV45A exits. The one I would normally use is in MV45AFZZ for changes for VBAP, VBEP, etc. - but no matter what exit I put a break in for debugging (to see when it is called during order entry) - material substituion always executes first. yes, the exit for VBAK executes prior to material substition but that is at the header - I need the order lines. Also note that we are talking about the UPC/EAN tab - we are entering a UPC code and that gets the material/grids we need - this is not on the normal order line screen.

Does anyone have any ideas?

As always - points for helpful answers.

Thanks.

Scott

1 REPLY 1

Former Member
0 Kudos

Only solution was a repair to SAP, so we found way for standard SAP to handle it.