https://userapps.support.sap.com/sap/support/knowledge/en/2945026
2945026 - Transaction ST05 "Display Execution Plan" does not allow for planviz | SAP Knowledge Base...
When you try to generate the planviz file in ST05 the planviz option is grayed out.