<?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: Values get swapped when selecting data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/values-get-swapped-when-selecting-data/m-p/4453762#M1055945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chech that the internal table declaration in both the server are exactly the same and fileds are in same order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use INTO CORRESPONDING if possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Sep 2008 07:13:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-05T07:13:20Z</dc:date>
    <item>
      <title>Values get swapped when selecting data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/values-get-swapped-when-selecting-data/m-p/4453755#M1055938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Please help me out for the below issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Two servers, NSA and NDA.&lt;/P&gt;&lt;P&gt;Select statement to a particular table correctly retrieves data from NSA server.&lt;/P&gt;&lt;P&gt;The same select statement to the same table swaps the values between 2 fields and retrieves incorrect data from NDA server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Investigation:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  When debuggin in NDA, i found that the values are getting swapped between 2 fields which are adjacent to each other in NDA server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Solution&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;   Please help:(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 06:31:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/values-get-swapped-when-selecting-data/m-p/4453755#M1055938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T06:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Values get swapped when selecting data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/values-get-swapped-when-selecting-data/m-p/4453756#M1055939</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;    Check the table field names both in NDS and NDA server are same. fetching from the table in the select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Otherwise write two separate select queries that differentiate between the servers with the appropriate field names of the tables that are present in both the servers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 06:43:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/values-get-swapped-when-selecting-data/m-p/4453756#M1055939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T06:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Values get swapped when selecting data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/values-get-swapped-when-selecting-data/m-p/4453757#M1055940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja .,&lt;/P&gt;&lt;P&gt; Please check the fields Sequence in Select Query And internal table declaration .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; otherwise , Ofcource it is not recomanded  use ' into Corresponding Fields .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt; Sreenivas Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 06:44:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/values-get-swapped-when-selecting-data/m-p/4453757#M1055940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T06:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Values get swapped when selecting data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/values-get-swapped-when-selecting-data/m-p/4453758#M1055941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Everything is identical 100%  in both the servers but the value swap happens only in NDA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 06:55:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/values-get-swapped-when-selecting-data/m-p/4453758#M1055941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T06:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Values get swapped when selecting data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/values-get-swapped-when-selecting-data/m-p/4453759#M1055942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sreenivas,&lt;/P&gt;&lt;P&gt; Everything is identical 100%, that includes field sequence also.Correspond fields addition is also not used.&lt;/P&gt;&lt;P&gt;Any other clue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 06:57:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/values-get-swapped-when-selecting-data/m-p/4453759#M1055942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T06:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Values get swapped when selecting data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/values-get-swapped-when-selecting-data/m-p/4453760#M1055943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is it a custom table. or Standard one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you check the internal table definition properly...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 07:02:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/values-get-swapped-when-selecting-data/m-p/4453760#M1055943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T07:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Values get swapped when selecting data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/values-get-swapped-when-selecting-data/m-p/4453761#M1055944</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;    Use the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of y_test,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        field1 type tablename-fieldname1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       field2 type tablename-fieldname2,&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;      -&lt;/P&gt;&lt;HR originaltext="----------------------------------------" /&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;      end of y_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: t_test type standard table of y_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select  fieldname1 fieldname2 -&lt;/P&gt;&lt;HR originaltext="---------------" /&gt;&lt;P&gt;    from tablename&lt;/P&gt;&lt;P&gt;    into corresponding fields of table t_test&lt;/P&gt;&lt;P&gt;    where condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 07:03:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/values-get-swapped-when-selecting-data/m-p/4453761#M1055944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T07:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Values get swapped when selecting data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/values-get-swapped-when-selecting-data/m-p/4453762#M1055945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chech that the internal table declaration in both the server are exactly the same and fileds are in same order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use INTO CORRESPONDING if possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 07:13:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/values-get-swapped-when-selecting-data/m-p/4453762#M1055945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T07:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Values get swapped when selecting data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/values-get-swapped-when-selecting-data/m-p/4453763#M1055946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt; It is a custom table and the Data fetch is a "SELECT SINGLE" so no need of internal table.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  The values are fetched into individual fields as export parameters for the function module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 07:29:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/values-get-swapped-when-selecting-data/m-p/4453763#M1055946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T07:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Values get swapped when selecting data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/values-get-swapped-when-selecting-data/m-p/4453764#M1055947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The values maintained in the tables in both the servers could be swapped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like : &lt;/P&gt;&lt;P&gt;Tab1 on server 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field 1 = 5&lt;/P&gt;&lt;P&gt;field 2 = 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab1 on server 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field 1 = 6&lt;/P&gt;&lt;P&gt;field 2 = 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;raegrds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 07:45:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/values-get-swapped-when-selecting-data/m-p/4453764#M1055947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T07:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Values get swapped when selecting data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/values-get-swapped-when-selecting-data/m-p/4453765#M1055948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello everyone,&lt;/P&gt;&lt;P&gt; This problem had something to do with my Previous thread on &lt;STRONG&gt;"Open SQL error".&lt;/STRONG&gt; The problem was the ABAP Dictionary structure was inconsistent with the Database structure, hence in one situation i was getting an &lt;STRONG&gt;"ORACLE error:12839"&lt;/STRONG&gt; and Values were getting swapped among certain fields(Inconsistent fields) in another situatuion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now that the Table structure is made consistent with the database structure, things should be working fine.&lt;/P&gt;&lt;P&gt;If anything i will get back:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your support,&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2008 05:09:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/values-get-swapped-when-selecting-data/m-p/4453765#M1055948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-08T05:09:22Z</dc:date>
    </item>
  </channel>
</rss>

