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

Hw to write a code for this object?

0 Likes
747

hi sir,

when i execute this code it will prints 10 times hello sap. i want to execute by system itself means by by putting the time slice so hw to write a code for this object?

DO 10 TIMES.

WRITE 😕 'HELLO SAP' color 3 on.

write sy-index.

ENDDO.

regards

patil.

5 REPLIES 5
Read only

Former Member
0 Likes
716

Hi Rachu,

You can use WAIT UNTIL option.

WAIT UNTIL log_exp [UP TO sec SECONDS]

Check this link:

http://help.sap.com/saphelp_nw04/helpdata/en/c6/13a228e9c5ca469fe7065387dc87be/content.htm

Regards,

Chandra Sekhar

Read only

Former Member
0 Likes
716

Hi,

What I understand from your query that you want to give the number of times as input, and depending on that the output wil be displayed.Try this code.

Parameters:
   p_times type i.

DO p_times TIMES.
WRITE :/ 'HELLO SAP' color 3 on.
write sy-index.
ENDDO.

Regards,

Sujit

Read only

0 Likes
716

sir,

But i want to execute by background process means it automatically gives the output after some seconds of time.. so that kind of output hw to generate?

regards

patil.

Read only

0 Likes
716

Hi,

For that GOTO transaction SM36.

Define Job name and in the step button you can define the program that will run. Then go to the button start condition and in this select button Immediate.In the below of the screen a button called period values appear. Click the button , in this you can define the period of your job.

Hope it will help you.

Regards,

sujit

Read only

Former Member
0 Likes
716

Hi Rachu,

can you please elaborate your question..

Are you taking about Background job (SM36)

http://help.sap.com/saphelp_bw30b/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm

or WAIT UNTILL as chandra has told..

http://help.sap.com/saphelp_nw04/helpdata/en/c6/13a228e9c5ca469fe7065387dc87be/content.htm

With luck,

Pritam