cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate URL for Content Server documents?

0 Kudos
6,755

Hi  Gurus,

I have a requirement  here: I didn't find related stuff in Google.

1.  How to generate URL for Content Server documents?

2.  How to access those documents with change mode and update documents through Sales Force?

Kindly share your ideas and experience to achieve for the same.Can anyone help me with this? It would be much appreciated!

View Entire Topic
0 Kudos

Hi Reddy,

Use   CVAPI_DOC_CHECKOUTVIEW to get the URL for the files attached to a DIR.

Ensure   pf_content_provide as 'URL'.

sample code:

        CALL FUNCTION 'CVAPI_DOC_CHECKOUTVIEW'
      EXPORTING
        pf_dokar           = <ls_buffer>-documenttype
        pf_doknr           = <ls_buffer>-documentnumber
        pf_dokvr           = <ls_buffer>-documentversion
        pf_doktl           = <ls_buffer>-documentpart
        pf_content_provide = 'URL'
      IMPORTING
        psx_message        = ls_msg
      TABLES
        pt_files           = lt_files.

Regards,

Hari

0 Kudos

Hi HariPrakash,

    Thanks for  your quick response.

    I tried this FM "CVAPI_DOC_CHECKOUTVIEW" . As per the discussion, I have given all the parameters but  it's not  creating URL. Can  you please suggest  how to get URL.

Please find the below snap for your better understand.

Thanks & Regards

Lokesh

0 Kudos

Hi Reddy,

You can try the MF : C_DESK_DOC_GET_URL, it will give you  the URL from the document data (DOKAR, DOKNR, DOKVR, DOKTL)

Regards

Nathalie

0 Kudos

Hi,
It's possible to generate the URL file in PHP based in the DOKNR, DOKAR, DOKVR, DOKTL and file name?

My goal is download some files from SAP BOM in a PHP app, it's possible?

Regards,
Fernando Pinto