Not sure i fully understand whats wrong but if its that your variable doesnt show in the details tab in your blueprint then its likely that you just need to shut down UE/Visual Studio, reopen and rebuild.
Im not sure what the exact cause is myself but UE occasionally does this for me when adding UProperty Tags