Skip to Content
author's profile photo Former Member
Former Member

Placing a file in Sharepoint from sap pi 7.0

Hi Team,

I have a requirement in sap pi 7.0 where we get an idoc from SAP and map the required fields to an xml file and place that file in sharepoint. I have gone through many blogs but did not find the right approach.

Please let me know how can it be done in pi 7.0. we are trying to use soap adapter to connect to sharepoint. if soap , then what wsdl file we need to ask? Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Posted on Jan 11, 2019 at 06:42 PM

    yes it can be done using SOAP Calls with UDF. you have to use the below steps to upload/copy files to sharepoint.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ramesh,

      Thanks for your answer. But share point is not using basic/NTLM authorization.I guess SAP PI can use only basic authorization for standard soap adapter.

      Any alternate idea?



  • Posted on Jan 14, 2019 at 08:59 AM

    Hi Sarvan,

    You can use java map where you should be doing below things:

    • To convert IDoc into required XML-File format
    • and to post same XML-File into SharePoint site's specific folder.

    You can refer following my blog's example to achieve same:

    Thanks & Regards,


    Add comment
    10|10000 characters needed characters exceeded

    • Hi Sravan,

      UDF reference was for you information purpose only.

      For your case, you please refer JavaMap example: Post pdf file in Sharepoint using SAP PI Java Map

      Here, instead of PDF file (input), you need to provide whole XML-String and going ahead, rest part will remain same.

      And about XML-String, it can be generated as per your requirement (a general parsing technique from complete IDoc to Custom-XML map).

      From blog, example, basically, you have to replace below image's function with a custom function which input is IDoc and output is XML-String in BYTE[]

      You can refer trick of UDF too in JavaMap, => get IDoc input and convert into XML-String and post it in SharePoint.



      11111.jpg (17.7 kB)