cancel
Showing results for 
Search instead for 
Did you mean: 

how to send file from abap report to microsoft sharepoint my applications

mark_fryu
Participant
0 Kudos
165

hello everyone,

i need to send a .csv file from an abap report to a microsoft sharepoint (my applications).

 

How can i do it?

Sandra_Rossi
Active Contributor
Why are you tagging EVERYTHING? Moderator alerted to remove all but ABAP Development as I'm pretty sure you are using the classic ECC or S/4HANA.
Ulrich_Schmidt
Product and Topic Expert
Product and Topic Expert

I think, "ABAP Connectivity" might also fit this topic, as we are communicating between an ABAP system and a third-party non-ABAP environment. Re-adding it.

Accepted Solutions (1)

Accepted Solutions (1)

Ulrich_Schmidt
Product and Topic Expert
Product and Topic Expert

I can imagine two different possibilities:

  • Either you can use the ABAP classes around CL_HTTP_CLIENT to invoke the Microsoft Sharepoint REST API and send the file that way directly from ABAP. See Get to know the SharePoint REST service | Microsoft Learn for the technical details about how to use raw REST requests from an HTTP client. (Like in this case the built-in HTTP Client in ABAP.)

  • Or you can develop a .NET application (e.g. in C#), which uses
    a) SAP's ".NET Connector" (NCo) to receive the file in an RFC call from ABAP, and
    b) the Microsoft Sharepoint Client Library to then send that file to Sharepoint.

    From ABAP, you would do a simple "CALL FUNCTION ... DESTINATION <your C# program>" with the file in an XSTRING parameter. In C#, you then get the XSTRING from NCo, e.g. in form of a byte[], and pass it into the Microsoft APIs.
    Details on NCo: https://support.sap.com/nco
    Documentation of the SharePoint Client Library: Complete basic operations using SharePoint client library code | Microsoft Learn

Answers (1)

Answers (1)

mark_fryu
Participant
0 Kudos

yes is S/4HANA