The TIA Portal does not support size definitions of type STRING or WSTRING in functions and methods. These size definitions are deleted during creation of the handover files.
Size definitions in ARRAYS OF STRING are supported by the TIA Portal and can be imported.