‎2008 Aug 09 6:54 AM
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.
‎2008 Aug 09 7:04 AM
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
‎2008 Aug 09 7:52 AM
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
‎2008 Aug 09 8:12 AM
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.
‎2008 Aug 09 8:24 AM
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
‎2008 Aug 09 8:01 AM
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