<?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: KPRO file export in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/kpro-file-export/m-p/1162389#M120832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, very interesting to see how to fill all the structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some (newbie-) questions left:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_pool seems to be a structure of file list, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about st_def-content_provide? Is 'SRV' a specific value in your case? how can i find out, what i have to take.&lt;/P&gt;&lt;P&gt;Last question:&lt;/P&gt;&lt;P&gt;Where's the right place to define LOCAL Path (e.g. C:\xyz\) I wont check out to appliation server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Feb 2006 13:41:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-03T13:41:02Z</dc:date>
    <item>
      <title>KPRO file export</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/kpro-file-export/m-p/1162387#M120830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can anybody tell me, how to export a file (e.g. a picture) &amp;lt;b&amp;gt;from KPRO to local file-system&amp;lt;/b&amp;gt;. The file i want is element of the filelist of a DVS (DIS)&lt;/P&gt;&lt;P&gt;Problem is - i have to use an outstanding report and (as far as i know) can't use HTTP-response. Also, the download should work automatically in background and save the file to defined path.&lt;/P&gt;&lt;P&gt;There is a FM CV120_DOC_CHECKOUT_TO_CLIENT that looks right, but i can't get it work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also i have the requirement to get a link for the file in KPRO, wich i can later use to build html img-tags with this source. I used BAPI_DOCUMENT_GET_DETAIL2 and get the filelist (with file_id). I also tried CV120_KPRO_MASTER_DATA_GET to get file_id. Both works well, but when i try to get the url by calling the FM CV120_KPRO_CHECKOUT_TO_URL the function SCMS_URL_GENERATE raise "sdoki_subrc_bad_stor_cat" and later on handle the error as "no_content".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Most important is to get the file to local folder.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx for every answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2006 08:17:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/kpro-file-export/m-p/1162387#M120830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-03T08:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: KPRO file export</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/kpro-file-export/m-p/1162388#M120831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I use FM "CVAPI_DOC_GETDETAIL" to get a list of files which are connected to the DIS. Then FM  "CV120_DOC_CHECKOUT_VIEW" to copy files from kpro to application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here my codeing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
      clear st_def.
      st_def-kpro_use = 'X'.
      st_def-comp_get = 'X'.
      st_def-content_provide = 'SRV'.

      clear st_doc_file.
      st_doc_file-langu       = it_pool-langu.
      t_dappl = it_pool-dappl.
      translate t_dappl to lower case.
      concatenate path_daten1 it_pool-description '.' t_dappl
        into st_doc_file-filename.
      st_doc_file-dappl       = it_pool-dappl.

      clear st_phio.
      select single protected from dms_phio2file
                              into st_phio-protected
                              where file_id = it_pool-file_id.
      st_phio-lo_objid = it_pool-lo_objid.
      st_phio-ph_objid = it_pool-ph_objid.
      st_phio-langu    = it_pool-langu.
      st_phio-filename = it_pool-filename.
      st_phio-file_id  = it_pool-file_id.
      st_phio-storage_cat = it_pool-storage_cat.
      st_phio-created_by = it_pool-created_by.
      st_phio-created_at = it_pool-created_at.
      st_phio-changed_by = it_pool-changed_by.
      st_phio-changed_at = it_pool-changed_at.

      clear st_frontend.
      call function 'CV_GET_FRONTEND_TYPE'
        importing
          pf_frontend_type        = st_frontend-frontend_type
          pf_hostname             = st_frontend-hostname
          pf_winsys               = st_frontend-winsys.

      call function 'CV120_DOC_CHECKOUT_VIEW'
        exporting
          ps_cout_def         = st_def
          ps_doc_file         = st_doc_file
          ps_draw             = st_draw
          ps_phio             = st_phio
          ps_frontend         = st_frontend
        exceptions
          error               = 1
          others              = 2.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2006 12:28:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/kpro-file-export/m-p/1162388#M120831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-03T12:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: KPRO file export</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/kpro-file-export/m-p/1162389#M120832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, very interesting to see how to fill all the structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some (newbie-) questions left:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_pool seems to be a structure of file list, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about st_def-content_provide? Is 'SRV' a specific value in your case? how can i find out, what i have to take.&lt;/P&gt;&lt;P&gt;Last question:&lt;/P&gt;&lt;P&gt;Where's the right place to define LOCAL Path (e.g. C:\xyz\) I wont check out to appliation server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2006 13:41:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/kpro-file-export/m-p/1162389#M120832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-03T13:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: KPRO file export</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/kpro-file-export/m-p/1162390#M120833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now, i tried your coding and it works "nearly" fine.&lt;/P&gt;&lt;P&gt;I get a strange hostname (iuEZxaeu#*ae#w#i#w-I) while using the FM for frontend type. It works the first time and than - never again.&lt;/P&gt;&lt;P&gt;Also found the part of coding where i can enter the path &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Will debug this next week.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2006 14:42:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/kpro-file-export/m-p/1162390#M120833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-03T14:42:07Z</dc:date>
    </item>
  </channel>
</rss>

