cancel
Showing results for 
Search instead for 
Did you mean: 

How to use WebDAV.createfile

0 Kudos

Dear Community,

I have a question on how to use WebDAV.createfile function located in Platinum engineering

It has 4 parameters:

- SifInterfaceCode located in Repository data types

- FileName - this is a string

- ContentType - is this the same as MIME code? ie. text/csv or image/jpg

- BinaryContent - this is the data itself in binary format

Many thanks in advance for your response,

Regards,

David Pacovsky

Accepted Solutions (1)

Accepted Solutions (1)

knutheusermann
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi David,

the Platinum Engineering library contains mainly internal reuse functions and only a very few of them are released (for example the session ID). Unfortunately the reuse function WebDAV.CreateFile is not released and cannot be used so far.

Please create an improvement request in our Customer Influence session for SAP Business ByDesign if you see a need to provide a function to create files in the ByD WebDAV folder using SAP Cloud Applications Studio.

Best regards,
Knut

0 Kudos

Hi Knut,

Many thanks for such a quick response.

Best Regards,

David Pacovsky

0 Kudos

Hi Knut,

May I ask you for further guidance on this problem, if at all possible:

We create a .csv file from SAP data and put this file in an Attachment folder of our custom business object. Our customer needs to have an access to this file through his third-party system ( they are looking to upload the file from ByD to an FTP server from which the file would accessed by third-party system)

Would you see any other way to achieve this besides using WebDAV? We are considering using OData, however, this is not a preferred method in this particular scenario therefore another approach besides OData would be very welcomed.

Many thanks in advance for your response.

Best Regards,

David Pacovsky

Answers (1)

Answers (1)

knutheusermann
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Dávid,

the easiest approach to extract attachments would be using the Soap service ManageAttachmentFolderIn (see Read and Write ByDesign Attachments using Web Services) or via OData. The connection to an FTP server could be realized using a middleware or some local app to getthe file from the ByD web services.

Best regards,
Knut