Skip to Content

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

folder.JPG

  • Then the server location opens as below

path.JPG

  • 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

email.JPG

  • Enable the settings

              “Incoming email”=Yes

              Email address = “Define unique email ID”

              E-Mail Attachments=Save all attachments in root folder

address.JPG

  • 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 ).

To report this post you need to login first.

4 Comments

You must be Logged on to comment or reply to a post.

  1. Ramdas Nair

    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

    (0) 
    1. Anil Supraj Post author

      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

      (0) 
  2. Andri Ongki

    Hi Anil,

    I dont see the document that explaining about upload files to sharepoint. Mind to send it to my email ?? (andriongki@gmail.com)

    Thanks,
    Andri
     

    (0) 
    1. Anil Supraj Post author

      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

      (0) 

Leave a Reply