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

DELAY!!!

Former Member
0 Likes
907

Hi!!

we can use delays in the version 4.6C?

My problem is in this code:

CONCATENATE p_ruta '_' num '_' sy-datum '_'

sy-uzeit '.TXT' INTO p_ruta.

but sy-uzeit show 000000, the stranger is when i debugg, it show the time.

Why??

What can i do??

Thanks.

Bty.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
871

Hi,

I tried your code..It is working fine..What is the issue??

data: p_ruta(30).

data: num(1).

CONCATENATE p_ruta

'_'

num

'_'

sy-datum

'_'

sy-uzeit

'.TXT'

INTO p_ruta.

write: / p_ruta.

Thanks,

Naren

7 REPLIES 7
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
871

What's the problem, this works perfectly fine.



report zrich_0003.

data: num type c value 1.
parameters: p_ruta type localfile.

start-of-selection.

CONCATENATE p_ruta '_' num '_' sy-datum '_'
sy-uzeit '.TXT' INTO p_ruta.


write:/ p_ruta.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
872

Hi,

I tried your code..It is working fine..What is the issue??

data: p_ruta(30).

data: num(1).

CONCATENATE p_ruta

'_'

num

'_'

sy-datum

'_'

sy-uzeit

'.TXT'

INTO p_ruta.

write: / p_ruta.

Thanks,

Naren

Read only

0 Likes
871

I need that all the content in p_ruta is in the flat file (.XML), the problem is with the one of the hour, shows 000000.

C:\F_EDI_9000000000_20061031_000000

Message was edited by: Beatriz Romero

Read only

0 Likes
871

Well, if it is exactly midnight, then that is the value, '000000', you could force a second if you need to.

data: uzeit type sy-uzeit.

uzeit = sy-uzeit.
if uzeit = '000000'.
<b> uzeit = '000001'.</b>  <=  Force one second
endif.


CONCATENATE p_ruta '_' num '_' sy-datum '_'
              <b>uzeit</b> '.TXT' INTO p_ruta.

Regards,

Rich Heilman

Read only

0 Likes
871

You mentioned a DELAY in your subject, if you want you can delay the program by 1 second if you want.

if sy-uzeit = '000000'.
 wait up to 1 seconds.
endif.


CONCATENATE p_ruta '_' num '_' 
         sy-datum '_' sy-uzeit '.TXT' INTO p_ruta.



Regards,

Rich Heilman

Read only

0 Likes
871

ok!

This solved the problem. Thanks. Bye.

Read only

Former Member
0 Likes
871

Hi,

Still not able to understand your problem...

Please give us more details..

Thanks,

Naren