I'm searching for a solution to create and manage BOM from P&IDs

I'm searching for a solution to create and manage BOM from P&IDs, I have noticed online that it may be possible to export an Autocad file as .xml to Solidworks and integrate with its PDM…any knowledge or thoughts on this?  Does Solidworks have P&ID functionality such that a drawing can be imported from ACAD?   I’d like to try and figure out a solution where we can develop P&IDs that use metadata in the symbols that can transfer back to a common database that can link to an ERP system.  It would be great if this could also work with the components in the models so we keep all the data in one place.

SolidworksDrawings And Detailing