Does anyone here in the forum know how to suppress the material determination when using BAPI_SALESORDER_CREATEFROMDAT1?
Basically, I have material B as a replacement part for A. When I call the BAPI inside my program, I have A as an input but upon checking the created sales order, I saw material B instead.
Your help would be much appreciated.
Thanks a lot in advance.
I don't know the details of article replacements, but in general: that's the way it should work.
If there is no stock or some other article blocks (no sales period, X-chain status...), then the replacement article should come into the documents.
Also a creation by BAPI is no exception from business point of view - it has to follow the same rules as an online creation. OK - your customer requirement is currently different.
But if the creation should be with article A, then the replacement customizing (also for online creation) has to be adjusted.
By the way, isn't BAPI_SALESORDER_CREATEFROMDAT2 up to date?