Skip to Content
Technical Articles
Author's profile photo Chaitanya Priya Puvvada

Upload files in SAP Process Automation

Hello Community,

With SAP Process Automation, you now have the availability to upload files in your forms.

The citizen developers can also restrict the number of files to be uploaded for each file input field.

Approver can download the form when he is approving the tasks in his Inbox.

Pre-requisites

The UI element File Upload is visible in the Form, after completing the pre-requisites.

1. Enable Document Management Service in SAP BTP account

2. Create a Destination for Document Manage Service in your BTP Cockpit. For more information, refer to the documentation.

 

 

Please find the video on setting up DMS.

 

 

Build a Form with File Upload

1. Create a Form and drag and drop the File Upload.

 

2. Create an approval Form and drag and drop the File Upload. Make it read-only since it is sent to the Approver for review.

3. Build your process as shown below and bind the parameters of the Input form with the file parameters of the Approval Form.

 

 

4. Save, Release, and Deploy the process

 Run the business process

Once the Invoice is uploaded and submitted, it goes for approval.

You can find the Approval form with the uploaded invoice document as an attachment in the Approval form which is available for download.

Note

The uploaded file can be retrieved from Document Management Service Repository using automation which can be used further in the Business Process. Please refer to the sample on the BOT store on how to retrieve files from the Document Management Service Repository.

 

For more information on SAP Process Automation, please refer to the following sources:

 

Assigned Tags

      13 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Keerthana Jayathran
      Keerthana Jayathran

      Hi Chaitanya Priya Puvvada ,

      Can we use S3 Bucket for the file upload in SPA.

      Regards,
      Keerthana

      Author's profile photo Chaitanya Priya Puvvada
      Chaitanya Priya Puvvada
      Blog Post Author

      Hi Keerthana jayathran

      At the moment, We support CMIS-based repositories.

      Author's profile photo Parthibaraja Vijayan
      Parthibaraja Vijayan

      Hi Chaitanya Priya Puvvada,

      Is it possible to upload structure data via excel to S4 using SPA?

       

      Regards,

      Parthibaraja

      Author's profile photo Sadiq Manji
      Sadiq Manji

      Hi Chaitanya Priya Puvvada,

       

      Are there plans to enhance some of the Automation Activities, such as "Extract Data" which calls the Document Information Extraction service, to utilize these uploaded files easily?

       

      It doesn't seem very straightforward to download this file from the DMS from within an automation and then supply the local file to this activity. Following the DMS sample on the Bot Store doesn't seem very straightforward for a "citizen developer".

       

      Ideally other activities, like the Excel activities, would also be enhanced to leverage this DMS file.

       

      Best regards,

      Sadiq

      Author's profile photo Chaitanya Priya Puvvada
      Chaitanya Priya Puvvada
      Blog Post Author

      Hi Sadiq Manji ,

      I understand your requirement. As of now, we don't have activities which support that feature. We will take this into consideration.

      Author's profile photo Nico Loeblich
      Nico Loeblich

      Dear Chaitanya Priya Puvvada,

      do you know some capabilites about uploading a document (content) to SAP SDM Service:

      (a) from Office Application(like Excel, Word)
      (b) from any Print-Service
      (c) from 3rd Party Scan Software
      (d) via Interface with encoded Data Stream Content

      Just Direct -> Without saving to local / network windows file explorer.

      Thanks
      Nico

      Author's profile photo Maximilian Hartig
      Maximilian Hartig

      Hi,

      I followed the tutorial and when I upload a document a new document is created in SAP Document Management Service, but unfortunately without content. If I use the samples and upload a document everything works fine: https://store.irpa.cfapps.eu10.hana.ondemand.com/#/package/29a922bb-6cdc-4d7f-82f1-66a73d749921

       

      Any idea what the issue could be?

      Author's profile photo Chaitanya Priya Puvvada
      Chaitanya Priya Puvvada
      Blog Post Author

      Can you check what is happening in the Developer console of the Browser when you are uploading the document using Process automation?

      Are you getting any errors?

      Author's profile photo Soumya Sharma
      Soumya Sharma

      Hello Chaitanya Priya,

      I have followed the same steps as you have mentioned to upload a document from the SAP Process(via Build). In my SAP Build, I can see the UI control of file upload.

      However, when I try to run the process, the file upload control does not load. I get the below error:

      Are there any more steps that I am missing here? Could you please let me know.

      Regards,

      Soumya

       

      Author's profile photo Chaitanya Priya Puvvada
      Chaitanya Priya Puvvada
      Blog Post Author

      Hi Soumya Sharma

      Can you please check if the URL is changed in ur BTP destination? From the error,I notice that the URL is changed to a Dummy URL instead of a DMS repo URL.

      Author's profile photo Soumya Sharma
      Soumya Sharma

      Hello Chaitanya Priya,

      I have created the destination with the right DMS repo URL. However, when I try to access the destination(simply even viewing it in the BTP cockpit) after saving it, I see that the URL gets changed to : https://sap.com/DUMMY_URL.

      I am not really sure if this is expected but this is the current behavior that I am observing.

      Regards,

      Soumya

      Author's profile photo Ahmed Ajlan
      Ahmed Ajlan

      Could we upload multiple files on SAP build process automation form?

      Author's profile photo Chaitanya Priya Puvvada
      Chaitanya Priya Puvvada
      Blog Post Author

      Ahmed Ajlan

      You can upload multiple files