Skip to Content
Former Member
Dec 11, 2013 at 03:55 PM

UserFunc.uInt8ToDate Issue


Has anyone else had this problem? I was trying to use the internal function uInt8ToDate function. The parameters, according to SAP's documentation, allow you to add a "True" option to the call which makes the function convert the date to local time. The default converts the date to UTC time. The call would look like this:

var result = UserFunc.uInt8ToDate(Par,True)

Whenever I try to do this, I get an error. If I exclude the "True" and let the function default to "False", it works fine, i.e.:

var result = UserFunc.uInt8ToDate(Par)

Why doesn't this switch to convert to local time work? The contract I'm working on right now is a global company so converting to local time won't hold me up at all but I'm just curious why this feature is documented by SAP as a functional option but doesn't work in practice. Thanks.