07-15-2009 11:36 AM
data : T_ATTACHMENT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
I have an attachment file (T_ATTACHMENT ) ,that i have to convert into binary.
i have to convert into binary file, so that i can use in follwing call method
CALL METHOD DOCUMENT->ADD_ATTACHMENT
EXPORTING
I_ATTACHMENT_TYPE = 'PDF'
I_ATTACHMENT_SUBJECT = 'Price List'
I_ATT_CONTENT_hex = T_ATTACHMENT . "" after converting into binary i can use here
is there any rfc to convert into binary format.
07-15-2009 11:40 AM
Hi,
You can try this function to convert text to binary. function name is SCMS_TEXT_TO_BINARY.Pass the t_attachment table and it would give you a binary table back.
Also check these functions if you need to convert an OTF or an ABAP spool to PDF format.
CONVERT_ABAPSPOOLJOB_2_PDF
CONVERT_OTFSPOOLJOB_2_PDF
CONVERT_OTF_2_PDF
BR,
Advait
Edited by: Advait Gode on Jul 15, 2009 12:47 PM
07-15-2009 11:47 AM
07-15-2009 12:35 PM
11-17-2009 6:23 AM