<?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: Archivelink API - get size information in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/archivelink-api-get-size-information/m-p/11160313#M1907467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try investigate function &lt;STRONG&gt;SO_DOCUMENT_READ_API1&lt;/STRONG&gt; and its documentation.&lt;/P&gt;&lt;P&gt;It returns document_data-size and binary content among others... But t&lt;SPAN style="font-size: 10pt;"&gt;here is also parameter FILTER and in it NO_CONTENT:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;Default = ' '.&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;If this flag is set ('X'), the contents (table OBJECT_CONTENT), the&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;specific header data (table OBJECT_HEADER) and the processing&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;parameters (table OBJECT_PARA and OBJECT_PARB) of the document are&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;also read.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Not sure if it will return document_data-size with this FILTER NO_CONTENT set... but maybe you can find some usefull code inside this function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jul 2015 13:59:43 GMT</pubDate>
    <dc:creator>Tomas_Buryanek</dc:creator>
    <dc:date>2015-07-21T13:59:43Z</dc:date>
    <item>
      <title>Archivelink API - get size information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archivelink-api-get-size-information/m-p/11160309#M1907463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all gurus,&lt;/P&gt;&lt;P&gt;I'm looking for a *smart* way to obtain the size information (in bytes) of a file stored on an external repository by means of Archivelink.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the scenario: the configuration of the ERP has been done without any problem and once a document has been archived by means of Archivelink, all the table entries in TOA01, DRAW, DRAT, DRAD etc... have been populated.&lt;/P&gt;&lt;P&gt;Unfortunately, I can't see in these entries any information regarding the file size of an archived document; I was then looking for a way to obtain the information by means of Archivelink APIs, but so far, no success.&lt;BR /&gt;A trivial way to obtain the result is to download the archived content as XSTRING and then get the size information using XSTRLEN( ). But this will lead to severe performance loss as the document could be really huge; moreover, I have to perform such operation on a set of archived documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've seen that the DRAW table contains some fields such as FILELEN and FILELEN1, but in my scenario, these fields are always empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion is really appreciated.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 08:46:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archivelink-api-get-size-information/m-p/11160309#M1907463</guid>
      <dc:creator>matteo_montalto</dc:creator>
      <dc:date>2015-07-21T08:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Archivelink API - get size information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archivelink-api-get-size-information/m-p/11160310#M1907464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matteo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could check the DBSTATT* tables? Field OCCBL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g if your database is ORACLE the table name is DBSTATTORA or if it is DB6 then it is DBSTATTDB6 and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does not give only the XTRING size, rather all the size including size for other fields in tables like TOA01 but should serve you to analyze as compare to XSTRING sizes the other sizes are negligible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can run DB02 or DBACOCKPIT transaction also to see it in real.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note. This DBASTATT* tables are not updated automatically for ORACLE database. You have to run program RSANAORA periodically to update the statistics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 09:21:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archivelink-api-get-size-information/m-p/11160310#M1907464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-07-21T09:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Archivelink API - get size information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archivelink-api-get-size-information/m-p/11160311#M1907465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rudra,&lt;/P&gt;&lt;P&gt;unfortunately, none of the tables DBSTATT* are filled in our systems...&lt;/P&gt;&lt;P&gt;Let's clarify a bit the requirement: we're using archivelink to store on an ext. repository ( Filenet IS through an IBM connector) the documents we bind to an inforecord by means of transaction CV01N/CV02N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the archiving phase:&lt;/P&gt;&lt;P&gt;- files are stored in Filenet IS; no originals are stored in SAP;&lt;/P&gt;&lt;P&gt;- we need to know exactly the XSTRING size of the uploaded files, in order to retrieve them by means of a custom report. In fact, we lately retrieve the contents from another SAP (SRM) system and in order to use the FM&amp;nbsp; SCMS_BINARY_TO_XSTRING (and convert the binary file into an xstring)... we need to know the exact XSTRING size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems a deadlock; to get the file in XSTRING format, you need to know a priori the XSTRING size; otherwise, you can't convert the binary file to an xstring. &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 10:54:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archivelink-api-get-size-information/m-p/11160311#M1907465</guid>
      <dc:creator>matteo_montalto</dc:creator>
      <dc:date>2015-07-21T10:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Archivelink API - get size information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archivelink-api-get-size-information/m-p/11160312#M1907466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oh well I see...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not an expert of Filenet. But there could be some webserices/API available that you could use to retrieve file information. Speak to some Filenet expert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 11:06:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archivelink-api-get-size-information/m-p/11160312#M1907466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-07-21T11:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Archivelink API - get size information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archivelink-api-get-size-information/m-p/11160313#M1907467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try investigate function &lt;STRONG&gt;SO_DOCUMENT_READ_API1&lt;/STRONG&gt; and its documentation.&lt;/P&gt;&lt;P&gt;It returns document_data-size and binary content among others... But t&lt;SPAN style="font-size: 10pt;"&gt;here is also parameter FILTER and in it NO_CONTENT:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;Default = ' '.&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;If this flag is set ('X'), the contents (table OBJECT_CONTENT), the&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;specific header data (table OBJECT_HEADER) and the processing&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;parameters (table OBJECT_PARA and OBJECT_PARB) of the document are&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;also read.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Not sure if it will return document_data-size with this FILTER NO_CONTENT set... but maybe you can find some usefull code inside this function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 13:59:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archivelink-api-get-size-information/m-p/11160313#M1907467</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2015-07-21T13:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Archivelink API - get size information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archivelink-api-get-size-information/m-p/11160314#M1907468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check this link: &lt;A href="http://help.sap.com/saphelp_banking50/helpdata/en/f5/9561d1f3b111d1955b0000e82deb58/content.htm" title="http://help.sap.com/saphelp_banking50/helpdata/en/f5/9561d1f3b111d1955b0000e82deb58/content.htm"&gt;Function: info - SAP Content Server HTTP 4.5 Interface - SAP Library&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This information is specific to SAP's Content server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me, which backend are you using for Archivelink? There should be something similar to the above method, in your system as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Juwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 14:28:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archivelink-api-get-size-information/m-p/11160314#M1907468</guid>
      <dc:creator>Juwin</dc:creator>
      <dc:date>2015-07-21T14:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Archivelink API - get size information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archivelink-api-get-size-information/m-p/11160315#M1907469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I've seen, the only FM that can provide information regarding file length (and binlength, eventually) is ARCHIV_GET_TABLE; however, even though the ARCHIVOBJECT and&lt;SPAN class="L0S31"&gt; BINARCHIVOBJECT tables parameters are "optional", I've seen in the code that in case LENGTH is requested, they perform a call to&amp;nbsp; ARCHIVOBJECT_GET_TABLE... and this is quite performance-critical.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 15:33:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archivelink-api-get-size-information/m-p/11160315#M1907469</guid>
      <dc:creator>matteo_montalto</dc:creator>
      <dc:date>2015-07-21T15:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Archivelink API - get size information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archivelink-api-get-size-information/m-p/11160316#M1907470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tomas and thanks for your help,&lt;/P&gt;&lt;P&gt;unfortunately it seems that SO_DOCUMENt_READ_API1 doesn't fit my requirement; I tried to guess how to fill the parameters but no matter what I pass, that FM returns always a "Document ID does not exist" error.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried debugging a bit and found that a query on the SOFD table is the reason of the error.&lt;/P&gt;&lt;P&gt;I then looked at SOFD contents, finding out that there's no entry in that table related to my files.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Inforecord operativity creates entries in TOA01, DRAW, DRAT and linkage tables such as DRAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway for your support,&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 10:08:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archivelink-api-get-size-information/m-p/11160316#M1907470</guid>
      <dc:creator>matteo_montalto</dc:creator>
      <dc:date>2015-07-29T10:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Archivelink API - get size information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archivelink-api-get-size-information/m-p/11160317#M1907471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juwin,&lt;/P&gt;&lt;P&gt;I configured some backends to connect through Archivelink to an external repository (Filenet IS, by means of an IBM's connector); versions vary from 4.6C to ECC6Ehp6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I've seen from the document, I could use an HTTP function "info" to retrieve size of a specific content; however, I didn't understand how this work. I mean, I should build an URL to be invoked ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 10:16:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archivelink-api-get-size-information/m-p/11160317#M1907471</guid>
      <dc:creator>matteo_montalto</dc:creator>
      <dc:date>2015-07-29T10:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Archivelink API - get size information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archivelink-api-get-size-information/m-p/11160318#M1907472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to use these function modules:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;*Get the absolute URL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;call function 'SCMS_URL_GENERATE'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; exporting&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; command &lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;= 'info'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; contrep &lt;SPAN style="font-family: 'courier new', courier; font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;= 'ZI'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; docid&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = lv_docid&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; importing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; absolute_uri = lv_absurl.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then HTTP2_GET, to call the URL and get results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: SCMS_HTTP_ADMIN_SERVER_INFO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Juwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 13:08:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archivelink-api-get-size-information/m-p/11160318#M1907472</guid>
      <dc:creator>Juwin</dc:creator>
      <dc:date>2015-07-29T13:08:38Z</dc:date>
    </item>
  </channel>
</rss>

