on 10-30-2013 2:15 PM
Hi experts,
we are facing an issue, where into the DMS there should be a file uploaded but this file is not located on the user's PC but we have an URL for it, like http://www.nestle.com/skin-engine-shared/NCorp/css/images/corporate-logo.png
So instead of forcing the user to download the file to desktop and check it in from there we would like to upload and check in right from the URL.
I spent a lot of time with searching for this here. I found some similar topics, but at the end I didn't find concrete answers if this possible without workaround*.
*An alternative solution would be to retrieve the binary content of the file and upload + check it in with BAPIs like CVAPI_DOC_CHECKIN.
Is this the only solution?
Topics I have found and mach my case more or less:
http://scn.sap.com/thread/3169614
http://scn.sap.com/thread/1465793
Thank you,
Peter
Hi Peter,
based on your description I think that the information at http://wiki.scn.sap.com/wiki/x/5aQ could be useful for you.
If you add an URL as original to a document info record please note that it must not be checked in.
Best regards,
Christoph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christoph,
first of all thank you for your reply.
But, sorry for not being crystal clear regarding the requirement:
We need to move the file into the DMS, the only difference from the normal scenario (upload from desktop) is that the file is located on an external server, for which we have an URL.
So the upload really should happen (yes the document will be duplicated) instead of linking / store the link to the file.
So far what I am thinking of is that first of all we need to get the file from the server like:
cl_http_client=>create_by_url(
EXPORTING
url = 'www.nestle.com/skin-engine-shared/NCorp/css/images/corporate-logo.png'
IMPORTING
client = l_o_http_client ).
l_o_http_client->send( ).
l_o_http_client->receive( ).
l_v_content = l_o_http_client->response->get_data( ).
then upload the binary content using one of the DMS BAPIs - if available...
Thank you,
Peter
User | Count |
---|---|
102 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.