Hi Friends,
Now-a-days we hear a lot about integrating SAP with Share Point.
I have recently work on such a requirement, where in I need to Upload files to SharePoint folders from SAP. So wanted to share my experience.
There are two different scenarios:
1) SharePoint and SAP are hosted on same server.
2) SharePoint and SAP are hosted on different server.
1) SharePoint and SAP are hosted on same server.
In this scenario,
Files can be directly uploaded Via GUI_UPLOAD or any equivalent FM or Classes.
STEPS:
- Create new document library in your share point site.
- GOTO–> Library and click on “Open with explorer” icon as shown below
- Then the server location opens as below
- Pass the path to GUI_UPLOAD to upload to the folder.
2) SharePoint and SAP are hosted on different server.
In this case, we make use of a facility provided by Share Point known as “Communication Through Incoming email setings” to upload files onto it’s folders.
STEPS:
- Create new document library in your share point site.
- Once library created. Go to “Document library settings”. -> Communication -> Incoming email settings
- Enable the settings
“Incoming email”=Yes
Email address = “Define unique email ID”
E-Mail Attachments=Save all attachments in root folder
- Use email ID, in your ABAP program to send document in email.
Once you send mail to specific email ID as maintained in share point site, you will see document getting placed automatically in share point whatever you send it through email (as attachment ).
Hi Anil,
This is an good doc explaining how to connect SAP to Sharepoint.
If possible, could you let me know reg the first point as to how to use GUI_UPLOAD in SAP. I have the same requirement and i have the Sharepoint URL too. Now could you please explain me in detail how to connect starting from SAP to Sharepoint.
Regards,
Ramdas Nair
Hi Ramdas,
Use cl_gui_frontend_services=>gui_upload
Give SharePoint path in exporting parameter filename.
Our data prepared from sap internal table will upload into file path which we gave. If both sap and file path are on same server, this method helps. Else second method.
Thanks,
Anil
Hi Anil,
I dont see the document that explaining about upload files to sharepoint. Mind to send it to my email ??
Thanks,
Andri
Hi Andri,
I have mentioned the steps for configuration in this document.
Documents will be uploaded to sharepoint when we send mail using cl_bcs to mail id mentioned in incoming e-mail section.
Thanks,
Anil
Hello Anil,
GUI upload will take the data from file on give path and get in to internal table. how can we use gui_upload to upload internal table data in file to sharepoint.
Can you please elaborate your solution.
We are having same requirement.
You may also use SharePoint REST service (HTTP/HTTPS)