<?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: Strange Problem with select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506984#M2003648</link>
    <description>&lt;P&gt;I think only you can find out what's going on...&lt;/P&gt;</description>
    <pubDate>Wed, 30 Mar 2022 20:23:06 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2022-03-30T20:23:06Z</dc:date>
    <item>
      <title>Strange Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506982#M2003646</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;
  &lt;P&gt;i have a VERY strange problem: &lt;/P&gt;
  &lt;P&gt;in a Z-Report i select a Y-Field (customer field) from SAP Standard table EQUI. The Y-field is part of an append-structure of the table with format DATS (date field).&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;     SELECT SINGLE yyp57a INTO wa_itab-yyp57a FROM equi WHERE                                
                                equnr = lo_data-equnr.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;The field equnr is the unique key of table EQUI. &lt;/P&gt;
  &lt;P&gt;So far so good: in most of the cases the value of the field yyp57a is catched correctly. In some cases the select brings EMPTY value of the field yyp57a. BUT in EQUI (when selecting it over SE16, etc....) the field has a correct value ! &lt;/P&gt;
  &lt;P&gt;When i start the report again with the same selection the field yyp57a for the &lt;STRONG&gt;same&lt;/STRONG&gt; key equnr is found, but then other records have no value. Sometimes ALL records are correct, so that looks like a "random" choice. &lt;/P&gt;
  &lt;P&gt;I have NO idea what can cause this problem &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/P&gt;
  &lt;P&gt;br Martin&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 15:03:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506982#M2003646</guid>
      <dc:creator>martin_svik2</dc:creator>
      <dc:date>2022-03-30T15:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506983#M2003647</link>
      <description>&lt;P&gt;Hi Martin, &lt;/P&gt;&lt;P&gt;can you please also double check with old-fashioned T-Code SE17 how the data is (really) stored in the database without any output conversion and so on? I assume that the process that is putting the data into the table could sometimes insert values into this field that do not fit to the DATS format, e.g. invalid dates. In this case the transfer into the field of the corresponding type could not work.&lt;/P&gt;&lt;P&gt;Kind regards&lt;BR /&gt;Jens&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 19:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506983#M2003647</guid>
      <dc:creator>Jeansy</dc:creator>
      <dc:date>2022-03-30T19:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506984#M2003648</link>
      <description>&lt;P&gt;I think only you can find out what's going on...&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 20:23:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506984#M2003648</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-03-30T20:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506985#M2003649</link>
      <description>&lt;P&gt;Hello Jens, &lt;/P&gt;&lt;P&gt;thank you for your hint. I am very confused now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;&lt;P&gt;See SE17, the date is initial with 00.00.0000&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2035670-image.png" /&gt;&lt;/P&gt;&lt;P&gt;See SE16, the date is filled with its real value of 09.04.2022 for the SAME EQUINR.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2035671-image.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;When i go back to selection screen in SE17 and select the equipment the value is displayed also correctly ! I cant do a third screenshot here &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How can this be ? &lt;/P&gt;&lt;P&gt;br Martin&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 06:04:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506985#M2003649</guid>
      <dc:creator>martin_svik2</dc:creator>
      <dc:date>2022-03-31T06:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506986#M2003650</link>
      <description>&lt;P&gt;Could you check the SQL trace what table/view is actually used in the database?&lt;/P&gt;&lt;P&gt;Could you extract all EQUNR / YYP57A values using both ABAP SQL and Native SQL, and compare the values?&lt;/P&gt;&lt;P&gt;Could you check DB patches?&lt;/P&gt;&lt;P&gt;Could you check SAP notes?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 06:25:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506986#M2003650</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-03-31T06:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506987#M2003651</link>
      <description>&lt;P&gt;if it is an oracle database, you could destroy &amp;amp; recreate the index&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 06:27:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506987#M2003651</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2022-03-31T06:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506988#M2003652</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think the work area (or internal table) for that field is not refreshing properly .&lt;/P&gt;&lt;P&gt;(As you said sometimes fetch and sometimes not fetch so.)&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 06:41:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506988#M2003652</guid>
      <dc:creator>former_member9115</dc:creator>
      <dc:date>2022-03-31T06:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506989#M2003653</link>
      <description>&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;frdric.girod&lt;/SPAN&gt; It is an Windows Database.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 06:50:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506989#M2003653</guid>
      <dc:creator>martin_svik2</dc:creator>
      <dc:date>2022-03-31T06:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506990#M2003654</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; I am not sure what you mean with "check the SQL trace what table/view is actually used in the database" ??? I is about table EQUI as described, what else should i find in SQL trace ? &lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 06:59:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506990#M2003654</guid>
      <dc:creator>martin_svik2</dc:creator>
      <dc:date>2022-03-31T06:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506991#M2003655</link>
      <description>&lt;P&gt;Thank you all for your help..........i am very desperate. In my 30 years working with SAP i have never seen such mystery &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;&lt;P&gt;One more thing to mention: the table has about 270 fields, only 75 of it are standard fields, the rest are Z-fields in 4 include structures. Could this cause any problems ? Is there a limit of (z)-fields in a table ?&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2035678-image.png" /&gt;&lt;/P&gt;&lt;P&gt;br Martin &lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 07:17:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506991#M2003655</guid>
      <dc:creator>martin_svik2</dc:creator>
      <dc:date>2022-03-31T07:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506992#M2003656</link>
      <description>&lt;P&gt;Yes, it seems so. But what can i do against it ? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 07:18:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506992#M2003656</guid>
      <dc:creator>martin_svik2</dc:creator>
      <dc:date>2022-03-31T07:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506993#M2003657</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;martin.svik2&lt;/SPAN&gt; , I think Sandra would like to check in ST05, the explanation to check how SAP made the SELECT statement&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 08:39:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506993#M2003657</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2022-03-31T08:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506994#M2003658</link>
      <description>&lt;P&gt;Does your table is buffered ? &lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 08:52:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506994#M2003658</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2022-03-31T08:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506995#M2003659</link>
      <description>&lt;P&gt;No I don't think that there is a limitation of Z-fields in a Z-table...&lt;/P&gt;&lt;P&gt;Really strange.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 10:21:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506995#M2003659</guid>
      <dc:creator>Jeansy</dc:creator>
      <dc:date>2022-03-31T10:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506996#M2003660</link>
      <description>&lt;P&gt;Are you really sure that you have a look on the same EQUI-entry (also including the leading zeros)?&lt;/P&gt;&lt;P&gt;On the screenshot I cannot see this detail.&lt;/P&gt;&lt;P&gt;Which data elemet has been used for this field?&lt;/P&gt;&lt;P&gt;KR Jens&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 10:22:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506996#M2003660</guid>
      <dc:creator>Jeansy</dc:creator>
      <dc:date>2022-03-31T10:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506997#M2003661</link>
      <description>&lt;P&gt;What I mean -&amp;gt; see ABAP documentation concerning Replacement Objects: "A CDS view can be assigned (using the name of its CDS entity) as a replacement object to a transparent database table and to a classic database view in ABAP Dictionary".&lt;/P&gt;&lt;P&gt;Just do an SQL trace. It takes less time than replying "why".&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 11:59:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506997#M2003661</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-03-31T11:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506998#M2003662</link>
      <description>&lt;P&gt;And also &lt;A href="https://blogs.sap.com/2016/07/11/appending-tables-in-s4hana-easy-mbew/"&gt;here&lt;/A&gt;: "Open SQL accesses the CDS view instead of the table itself"&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 12:00:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506998#M2003662</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-03-31T12:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Problem with select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506999#M2003663</link>
      <description>&lt;P&gt;&lt;A href="https://blogs.sap.com/2016/07/11/appending-tables-in-s4hana-easy-mbew/"&gt;here&lt;/A&gt;: "Using&lt;EM&gt; Extras -&amp;gt; Proxy Object&lt;/EM&gt; in SE11 you can find out whether a CDS view is replacing a database table"&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 12:10:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-problem-with-select-statement/m-p/12506999#M2003663</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-03-31T12:10:29Z</dc:date>
    </item>
  </channel>
</rss>

