User Tools

Site Tools

You are not allowed to perform this action

programming:abap:managing_files_via_http

Managing files in web server via HTTP

Files and Directory management

I wrote these ABAP functions when I had to read/write from a BSP application a lot of PDF from/to a SAP Portal used as repository (PDF was stored in KM).
Below the ABAP functions which reflect four methods supported by HTTP 1.0 protocol:

Using HTTP 1.1 protocol, an extension for Distributed Authoring (WEBDAV), additional methods are available. The web server must support the HTTP 1.1 protocol, but today all of them support this extension.
So I completed the job with the following functions:

Using the above functions, I also wrote an additional one to RENAME files in HTTP server:

File Properties (metadata) management

If a web server is WebDav enabled, it's possible to link custom properties to every file (for example a title, a project code, etc.). For this purpose, I wrote the two following functions that read and write custom properties:

Unfortunately SAP Portal seems to ignore the write custom properties request and no error is returned (“All done, dude !”). With Tomcat or Apache as web server all works fine.

User and password are hard coded in ABAP functions for example purpose, but it's advisable to put them in a customizing table or passing as parameters

programming/abap/managing_files_via_http.txt · Last modified: 2013/07/30 16:33 by IperCube