<?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: problem with select.....endselect in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-endselect/m-p/1779881#M336179</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1st Rcrd:  100(MANDT )  0001(VKORG) 01(VTWEG) 01(VTWKO)  01(VTWKU )&lt;/P&gt;&lt;P&gt;2nd Rcrd: 100(MANDT )  0001(VKORG) 01(VTWEG) 01(VTWKO)  03(  VTWKU)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Dec 2006 14:29:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-04T14:29:22Z</dc:date>
    <item>
      <title>problem with select.....endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-endselect/m-p/1779873#M336171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  When i'm trying to create new condition records in txn : &lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;VK11&lt;/P&gt;, 'm facing a problem in the subroutine vtweg_pruefen of the include program MV13AF0V which is included in the main pgm SAPMV13A . &lt;BR /&gt; The problem is that, even though i've only 1 record in the dbtable &lt;B&gt;&lt;P&gt;TVKOV&lt;/P&gt;&lt;/B&gt; for the combination vp_vkorg and vp_vtweg, the select statement is fetching 2 values. Is this a problem with buffering? &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM vtweg_pruefen USING vp_vkorg vp_vtweg vp_error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: vtwku_tmp LIKE tvkov-vtwku.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Satz bereits gelesen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF tvkov-vkorg &amp;lt;&amp;gt; vp_vkorg OR&lt;/P&gt;&lt;P&gt;     tvkov-vtwko &amp;lt;&amp;gt; vp_vtweg.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Prüftabelle lesen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    SELECT * FROM tvkov WHERE vkorg = vp_vkorg&lt;/P&gt;&lt;P&gt;                        AND   vtwko = vp_vtweg.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Die erste Kundensparte setzen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IF vtwku_tmp IS INITIAL.&lt;/P&gt;&lt;P&gt;        vtwku_tmp = tvkov-vtwku.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Nicht eindeutig ?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IF vtwku_tmp NE tvkov-vtwku.&lt;/P&gt;&lt;P&gt;        CLEAR tvkov-vtwku.&lt;/P&gt;&lt;P&gt;        IF NOT call_modus IS INITIAL AND&lt;/P&gt;&lt;P&gt;           NOT maapv-vtweg IS INITIAL.&lt;/P&gt;&lt;P&gt;          tvkov-vtwku = maapv-vtweg.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDSELECT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Workarea initial stzen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0 AND NOT vp_error IS INITIAL.&lt;/P&gt;&lt;P&gt;      CLEAR tvkov.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Anlegen von Kondition in dieser Verkaufsorganisation nicht erlaubt&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      MESSAGE e076 WITH vp_vtweg vp_vkorg.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 12:52:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-endselect/m-p/1779873#M336171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T12:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select.....endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-endselect/m-p/1779874#M336172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, just check if the other record is having a deletion flag set in. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 13:32:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-endselect/m-p/1779874#M336172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T13:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select.....endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-endselect/m-p/1779875#M336173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try using select single......&lt;/P&gt;&lt;P&gt;or else&lt;/P&gt;&lt;P&gt;use where deletion flag eq space in ur select statement....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 13:39:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-endselect/m-p/1779875#M336173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T13:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select.....endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-endselect/m-p/1779876#M336174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishna/Ramesh,&lt;/P&gt;&lt;P&gt;   There is no deletion flag in the table. I am wondering as how I can change a standard program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 13:49:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-endselect/m-p/1779876#M336174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T13:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select.....endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-endselect/m-p/1779877#M336175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you sure its looping through the 2nd time to get the values. i tried to debug and it gets only one value. There is no deletion flag as the table data is populated from the functional setting. Could you be more specific if its only during creation that you get 2 values or is it the same while changing and display.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 13:56:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-endselect/m-p/1779877#M336175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T13:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select.....endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-endselect/m-p/1779878#M336176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ratan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel you have got it wrong ..table TVKOV cannot store 2 enteries for the same sales org and distibution channel as the particular fields are the primary key for the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that you have missed something in debugging !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 14:01:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-endselect/m-p/1779878#M336176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T14:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select.....endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-endselect/m-p/1779879#M336177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anurag,&lt;/P&gt;&lt;P&gt;  Yes, it can't 've 2 values, but it is fetching the second record in the table with the same value of vkorg. One more interesting point that i've observed is &lt;/P&gt;&lt;P&gt; 1. When i've placed a break-point at the SELECT statement, the control doesn't  stop at the break-point for the second time.(which makes sense as there is only 1 record)&lt;/P&gt;&lt;P&gt;2. but when I've created a watch point with the condition&lt;/P&gt;&lt;P&gt;          tvkov-vtwtu NE value fetched during first pass in the select....endselect statement, the control stops at the SELECT statement, by then the value of the field tvkov-vtwtu is already changed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 14:17:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-endselect/m-p/1779879#M336177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T14:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select.....endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-endselect/m-p/1779880#M336178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MANDT VKORG  VTWEG VTWKO VTWAU VTWKU VLGFI  VLTYP VLKEB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;100         0001              01     01                      01&lt;/P&gt;&lt;P&gt;100         0001              03     01                      03&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Kshamatha, &lt;/P&gt;&lt;P&gt;       Make sure ur entries in the table &amp;lt;u&amp;gt;TVKOV&amp;lt;/u&amp;gt; are same as above, i.e., the values in the field VTWKU must be different for the same sales organization only then u can replicate my problem. I didn't check during change but i'm facing the problem during creation(VK11). U can maintain the entries in the table with the txn &amp;lt;b&amp;gt;VOR1&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 14:27:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-endselect/m-p/1779880#M336178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T14:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select.....endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-endselect/m-p/1779881#M336179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1st Rcrd:  100(MANDT )  0001(VKORG) 01(VTWEG) 01(VTWKO)  01(VTWKU )&lt;/P&gt;&lt;P&gt;2nd Rcrd: 100(MANDT )  0001(VKORG) 01(VTWEG) 01(VTWKO)  03(  VTWKU)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 14:29:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-endselect/m-p/1779881#M336179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T14:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select.....endselect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-endselect/m-p/1779882#M336180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;true with your table values it will surely give the duplicates as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT * FROM tvkov WHERE vkorg = vp_vkorg&lt;/P&gt;&lt;P&gt;                        AND   vtwko = vp_vtweg.&lt;/P&gt;&lt;P&gt;vtwko is being checked for the distribtion channel and not vtweg. Can the vtwko that is the reference values be changes or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 14:38:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-endselect/m-p/1779882#M336180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T14:38:20Z</dc:date>
    </item>
  </channel>
</rss>

