KPRO Interface connects to a special program, either SAPFTP or SAPHTTP.That means that we have to consider how KPRO transfers files: Under the hood DMS uses the technologies KPRO and Content Server to store and retrieve files. However - and if you know SAP you should have expected - the things are not so simple. Checkout means that the files are copied to the client (in this case our program). The SAP DMS provides the BAPI BAPI_DOCUMENT_CHECKOUTVIEW2 to checkout files from the SAP system. In this part of our blog series, we will add the feature to download files from SAP DMS to our application.
You can find the code of this post on github. Within this post series we will implement step by step a library that can be used to read documents, transfer files and to update documents. This is the second post in a series of posts on how to connect to SAP Document Management with dbosoft YaNco.