Quantcast
Channel: SCN : Document List - ABAP Development
Viewing all articles
Browse latest Browse all 935

Upload Files to SharePoint folders From SAP

$
0
0

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


Viewing all articles
Browse latest Browse all 935

Trending Articles