‎2011 Dec 29 10:58 AM
Hi experts!!!
I'm reading an spool order an I want to attach the data into a txt file. This works correctly except the format, that always return the file without the corresponding format, can anybody tell me if there's any function module or any way to download an spool order and maiteannce the format?
Thanks in advance.
Best Regards and Merry Christmas!
‎2012 Jan 06 5:12 PM
Hi Rebeca R,
Maybe you can use the function RSPO_RETURN_ABAP_SPOOLJOB BUFFER retrieve the table BUFFER and save the format you want.
Regards
Bruno Xavier.
‎2012 Jan 06 5:30 PM
Hi Rebeca,
Did you try with RSPO_DOWNLOAD_SPOOLJOB.
Regards,
Madhu.
‎2012 Jan 06 8:04 PM
You can try with the function module RSPO_DOWNLOAD_SPOOLJOB which will download the spool from a program to a file and
it needs a spool number.
Otherwise, RSPO_RETURN_ABAP_SPOOLJOB function module will fetch printer spool according to the spool number informed.
Regards,
Niladri
‎2012 Jan 06 8:04 PM
You can try with the function module RSPO_DOWNLOAD_SPOOLJOB which will download the spool from a program to a file and
it needs a spool number.
Otherwise, RSPO_RETURN_ABAP_SPOOLJOB function module will fetch printer spool according to the spool number informed.
Regards,
Niladri
‎2012 Jan 09 10:05 AM
Hi everybody and Happy New Year!!!
The FM you told me, works correctly for downloading the Spool order in the PC, but the idea that I have and what I need is to download the Spool order into a txt file and then, attach this file into an email using the CL_BCS class. This works correctly using the FM RSPO_RETURN_ABAP_SPOOLJOB but, when I attached the file in the email I lost the format of the spool order and do not know why. I think the problem of this is the length of the soli tab, that always reads 255 characters and doesn't read the return code and the structure file changes....can anybody guide me how to solve this incident?
Thanks a lot,
Best Regards,
Rebeca