Skip to Content
0

want to download PDF Attachment as soon as I Create

Feb 28, 2017 at 07:09 AM

230

avatar image

Hi Experts,

I've Custom Business Object and I'm generating PDF on trigger of Business Object Action,as if now I'm generating PDF and my BO Action is attaching PDF to Attachment Folder, then If I want to see it I go and open it by clicking the link in Attachment.

Now I want to have sceanrio where I Press Generate PDF Button(Will trigger Custom BO Action) which will save my PDF in Attachment Folder and open/download the pdf without going to Attachment Folder.

Accessing Business Object is possible via URL Link. Please refer this Blog ( https://blogs.sap.com/2012/04/30/external-integration-of-custom-solutions-in-sap-business-bydesign-sap-cloud-for-customer/#jive_content_id_Formatted_InputOutput_Print_Fax_Mail ) . Please look for Lunch UI via URL section.

Therefore I believe if I'm able to create perfect URL then I'll be able to download PDF Directly.

Please help me......

Regards

Nabarun Barua

10 |10000 characters needed characters left characters exceeded
Former Member

Hello Nabarun,

did you already solve your issue?

I have a similar requirement at the moment in my Project.

Would be great if you can answer me.

Best regards,

Astrid

0

Hi Astrid,

Sorry, couldn't resolve it. We made client agreeing to have on Attachment.

Regards

Nabarun Barua

0
Former Member

Hi Nabarun,

did you already solve your issue?

I have a similar requirement in my project.

I also want to open/download the pdf and save the file at specific location without going to Attachment Folder.

It would be great and helpful if you can answer me the same.

Thanks and Regards

Swati Goswami

0

Hi Swathi,

Sorry, couldn't resolve it. We made client agreeing to have on Attachment.

Regards

Nabarun Barua

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Horst Schaude
Jan 25 at 12:42 PM
0

Hello Nabarun,

You need to consider what the target of the download shall be: Remember the ABSL code is running somewhere in the cloud. How shall this code be enabled to download it to your PC? The "local drive" is the drive of the computer hosting the server, not yours.

Bye,
. Horst

Show 6 Share
10 |10000 characters needed characters left characters exceeded

Hi Horst,

Thanks for Answering, can you please elaborate on this, how the approach should be? In Standard BO we have the Option to download it directly on PC. I have gone through it again and again but couldn't resolve how it is happening.

Regards

Nabarun Barua

0

Hello Naburan,

Did you use a reuse UI to display the attachments?
I am quite sure that there is also a Download button.

HTH,
. Horst

0

Hi Horst,

Can You please let me know the Reuse UI as the Reuse component shared in the SAP Cloud Application Studio book is for PC use only and my Screen Scenario is on Both PC and Tablet.

Regards

Nabarun Barua

0

Hello Nabarun,

The owner of those reuse UIs are Former Member and Markus Reetz-Lamour .

I hope they can provide an answer.

Bye,
. Horst

0

Dear Nabarun,

In the Repository Explorer of the SAP Cloud Application Studio you will find under Reuse UIs the entry "documentlistsmallview" which is enabled for both PC and Tablet and provides a simple list of all Attachments. There is also the entry "documentlist" which is also enabled for both PC and Tablet and provides additional details for selected Attachments.

Best Regards,

Markus

0
Markus Reetz-Lamour

Hi Markus,

Thanks for Reply, is the Reuse UIs "documentlistsmallview" can also be made use for Preview. As the Requirement was as soon as I create PDF and attach it to Attachment via code it should preview the Document.

Regards

Nabarun Barua

0