on 2014 Nov 21 6:40 AM
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!
Regarding URL for Content Server documents, we use FMs:
CVAPI_DOC_GETDETAIL
and
SDOK_PHIO_GET_URL_FOR_GET
With CVAPI_DOC_GETDETAIL, pass DIR information and retrieve PH_OBJID's (1 for each file)
Pass PH_OBJID to SDOK_PHIO_GET_URL_FOR_GET as OBJID with CLASS = DMS_PCD1
Retrieve URL from URLS
We use this method extensively for easy read access to DMS document from external systems.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sagar,
Thanks for the inputs.
The above file in screen shot is got from the url that contains 'get'.
But the problem here is it is not able to recognize the file format.
Is there anything else should be done other than this before using this function module to generate the URL?
thank you,
Regards,
Santhosh
If i change the file type and open in pdf i am able to view the file properly.
These are the parameters that i pass in this function module,
Import parameters Value
OBJECT_ID ZBC_TEST E47FB1024A2765F184EC0219BF9CC668
REQUESTED_COMPONENTS 1 Entry (This is the file name that i pass here)
CLIENT 818
Please tell me if i need to pass any other parameter.
Thank you,
Regards,
Santhosh
Hi Richard.
Thanks for your insights, they've been very useful! There's only one thing I haven't been able to solve so far and maybe you can help me, is that the URL generates a download of the file but without the file extension (when the save windows opens, the file name is without any extension like ".pdf"), so the If the user doesn't know the exact file format and adds the extension to the file, he won't be able to open it.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
9 | |
8 | |
8 | |
5 | |
4 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.