Symptom
How to upload customer invoice requests to WebDav folder from a third-party system using a batch job.
Environment
SAP Business ByDesign
Reproducing the Issue
- You are trying to automate this copy process by using a batch routine written by you in the external system.
- When you get to the point in the script where you use the NET USE command.
- SAP ByDesign system asks for a certificate.
Cause
You need to import the certificate from the SAP ByDesign system and use external tools to automate the upload of invoice requests via WebDav folder.
Resolution
Please see below a description on how to get a certificate for the WebDAV connection and an alternative solution by using a different WebDAV client.
1.) Certificate:
You can download a certificate for the WebDAV connection in following way:
- Go to the Application and User Management work center.
- Go to the Input and Output Management view.
- Select the Communication Arrangementssubview.
- Select the communication arrangement Access Documents via WebDAV.
- Select Edit Credentials.
- Select the tab Certificate.
- Select Create and Download Key Pair
.
- Choose a location and filename for the exported Certificate.
- Set a password to protect the exported Certificate.
Now the Certificate must be imported in the Internet Explorer by using below steps:
- Open the Microsoft Internet Explorer.
- Go to the Tools -> Internet Options.
- Select the Content tab.
- Choose Certificates.
- Choose Import.
- Follow the steps in the Certificate Import Wizard and Choose the previously exported Certificate file.
- When connecting to the WebDAVUrl via NET USE, a prompt for certificate selection should appear, where you can choose the exported certificate.
Note: If you have only one certificate installed, you could hide the command prompt by using below steps:
- Open the Microsoft Internet Explorer
- Go to the Tools -> Internet Options
- Select the Security tab.
- Choose the Zone for the ByD system (normally Trusted sites)
- Select the Custom Level.
- In the area Miscellaneous set the value for Don't prompt for client certificate selection, when no certificates or only one certificate exists to Disabled.
2.) WebDAV Client:
There are several WebDAV Client tools (also free of charge) on the Internet available which can be used to connect to the WebDAV Url.
In these clients a connection user with password can be defined, normally it is possible to store the password encrypted. It is also
possible to map the WeDAV Url as a Windows drive (e. g. D:\ would then point to the WebDAV location).
If NET USE is required, you can find more information on the Microsoft page:
http://www. microsoft. com/resources/documentation/windows/xp/all/proddocs/en-us/net_use.mspx?mfr=true
There was no possibility found to store the password for NET USE encrypted. If the password is stored unencrypted in plain text, it would
be possible for everybody to access the system with the user and password which is used for NET USE.
See Also
Keywords
Access Documents via WebDAV, WebDav, Certidicate, Download Key Pair. , KBA , access documents via webdav , download key pair , certidicate , AP-RC-DOC , Document Centric Application Service , Problem