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

convert spool request to HTML

Former Member
0 Likes
2,201

Hello,

I have got a spool request no.

Now I need to send this data from spool to external recipient address as a HTML attachment.

Kindly suggest me which function modules I should use?

Regards,

Krutika

8 REPLIES 8
Read only

Former Member
0 Likes
1,442

Hi ,

try thsi way..

  • Fetching Spool data into internal table

CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'

EXPORTING

rqident = p_spool "Pass spool Number

TABLES

buffer = t_mail_data.

then pass the Internal table data to below function module tables ITABLE then it will return HTML table with HTML format

WWW_ITAB_TO_HTML

Regards,

Prabhudas

Read only

0 Likes
1,442

Hi,

Thanks for your help.

Can you pls guide me on how to convert spool data in the form of list report into excel format to send the mail to reciever?

I have used 'RSPO_RETURN_SPOOLJOB' to convert spool data to internal table & then 'SO_DOCUMENT_SEND_API1' to send a mail to extrenal address. But data is sent in Text file format.

But users want mail report in excel format.

Kindly help with this.

Is there any other function module whic Ican use to convert spool data to excel format.

Regards,

Krutika

Read only

0 Likes
1,442

Hello,

Converting spool to excel could be messy and the formatting will be lost. If you could convince your users to have a pdf attachment instead of excel, your task will be very easy.

Vikranth

Read only

0 Likes
1,442

Hi,

While preparing the packing list, the doc_type parameter should be 'HTM'. If you are using it as RAW then it will send mail in text format.

Thanks

Papiya

Read only

0 Likes
1,442

Hi,

Actually the the data is a report data which cannot be usefull if sent in PDF format , as it contains tables entries.

Hnece I have to send it in EXCEL fomrat.

Kindly help.

Regards,

Krutika

Read only

0 Likes
1,442

Hi,

Thnkx for ur help.

Can u pls tell me, the document size calculated in FM SO_DOCUMENT_SEND_API1 is in bytes or is in charecters?

I need to calculate the file size in bytes.

Regards,

Krutika

Read only

Rocky1
Product and Topic Expert
Product and Topic Expert
0 Likes
1,442

Hi,

Plz chk Hope it helps u.

Thanks & Regards

Rocky

Read only

Former Member
0 Likes
1,442

solved.....