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

parameters for SD_SALESDOCUMENT_CREATE

Former Member
0 Likes
737

Hi, I have a process that uses SD_SALESDOCUMENT_CREATE to create the sales documents on background (there are too many of them), and now I need to activate the use of substitute materials, but the substitutes are not taking the conditions entered for the original material, I think there must be a parameter that does that.

Any ideas?

Thanks!

2 REPLIES 2
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
526

I believe that no additonal programming should be required for the material substitution, as long as it's configured properly. But why are you going to SD_SALESDOCUMENT_CREATE directly? I'd suggest using a BAPI (BAPI_SALESORDER_CREATEFROMDAT1 or ...2) or IDocs.

Read only

Former Member
0 Likes
526

It was solved changing the sales order, after it's created, a review is performed to check any substitutions, if they exist, the conditions are added via bapi_sales_order_change