When running a Winshuttle direct script using BAPI_FUNCLOC_CHANGE - extensionin, the script is not saving the fields respecting the correct position for the VALUEPART1. When loading exactly the same values directly in SE37, the load is correct.
SAP GUI: 760 PL 3
Leading spaces were getting trimmed and that was causing the issue.
There is one option in 'Options' and disabling of that solved the issue, please find below screenshot for same.