Application Development and Automation 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: 
Read only

Avoid substitute material.., while creating sales order with BAPI?

Former Member
0 Likes
1,075

Hi experts.

I use BAPI_SALESDOCU_CREATEFROMDATA1 function module to create a sales order.

Material A has a substitute material B with substitute reason 0005.

So if I use material A when creating sales order with above BAPI function, the order is created with material B.

I don't want to substitute the material automatically. I want to create the sales order with material A.

What should I do? Help me please.

Thanks in Advance.

2 REPLIES 2
Read only

Former Member
0 Likes
619

I think you would need to reset the configuration (assuming this is controlled by config) for the BAPI load, or if that is not feasible, perhaps you could force it back in user exits during the order creation after input processing. Not sure how the substitution works now...may have to somehow avoid obtaining the substituted value in an exit.

Edited by: BreakPoint on Nov 21, 2011 8:22 PM

Read only

Former Member
0 Likes
619

Hi bvrn Reddy,

I know, your message is almost two years old, but, did you find a solution? I'm facing the same problem. The material A has B as substitute, but in va01 a popup appears (its customizing inside the substitution reason, strategy = A). Of course, we have no popup inside the bapi, but there must be a way to decide which material the bapi should use. At the moment I only get the substitute, never the old mat (even there is something in stock).

Maybe you've got a helpful hint for me, thanks!

Ben