As you know SAP Workflow can be routed to various object including Users, Positions, Org Units, Jobs, etc… Each one of these is described by a type identifier and the corresponding value. An incomplete list is shown below
Object Name -- Type Identifier
User -- US
Position -- S
Org Unit -- O
Job -- C
So when you specify 'Expression', the SAP Workflow system is going to expect something like:
USJSMITH (this is broken into 'US' which is the type identifier and JSMITH is the User ID) or S 50002344 ('S' is the type identifier and 50002344 is the ID of the position.
The first two characters specify what kind of object. The remaining characters specify the object ID. Please note the single space after the 'S' . The first two characters must be the type identifier.
In your case you are binding the 'Created By' which would just return the User ID without the type identifier. Hence why your Workflow fails.
To fix this you should create an instance of object USR01 (passing in the value of 'Created By' as the key and then use the attribute NameWithLeadingUS as the expression.
Dig Deeper on SAP workflow development
Related Q&A from Alon Raskin
An SAP user has created a user decision step in an SAP workflow item and wants to know how an end user can send an attachment to other users. Continue Reading
A SearchSAP.com reader wants to know how to hide the forward button in an SAP Business Workplace toolbar. Continue Reading
Find out how to automatically replace an SAP workflow item when a user hits "cancel" so that the workflow item re-appears to all possible agents. Continue Reading