Skip to Content

Need to bypass Material substitution rule for SO created through RFC

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Sep 20, 2011 at 02:58 AM

    You could define a requirement in the substitution procedure. Transaction VOFM then requirements material determination to define and transaction SM34 on VVC_T683_XX_DV to assign it to your relevant procedures.

    Regards Jack

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.