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

background job

Former Member
0 Likes
442

hi ,

i have a requirement where i need to run my program in background . i have scheduled a background job in sm36 . but that could not be found in sm37.Moreover, when run in background i need the following message " E-Mail generated and sent to [email protected] with attachment XXXXXXXXXXXXX.XXX” to get displayed also.

where do i have to code for it? please provide any pointers.

regards

sandhya

hi ,

i have a requirement where i need to run my program in background . i have scheduled a background job in sm36 . but that could not be found in sm37.Moreover, when run in background i need the following message " E-Mail generated and sent to [email protected] with attachment XXXXXXXXXXXXX.XXX” to get displayed also.

where do i have to code for it? please provide any pointers.

regards

sandhya

3 REPLIES 3
Read only

Former Member
0 Likes
423

Hi,

When you run the program in background you cant raise any messages or POP-UP screens.If you try it will go for Dump.

In tcode SM37-- select job status check boxes

shelduled ,released ,active,cancelled,ready ,finished.

In user name give * .

Now check.

To get the messges only way is If success store the messgaes in apllication server as a file.

Read only

Former Member
0 Likes
423

in sm37 check the date of execution or give program name

check graphical display or log

Regards

Giridhar

Read only

kiran_k8
Active Contributor
0 Likes
423

Sandhya,

You can schedule a program for background job using the below given function module

job_open

job_submit

job_close

after this you can check for the sy-subrc and give the message as per your requirement.

K.Kiran.