I'm attempting to create a sales order with a position that has a configurable material. Via the BAPI function bapi_salesorder_createfromdat2
I can create the order and supply it with the values for the characteristics.
ABAP Code: http://pastebin.com/hM61c3Fq
When creating an order via VA01 and entering the configuration the order receives new positions from a bill of materials. However when created via the BAPI function the explosion doesn't happen unless I view the order via va02
and look at the configuration.
The customizing via transaction vov7
shows the position type to configure and explode. Is it possible to have bapi_salesorder_createfromdat2
also do this explosion to position lines or is there another function avaliable that can provide this functionality?