If you want to find out which RFC definations are not using under SM59 transaction for your SAP system, then you can use the “Check Internal Connection” option of the transaction SM59…
To do this ;
SM59 –> Check Internal Connection
Select : “Display Destinations”
F8 – Execute
List contains inactive RFC destinations, if you want to delete these entries, then go back and select “Delete Destinations” and execute…