SAP Message UPF148 - Syntax error: Value 'E'nd or 'S'tart value were expected

Diagnosis
You have not transferred the correct values for the second argument tothe function. In the first argument, you must transfer a variable for atime characteristic. In the second argument, either 'S' is transferredfor the start value or 'E' for the end value. For example, if in thefirst argument it concerns a variable of the type calendar year withthe value 2000, then the function delivers the value 1.1.2000 if 'S',and 31.12.2000 if 'E' was transferred as the value in the secondargument.