‎2008 Nov 11 2:29 AM
Hi Experts,
I am using function module CONVERT_ABAPSPOOLJOB_2_PDF to convert spool to PDF spool - But the spool appears to be in binary format. How to convert to a printable format?
- Preema
‎2008 Nov 11 6:56 AM
Hi,,,,,,,,
Use this code Here table is your internal table that you are passing it to FM CONVERT_ABAPSPOOLJOB_2_PDF,,,
now pass it_mess_att..
DATA: it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE. DATA: gd_buffer TYPE string. LOOP AT TABLE. TRANSLATE TABLE USING ' ~'. CONCATENATE gd_buffer TABLE INTO gd_buffer. ENDLOOP. TRANSLATE gd_buffer USING '~ '. DO. it_mess_att = gd_buffer. APPEND it_mess_att. SHIFT gd_buffer LEFT BY 255 PLACES. IF gd_buffer IS INITIAL. EXIT. ENDIF. ENDDO.
Thanks
Saurabh
‎2008 Nov 11 6:56 AM
Hi,,,,,,,,
Use this code Here table is your internal table that you are passing it to FM CONVERT_ABAPSPOOLJOB_2_PDF,,,
now pass it_mess_att..
DATA: it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE. DATA: gd_buffer TYPE string. LOOP AT TABLE. TRANSLATE TABLE USING ' ~'. CONCATENATE gd_buffer TABLE INTO gd_buffer. ENDLOOP. TRANSLATE gd_buffer USING '~ '. DO. it_mess_att = gd_buffer. APPEND it_mess_att. SHIFT gd_buffer LEFT BY 255 PLACES. IF gd_buffer IS INITIAL. EXIT. ENDIF. ENDDO.
Thanks
Saurabh