Hi
I have searched around in SCN, but haven't found a solution.
From SAP I print an ABAP list to the spool.
Afterwards, I take the spoolno, and convert it into pdf, and send the pdf by email.
The pdf I receive is in portrait mode, and not landscape, so I guess that I miss some information for the pdf document.
My FM call is:
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gd_spool_nr
no_dialog = c_no
dst_device = c_device
IMPORTING
pdf_bytecount = gd_bytecount
TABLES
pdf = it_pdf_output
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
* 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.
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.
This SCN post http://scn.sap.com/thread/174346 suggest changes in SPAD, but I don't understand, that it can solve it.
My pdf is received in portrait and not in landscape as wanted, so the question is, how do I change it, so I get the pdf in landscape.
Anyone who can help?
Thanks
Lars