cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BTP UI5 App PDF File Handling

shane_kelly2
Participant
0 Likes
766

We are building our first BTP UI5 app.   It is meant to replicate our Sales Order entry system in ECC that normally we run in SAP GUI.  At the end of the process in SAP GUI - SAP creates a PDF file using a smart form and opens the file in acrobat reader so the user can review, and send the email by PDF.

However, in BTP - we have enabled the app to automatically save PDF automatically on the local network drive - but we can only get the PDF to open in the in-browser PDF reader which doesn't have the option to email.  There doesn't seem to be a way to open it directly in Acrobat Reader from a web app. 

Any suggestions how to make this work?

Accepted Solutions (0)

Answers (2)

Answers (2)

gregorw
SAP Mentor
SAP Mentor
0 Likes

If you just want to avoid that the PDF is displayed inline in the browser and directly downloaded then you should check if the backend sets the Content-Disposition Header. Remove it and the PDF should be downloaded. Then the Previous steps can be kept. But as a Auditor I would have my doubs about this outside the system communication.

shane_kelly2
Participant
0 Likes

The download part we have figured out already - it is already saving the file to a local network drive in a unique folder.

However - we want the PDF that just got saved to that local network drive to automatically open up in adobe acrobat (like it doesn in SAP GUI) so that the users can:

a) review the PDF to ensure it is accurate
b) click the button in acrobat reader to attach it to an email

gregorw
SAP Mentor
SAP Mentor
0 Likes

I think the PDF send functionality should be solved via server side output management in the ECC backend. Isn't the E-Mail Address of the customer maintained in the master data?

shane_kelly2
Participant
0 Likes
No - currently we don't store the email address in ECC. In SAP GUI - the PDF automatically opens up in Acrobat Reader - then the users can click the email button. This allows them to add additional documents and customize the contents of the email they are sending to the customer. We want to replicate that same experience in our BTP app