<?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: Saving Attachments in DB Tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-attachments-in-db-tables/m-p/1287640#M154383</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you could use general object serivces (cl_gos_* classes) for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you could simply store the whole content into a ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Mar 2006 09:50:28 GMT</pubDate>
    <dc:creator>athavanraja</dc:creator>
    <dc:date>2006-03-07T09:50:28Z</dc:date>
    <item>
      <title>Saving Attachments in DB Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-attachments-in-db-tables/m-p/1287637#M154380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an requirement where i have to Save DOCS file.And Fetch them whenever needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution that i am appying is:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------" /&gt;&lt;P&gt;i am saving Docs file in a folder on SAP APPLN SERVER, and then saving the PATH/LINK to that file in a DB table.&lt;/P&gt;&lt;P&gt;So that when i need that file i can simply get the PATH/LINK Stored in DB table and then Upload the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other alternative to that,like storing the DOC files straightaway in DB table and Fetch them back when Required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANY IDEAS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Vijay Raheja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 09:42:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-attachments-in-db-tables/m-p/1287637#M154380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-07T09:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Attachments in DB Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-attachments-in-db-tables/m-p/1287638#M154381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you can do that by activating the DMS (Document Management System) of SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 09:46:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-attachments-in-db-tables/m-p/1287638#M154381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-07T09:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Attachments in DB Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-attachments-in-db-tables/m-p/1287639#M154382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP could save the document into tables. Look the table DRAW &amp;amp; DRAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgd&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 09:48:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-attachments-in-db-tables/m-p/1287639#M154382</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2006-03-07T09:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Attachments in DB Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-attachments-in-db-tables/m-p/1287640#M154383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you could use general object serivces (cl_gos_* classes) for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you could simply store the whole content into a ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 09:50:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-attachments-in-db-tables/m-p/1287640#M154383</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-03-07T09:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Attachments in DB Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-attachments-in-db-tables/m-p/1287641#M154384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want to store it in Ztable check out the following thread for complete code sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="406258"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 09:54:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-attachments-in-db-tables/m-p/1287641#M154384</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-03-07T09:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Attachments in DB Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-attachments-in-db-tables/m-p/1287642#M154385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Durairaj Athavan Raja  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the code..It works Perfectly for XML or Say Binary format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ISSUES NOW:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;1) What about Unicode Conversion.?&lt;/P&gt;&lt;P&gt;   AS i am working with DOC files, ANY IDEA?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Also the code that you have given,if the file/Record to    &lt;/P&gt;&lt;P&gt;   be inserted is of Bigger length,It stores all ZEROS in &lt;/P&gt;&lt;P&gt;   DB Table.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   And when i try to Decompress those DB Contents it &lt;/P&gt;&lt;P&gt;   creates Dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vijay Raheja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 10:43:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-attachments-in-db-tables/m-p/1287642#M154385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-07T10:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Attachments in DB Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-attachments-in-db-tables/m-p/1287643#M154386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;which version of SAP you are working on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are on WAS6.40 you can simply use string or xtring as field type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as far the unicode, its based on your CODEPAGE parameter of gui_upload - &lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;For Reference the SAP internal Code page numbers are 4102 for utf-16be, 4103 for utf-16le, and 4110 for utf-8. These can be found in table TCP00A or by calling function module: SCP_CODEPAGE_BY_EXTERNAL_NAME.courtesy /people/thomas.jung3/blog/2004/08/09/bsp-download-to-excel-in-unicode-format - Thomas Jung&amp;lt;/i&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if you want to convert it within your program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;app_type = 'APPLICATION/MSEXCEL; charset=utf-16le'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   call function 'SCMS_STRING_TO_XSTRING'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      text     = l_string&lt;/P&gt;&lt;P&gt;      mimetype = app_type&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      buffer   = l_xstring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 11:06:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-attachments-in-db-tables/m-p/1287643#M154386</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-03-07T11:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Attachments in DB Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-attachments-in-db-tables/m-p/1287644#M154387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your question answered? if so mark the thread as answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2006 07:55:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-attachments-in-db-tables/m-p/1287644#M154387</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-03-08T07:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Attachments in DB Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-attachments-in-db-tables/m-p/1287645#M154388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks RAJA for your replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Working on the same.&lt;/P&gt;&lt;P&gt;Will get back to you in new post,If i face more Problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;VIJAY RAHEJA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2006 08:48:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-attachments-in-db-tables/m-p/1287645#M154388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-08T08:48:48Z</dc:date>
    </item>
  </channel>
</rss>

