Using a '-' in a double name (such as Jean-Luc) results in not showing the full name in an output field

Document ID : KB000087972
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Error Message :
N/A

There is an issue when using a script with 'sys_user_lname()' when trying to get FIRST and LAST NAME as an output.
The name is not correctly shown when either the FIRST or LAST names contain a '-' (hyphen) such as 'Jean-Luc'.

With '-' (hyphen):

0EMb0000001UfZO.png

Without '-' (hyphen):

0EMb0000001UfZY.png

 
Environment:
OS Version: N/A
Cause:
Cause type:
By design
Root Cause: This is a limitation to :read as the "-" (hyphen) is a reserved character for read values in order to define a from-->to list. e.g. 00-99.
Resolution:
Should a name contain a hyphen, use a prompt instead of read.

Fix Status: No Fix

Fix Version(s):
N/A
Additional Information:
Workaround :
N/A