Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Test time variable

Former Member
0 Likes
898

Hello,

I need help... I have to test some parameter, which default is '00:00:00 .

How can I test this, because ..is not initial not working, neither the test par =' 00:00:00'.

Suggestions?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
864

Hi ,

try this

parameters: p type syuzeit default '000000'.

if p = '000000'.

write: / 'nil'.

endif.

write:/ p.

thanks & regards,

Venkatesh

Hello Do it like this.

data c(10).

c = yourdate- "I mean ->'00:00:00'

if c is initial.

write 'message'

endif.

Bye

Gabriel

5 REPLIES 5
Read only

Former Member
0 Likes
865

Hi ,

try this

parameters: p type syuzeit default '000000'.

if p = '000000'.

write: / 'nil'.

endif.

write:/ p.

thanks & regards,

Venkatesh

Read only

Former Member
0 Likes
864

Hi!

If it is a TIMS type field, then it is internally stored only in '000000' style, without any formatting.

Regards

Tamá

Read only

Former Member
0 Likes
864

Hello Do it like this.

data c(10).

c = yourdate- "I mean ->'00:00:00'

if c is initial.

write 'message'

endif.

Bye

Gabriel

Read only

Former Member
0 Likes
864

Hi,

take that PAR as type SY-UZEIT,

this SY-UZEIT is 6 charecter length,so check for '000000' then your problem will be solved

Regards

Sudheer

Read only

Former Member
0 Likes
864
REPORT ZTEST.

DATA : V_TIME LIKE SY-UZEIT.

IF V_TIME EQ '000000'.
  WRITE : 'Time is initial'.
ELSE.
  WRITE : 'time is not initial'.
ENDIF.