Application Development 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: 

How to convert table(like SOLISTI1) into binary

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

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

venkat_o
Active Contributor
0 Kudos

Try SCMS_TEXT_TO_BINARY function module.

Thanks

Venkat.O

Former Member
0 Kudos

It is not working

Former Member
0 Kudos

Try this: cl_bcs_convert=>string_to_solix

Regards,

Khanh