2012 Jun 25 9:44 AM
Hi All,
I have a ALV report which runs in foregnd . I want to modify this report so that it will run in background only. How can I achive this. Please se my report below. PLease suggest.
<< Moderator message - please only enter the relevant part of your code >>
endform. " VALIDATE_FISCAL_YEAR
Thanks,
VB
Message was edited by: Rob Burbank
2012 Jun 25 9:51 AM
Hi Vikas,
You can do it in SM36 and SM37..
BUT
Report in a background? What do you want to do in background exactly.. kindly let me know the purpose of background..
Regards,
Venkat
2012 Jun 25 10:13 AM
Hi,
I need to send the email to the user as an attched excel file of final output.
Thanks,
VB
2012 Jun 25 10:20 AM
Then you need to modify your existing program by adding the email sending functions
Then using SM36 define the job - associating this program id.
Define the interval - that is how frequently it is to be executed in background
regards,
Venkat
2012 Jun 25 9:59 AM
Hi,
you can run it directly by F9 or Go to Program -> Execute in background.
regards
Ajit
2012 Jun 25 10:13 AM
Hi,
I need to send the email to the user as an attched excel file of final output.
Thanks,
VB
2012 Jun 25 10:18 AM
HI,
k then use call function 'SO_NEW_DOCUMENT_ATT_SEND_API1' .
regards
Ajit
2012 Jun 25 1:05 PM
NO, don't use an acient API, use current SAP email technology, BCS, and see SAP demo programs named like BCS* for how to do it.
2012 Jun 25 10:18 AM
Hi, Go to Program --> execute in back ground . It'll be executed in back ground exclusively. Regards, Niladri
2012 Jun 25 11:04 AM
Hi Vikas,
Call the function modules Job_open, Job_submit, Job_close to run your program in the background.
Regards,
Ramya Ramasamy
2012 Jun 25 1:07 PM
Vikas, suggest that you go read that featured content of how to ask a good question in the forums, and PLEASE don't dump whole programs that are not even related to what you're trying to do!
And STF!! (Search the forums)! Your little assignment is NOT the invention of a need to send reports by email. Had you searched you would have found dozens, maybe hundreds, of posts on this subject and nobody would have had to scroll through that long list of out-of-date code usage.
Now, go back and delete all that code, if you can, and edit the question to tell us what you have written to accomplish the email send, and what part of it does not work. You have actually tried to write some code, right? Or did you just dump your spec???
2012 Jun 27 10:44 AM
HI Vikas,
Please do update if you get some helpful answers, so that it will be helpful for others also
Regards,
Ramya Ramasamy