Skip to Content
0
Former Member
Mar 02, 2006 at 11:07 AM

Problem reading other peoples inboxes in SAP

349 Views

Hi!

I've read the posts on the mail subject but none of them apply to my problem. That's why I'm posting a new topic.

My problem is this:

The customer wants a program to run on the mailboxes of employees and send the employee an e-mail (to outlook) if they receive a mail in SAP inbox with a link to the item in question.

I use standard SAP API's for this:

SO_USER_READ_API1 - to find the users inboxfolder ID

SO_FOLDER_READ_API1 - To read the contents of the inbox folder and to return the subject heading of e-mail in SAP Inbox.

However, SO_FOLDER_READ_API1 only returns the e-mails belonging to current user. I.e. I run this program as a job (SM37) with a user that has SAP_ALL and SAP_NEW. The user is called 'WF-BATCH'. The program returns 0-zero-mails as this user does not have any e-mails in SAP Inbox. If I run the job as myself, it returns my e-mails and I find that my user is not authorized to access other peoples inboxes.

But, surely, a user with SAP_ALL and SAP_NEW should have the authorization to do that?

Has anybody got any ideas on how I should proceed? Alternatively, does anybody know what tables mail items are stored in - SO_USER_READ_API1 gives me the userID and FolderID and with this information I should be able to find e-mails if only I knew what tables they are stored in....

Thank you in advance for helping me out

- Njå