<?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 Inner join Statement sometime working sometimes not. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-statement-sometime-working-sometimes-not/m-p/6988413#M1493655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have this code below... the weird this is that sometimes, the sy-subrc is set to 0 sometimes it is set to 4 even though the filetering parameters are the same... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                  select single a~kunnr&lt;/P&gt;&lt;P&gt;                    into v_kunnr&lt;/P&gt;&lt;P&gt;                    from knvp as a inner join kna1 as b&lt;/P&gt;&lt;P&gt;              		on a&lt;SUB&gt;kunnr eq b&lt;/SUB&gt;kunnr&lt;/P&gt;&lt;P&gt;                    where a~vkorg = v_vkorg&lt;/P&gt;&lt;P&gt;                      and a~vtweg = v_vtweg&lt;/P&gt;&lt;P&gt;                      and a~spart = '20'&lt;/P&gt;&lt;P&gt;                      and a~parvw = 'WE'&lt;/P&gt;&lt;P&gt;                      and a~kunn2 = v_kunnr&lt;/P&gt;&lt;P&gt;                      and b~ktokd = 'Z104'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me with this? What's the reason behind this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 May 2010 05:27:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-26T05:27:40Z</dc:date>
    <item>
      <title>Inner join Statement sometime working sometimes not.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-statement-sometime-working-sometimes-not/m-p/6988413#M1493655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have this code below... the weird this is that sometimes, the sy-subrc is set to 0 sometimes it is set to 4 even though the filetering parameters are the same... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                  select single a~kunnr&lt;/P&gt;&lt;P&gt;                    into v_kunnr&lt;/P&gt;&lt;P&gt;                    from knvp as a inner join kna1 as b&lt;/P&gt;&lt;P&gt;              		on a&lt;SUB&gt;kunnr eq b&lt;/SUB&gt;kunnr&lt;/P&gt;&lt;P&gt;                    where a~vkorg = v_vkorg&lt;/P&gt;&lt;P&gt;                      and a~vtweg = v_vtweg&lt;/P&gt;&lt;P&gt;                      and a~spart = '20'&lt;/P&gt;&lt;P&gt;                      and a~parvw = 'WE'&lt;/P&gt;&lt;P&gt;                      and a~kunn2 = v_kunnr&lt;/P&gt;&lt;P&gt;                      and b~ktokd = 'Z104'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me with this? What's the reason behind this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 05:27:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-statement-sometime-working-sometimes-not/m-p/6988413#M1493655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-26T05:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join Statement sometime working sometimes not.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-statement-sometime-working-sometimes-not/m-p/6988414#M1493656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a conversion exit associated with the field parvw, CONVERSION_EXIT_PARVW_INPUT. Could be that's one of the reason for the irregularity. Better to use this before the select statement and check the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 05:32:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-statement-sometime-working-sometimes-not/m-p/6988414#M1493656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-26T05:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join Statement sometime working sometimes not.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-statement-sometime-working-sometimes-not/m-p/6988415#M1493657</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;Thanks for your response, PARVW here is constant. I dont find any reason why there is a need for conversion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this not related to select single with inner join?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 06:04:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-statement-sometime-working-sometimes-not/m-p/6988415#M1493657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-26T06:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join Statement sometime working sometimes not.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-statement-sometime-working-sometimes-not/m-p/6988416#M1493658</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;Display values of KNVP table through SE16 and see the value difference of Partner Function by clicking individual record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maintaining constant will not help, you have use conversion exit before your select query and need to pass this value to the select where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use either of below two exits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_PARVW_INPUT&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_PARVW_OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin Gaikwad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 06:26:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-statement-sometime-working-sometimes-not/m-p/6988416#M1493658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-26T06:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join Statement sometime working sometimes not.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-statement-sometime-working-sometimes-not/m-p/6988417#M1493659</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 are you fetching from the below select query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single a~kunnr&lt;/P&gt;&lt;P&gt;into v_kunnr&lt;/P&gt;&lt;P&gt;from knvp as a inner join kna1 as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;kunnr eq b&lt;/SUB&gt;kunnr&lt;/P&gt;&lt;P&gt;where a~vkorg = v_vkorg&lt;/P&gt;&lt;P&gt;and a~vtweg = v_vtweg&lt;/P&gt;&lt;P&gt;and a~spart = '20'&lt;/P&gt;&lt;P&gt;and a~parvw = 'WE'&lt;/P&gt;&lt;P&gt;and a~kunn2 = v_kunnr&lt;/P&gt;&lt;P&gt;and b~ktokd = 'Z104'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you are extracing the customer numbre by linking the table KNVP and KNA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the above statemnet is true then in the above select query the condition paraemeters you are comparing is wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single a~kunnr&lt;/P&gt;&lt;P&gt;into v_kunnr&lt;/P&gt;&lt;P&gt;from knvp as a inner join kna1 as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;kunnr eq b&lt;/SUB&gt;kunnr&lt;/P&gt;&lt;P&gt;where a~vkorg = v_vkorg&lt;/P&gt;&lt;P&gt;and a~vtweg = v_vtweg&lt;/P&gt;&lt;P&gt;and a~spart = '20'&lt;/P&gt;&lt;P&gt;and a~parvw = 'WE'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and a~kunn2 = v_kunnr&lt;/STRONG&gt;   You are extracing the kuunr but how come here comparing the condition&lt;/P&gt;&lt;P&gt;and b~ktokd = 'Z104'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;comment the bold line and check whether working or not ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 06:32:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-statement-sometime-working-sometimes-not/m-p/6988417#M1493659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-26T06:32:31Z</dc:date>
    </item>
  </channel>
</rss>

