<?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: insert into table corresponding fields - syntax in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-table-corresponding-fields-syntax/m-p/1532591#M243234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi baran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is an easier way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code like this.&lt;/P&gt;&lt;P&gt;______________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : struct like database_structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*suppose there are 3 fields and we want to fill 2 *fields. ie field1 and field3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;struct-field1 = 'val1';&lt;/P&gt;&lt;P&gt;struct-field3= 'val3';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY data_base_table FROM struct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly award points, if u r comfortable with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for any clarification just mail me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anversha.&lt;/P&gt;&lt;P&gt;anversha.shahul@wipro.com&lt;/P&gt;&lt;P&gt;mob 0984 66 77 531&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Sep 2006 09:16:40 GMT</pubDate>
    <dc:creator>anversha_s</dc:creator>
    <dc:date>2006-09-07T09:16:40Z</dc:date>
    <item>
      <title>insert into table corresponding fields - syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-table-corresponding-fields-syntax/m-p/1532588#M243231</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;I have an structure with a lot of fields and I have a database table with less field. Some of the fields of the structure match the database table fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there a way of doing an "INSERT INTO dtbase CORRESPONDING FIELDS FROM struct"??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or do I have to move each field by:&lt;/P&gt;&lt;P&gt;dbase_table-field1 = struct-field1&lt;/P&gt;&lt;P&gt;dbase_table-field2 = struct-field2&lt;/P&gt;&lt;P&gt;dbase_table-field6 = struct-field6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so on??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;baran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 07:24:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-table-corresponding-fields-syntax/m-p/1532588#M243231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-07T07:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: insert into table corresponding fields - syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-table-corresponding-fields-syntax/m-p/1532589#M243232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Baran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can directly move the fields by writing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move : struct_field1 to dbtable_field1,&lt;/P&gt;&lt;P&gt;       struct_field2 to dbtable_field2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also u can use move-corresponding .&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;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 07:28:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-table-corresponding-fields-syntax/m-p/1532589#M243232</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2006-09-07T07:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: insert into table corresponding fields - syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-table-corresponding-fields-syntax/m-p/1532590#M243233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the structure of datase table and internal table should be same while inserting , INTO CORRESPONDING will not work,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to go for ur second option&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 07:28:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-table-corresponding-fields-syntax/m-p/1532590#M243233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-07T07:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: insert into table corresponding fields - syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-table-corresponding-fields-syntax/m-p/1532591#M243234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi baran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is an easier way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code like this.&lt;/P&gt;&lt;P&gt;______________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : struct like database_structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*suppose there are 3 fields and we want to fill 2 *fields. ie field1 and field3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;struct-field1 = 'val1';&lt;/P&gt;&lt;P&gt;struct-field3= 'val3';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY data_base_table FROM struct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly award points, if u r comfortable with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for any clarification just mail me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anversha.&lt;/P&gt;&lt;P&gt;anversha.shahul@wipro.com&lt;/P&gt;&lt;P&gt;mob 0984 66 77 531&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 09:16:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-table-corresponding-fields-syntax/m-p/1532591#M243234</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-09-07T09:16:40Z</dc:date>
    </item>
  </channel>
</rss>

