Technical Articles
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:
- Exchange knowledge: SAP Community | Q&A| Blogs
- Explore: SAP Product Page | Product Demo
- Learn more: SAP Help Portal | SAP Learning Journey
- Follow us on LinkedIn, Twitter, and YouTube
- SAP Process Automation Best Practice Series.
Hi Chaitanya Priya Puvvada ,
Can we use S3 Bucket for the file upload in SPA.
Regards,
Keerthana
Hi Keerthana jayathran
At the moment, We support CMIS-based repositories.
Hi Chaitanya Priya Puvvada,
Is it possible to upload structure data via excel to S4 using SPA?
Regards,
Parthibaraja
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
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.
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
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?
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?
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
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.
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
Could we upload multiple files on SAP build process automation form?
Ahmed Ajlan
You can upload multiple files