The document discusses the control design for a shunt active power filter (SAPF) integrated with photovoltaic (PV) systems connected to the grid, utilizing p-q theory for harmonic current compensation. The proposed configuration effectively reduces total harmonic distortion from 27.22% to 1.05% and enhances the system's capability to manage active and reactive power. Key findings include improved power sharing and reducing harmonics while supplying active power generated by the PV system.