cancel
Showing results for 
Search instead for 
Did you mean: 

How to save & retrieve pdf files from DMS server?

Former Member
0 Kudos

Hi,

I was initially saving and retrieving the pdf files for invoices,receipts etc using Ztable. But now basis consultant asked me to use DMS server since database load is increasing. He said he will create a repository to store the docs. My question is how do we store the pdfs in the repository and then retrieve it in another report? Is there any BAPI or FM?

Please help!!

Accepted Solutions (1)

Accepted Solutions (1)

christoph_hopf
Advisor
Advisor
0 Kudos

Hi,

If you are looking for a BAPI I would recommend you to use the following for storing files

  • BAPI_DOCUMENT_CREATE2
  • BAPI_DOCUMENT_CHANGE2
  • API_DOCUMENT_MAINTAIN2

and the BAPI_DOCUMENT_CHECKOUTVIEW2 for retrieving the file.

Best regards,

Christoph

Former Member
0 Kudos

Thanks Christoph, I tried a test program and am able to save and retrieve the documents from DMS. But I have a doubt, in my actual scenario, I want to save the PDF generated from adobe form into the DMS server. For the BAPI 'BAPI_DOCUMENT_CREATE2', we have to pass the file path(docpath). So should I need to save the adobe form in the presentation layer using GUI_DOWNLOAD and the retrieve the file path? Isn't there any other easy way to do this? Please help!

Answers (3)

Answers (3)

Former Member
0 Kudos

Can anyone please help, this requirement is very urgent.

former_member683390
Discoverer
0 Kudos

Hi,

Did you done the above requirement

Former Member
0 Kudos

Thanks Christoph, I tried a test program and am able to save and retrieve the documents from DMS. But I have a doubt, in my actual scenario, I want to save the PDF generated from adobe form into the DMS server. For the BAPI 'BAPI_DOCUMENT_CREATE2', we have to pass the file path(docpath). So should I need to save the adobe form in the presentation layer using GUI_DOWNLOAD and the retrieve the file path? Isn't there any other easy way to do this? Please help!

vamsilakshman_pendurti
Active Participant
0 Kudos

Hi,

You can go with the Tcode CV01 for saving and displaying documents into Content Server.

Read the documentation on CV01 in SCN.

Thanks,

Vamsi

christoph_hopf
Advisor
Advisor
0 Kudos

Hi add an N to your Tcode, because CV01 is old and should not be used anymore.

vamsilakshman_pendurti
Active Participant
0 Kudos

Hi Christoph,

Yes, what you said is right...! i forget to place N.

Tcode : CV01N

Thanks,

Vamsi