I didn't know how to use bapi BAPI_REFSETOFOPERATIONS_CREATE to associate components to bill of material same funcionality of transactions CEWB and CA02.
If there is any other bapi to do this functionality, please show the example or the bapi name.