2008 Jan 22 8:35 AM
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
2008 Jan 22 8:50 AM
2008 Jan 22 8:53 AM
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.
2008 Jan 22 8:59 AM
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
2008 Jan 22 9:07 AM
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
2010 Dec 22 9:05 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |