The function doesn’t look like it’s const. It seems to me that the Pawn variable you have must be set to BlueprintReadOnly (which is effectually const in blueprint) and thus can’t be “Set”; you can only “Get” the variable. Did you add that variable in C++ or through the blueprint?
Regardless, try adding a new variable in blueprint, like a float or something, and without changing anything about it drag it into the graph and “Set” it to something and hit compile. If it compiles then you know the problem is with the Pawn variable and not the const-ness of the function. Get rid of the Pawn variable first though before testing that.