2595252 - How to Upload Customer Invoice Requests to WebDav Folder From a Third-party System Using a Batch Job

SAP Knowledge Base Article - Public

2595252 - How to Upload Customer Invoice Requests to WebDav Folder From a Third-party System Using a Batch Job

Symptom

How to upload customer invoice requests to WebDav folder from a third-party system using a batch job.

Reproducing the Issue

  1. You are trying to automate this copy process by using a batch routine written by you in the external system.
  2. When you get to the point in the script where you use the NET USE command.
  3. 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:

  1. Go to the Application and User Management work center.
  2. Go to the Input and Output Management view.
  3. Select the Communication Arrangementssubview.
  4. Select the communication arrangement Access Documents via WebDAV.
  5. Select Edit Credentials.
  6. Select the tab Certificate.
  7. Select Create and Download Key Pair.
  8. Choose a location and filename for the exported Certificate.
  9. Set a password to protect the exported Certificate.

Now the Certificate must be imported in the Internet Explorer by using below steps:

  1. Open the Microsoft Internet Explorer.
  2. Go to the Tools -> Internet Options.
  3. Select the Content tab.
  4. Choose Certificates.
  5. Choose Import.
  6. Follow the steps in the Certificate Import Wizard and Choose the previously exported Certificate file.
  7. 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:

  1. Open the Microsoft Internet Explorer
  2. Go to the Tools -> Internet Options
  3. Select the Security tab.
  4. Choose the Zone for the ByD system (normally Trusted sites)
  5. Select the Custom Level.
  6. 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.

Keywords

KBA , AP-RC-DOC , Document Centric Application Service , Problem

Product

SAP BUSINESS BYDESIGN 1802 ; SAP Business ByDesign 1711