Quantcast
Channel: SCN : Unanswered Discussions - SAP Portfolio and Project Management (SAP RPM, cProjects) and cFolders
Viewing all articles
Browse latest Browse all 661

Save Document (URL) programatically

$
0
0

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


Viewing all articles
Browse latest Browse all 661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>