Ask the Expert

Using Lotus for SAP R1.6 to access SAP

I'm using Lotus Connector for SAP R1.6 to access SAP (LCLSX) to create an order. Do you have any idea how to add attachments/RTF from Lotus Notes to SAP?
I have not tried this with/against the SAP connector, but you should be able to do this with an LCStream object on the SAP side of your code. After you have the Notes document with the attachment your code would look something like this:

Set field = notes_fieldlist.Lookup("my_attachment_field")
Set stream = field.GetStream(1, LCSTREAMFMT_NATIVE)

...then perform your insert/update as you normally would.

This was first published in June 2002