<?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: modifying a custom table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-custom-table/m-p/1897558#M375070</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think the itab must be as long as the dbtab and it will read from left to right so the fields in itab should be like dbtab. other wise run time error may occur.&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;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jan 2007 04:22:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-24T04:22:28Z</dc:date>
    <item>
      <title>modifying a custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-custom-table/m-p/1897555#M375067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to modify a custom table with the contents in the internal table. here ztable has more fields than that of itab.I appreciate if anyone can help me with this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY Ztable FROM TABLE ITAB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 04:10:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-custom-table/m-p/1897555#M375067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T04:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: modifying a custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-custom-table/m-p/1897556#M375068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think this query will work if order of field in ztable and itab is same  try it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 04:14:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-custom-table/m-p/1897556#M375068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T04:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: modifying a custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-custom-table/m-p/1897557#M375069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepthi , &lt;/P&gt;&lt;P&gt;  All you need to do is move the data from your internal table into an internal table with the structure same as your ztable.&lt;/P&gt;&lt;P&gt;Please make sure that you populate all the primary keys , once you have done you can use the command MODIFY Ztable FROM TABLE ITAB , to add data to your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample code for the same&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------" /&gt;&lt;P&gt;Data : it_1 type table of Z01F_TRV001 ,&lt;/P&gt;&lt;P&gt;        wa_1 like line of it_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_1-PERNR = '100'.&lt;/P&gt;&lt;P&gt;wa_1-REINR = '00001'.&lt;/P&gt;&lt;P&gt;wa_1-RECEIPTNO = 'ABC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        append wa_1 to it_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify Z01F_TRV001 from table it_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write sy-subrc.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------" /&gt;&lt;P&gt; here i just fill up the primary keys only and a new record is created in the table&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 04:20:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-custom-table/m-p/1897557#M375069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T04:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: modifying a custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-custom-table/m-p/1897558#M375070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think the itab must be as long as the dbtab and it will read from left to right so the fields in itab should be like dbtab. other wise run time error may occur.&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;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 04:22:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-custom-table/m-p/1897558#M375070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T04:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: modifying a custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-custom-table/m-p/1897559#M375071</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;Try using UPDATE instead of MODIFY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 04:45:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-a-custom-table/m-p/1897559#M375071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T04:45:45Z</dc:date>
    </item>
  </channel>
</rss>

