cancel
Showing results for 
Search instead for 
Did you mean: 

Storing a PDF doc generated from WD ABAP

UdayMS
Participant
0 Kudos

Hello All,

We have a situation here. Our Portal in integrated with several WD ABAP Applications. In all of them there are  various search criteria based on which data is fetched from ECC and displayed as a table in the WD application. Option has been provided to convert the data displayed in the table to convert to PDF and print.Is there a way this generated PDF be stored anywhere so as to be used later if necessary.

1. The data displayed through search criteria changes from time to time, hence this need for storage.

2. Storing on local desktop is not an option.

Can anyone guide on how this can be achieved? Can it be stored in Portal somewhere or any suggestions are welcome.

Requirement is such, user when clicks on say Print, he should get an option to save( it should be saved in SAP or Portal or somewhere) also print if needed.

Thanks

Uday

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member221372
Participant
0 Kudos

Hello Uday,

Please try to use this Function Module to archieve your data ARCHIV_CREATE_TABLE.

Cheers,

Bharath

UdayMS
Participant
0 Kudos

Hello Bharath,

Thanks for the reply.

But my issue is from the WD Application "Print" tab (where it will ask user to save/print), it should go to a place and get saved. Then user should be able to access those docs from the place where it is saved from the portal.

Thanks

Uday

Former Member
0 Kudos

Hi,

a very simple way ist to store the pdf xstring in a Y Table.

kind regards

Alex

UdayMS
Participant
0 Kudos

Hello Alexander,

Thank you for the response. Pls elaborate a bit more on this. Also in that case how to show this to the user in that case.

Thanks

Uday

Former Member
0 Kudos

okay, i am not quite sure about your technical solution to convert the data into pdf.

Is the pdf shown in your WDA Application?

At the end of the convert process there should be a xstring with the pdf file content.

This xstring could simply be saved into a custom Tablefield of type xstring.

If you need to show the pdf again, read it from table und give the xstring back to your application.

That is the simple solution, but think about storage in this case, don´t know how many pdfs get generated, maybe you will need a lot of storage....

UdayMS
Participant
0 Kudos

Since data is already converted in PDFs format, we are OK from that perspective. But the concern is to store that. The requirement is such that, once user clicks on print/save he needs to have an option to save in Portal or anywhere.

As you said, there will be large numb of documents so space is also an issue

Former Member
0 Kudos


Hi Uday,

you said the pdf is already converted to pdf, so I assume you have an xstring, which reprents the generated PDF (this by the way should be as large as the pdf, so if you have a 1 MB PDF, the xstring data also needs 1 MB storage).

This xstring has to be stored in a custom table.

You have to define which search criteria identify a document exactly (that should match criterias the user uses to find a document) build a table key and add a field of type xstring to the table.

In this field you can store your pdf xstring.

When you want to display the document again, just read the xstring and display it in your wda application.

for displaying the pdf in a wda application maybe this could be helpful:

A Simple Web Dynpro Application to display a pdf file in the browser window - Web Dynpro ABAP - SCN ...

hope this helps :-).

kind regards

Alex