can you suggest me if it is correct in a GMP QMS the closure of a deviation before that the CAPA are implementing?
You shoukd not close the deviation untill CAPAs are closed. Only after ensuring by QA that all CAPA actions are satisfactorily implemented or followed only then that deviation should be closed. This should be governed by internal SOP.
@Guid Your deviation (DV) is your investigation and impact assessment, the CAPA is your resultant actions. If you have finished investigating, assessing impact, and have defined and initiated all your CAPA; then you should close the DV regardless of the implementation status of your CAPA, as long as suitable CAPA have been initiated.
The implementation time of the resulting CAPAs should be realistic - it may take more than 6 months to fully implement some CAPA, which is a very long time to delay the release of your product if your investigation is complete found no impact to the Product quality from that particular DV.