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

Format text Spool order

former_member384574
Active Participant
0 Likes
724

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!

5 REPLIES 5
Read only

brunobex
Active Participant
0 Likes
670

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.

Read only

madhu_vadlamani
Active Contributor
0 Likes
670

Hi Rebeca,

Did you try with RSPO_DOWNLOAD_SPOOLJOB.

Regards,

Madhu.

Read only

0 Likes
670

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

Read only

Former Member
0 Likes
670

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

Read only

0 Likes
669

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