Hello,
Check BAPI MD_PLDORD_CREATE_W_COMP_BAPI
This function module creates a planned order. When creating a planned order using this function module, you can create the components either by exploding the Bill of Material in the ordinary way or maintaining all the components manually.
Best Regards,
R.Brahmankar