Application Development 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: 

Convert spool in the text format and send mail

Former Member
0 Kudos

Hi All

Can anyone tell me

how to convert the spool into the text format and send that in email as an attachment..

Points will be rewarded

URGENT

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Read spool using FM RSPO_RETURN_ABAP_SPOOLJOB

CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'

EXPORTING

rqident = v_rqident "Spool Number

  • FIRST_LINE = 1

  • LAST_LINE =

TABLES

buffer = i_spool "Internal table output

You will get spool in internal table and then its your game, play the way you want.

Regards,

Mandeep

6 REPLIES 6

Former Member
0 Kudos

hi,

how r u getting tht spool request.

0 Kudos

i am getting the spool by populating the resultant data into a table and then

writing those table fields through write statements. which is converted into a spool.

Former Member
0 Kudos

Hi,

Read spool using FM RSPO_RETURN_ABAP_SPOOLJOB

CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'

EXPORTING

rqident = v_rqident "Spool Number

  • FIRST_LINE = 1

  • LAST_LINE =

TABLES

buffer = i_spool "Internal table output

You will get spool in internal table and then its your game, play the way you want.

Regards,

Mandeep

rthoodi
Active Participant
0 Kudos

Hi,

This is the program name RSTXPDFT4 which will convert the spool no into PDF file, so you can easily send as attachment. try this and Rewards points if useful

Thanks & Regards

RK

Former Member
0 Kudos

hi

good

You will have to use the follwing 2 FM's one after the other in order to make sure that the data is converted to the correct format for sending mail.

SCMS_STRING_TO_FTEXT

SCMS_FTEXT_TO_BINARY

After using the above 2 FM, pass the itab to CONTENTS_HEX in the mail FM.

thanks

mrutyun^

0 Kudos

Hi

I got my output in an internal table through the function modulr u told in the buffer. i am working in CRM

Can u tell me how to convert this spool internal table output to text.