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

TIMS DATA TYPE

Former Member
0 Likes
2,886

Hi friends

i want to import some current time to one function module...(only time : the format is (HH:MM:SS)..

for this i want to declare a variable.. for this what type od data type can i use..

ex: DATA : ctime TYPE I or ?

regards

Babu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,442

hi,

Make use of Char type with 10.

data: t_time(10) type char .

reward points if its useful

regards,

vijay

3 REPLIES 3
Read only

Former Member
0 Likes
1,443

hi,

Make use of Char type with 10.

data: t_time(10) type char .

reward points if its useful

regards,

vijay

Read only

Former Member
0 Likes
1,442

Hi,

Declare a variable

<b>DATA: curr_time(6) type c.</b>

Get current time into the variable by passing sy-uzeit to the variable i.e.

<b>curr_time = sy-uzeit.

</b>

For further processing of time in HRS,MIN $ Sec format, you can <b>use offset concept</b> with the variable <b>curr_time.</b>

*Always reward points for useful answers

Regards,

Amit

Read only

Former Member
0 Likes
1,442

ThankQ