Hi there
Yes, there are 2 diffrent techniques that can be applied here as far as I see it.
Transaction is the main-script that you would use to CREATE a BOM, and that is pretty much equal to a query, apart from that you are actually pushing data to SAP,
Now, what you are saying is that you would like to CREATE or CHANGE an excisting BOM is slightly more complex even thou I would questioning changeing a BOM due to GS1-regulations, but that is another chapter.
Anyhow, in order to be able to change AND create a BOM, I would go for a BAPI-script and that is diffrent from a normal script.
Winshuttle has a very good script-template for create and change of Alternative unit of measure, and even thou this is not for BOM, it is using the same technique that you would need to apply
Open up a ticket an reply with
"Hello Winshuttle Support, I would like to request this template:
MM02: Add alternate units of measure
ID #29083
https://www.winshuttle.com/sap-module-template/mm02-add-alternate-units-of-measure/"
Hope this helps
------------------------------
Henrik Axell Master Data Analyst
Essity Hygiene and Health
------------------------------