I have pV system and its PV AC main disco is connected ahead of building main service disconnect.
Question power generated from the PV system does it go from the solar panels to the utility grid and back to the building main service disco which then powers the building solar panels are on or it cannot come back to the building in on which the solar panels are to power the building?
Does anyone know?
You don't really know where any individual "packet" of energy goes. Some leaves your service and feeds your neighbor's service, some is drawn in from the service, and it is all happening simultaneously. We may say that it "first feeds the on-site loads, and then exports the surplus to the grid", but this is a statement of bookkeeping rather than reality. Both energy exchanges are concurrent, and all that we can really measure is the net flow of power at any given point. The term net means total. More specifically, unlike gross that also means total, net means a total that keeps track of sign and/or direction, as it adds up quantities.
At any given instant, all a meter can measure is the instantaneous voltage and instantaneous net current, both of which are signed. From these measurements, it calculates the net kilowatts flowing through it, and the sign of that kilowatt value to keep track of direction. No individual meter can tell the difference between the case of 4 kW consumed on a service that doesn't have any generation, and the case of a 2kW source offsetting part of a 6 kW load. Both cases are a measurement of net 4 kW being consumed. Once you mix sources and loads in the same infrastructure of busbars and circuits, the only kilowatts you can measure through any given point, are the net kilowatts. You would need to measure prior to the point of interconnection, to be able to keep track of your gross generation and your net export.
The meter can keep track of the signed power in two separate registers as it accumulates kilowatt-hours in each one, such that it treats imported energy differently than exported energy. Or it can track of them in the same register, such that all kilowatt-hours are valued equally, in what we call net metering. Some meters are set up to be secure-forward, such that no matter which way power flows, it counts as consumption. There are also meters that ignore exported power, and only measure imported power.