Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

DateTimeVar is NULL?

Hi,

how can I check if a local variable was initialized or assigned.

local numbervar i;

local datetimevar myDate;

if myDate <> null then

...

else

...

Former Member
replied

Hi Patrick

Try this if you are going to use datetimevar as the datatype of the variable:

local datetimevar myDate;

if cstr(myDate) = "" then

something

else

something

Hope this helps.

Nikhil

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question