Skip to Content
0
Sep 19, 2011 at 10:00 PM

Need to bypass Material substitution rule for SO created through RFC

811 Views

Hello SAP Geniuses,

I have an external process that creates Sales orders using a RFC calling BAPI_SALESORDER_CREATEFROMDAT2.

My Users want to create orders for Materials that have substitution rules defined, but they want to bypass these rules when the Sales Orders are created from the external process. Other Users in the same Sales Organization and Distribution Channel need the substitution rule to sell these materials, so config cannot solve this.

I have already tried detecting when VBAP-MATNR NE VBAP-MATWA and calling BAPI_SALESORDER_CHANGE with the original MATNR, but the same substitution occurs in this FM.

Can anyone point me to a User Exit or BADI that can add flexibility to the Material Substitution mechanism in SD module?