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

run report in background

Former Member
0 Likes
732

hello

I have a report , with output as Classical list. Now my requirement is that if the report is scheduled in background it should send that list as attachment in PDF to the user's mail id.

My problem is that ven m scheduling it in background nothing is happing but ven i go in debug mode and make SY-BATCH = 'X'. it is working fine, it is not taking value of SY-BATCH = 'X' in background.

Kindly help...

Regards

hello

I have a report , with output as Classical list. Now my requirement is that if the report is scheduled in background it should send that list as attachment in PDF to the user's mail id.

My problem is that ven m scheduling it in background nothing is happing but ven i go in debug mode and make SY-BATCH = 'X'. it is working fine, it is not taking value of SY-BATCH = 'X' in background.

Kindly help...

Regards

5 REPLIES 5
Read only

Former Member
0 Likes
695

HI,

it must work....might be mistake in code...

Read only

Former Member
0 Likes
695

Hi,

To send mail with attachment you may use the function module SO_NEW_DOCUMENT_ATT_SEND_API1.

For reference see te sample program: RSWNSENDMAIL1.

to convert to pdf u may use fm CONVERT_OTF_2_PDF.

Regards,

Renjith Michael.

Read only

Former Member
0 Likes
695

Hi Anjali,

When you will execute the prg in background, it will create job. check job log, if any message is available. SY-BATCH will be X in background, hence that piece of code is fine.

Regards,

Mohaiyuddin

Read only

0 Likes
695

hi!

Ya, it's creating spool in background if m making sy-batch = 'X' in debug mode and working fine but it itself not reading sy-batch = 'X'.

Regards

Read only

0 Likes
695

m closing