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

Additional Functionality to run report in background

Former Member
0 Likes
1,142

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

11 REPLIES 11
Read only

venkateswaran_k
Active Contributor
0 Likes
1,120

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

Read only

0 Likes
1,120

Hi,

I need to send the email to the user as an attched excel file of final output.

Thanks,

VB

Read only

0 Likes
1,120

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

Read only

Former Member
0 Likes
1,120

Hi,

you can run it directly by F9 or Go to Program -> Execute in background.

regards

Ajit

Read only

0 Likes
1,120

Hi,

I need to send the email to the user as an attched excel file of final output.

Thanks,

VB

Read only

0 Likes
1,120

HI,

k then use call function 'SO_NEW_DOCUMENT_ATT_SEND_API1' .

regards

Ajit

Read only

0 Likes
1,120

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.

Read only

Former Member
0 Likes
1,120

Hi, Go to Program --> execute in back ground . It'll be executed in back ground exclusively. Regards, Niladri

Read only

Former Member
0 Likes
1,120

Hi Vikas,

Call the function modules Job_open, Job_submit, Job_close to run your program in the background.

Regards,

Ramya Ramasamy

Read only

Former Member
0 Likes
1,120

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???

Read only

Former Member
0 Likes
1,120

HI Vikas,

Please do update if you get some helpful answers, so that it will be helpful for others also

Regards,

Ramya Ramasamy