on 07-15-2016 12:26 PM
Hi all,
I'd like to ask if it is possible to upload a document as URL in RPM programatically?
I tried to program an upload similar to the one used in the Web Dynpro Component /RPM/Document in the View VI_UPLOADDETAIL, but it fails.
More specifically:
the returning ls_ndoc_data is initial when I use this method with the same values as the WebDynpro calls it:
lr_doc_utils->create_doc_in_fol(
EXPORTING
is_context = wd_this->gs_object_data
is_parent_folder = ls_pfol_data
it_all_docs = wd_this->mt_docs_folders
is_base_object = wd_this->ms_object
iv_docpath = stru_uploadnewdoc-url
iv_docmime = stru_uploadnewdoc-mimetype
iv_description = stru_uploadnewdoc-docdesc
iv_as_url = abap_true
IMPORTING
es_new_doc = ls_ndoc_data ).
I tried to insert the URL + Description into the Tables /RPM/Document and DPR_Document_T, since those are the tables that consist data for documents stored in RPM, but this is not enough.
If you have any hints, or usable function modules or can tell me what is missing on my database approach to store a URL as Document in RPM, that'd be helpful.
Kind Regards,
Josef
I did find a way for uploading files as URLs programatically.
Important is, that /rpm_cl_document_api is used with sc_document_create with the ke4y containing root guid and object type and the data is done with a type /rpm/ts_api_document with save_as_url = abap_true.
final save is done with cl_inm_ppm_services=>save
Hope it helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Josef,
Have you resolved the issue stated above? We are also planning to achieve same functionality dynamically by developing program.
Best Regards,
Aditya Kotak
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Josef,
can you please elaborate this as what exactly you are trying to do?
" if it is possible to upload a document as URL in RPM programatically?"
We have developed custom reports/FMs where we have integrated PPM system with outlook/smart tags from where we upload/send documents and they get inserted to individual projects of document section under desired folder in backend by calling those reports in backend.
Thanks,
Pavan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.