<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Document-Download from Archive with Function Module SCMS_DOC_READ without success in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-download-from-archive-with-function-module-scms-doc-read-without/m-p/12579842#M2009238</link>
    <description>&lt;P&gt;Alternatively I tried also function module ARCHIVOBJECT_GET_TABLE.&lt;/P&gt;&lt;P&gt;There is written an output-dataset (parameter binarchivobject), but in the end I cannot open the sent mail-attachment.&lt;/P&gt;&lt;P&gt;Here for your reference also the coding:&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ARCHIVOBJECT_GET_TABLE'&lt;/P&gt;EXPORTING&lt;BR /&gt;archiv_id = lw_connections-archiv_id&lt;BR /&gt;document_type = lv_document_type_fb&lt;BR /&gt;archiv_doc_id = lw_connections-arc_doc_id&lt;BR /&gt;all_components = ' '&lt;BR /&gt;signature = ' ' " vorher = 'X'&lt;BR /&gt;compid = ' '&lt;BR /&gt;IMPORTING&lt;BR /&gt;binlength = e_length&lt;BR /&gt;TABLES&lt;BR /&gt;archivobject = et_archivobject&lt;BR /&gt;binarchivobject = et_binarchivobject&lt;BR /&gt;EXCEPTIONS&lt;BR /&gt;error_archiv = 1&lt;BR /&gt;error_communicationtable = 2&lt;BR /&gt;error_kernel = 3&lt;BR /&gt;OTHERS = 4.&lt;BR /&gt;&lt;BR /&gt;CASE sy-subrc.&lt;BR /&gt;WHEN 0.&lt;BR /&gt;&lt;BR /&gt;lv_docid = ls_obj-instid.&lt;BR /&gt;&lt;BR /&gt;IF et_binarchivobject[] IS NOT INITIAL.&lt;BR /&gt;&lt;BR /&gt;REFRESH lt_content_bin.&lt;BR /&gt;&lt;BR /&gt;CALL METHOD cl_rmps_general_functions=&amp;gt;convert_1024_to_255&lt;BR /&gt;EXPORTING&lt;BR /&gt;im_tab_1024 = et_binarchivobject[]&lt;BR /&gt;RECEIVING&lt;BR /&gt;re_tab_255 = lt_content_bin[].&lt;BR /&gt;&lt;BR /&gt;ENDIF.&lt;BR /&gt;&lt;BR /&gt;l_lines = lines( lt_content_bin ).&lt;BR /&gt;l_size = l_lines * 255.&lt;BR /&gt;&lt;BR /&gt;gr_send_request = cl_bcs=&amp;gt;create_persistent( ).&lt;BR /&gt;&lt;BR /&gt;* ADD attchment&lt;BR /&gt;&lt;BR /&gt;CONCATENATE 'Invoice_' gs_invoices-vbeln INTO l_subject.&lt;BR /&gt;&lt;BR /&gt;CALL METHOD gr_document-&amp;gt;add_attachment&lt;BR /&gt;EXPORTING&lt;BR /&gt;i_attachment_type = 'pdf' " l_extension " 'EXT'&lt;BR /&gt;i_attachment_subject = l_subject&lt;BR /&gt;i_attachment_language = sy-langu&lt;BR /&gt;i_attachment_size = l_size&lt;BR /&gt;i_att_content_hex = lt_content_bin. " l_attach.&lt;BR /&gt;&lt;BR /&gt;If anybody have a hint what I could change that is works I would be grateful!&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Udo&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2022 06:36:23 GMT</pubDate>
    <dc:creator>former_member758187</dc:creator>
    <dc:date>2022-06-16T06:36:23Z</dc:date>
    <item>
      <title>Document-Download from Archive with Function Module SCMS_DOC_READ without success</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-download-from-archive-with-function-module-scms-doc-read-without/m-p/12579839#M2009235</link>
      <description>&lt;P&gt;Hello together,&lt;/P&gt;
  &lt;P&gt;I try to download an attachment for an invoice from the Archive (Archivelink).&lt;/P&gt;
  &lt;P&gt;I tried it with FM SCMS_DOC_READ but without success.&lt;/P&gt;
  &lt;P&gt;I tried it also with other Function Modules (a.o. ARCHIV_GET_TABLE), also without success.&lt;/P&gt;
  &lt;P&gt;My coding is as following:&lt;/P&gt;
  &lt;P&gt;CONCATENATE gs_invoices-vbeln '%' INTO gv_vergleich.&lt;BR /&gt;&lt;BR /&gt;SELECT SINGLE object_id arc_doc_id archiv_id reserve&lt;BR /&gt;FROM toa01&lt;BR /&gt;INTO ( lv_object_id, lw_connections-arc_doc_id, lw_connections-archiv_id, lv_document_type )&lt;BR /&gt;WHERE object_id LIKE gv_vergleich.&lt;BR /&gt;&lt;BR /&gt;CALL FUNCTION 'SCMS_DOC_READ'&lt;BR /&gt;EXPORTING&lt;BR /&gt;mandt = sy-mandt&lt;BR /&gt;stor_cat = ' '&lt;BR /&gt;crep_id = lw_connections-archiv_id&lt;BR /&gt;doc_id = lw_connections-arc_doc_id&lt;BR /&gt;TABLES&lt;BR /&gt;access_info = lt_info&lt;BR /&gt;content_txt = lt_content_txt_1022&lt;BR /&gt;content_bin = lt_content_bin_1022&lt;BR /&gt;EXCEPTIONS&lt;BR /&gt;bad_storage_type = 1&lt;BR /&gt;bad_request = 2&lt;BR /&gt;unauthorized = 3&lt;BR /&gt;comp_not_found = 4&lt;BR /&gt;not_found = 5&lt;BR /&gt;forbidden = 6&lt;BR /&gt;conflict = 7&lt;BR /&gt;internal_server_error = 8&lt;BR /&gt;error_http = 9&lt;BR /&gt;error_signature = 10&lt;BR /&gt;error_config = 11&lt;BR /&gt;error_format = 12&lt;BR /&gt;error_parameter = 13&lt;BR /&gt;error = 14&lt;BR /&gt;OTHERS = 15.&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;If you can help with with any hint I would be lucky!&lt;/P&gt;
  &lt;P&gt;Kind regards&lt;/P&gt;
  &lt;P&gt;Udo&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 13:52:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-download-from-archive-with-function-module-scms-doc-read-without/m-p/12579839#M2009235</guid>
      <dc:creator>former_member758187</dc:creator>
      <dc:date>2022-06-15T13:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Document-Download from Archive with Function Module SCMS_DOC_READ without success</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-download-from-archive-with-function-module-scms-doc-read-without/m-p/12579840#M2009236</link>
      <description>&lt;P&gt;When you use the SAP ERP programs to get the archive and you trace the URL, is it the same URL that you access?&lt;/P&gt;&lt;P&gt;Trace using &lt;A href="https://blogs.sap.com/2006/04/05/icf-recording-a-possibility-for-analysing/"&gt;ICF recording – a possibility for analysing | SAP Blogs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here's excerpt from blog post:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Tr. SICF -&amp;gt; Client -&amp;gt; Recorder -&amp;gt; Activate Recording.&lt;/LI&gt;&lt;LI&gt;Get the archive.&lt;/LI&gt;&lt;LI&gt;Tr. SICF -&amp;gt; Client -&amp;gt; Recorder -&amp;gt; Deactivate Recording.&lt;/LI&gt;&lt;LI&gt;To display: We can check this in Tr. SICFRECORDER. Here We have to click on the button ‘Client request’&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;NB: personally, I don't use SICFRECORDER, but it's the same: Tr. SICF -&amp;gt; Client -&amp;gt; Recorder -&amp;gt; Display Recording -&amp;gt; button ‘Client request’&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 17:41:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-download-from-archive-with-function-module-scms-doc-read-without/m-p/12579840#M2009236</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-06-15T17:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Document-Download from Archive with Function Module SCMS_DOC_READ without success</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-download-from-archive-with-function-module-scms-doc-read-without/m-p/12579841#M2009237</link>
      <description>&lt;P&gt;It's no problem of the URL anymore.&lt;/P&gt;&lt;P&gt;I debugged the program and the part with the URL worked correct.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 06:32:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-download-from-archive-with-function-module-scms-doc-read-without/m-p/12579841#M2009237</guid>
      <dc:creator>former_member758187</dc:creator>
      <dc:date>2022-06-16T06:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Document-Download from Archive with Function Module SCMS_DOC_READ without success</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-download-from-archive-with-function-module-scms-doc-read-without/m-p/12579842#M2009238</link>
      <description>&lt;P&gt;Alternatively I tried also function module ARCHIVOBJECT_GET_TABLE.&lt;/P&gt;&lt;P&gt;There is written an output-dataset (parameter binarchivobject), but in the end I cannot open the sent mail-attachment.&lt;/P&gt;&lt;P&gt;Here for your reference also the coding:&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ARCHIVOBJECT_GET_TABLE'&lt;/P&gt;EXPORTING&lt;BR /&gt;archiv_id = lw_connections-archiv_id&lt;BR /&gt;document_type = lv_document_type_fb&lt;BR /&gt;archiv_doc_id = lw_connections-arc_doc_id&lt;BR /&gt;all_components = ' '&lt;BR /&gt;signature = ' ' " vorher = 'X'&lt;BR /&gt;compid = ' '&lt;BR /&gt;IMPORTING&lt;BR /&gt;binlength = e_length&lt;BR /&gt;TABLES&lt;BR /&gt;archivobject = et_archivobject&lt;BR /&gt;binarchivobject = et_binarchivobject&lt;BR /&gt;EXCEPTIONS&lt;BR /&gt;error_archiv = 1&lt;BR /&gt;error_communicationtable = 2&lt;BR /&gt;error_kernel = 3&lt;BR /&gt;OTHERS = 4.&lt;BR /&gt;&lt;BR /&gt;CASE sy-subrc.&lt;BR /&gt;WHEN 0.&lt;BR /&gt;&lt;BR /&gt;lv_docid = ls_obj-instid.&lt;BR /&gt;&lt;BR /&gt;IF et_binarchivobject[] IS NOT INITIAL.&lt;BR /&gt;&lt;BR /&gt;REFRESH lt_content_bin.&lt;BR /&gt;&lt;BR /&gt;CALL METHOD cl_rmps_general_functions=&amp;gt;convert_1024_to_255&lt;BR /&gt;EXPORTING&lt;BR /&gt;im_tab_1024 = et_binarchivobject[]&lt;BR /&gt;RECEIVING&lt;BR /&gt;re_tab_255 = lt_content_bin[].&lt;BR /&gt;&lt;BR /&gt;ENDIF.&lt;BR /&gt;&lt;BR /&gt;l_lines = lines( lt_content_bin ).&lt;BR /&gt;l_size = l_lines * 255.&lt;BR /&gt;&lt;BR /&gt;gr_send_request = cl_bcs=&amp;gt;create_persistent( ).&lt;BR /&gt;&lt;BR /&gt;* ADD attchment&lt;BR /&gt;&lt;BR /&gt;CONCATENATE 'Invoice_' gs_invoices-vbeln INTO l_subject.&lt;BR /&gt;&lt;BR /&gt;CALL METHOD gr_document-&amp;gt;add_attachment&lt;BR /&gt;EXPORTING&lt;BR /&gt;i_attachment_type = 'pdf' " l_extension " 'EXT'&lt;BR /&gt;i_attachment_subject = l_subject&lt;BR /&gt;i_attachment_language = sy-langu&lt;BR /&gt;i_attachment_size = l_size&lt;BR /&gt;i_att_content_hex = lt_content_bin. " l_attach.&lt;BR /&gt;&lt;BR /&gt;If anybody have a hint what I could change that is works I would be grateful!&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Udo&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 06:36:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-download-from-archive-with-function-module-scms-doc-read-without/m-p/12579842#M2009238</guid>
      <dc:creator>former_member758187</dc:creator>
      <dc:date>2022-06-16T06:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Document-Download from Archive with Function Module SCMS_DOC_READ without success</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-download-from-archive-with-function-module-scms-doc-read-without/m-p/12579843#M2009239</link>
      <description>&lt;P&gt;So, you're saying that SCMS_DOC_READ accesses the same URL as in real situation, so the parameters you pass are mostly correct, SAP gets the document successfully, but after that you are saying that it fails.&lt;/P&gt;&lt;P&gt;What exception do you get? Also provide the values of SY-MSGID, SY-MSGNO, and all SY-MSGV*.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 06:40:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-download-from-archive-with-function-module-scms-doc-read-without/m-p/12579843#M2009239</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-06-16T06:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Document-Download from Archive with Function Module SCMS_DOC_READ without success</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/document-download-from-archive-with-function-module-scms-doc-read-without/m-p/12579844#M2009240</link>
      <description>&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;I don't get any exception from SCMS_DOC_READ.&lt;/P&gt;&lt;P&gt;Also the variables SY-MSGID, SY-MSGNO, and all SY-MSGV* are empty. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Udo&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 09:00:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/document-download-from-archive-with-function-module-scms-doc-read-without/m-p/12579844#M2009240</guid>
      <dc:creator>former_member758187</dc:creator>
      <dc:date>2022-06-17T09:00:44Z</dc:date>
    </item>
  </channel>
</rss>

