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

Spool in binary format

Former Member
0 Likes
1,862

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
978

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

1 REPLY 1
Read only

Former Member
0 Likes
979

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