Hi, There is a requirement to compose a new memo in Lotus Notes from SAP System(using ABAP code). We found the OLE Automation can be used to implement this requirement. As a first step we tried to open names.nsf database to see if we are to get handle to it in ABAP code. But its not getting…
Below is the code:
CREATE OBJECT NOTESESSION ‘Notes.Notessession’.
GET PROPERTY OF NOTESESSION ‘UserName’ = text.
Write: text.
CREATE OBJECT W ‘notesUIWorkspace’.
CREATE OBJECT MAILDB ‘NotesDatabase’.
CREATE OBJECT MEMO ‘NotesDocument’.
CREATE OBJECT UIDOC ‘NotesUIDocument’.
ALL METHOD OF NOTESESSION ‘GETDATABASE’ = maildb.
EXPORTING #1 = ‘’
#2 = ‘names.nsf’.
GET PROPERTY OF maildb ‘ISOPEN’ = flag.
write : flag.
The flag always prints 0, does mean its not getting handle to the Notes db. However the code starts Notes client if it is not started and prints User Name.
I would like to know if there is any problem with the above code. Request your suggestions to implement the above functionality.
Thanks in advance.
Best Regards
Vasant Horapeti