Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

spool pdf mail


I am having the spool number. i am converting that to pdf using 'CONVERT_ABAPSPOOLJOB_2_PDF' and ' CONVERT_OTFSPOOLJOB_2_PDF'. do i need to use the below code for the function modules.

  • Transfer the 132-long strings to 255-long strings

LOOP AT it_pdf_output.

TRANSLATE it_pdf_output USING ' ~'.

CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.


TRANSLATE gd_buffer USING '~ '.


it_mess_att = gd_buffer.

APPEND it_mess_att.

SHIFT gd_buffer LEFT BY 255 PLACES.

IF gd_buffer IS INITIAL.




After this i am using the function moudle 'SO_DOCUMENT_SEND_API1' t osend mail.

Iam able to recieve the mail but i am not able to open the pdf file. it is giving a popup "the file is damaged , it should be repaired" . .

Can any body help me out.

Former Member
Not what you were looking for? View more on this topic or Ask a question