<?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 INSERT DATA TO STRUCTURE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-to-structure/m-p/1693754#M304478</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;How can I insert data in a structure ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this code to insert data in a table of db:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZLOAD.&lt;/P&gt;&lt;P&gt;tables T006a.&lt;/P&gt;&lt;P&gt;data: tab type standard table of T006a with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    tab-mandt = '100'.&lt;/P&gt;&lt;P&gt;    tab-spras = 'D'.&lt;/P&gt;&lt;P&gt;    tab-msehi = 'G'.&lt;/P&gt;&lt;P&gt;    tab-mseh3 = 'G'.&lt;/P&gt;&lt;P&gt;    tab-mseh6 = 'g'.&lt;/P&gt;&lt;P&gt;    tab-mseht = 'g'.&lt;/P&gt;&lt;P&gt;    tab-MSEHL = 'Gramm'.&lt;/P&gt;&lt;P&gt;    move-corresponding tab to T006A.&lt;/P&gt;&lt;P&gt;    insert T006A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but,if I want to insert data in the structure RMMG1, which is the form?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Nov 2006 20:02:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-09T20:02:40Z</dc:date>
    <item>
      <title>INSERT DATA TO STRUCTURE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-to-structure/m-p/1693754#M304478</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;How can I insert data in a structure ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this code to insert data in a table of db:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZLOAD.&lt;/P&gt;&lt;P&gt;tables T006a.&lt;/P&gt;&lt;P&gt;data: tab type standard table of T006a with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    tab-mandt = '100'.&lt;/P&gt;&lt;P&gt;    tab-spras = 'D'.&lt;/P&gt;&lt;P&gt;    tab-msehi = 'G'.&lt;/P&gt;&lt;P&gt;    tab-mseh3 = 'G'.&lt;/P&gt;&lt;P&gt;    tab-mseh6 = 'g'.&lt;/P&gt;&lt;P&gt;    tab-mseht = 'g'.&lt;/P&gt;&lt;P&gt;    tab-MSEHL = 'Gramm'.&lt;/P&gt;&lt;P&gt;    move-corresponding tab to T006A.&lt;/P&gt;&lt;P&gt;    insert T006A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but,if I want to insert data in the structure RMMG1, which is the form?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 20:02:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-to-structure/m-p/1693754#M304478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T20:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT DATA TO STRUCTURE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-to-structure/m-p/1693755#M304479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change the last two lines to as written below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append tab.&lt;/P&gt;&lt;P&gt;insert t006a from tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sajan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANNEX: you cannot insert data into a DDIC structure..Structures doesnt hold data except in runtime..&lt;/P&gt;&lt;P&gt;you can move data to a structure..but that will not get saved in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rmmg1 = tab will polulate the structure rmmg1 when the header line of tab is not initial (if initial read with index 1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sajan Joseph&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 20:06:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-to-structure/m-p/1693755#M304479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T20:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT DATA TO STRUCTURE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-to-structure/m-p/1693756#M304480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, welcome to SDN.  There are couple things wrong with your program,  first, you are trying to directy update a standard SAP table which is not a good idea. Second you are using the header line of an internal table as a work area which is not a good programming practice.  If tab was a work area, defined like below, then really you are filling a structure(or work area), this is how you would fill the structure RMMG1, remember that a structure defined in the data dictionary does not actually hold data, it is just a skeleton or blue print of how the data may look,  usually structures are used to defined the fields in a screen and the data is moved from the database table into the structure at runtime of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: tab type  T006a  .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 20:11:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-to-structure/m-p/1693756#M304480</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-09T20:11:23Z</dc:date>
    </item>
  </channel>
</rss>

