Hi Andrea,
Did you ever find out how/where SAP_Localsystem is defined? If not, were you able to find a solution to your problem? We are also having an issue with URL's not being generated properly for our UWL and we suspect that this value could be causing or contributing to our problem.
Thanks,
Brent Mattson