<?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: ]INTO CORRESPONDING FIELDS OF in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/into-corresponding-fields-of/m-p/2555712#M582434</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;The INTO clause defines the target area into which the selection from the SELECT clause is written. Suitable target areas are variables whose data type is compatible with or convertible into that of the selection in the SELECT clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SELECT clause determines the data type of the target area as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        The linesspecification in the SELECT clause determines the depth of the target area, that is, whether it is a flat or a tabular structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        The colsspecification in the SELECT clause determines the structure (line type) of the target area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To read data into one, use the following in the INTO clause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ... INTO &lt;A href="CORRESPONDING FIELDS OF"&gt;&lt;/A&gt; wa ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The target area wa must be at least as large as the line to be read into it. When you read the data into wa, its previous contents are overwritten. However, the components of wa that are not affected by the SELECTstatement retain their previous values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the work area is structured, you can use the CORRESPONDING FIELDS addition. This transfers only the contents of fields whose names are identical in the database table and the work area. This includes any alias column names that you specified in the selection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpfull answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2007 11:27:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-19T11:27:01Z</dc:date>
    <item>
      <title>]INTO CORRESPONDING FIELDS OF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/into-corresponding-fields-of/m-p/2555703#M582425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When &amp;lt;u&amp;gt;INTO CORRESPONDING FIELDS OF&amp;lt;/u&amp;gt; is used in a select statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 11:21:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/into-corresponding-fields-of/m-p/2555703#M582425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T11:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: ]INTO CORRESPONDING FIELDS OF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/into-corresponding-fields-of/m-p/2555704#M582426</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;INTO CORRESPONDING FIELDS OF TABLE is transferring the value from select clause to itab where the field names are same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose you have&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;menge like mseg-menge,&lt;/P&gt;&lt;P&gt;lgort like mard-lgort,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr lgort into table from mard where....&lt;/P&gt;&lt;P&gt;it may give an error because you are not filling menge here or it may fetch the value in matnr and menge field.&lt;/P&gt;&lt;P&gt;but if you use INTO CORRESPONDING FIELDS OF TABLE then it will fetch the data to matnr and lgort field only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE is only matching by name not by datatype be careful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if it helps,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Omkar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 11:23:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/into-corresponding-fields-of/m-p/2555704#M582426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T11:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: ]INTO CORRESPONDING FIELDS OF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/into-corresponding-fields-of/m-p/2555705#M582427</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;INTO CORRESPONDING FIELDS OF TABLE is transferring the value from select clause to itab where the field names are same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose you have&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;menge like mseg-menge,&lt;/P&gt;&lt;P&gt;lgort like mard-lgort,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr lgort into table from mard where....&lt;/P&gt;&lt;P&gt;it may give an error because you are not filling menge here or it may fetch the value in matnr and menge field.&lt;/P&gt;&lt;P&gt;but if you use INTO CORRESPONDING FIELDS OF TABLE then it will fetch the data to matnr and lgort field only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE is only matching by name not by datatype be careful.&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, 19 Jul 2007 11:23:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/into-corresponding-fields-of/m-p/2555705#M582427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T11:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: ]INTO CORRESPONDING FIELDS OF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/into-corresponding-fields-of/m-p/2555706#M582428</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;If your internal table has NOT the same structure as the ddic table you are selecting from, but it has the SAME FIELDNAMES, then you have to use the INTO CORRESPONDING FIELDS OF statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 11:24:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/into-corresponding-fields-of/m-p/2555706#M582428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T11:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: ]INTO CORRESPONDING FIELDS OF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/into-corresponding-fields-of/m-p/2555707#M582429</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;in this below kind of internal table declaration we will use "into corresponding fields of table" to fill the data from database table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;mbrsh type mara-mbrsh,&lt;/P&gt;&lt;P&gt;ersda type mara-ersda,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara into corresponding fields of table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write:/ itab-matnr,itab-mbrsh,itab-ersda.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 11:24:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/into-corresponding-fields-of/m-p/2555707#M582429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T11:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: ]INTO CORRESPONDING FIELDS OF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/into-corresponding-fields-of/m-p/2555708#M582430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;1.- Change the declaration of the Itab as a type table of Dbtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: data: t_xxx type table of xxx (with header line).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2- If the the fields of both tables have the same you can use &lt;/P&gt;&lt;P&gt;Ex: select * INTO CORRESPONDING FIELDS....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3- Use the statement:&lt;/P&gt;&lt;P&gt;Select a b c into ( a b c ) from xxx into table t_xx where...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 11:24:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/into-corresponding-fields-of/m-p/2555708#M582430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T11:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: ]INTO CORRESPONDING FIELDS OF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/into-corresponding-fields-of/m-p/2555709#M582431</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;When you dont know the order of selecting fields order is same with the order of feilds in internal table.&lt;/P&gt;&lt;P&gt;this command will automatically put the data into corresponding fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Azad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 11:25:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/into-corresponding-fields-of/m-p/2555709#M582431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T11:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: ]INTO CORRESPONDING FIELDS OF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/into-corresponding-fields-of/m-p/2555710#M582432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is used in those select queries where you are selecting some fields from a databse table into an internal table which has some  fields other than what you have selected from the database.&lt;/P&gt;&lt;P&gt;It is used to differentiate the fields of an internal table so that the correct fields get populated from the field values of the database fetch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 11:25:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/into-corresponding-fields-of/m-p/2555710#M582432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T11:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: ]INTO CORRESPONDING FIELDS OF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/into-corresponding-fields-of/m-p/2555711#M582433</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;When u have large no. of fields with large no. of records then sequence of fields is not known to map these sequence u have to use, &lt;/P&gt;&lt;P&gt;select * from mara into corresponding fields of table itab where .... .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls reward points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ameet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 11:26:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/into-corresponding-fields-of/m-p/2555711#M582433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T11:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: ]INTO CORRESPONDING FIELDS OF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/into-corresponding-fields-of/m-p/2555712#M582434</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;The INTO clause defines the target area into which the selection from the SELECT clause is written. Suitable target areas are variables whose data type is compatible with or convertible into that of the selection in the SELECT clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SELECT clause determines the data type of the target area as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        The linesspecification in the SELECT clause determines the depth of the target area, that is, whether it is a flat or a tabular structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        The colsspecification in the SELECT clause determines the structure (line type) of the target area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To read data into one, use the following in the INTO clause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ... INTO &lt;A href="CORRESPONDING FIELDS OF"&gt;&lt;/A&gt; wa ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The target area wa must be at least as large as the line to be read into it. When you read the data into wa, its previous contents are overwritten. However, the components of wa that are not affected by the SELECTstatement retain their previous values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the work area is structured, you can use the CORRESPONDING FIELDS addition. This transfers only the contents of fields whose names are identical in the database table and the work area. This includes any alias column names that you specified in the selection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpfull answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 11:27:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/into-corresponding-fields-of/m-p/2555712#M582434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T11:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: ]INTO CORRESPONDING FIELDS OF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/into-corresponding-fields-of/m-p/2555713#M582435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Debarshi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   When use to select  table fields in the different order from a table, then we will use corresponding fields of but the field what ever u have named in the local internal table should match the fieldname of the table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MATNR	MATNR	CHAR	18	0	Material Number&lt;/P&gt;&lt;P&gt;ERSDA	ERSDA	DATS	8	0	Created On&lt;/P&gt;&lt;P&gt;ERNAM	ERNAM	CHAR	12	0	Name of Person who LAEDA	LAEDA	DATS	8	0	Date of Last Change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;egdata : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;       matnr type matnr,&lt;/P&gt;&lt;P&gt;       Ernam type Ernam,&lt;/P&gt;&lt;P&gt;       Ersda type ersda,&lt;/P&gt;&lt;P&gt;      end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr ernam ersda into corresponding fields of table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward pts for usefull answers :)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 11:28:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/into-corresponding-fields-of/m-p/2555713#M582435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T11:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: ]INTO CORRESPONDING FIELDS OF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/into-corresponding-fields-of/m-p/2555714#M582436</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;TABLES: MARA.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;        MATNR LIKE MARA-MATNR,&lt;/P&gt;&lt;P&gt;        MATKL LIKE MARA-MATNR,&lt;/P&gt;&lt;P&gt;        MAKTX LIKE MAKT-MAKTX,&lt;/P&gt;&lt;P&gt;        BRGEW LIKE MARA-BRGEW,&lt;/P&gt;&lt;P&gt;      END   OF ITAB.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;SELECT * FROM MARA INTO CORRESPONDING FIELDS OF TABLE ITAB UP TO 10 ROWS.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;  WRITE: / ITAB-MATNR, ITAB-MATKL, ITAB-MAKTX, ITAB-BRGEW.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can see that maktx is not filled, it does'n correspond to mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 11:31:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/into-corresponding-fields-of/m-p/2555714#M582436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T11:31:05Z</dc:date>
    </item>
  </channel>
</rss>

