This paper introduces a study focused on managing a photovoltaic system connected to the electrical grid. The primary components of this system include solar arrays linked via a DC bus to an inverter situated on the grid side. Fluctuations in solar irradiance and temperature are swift, prompting the integration of maximum power point tracking (MPPT) within the inverter’s control mechanism. The energy produced by the photovoltaic system is fed into the grid. This transfer is achieved through a proficient DC/AC conversion process, wherein the MPPT is integrated into the inverter’s operation to regulate the levels of active and reactive power injected into the grid. The paper also delves into the employment of the Space Vector Modulation (SVM) control technique for the DC-AC inverter. It covers the implementation of a Shunt Active Power Filter (SAPF) with a three-phase four-wire configuration, consisting of four legs and adopting a split capacitor topology. Furthermore, the paper includes an exploration of the instantaneous power theory and the utilization of hysteresis block control for the SAPF. The findings of this study are demonstrated and analyzed using Matlab/Simulink software.