12-18-2007 8:38 PM
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
01-08-2008 7:57 PM
Only solution was a repair to SAP, so we found way for standard SAP to handle it.