<?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: CORRESPONDING in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2396314#M533364</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhijeet,   &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good question and this is what you are supposed to do everytime to better the code as per the performance issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can achieve this by using the following things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&amp;gt; Create a types declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_vbak,&lt;/P&gt;&lt;P&gt;             field1 type vbak-field1,&lt;/P&gt;&lt;P&gt;             field2 type vbak-field2,&lt;/P&gt;&lt;P&gt;             field3 type vbak-field3,&lt;/P&gt;&lt;P&gt;          end of ty_vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2&amp;gt;  Make sure that occurances of fields are in the sequential order as they are in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field1 occurs first from the top and after field1 field2 occurs so that fetching can be done in the same manner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3&amp;gt; Create a structure for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:  x_vbak type ty_vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4&amp;gt; Create an internal table if it is contain more than one line/entry of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_vbak type table of ty_vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5&amp;gt; Even in the select query make sure that the conditions are also given in the sequential order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These should empower u from replacing corresponding keyword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tej..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jun 2007 13:33:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-19T13:33:33Z</dc:date>
    <item>
      <title>CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2396308#M533358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can we change the statement as follows &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT carrid connid airpfrom cityfrom airpto cityto deptime arrtime&lt;/P&gt;&lt;P&gt;                FROM spfli&lt;/P&gt;&lt;P&gt;                INTO CORRESPONDING FIELDS OF wa_spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT carrid connid airpfrom cityfrom airpto cityto deptime arrtime&lt;/P&gt;&lt;P&gt;                FROM spfli&lt;/P&gt;&lt;P&gt;                INTO TABLE wa_spfli.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 12:38:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2396308#M533358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T12:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2396309#M533359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the table wa_spfli is declared in the order of selecting field then u can change the code like the  second select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 12:40:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2396309#M533359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T12:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2396310#M533360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;INTO TABLE &amp;lt;/b&amp;gt; is specified for an internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 12:42:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2396310#M533360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T12:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2396311#M533361</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;u need to declare the internal table like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of wa_spfli occurs 0,&lt;/P&gt;&lt;P&gt;         carrid   type S_CARR_ID,&lt;/P&gt;&lt;P&gt;         connid  type S_CONN_ID,&lt;/P&gt;&lt;P&gt;         airpfrom type S_FROMAIRP,&lt;/P&gt;&lt;P&gt;         cityfrom  type S_FROM_CIT,&lt;/P&gt;&lt;P&gt;         airpto      type S_TOAIRP,&lt;/P&gt;&lt;P&gt;          cityto     type S_TO_CITY,&lt;/P&gt;&lt;P&gt;         deptime  type S_DEP_TIME,&lt;/P&gt;&lt;P&gt;         arrtime   type S_ARR_TIME,&lt;/P&gt;&lt;P&gt;       end of wa_spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now write ur select statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT carrid connid airpfrom cityfrom airpto cityto deptime arrtime&lt;/P&gt;&lt;P&gt;FROM spfli&lt;/P&gt;&lt;P&gt;INTO TABLE wa_spfli. &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>Tue, 19 Jun 2007 12:55:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2396311#M533361</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-06-19T12:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2396312#M533362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes its possible..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Provided your internal table has been declared , in the same order of the fields ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you are using in the select statement .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Praveen .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 13:23:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2396312#M533362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T13:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2396313#M533363</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;can we change,  but before chnaging you must create internal table as per selected fields sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you must create internal table with  selected fields order or write the select statement as per internal table fields order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT carrid connid airpfrom cityfrom airpto cityto deptime arrtime&lt;/P&gt;&lt;P&gt;FROM spfli&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF wa_spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this case no need to keep the internal table fields and selected fields in same sequence. but this statement affects on perfomace.( don't use select statements with CORRESPONDING addition).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT carrid connid airpfrom cityfrom airpto cityto deptime arrtime&lt;/P&gt;&lt;P&gt;FROM spfli&lt;/P&gt;&lt;P&gt;INTO TABLE wa_spfli. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this statement deffinetly improves the perfomance of your program. but here you must take care regarding internal table fields order and selected fields order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ashokreddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 13:29:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2396313#M533363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T13:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2396314#M533364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhijeet,   &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good question and this is what you are supposed to do everytime to better the code as per the performance issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can achieve this by using the following things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&amp;gt; Create a types declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_vbak,&lt;/P&gt;&lt;P&gt;             field1 type vbak-field1,&lt;/P&gt;&lt;P&gt;             field2 type vbak-field2,&lt;/P&gt;&lt;P&gt;             field3 type vbak-field3,&lt;/P&gt;&lt;P&gt;          end of ty_vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2&amp;gt;  Make sure that occurances of fields are in the sequential order as they are in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field1 occurs first from the top and after field1 field2 occurs so that fetching can be done in the same manner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3&amp;gt; Create a structure for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:  x_vbak type ty_vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4&amp;gt; Create an internal table if it is contain more than one line/entry of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_vbak type table of ty_vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5&amp;gt; Even in the select query make sure that the conditions are also given in the sequential order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These should empower u from replacing corresponding keyword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tej..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 13:33:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/corresponding/m-p/2396314#M533364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T13:33:33Z</dc:date>
    </item>
  </channel>
</rss>

