<?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 Open SQL with Custom fields in Standard table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525575#M1854618</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing a problem in ABAP Open SQL with custom field in Standard table.&lt;/P&gt;&lt;P&gt;I have added two custom fields in standard table. like below:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #00ff00; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;STRONG style="color: #993366;"&gt;Standard table&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-size: 12pt;"&gt; : AUFM (Goods Movement for order)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style=": ; color: #993366; font-family: 'courier new', courier;"&gt;Custom fields:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;ZZID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MB_LINE_ID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-size: 12pt;"&gt;ZZPID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MB_PARENT_ID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I trigger the open SQL on this table, first time it give me wrong data in custom fields, and after that or immediately I trigger the same sql, it give me correct data in custom fields.&lt;/P&gt;&lt;P&gt;I don't know what is the problem with custom fields.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Aug 2014 05:51:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-08-14T05:51:44Z</dc:date>
    <item>
      <title>Open SQL with Custom fields in Standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525575#M1854618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing a problem in ABAP Open SQL with custom field in Standard table.&lt;/P&gt;&lt;P&gt;I have added two custom fields in standard table. like below:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #00ff00; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;STRONG style="color: #993366;"&gt;Standard table&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-size: 12pt;"&gt; : AUFM (Goods Movement for order)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style=": ; color: #993366; font-family: 'courier new', courier;"&gt;Custom fields:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;ZZID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MB_LINE_ID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-size: 12pt;"&gt;ZZPID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MB_PARENT_ID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I trigger the open SQL on this table, first time it give me wrong data in custom fields, and after that or immediately I trigger the same sql, it give me correct data in custom fields.&lt;/P&gt;&lt;P&gt;I don't know what is the problem with custom fields.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 05:51:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525575#M1854618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-14T05:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL with Custom fields in Standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525576#M1854619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please elaborate on what query you fire on this table. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 06:34:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525576#M1854619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-14T06:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL with Custom fields in Standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525577#M1854620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;SQL is as below:&lt;/STRONG&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;begin &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;of &lt;/SPAN&gt;lw_aufm&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mblnr &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;mblnr&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mjahr &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;mjahr&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zeile &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;zeile&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; budat &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;budat&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; werks &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;werks&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matnr &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;matnr&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; charg &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;charg&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lgort &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;lgort&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bwart &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;bwart&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aufnr &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;aufnr&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; menge &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;menge&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arbpl &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 10pt;"&gt;type &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;arbpl&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dauat &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;afpo&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;dauat&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zzid&amp;nbsp; &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;zzid&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zzpid &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;zzpid&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;end &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;of &lt;/SPAN&gt;lw_aufm&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_aufm &lt;SPAN class="L0S52"&gt;like &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;standard &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;table &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;of &lt;/SPAN&gt;lw_aufm.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN class="L0S52"&gt;select &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;mblnr aufm&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;mjahr aufm&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;zeile aufm&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;budat aufm&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;werks aufm&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;matnr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aufm&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;charg aufm&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;lgort aufm&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;bwart aufm&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;aufnr aufm&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;menge&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; crhd&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;arbpl afpo&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;dauat au&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;fm&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;zzid aufm&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;zzpid&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;into &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;table &lt;/SPAN&gt;i_aufm&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;from &lt;/SPAN&gt;aufm&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inner &lt;SPAN class="L0S52"&gt;join &lt;/SPAN&gt;afpo &lt;SPAN class="L0S52"&gt;on &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;aufnr &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;afpo&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;aufnr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inner &lt;SPAN class="L0S52"&gt;join &lt;/SPAN&gt;afvc &lt;SPAN class="L0S52"&gt;on &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;aufpl &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;afvc&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;aufpl&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;and &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;aplzl &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;afvc&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;aplzl&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inner &lt;SPAN class="L0S52"&gt;join &lt;/SPAN&gt;crhd &lt;SPAN class="L0S52"&gt;on &lt;/SPAN&gt;afvc&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;arbid &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;crhd&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;objid&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;where &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;mjahr &lt;SPAN class="L0S52"&gt;in &lt;/SPAN&gt;s_mjahr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;and &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;budat &lt;SPAN class="L0S52"&gt;in &lt;/SPAN&gt;s_budat&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;and &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;bwart &lt;SPAN class="L0S52"&gt;in &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'101'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;, &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'261'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;, &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'531'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;and &lt;/SPAN&gt;afpo&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;dauat &lt;SPAN class="L0S52"&gt;in &lt;/SPAN&gt;s_auart&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;and &lt;/SPAN&gt;crhd&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;arbpl &lt;SPAN class="L0S52"&gt;in &lt;/SPAN&gt;s_arbpl&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;First time this sql return wrong values in custom fields, but second time it returns correct values.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 07:02:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525577#M1854620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-14T07:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL with Custom fields in Standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525578#M1854621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pl. help me in this problem. how can I solve this problem.&lt;/P&gt;&lt;P&gt;Is it a SAP bug or any SAP profile parameters configuration mistake.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 09:53:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525578#M1854621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-22T09:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL with Custom fields in Standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525579#M1854622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Declare used tables in top of program after Report Statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;Tables &lt;SPAN class="L0S55"&gt;:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; AUFM,AFPO,AFVC,CRHD.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Use By passing buffer clause in select statement.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 10:03:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525579#M1854622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-22T10:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL with Custom fields in Standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525580#M1854623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Somendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply,&lt;/P&gt;&lt;P&gt;Previously My SQL is working perfectly, but after addition of the custom fields, it giving me wrong data.&lt;/P&gt;&lt;P&gt;As per your reply, this is a tricky solution, but what is the exact reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 10:10:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525580#M1854623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-22T10:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL with Custom fields in Standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525581#M1854624</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;What do you mean with wrong data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 10:14:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525581#M1854624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-22T10:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL with Custom fields in Standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525582#M1854625</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;Wrong data means,&lt;/P&gt;&lt;P&gt;The SQL returns same number of records all time and gives correct values in standard fields, but in the custom field, it returns wrong data.&lt;/P&gt;&lt;P&gt;like: if AUFM table has value in database for field&lt;/P&gt;&lt;P&gt;ZZID = 2 and ZZPID = 5,&amp;nbsp; "&lt;EM&gt;This is the correct value in database table. when we browse the data in SE11/SE16&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the first execution of SQL returns the wrong value in custom fields like:&lt;/P&gt;&lt;P&gt;ZZID = 5 and ZZPID = 7. "&lt;EM&gt;First execution of the SQL return the wrong value, checked in Debugger/Report output. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And second execution of same SQL with same where clause returns the correct data like:&lt;/P&gt;&lt;P&gt;ZZID = 2 and ZZPID = 5. "&lt;EM&gt;Second execution of the same SQL return the correct value, checked in Debugger/Report output.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL always return wrong values in custom fields at first time execution and after second execution(after 1 or more seconds) of the same SQL return correct data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the Temporary solution, I have executed the same SQL twice in the code like below.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; background: transparent; font-family: 'courier new', courier; font-weight: inherit;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;: &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;begin &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;of &lt;/SPAN&gt;lw_aufm&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mblnr &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;-&lt;/SPAN&gt;mblnr&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mjahr &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;-&lt;/SPAN&gt;mjahr&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zeile &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;-&lt;/SPAN&gt;zeile&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; budat &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;-&lt;/SPAN&gt;budat&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; werks &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;-&lt;/SPAN&gt;werks&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matnr &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;-&lt;/SPAN&gt;matnr&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; charg &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;-&lt;/SPAN&gt;charg&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lgort &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;-&lt;/SPAN&gt;lgort&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bwart &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;-&lt;/SPAN&gt;bwart&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aufnr &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;-&lt;/SPAN&gt;aufnr&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; menge &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;-&lt;/SPAN&gt;menge&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arbpl &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-size: 10pt; background: transparent;"&gt;type &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; background: transparent;"&gt;arbpl&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-size: 10pt; background: transparent;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dauat &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;type &lt;/SPAN&gt;afpo&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;-&lt;/SPAN&gt;dauat&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zzid&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;-&lt;/SPAN&gt;zzid&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zzpid &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;type &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;-&lt;/SPAN&gt;zzpid&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;end &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;of &lt;/SPAN&gt;lw_aufm&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_aufm &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;like &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;standard &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;table &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;of &lt;/SPAN&gt;lw_aufm.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;select &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;mblnr aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;mjahr aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;zeile aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;budat aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;werks aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;matnr&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;charg aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;lgort aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;bwart aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;aufnr aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;menge&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; crhd&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;arbpl afpo&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;dauat au&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;fm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;zzid aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;zzpid&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;into &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;table &lt;/SPAN&gt;i_aufm&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;from &lt;/SPAN&gt;aufm&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inner &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;join &lt;/SPAN&gt;afpo &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;on &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;aufnr &lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;= &lt;/SPAN&gt;afpo&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;aufnr&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inner &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;join &lt;/SPAN&gt;afvc &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;on &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;aufpl &lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;= &lt;/SPAN&gt;afvc&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;aufpl&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;and &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;aplzl &lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;= &lt;/SPAN&gt;afvc&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;aplzl&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inner &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;join &lt;/SPAN&gt;crhd &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;on &lt;/SPAN&gt;afvc&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;arbid &lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;= &lt;/SPAN&gt;crhd&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;objid&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;where &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;mjahr &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;in &lt;/SPAN&gt;s_mjahr&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;and &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;budat &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;in &lt;/SPAN&gt;s_budat&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;and &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;bwart &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;in &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;'101'&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;'261'&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;'531'&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;and &lt;/SPAN&gt;afpo&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;dauat &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;in &lt;/SPAN&gt;s_auart&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;and &lt;/SPAN&gt;crhd&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;arbpl &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;in &lt;/SPAN&gt;s_arbpl&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&lt;STRONG style="color: #ff0000;"&gt;**** Here SQL return wrong values in custom fields only.&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if sy-subrc = 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;&amp;nbsp;&amp;nbsp; select &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;mblnr aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;mjahr aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;zeile aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;budat aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;werks aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;matnr&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;charg aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;lgort aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;bwart aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;aufnr aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;menge&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; crhd&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;arbpl afpo&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;dauat au&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;fm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;zzid aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;zzpid&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;into &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;table &lt;/SPAN&gt;i_aufm&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;from &lt;/SPAN&gt;aufm&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inner &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;join &lt;/SPAN&gt;afpo &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;on &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;aufnr &lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;= &lt;/SPAN&gt;afpo&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;aufnr&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inner &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;join &lt;/SPAN&gt;afvc &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;on &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;aufpl &lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;= &lt;/SPAN&gt;afvc&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;aufpl&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;and &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;aplzl &lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;= &lt;/SPAN&gt;afvc&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;aplzl&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inner &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;join &lt;/SPAN&gt;crhd &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;on &lt;/SPAN&gt;afvc&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;arbid &lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;= &lt;/SPAN&gt;crhd&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;objid&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;where &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;mjahr &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;in &lt;/SPAN&gt;s_mjahr&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;and &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;budat &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;in &lt;/SPAN&gt;s_budat&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;and &lt;/SPAN&gt;aufm&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;bwart &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;in &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;'101'&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;'261'&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;'531'&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;and &lt;/SPAN&gt;afpo&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;dauat &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;in &lt;/SPAN&gt;s_auart&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;and &lt;/SPAN&gt;crhd&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;~&lt;/SPAN&gt;arbpl &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;in &lt;/SPAN&gt;s_arbpl&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background: transparent;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #ff0000; font-style: inherit; font-size: 12px; background: transparent; font-family: 'courier new', courier; font-weight: inherit;"&gt;&lt;STRONG&gt;**** Here SQL return correct values in custom fields only.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;endif.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 10:36:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525582#M1854625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-22T10:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL with Custom fields in Standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525583#M1854626</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;Have you tried to check the database definition?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And how do you update your z-fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 12:05:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525583#M1854626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-22T12:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL with Custom fields in Standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525584#M1854627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Every time you execute the program a fresh, Does it bring the same wrong values first time or they are random?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 12:11:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525584#M1854627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-22T12:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL with Custom fields in Standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525585#M1854628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;Database updates work perfectly, becoz database table shows correct values in browser.&lt;/P&gt;&lt;P&gt;Which type of database definition? &lt;/P&gt;&lt;P&gt;This is a Standard table and Definition, if you are asking about Technical definition,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 18:13:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525585#M1854628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-22T18:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL with Custom fields in Standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525586#M1854629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Abhijit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I login in the system first time, and run the report, it shows me wrong data and after that, I just press Back and execute the report, it shows correct data for the same parameters.&lt;/P&gt;&lt;P&gt;If I change the parameters value(Like date) at every execution, report shows wrong data every time.&lt;/P&gt;&lt;P&gt;After the first execution, all next executions shows correct data for same parameters.&lt;/P&gt;&lt;P&gt;If I logged out and login after 4-5 hours and run the same report with same parameters, the report again shows me wrong data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take an example:&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;Login.&lt;/P&gt;&lt;P&gt;1. I run the report with date 10.08.2014 = Return wrong value.&lt;/P&gt;&lt;P&gt;2. I run the report with date 10-08.2014 = Return correct value.&lt;/P&gt;&lt;P&gt;3. I run the report with date 15.08.2014 = Return wrong value.&lt;/P&gt;&lt;P&gt;4. I run the report with date 16.08.2014 = Return wrong value.&lt;/P&gt;&lt;P&gt;5. I run the report with date 15.08.2014 = Return Correct value.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; Log out and Login after 4-5 hours.&lt;/P&gt;&lt;P&gt;6. I run the report with date 10.08.2014 = Return wrong value.&lt;/P&gt;&lt;P&gt;7. I run the report with date 10.08.2014 = Return correct value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 18:24:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525586#M1854629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-22T18:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL with Custom fields in Standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525587#M1854630</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 mean database definition, not dictionary definition: yuo can see the database definition in database utilities (trx SE14)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 18:45:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525587#M1854630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-22T18:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL with Custom fields in Standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525588#M1854631</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;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Try &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;CORRESPONDING &lt;SPAN class="L0S52"&gt;FIELDS &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;i_aufm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2014 03:40:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525588#M1854631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-23T03:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL with Custom fields in Standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525589#M1854632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Narendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create &lt;STRONG&gt;Secondary Index&lt;/STRONG&gt; for the &lt;STRONG&gt;NON Key Fields&lt;/STRONG&gt; used in &lt;STRONG&gt;AUFM&lt;/STRONG&gt; table,&lt;/P&gt;&lt;P&gt;Include the Secondary Index in Select query and check it.&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;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2014 04:21:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525589#M1854632</guid>
      <dc:creator>VenkatRamesh_V</dc:creator>
      <dc:date>2014-08-23T04:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL with Custom fields in Standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525590#M1854633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #333333;"&gt;What have you done to analyze the query and isolate the problem..? &lt;SPAN __jive_emoticon_name="plain" __jive_macro_name="emoticon" class="jive_emote jive_macro" src="https://community.sap.com/994/images/emoticons/plain.gif"&gt;&lt;/SPAN&gt; Frankly, at the moment I have hard time believing any information you are giving, due to the woefully inadequate information given in the first post and the amount of incomplete or irrelevant information given later... Let's give it one try...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #333333;"&gt;1) what database is this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #333333;"&gt;2) can you reproduce the behavior claimed &lt;SPAN style="color: #333333;"&gt;via SE16N&lt;/SPAN&gt; using a corresponding DDIC View?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;3) extract using SE16N and attach representative sample of test data (&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;per table)&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;you are using&lt;/SPAN&gt; &lt;SPAN style="color: #333333; font-size: 10pt;"&gt;and both the &lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;incorrect&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt; and correct result sets for date 10.08.2014, please&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #333333;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #333333;"&gt;Please create a program containing nothing but the data definitions, select options, a query and verify via debugger:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #333333;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #333333;"&gt;4) if anything changes with respect to zz fields in the result set when you change the order of columns in result specification (all AUFM columns first for example) and use INTO CORRESPONDING FIELDS OF TABLE?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;5) anything changes when you remove AFPO from the query?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;6) anything changes when you remove CRHD from the query?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;7) anything changes when you remove AFVC and CRHD from the query?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #333333;"&gt;cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Jānis&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2014 11:42:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525590#M1854633</guid>
      <dc:creator>Private_Member_7726</dc:creator>
      <dc:date>2014-08-23T11:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL with Custom fields in Standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525591#M1854634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you access to AUFM using SE16, what is the behaviour ? same as your report ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create a much more simpler program that will access to aufm entries. And check the behaviour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also using SQVI transaction try to create a query that will join tables AUFM/AFPO/AFVC/CRHD. And check the result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Aug 2014 20:23:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525591#M1854634</guid>
      <dc:creator>chaouki_akir</dc:creator>
      <dc:date>2014-08-24T20:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL with Custom fields in Standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525592#M1854635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Janis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1,Database is Oracle.&lt;/P&gt;&lt;P&gt;2.I have access aufm table/Database View via se16, and the browser shows correct data for date 10.08.2014.&lt;/P&gt;&lt;P&gt;3. And I don't want to use INTO CORRESPONDING FIELDS(Performance Issue).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 05:07:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525592#M1854635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-25T05:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL with Custom fields in Standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525593#M1854636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to use INTO CORRESPONDING FIELDS (Performance Issue).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 05:08:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525593#M1854636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-25T05:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL with Custom fields in Standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525594#M1854637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My program was working perfectly before(Around 6 years) adding the custom fields.&lt;/P&gt;&lt;P&gt;Why the program behaving like this after addition of custom fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No changes in program has done except Custom fields addition in ITAB, SQL and Loop processing.&lt;/P&gt;&lt;P&gt;And why it working correctly at second execution.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 05:13:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-with-custom-fields-in-standard-table/m-p/10525594#M1854637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-25T05:13:19Z</dc:date>
    </item>
  </channel>
</rss>

