Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8507

Re: How to distinguish whether a TIMS type variable is 00:00:00 or initial?

$
0
0

Dear John,

Thanks for your reply and useful information.

 

I understand your point,that is, when declare a variable in ABAP, it will have a default value, for TIMS type,it is 00:00:00.

 

But now the problem is, I want to assign a value to A1, and then check whether the A1 is still initial,which means whether I assigned the value successfully. So in this case, 'A1 IS INITIAL' means not assigned, 'A1 IS NOT INITIAL' means assigned successfully. When I assign the value'00:00:00', actually this value is assigned to A1, but because this value is equal the default value of A1, so it still shows 'A1 IS INITIAL'.

So how could I distinguish whether A1 is assigned the value'00:00:00' or it is its default? Is there any statement to judge a variable is assigned or not?

 

Thanks.

 

Best Regards,

Rong


Viewing all articles
Browse latest Browse all 8507

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>