Use this method 2013 SOLIDWORKS API Help - InsertBomTable4 Method (IView) first of all.
The first parameter of the method is what you are looking for (set it to true):
If true and the appropriate sheet format anchor point exists, then insert table at this point; if false, then use the values specified for the X and Y arguments as the insertion point
Amen Allah Jlili has already answered first half of your question in regards to position the BOM table at set anchor point. Have a look at the following thread in regards to set the BOM table configuration set to referenced configuration in drawing view: Why does not this setting work? InsertBomTable4:swBomType_TopLevelOnly