CONVERT_ABAPSPOOLJOB_2_PDF does this work in background?

Question:
Hi all,
Am having a major problem with FM CONVERT_ABAPSPOOLJOB_2_PDF. I want the FM to run in the background converting a spool job to a pdf binary prior to sending via email as an attachment.
Problem is that the FM works fine in the foreground and correctly converts the spool to a PDF (7-8K approx). When it runs in the background the FM always creates a 1K file which converts to PDF OK. When this sent as an attachment Acrobat reader opens but states that the file contains no data.
Anyone encountered this problem, and if so do you have any solutions or workarounds.
Many thanks,
Answer:
Try with SX_OBJECT_CONVERT_OTF_PDF
_________________
François Henrotte
ABAP Consultant
+32.475.28.75.32
(Belgium)
Please visit http://www.eponasolutions.com

More Articles:

How to get Userlist for a given transaction!?
Inbound Idoc for DN?
execute OS command on the server?
extract data uisng RFC but avoid ABAP programs?
How to Add Customer Fields to Transaction MIGO?
Program last run log?