<?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: How to save blob data (variable length string) in a customized table? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-save-blob-data-variable-length-string-in-a-customized-table/m-p/4616842#M1087772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at how SAP stores IDOCs in the database (look for tables with EDI...). The IDOC content is basically one long string in a field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Oct 2008 10:38:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-15T10:38:18Z</dc:date>
    <item>
      <title>How to save blob data (variable length string) in a customized table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-save-blob-data-variable-length-string-in-a-customized-table/m-p/4616841#M1087771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written a very simple program to update table with 2 fields which&lt;/P&gt;&lt;P&gt;looks as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;========================================================&lt;/P&gt;&lt;P&gt;Table name ZTESTBLOBDATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field         Key          Init    Data Element   Data Type  Length   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID          Checked                 ZID                 NUMC        2&lt;/P&gt;&lt;P&gt;BLOB                                   ZBLOB           STRING       0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=========================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOllowing is the sample program that I have written (Transaction SE38).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=========================================================&lt;/P&gt;&lt;P&gt;REPORT ZTESTBLOBPROG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: ZTESTBLOBDATA&lt;/P&gt;&lt;P&gt;data :  itab like ZTESTBLOPDATA occurs 1 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from ztestblobdata into table itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ztestblobdata-id  =   sy-dbcnt +1.&lt;/P&gt;&lt;P&gt;ztestblobdata -blob = 'abcdefghijklmnopqrstuvwxyz.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert ztestblobdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=========================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to save and activate the program, I get the following&lt;/P&gt;&lt;P&gt;error message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'ztestblopdata' must be a flat structure. You cannot use internal&lt;/P&gt;&lt;P&gt;tables, strings, references, or structures as components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==========================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the data type STRING is a must since it is a variable length&lt;/P&gt;&lt;P&gt;data which varies from few characters to few gig. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can go around this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any feedback will be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. I have checked old postings on SDN, spoken to my ABAP contacts and also couple of instructors from SAP when I took XI courses but didn't get a satisfactory answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ram Prasad on Oct 15, 2008 12:28 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 10:27:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-save-blob-data-variable-length-string-in-a-customized-table/m-p/4616841#M1087771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T10:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to save blob data (variable length string) in a customized table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-save-blob-data-variable-length-string-in-a-customized-table/m-p/4616842#M1087772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at how SAP stores IDOCs in the database (look for tables with EDI...). The IDOC content is basically one long string in a field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 10:38:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-save-blob-data-variable-length-string-in-a-customized-table/m-p/4616842#M1087772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T10:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to save blob data (variable length string) in a customized table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-save-blob-data-variable-length-string-in-a-customized-table/m-p/4616843#M1087773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The string that we are getting is from another application via netweaver XI integration and is being sent as a string which has to be saved in an SAP table. I am not sure if IDOC option will suit our needs, but will definitely read more about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is any other suggestion of feedback I would appreciate it a lot.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tks&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 12:22:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-save-blob-data-variable-length-string-in-a-customized-table/m-p/4616843#M1087773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T12:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to save blob data (variable length string) in a customized table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-save-blob-data-variable-length-string-in-a-customized-table/m-p/4616844#M1087774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not that you need to apply IDOCs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was merely suggesting that you should take a look at the DB tables where the IDOC's are saved. IDOC data are also with a "variable" length (depending on the IDOC type) and stored in one single field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 12:29:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-save-blob-data-variable-length-string-in-a-customized-table/m-p/4616844#M1087774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T12:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to save blob data (variable length string) in a customized table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-save-blob-data-variable-length-string-in-a-customized-table/m-p/4616845#M1087775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all the help. I changed the ABAP code a bit and also instead of using abap syntax 'INSERT' I used 'MODIFY' and this solved the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ram Prasad on Oct 20, 2008 3:59 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 13:58:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-save-blob-data-variable-length-string-in-a-customized-table/m-p/4616845#M1087775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T13:58:25Z</dc:date>
    </item>
  </channel>
</rss>

