Skip to Content
Sep 12, 2019 at 04:45 PM

Somebody clarify me about Hexadecimal data conversion to create A PDF and send it to mail

262 Views Last edit Sep 12, 2019 at 04:47 PM 2 rev

I got a requirement to send spool output as PDF attachment to the group of mails. This spool is generating from a program which is scheduled using JOB_OPEN, JOB_SUBMIT and JOB_CLOSE.

I got the Spool request from Background job, I have passed this to CONVERT_ABAPSPOOLTO_PDF Function module, this function module returns an internal table. In debugging I checked the content of the internal table which is in Hexadecimal format. Can someone help me to clarify below..

1. This internal table data is in Hexadecimal format.. When I refer a sample logic in Google it was mentioned that we need to convert 135 length to 255.. What does it mean?

2. How can I convert this data and send as an PDF attachment.. If any sample logic is helpful.

3. Need help for mailer logic to send above PDF as an attachment to a distribution list.