<?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>Question Re: Save or copy instance.pdf in unmanagedDisk in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/save-or-copy-instance-pdf-in-unmanageddisk/qaa-p/13606178#M4818263</link>
    <description>i am a developper java i need to do that with java not with Assistant tool, so i cant get the pdf instant content from the history.</description>
    <pubDate>Thu, 15 Feb 2024 08:33:28 GMT</pubDate>
    <dc:creator>querrec</dc:creator>
    <dc:date>2024-02-15T08:33:28Z</dc:date>
    <item>
      <title>Save or copy instance.pdf in unmanagedDisk</title>
      <link>https://community.sap.com/t5/technology-q-a/save-or-copy-instance-pdf-in-unmanageddisk/qaq-p/13589438</link>
      <description>&lt;P&gt;I need to get instance of document already sheduled with format pdf and save it in specific unmanaged disk:&lt;/P&gt;&lt;P&gt;I have a list of instances of a webi document, i need to get all there instances .pdf&amp;nbsp; .csv or .xlsx and save them on specific folder (unmanagedDisk).&lt;/P&gt;&lt;P&gt;How can i copy this intance.pdf in specific folder with java sdk or restfull webservice?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 13:27:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/save-or-copy-instance-pdf-in-unmanageddisk/qaq-p/13589438</guid>
      <dc:creator>querrec</dc:creator>
      <dc:date>2024-01-31T13:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Save or copy instance.pdf in unmanagedDisk</title>
      <link>https://community.sap.com/t5/technology-q-a/save-or-copy-instance-pdf-in-unmanageddisk/qaa-p/13598318#M4816097</link>
      <description>&lt;P&gt;AFAIK, there is no way to just copy them from instances to another folder, even using one of the SDKs.&amp;nbsp;&amp;nbsp;The only way I know of to do this is to download the files from the instances and then re-publish them to the correct folder.&amp;nbsp; This is not difficult using either of the SDKs you mention.&lt;/P&gt;&lt;P&gt;-Dell&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 16:50:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/save-or-copy-instance-pdf-in-unmanageddisk/qaa-p/13598318#M4816097</guid>
      <dc:creator>DellSC</dc:creator>
      <dc:date>2024-02-07T16:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Save or copy instance.pdf in unmanagedDisk</title>
      <link>https://community.sap.com/t5/technology-q-a/save-or-copy-instance-pdf-in-unmanageddisk/qaa-p/13606178#M4818263</link>
      <description>i am a developper java i need to do that with java not with Assistant tool, so i cant get the pdf instant content from the history.</description>
      <pubDate>Thu, 15 Feb 2024 08:33:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/save-or-copy-instance-pdf-in-unmanageddisk/qaa-p/13606178#M4818263</guid>
      <dc:creator>querrec</dc:creator>
      <dc:date>2024-02-15T08:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Save or copy instance.pdf in unmanagedDisk</title>
      <link>https://community.sap.com/t5/technology-q-a/save-or-copy-instance-pdf-in-unmanageddisk/qaa-p/13606779#M4818370</link>
      <description>&lt;P&gt;Here's the logic I would use in Java to copy the files to another location on the disk:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Get the root folder of the OutputFileRepositoryServer using something like the following code (code was written in C#, you'll need to translate to Java...)&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;    private string getOutputServerPath()
    {
      string result = string.Empty;
      string query = "Select * From CI_SYSTEMOBJECTS Where SI_FRIENDLY_NAME like 'Output%'";
      
      using (InfoObjects servers = _common.BOEInfoStore.Query(query))
      {
        if (servers.Count &amp;gt;= 1)
        {
          Server server = (Server)servers[1];
          FileServerAdmin serverAdmin = new FileServerAdmin(server.ServerAdmin);
          result = serverAdmin.RootDirectory;
          //strip off trailing backslash
          if (result.Substring(result.Length - 1) == "\\")
            result = result.Substring(0, result.Length - 1);
        }
      }
      return result;
    }&lt;/LI-CODE&gt;&lt;P&gt;2.&amp;nbsp; Find the report that you're looking for and get its SI_ID value&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Get the list of instances for that report by running a query similar to this:&lt;/P&gt;&lt;P&gt;Select SI_ID, SI_NAME, SI_KIND, SI_FILES from CI_INFOOBJECTS where SI_PARENTID = &amp;lt;&lt;EM&gt;SI_ID of the report template&lt;/EM&gt;&amp;gt; and SI_KIND &amp;lt;&amp;gt; 'Webi'&lt;/P&gt;&lt;P&gt;4.&amp;nbsp; For each instance found from the above query,&amp;nbsp; you can find the file by getting the SI_FILES property bag and&amp;nbsp; replacing&amp;nbsp;"frs://Output" with the root folder for the output file repository found in Step 1 for the first item in the property bag.&amp;nbsp; You would then just copy the file where you need it.&amp;nbsp; You'll probably also need to rename the file because, IIRC, the file names are a CUID value and don't reflect the name of the instance.&amp;nbsp; I highly recommend using the QueryBuilder tool to look at the SI_FILES property of several instances so that you know what you're working with.&lt;/P&gt;&lt;P&gt;Also, the SI_KIND property will tell you what kind of file you're dealing with.&lt;/P&gt;&lt;P&gt;-Dell&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 15:19:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/save-or-copy-instance-pdf-in-unmanageddisk/qaa-p/13606779#M4818370</guid>
      <dc:creator>DellSC</dc:creator>
      <dc:date>2024-02-15T15:19:41Z</dc:date>
    </item>
  </channel>
</rss>

