‎2010 May 05 4:48 PM
Hi,
I am using FM 'SO_ATTACHMENT_READ' for reading .xls attachement from SAP workplace, but the content returned fromthe function module is in Binary format, Is there any way to convert the binary format returned to text format and save in a internal table, I have used 'SCMS_BINARY_TO_STRING' but I am geeting junk charater only, please suggest how to go ahead
thanks
bob
‎2010 May 05 9:32 PM
> but the content returned fromthe function module is in Binary format
If it starts with the bytes D0 CF 11 E0 A1 B1 1A E1, it is identified as being an Office native document (using Excel, user clicked SAVE AS menu and has chosen .xls format). So it means SAP can't decode it alone. The only possibility is to use OLE2, but it must be ran in dialog (not in background).
‎2010 May 06 5:54 AM
Hi,
Try using CL_DOCUMENT_BCS class. It has method GETU_ATTACHMENTS.
Hope it helps