<?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: Sales Orders with diffrent partner functions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-orders-with-diffrent-partner-functions/m-p/4070853#M973237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;select vbeln posnr parvw kunnr
      from vbpa into it_vbpa
  where vbeln in so_vbeln.

loop at it_vbpa into wa_vbpa where parvw = 'AG'.
     read table it_vbpa into wa_buff with key vbeln = wa_vbpa-vbeln
                                                              posnr = wa_vbpa-posnr
                                                              parvw = 'WE'.
if sy-subrc eq 0.
if wa_vbpa-kunnr = wa_buff-kunnr.
delete it_vbpa index sy-tabix.
clear: wa_buff, wa_vbpa.
endif.
endif.
endloop.
"&amp;lt;&amp;lt;finally it_vbpa will contain all such entries which Sold to is not equal to ship to..
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jay Sadaram on Jul 7, 2008 12:02 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jul 2008 19:01:59 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2008-07-07T19:01:59Z</dc:date>
    <item>
      <title>Sales Orders with diffrent partner functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-orders-with-diffrent-partner-functions/m-p/4070852#M973236</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 wanted to find all the sales orders for which sold-to-party is diffrent than ship-to party. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you help me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jack&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 18:51:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-orders-with-diffrent-partner-functions/m-p/4070852#M973236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T18:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Orders with diffrent partner functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-orders-with-diffrent-partner-functions/m-p/4070853#M973237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;select vbeln posnr parvw kunnr
      from vbpa into it_vbpa
  where vbeln in so_vbeln.

loop at it_vbpa into wa_vbpa where parvw = 'AG'.
     read table it_vbpa into wa_buff with key vbeln = wa_vbpa-vbeln
                                                              posnr = wa_vbpa-posnr
                                                              parvw = 'WE'.
if sy-subrc eq 0.
if wa_vbpa-kunnr = wa_buff-kunnr.
delete it_vbpa index sy-tabix.
clear: wa_buff, wa_vbpa.
endif.
endif.
endloop.
"&amp;lt;&amp;lt;finally it_vbpa will contain all such entries which Sold to is not equal to ship to..
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jay Sadaram on Jul 7, 2008 12:02 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 19:01:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-orders-with-diffrent-partner-functions/m-p/4070853#M973237</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-07-07T19:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Orders with diffrent partner functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-orders-with-diffrent-partner-functions/m-p/4070854#M973238</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;Select data from vbpa as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: i_vbpa type standard table of vbpa-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a~vbeln&lt;/P&gt;&lt;P&gt;from vbpa as a&lt;/P&gt;&lt;P&gt;inner join vbpa as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;vbeln = b&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;and a&lt;SUB&gt;kunnr &amp;lt;&amp;gt; b&lt;/SUB&gt;kunnr&lt;/STRONG&gt; &amp;lt;&amp;lt; Not equal to sign not displaying by editor&lt;/P&gt;&lt;P&gt;   into table i_vbpa&lt;/P&gt;&lt;P&gt; where a~PARVW = 'AG'&lt;/P&gt;&lt;P&gt; and b~PARVW = 'WE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Joyjit Ghosh on Jul 7, 2008 9:17 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 19:16:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-orders-with-diffrent-partner-functions/m-p/4070854#M973238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T19:16:40Z</dc:date>
    </item>
  </channel>
</rss>

