I know for Automotive this was done via IPPE integration embedded in the ME-INT (MII content for integration between ERP & ME) in order to manage variant configuration eBOMS and manufacturing mBOMs. As for CPG and packaged goods it's probably a similar process around the actual LOIPRO IDoc order and material version assigned to the order which then gives you the required components and an associated LOIROU IDoc would be the route required to produce the packaged good. There are others involved depending on which modules are implemented but those two are a good place to start.
Sam