<?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 selecting program number(kunnr) from vbpa table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-program-number-kunnr-from-vbpa-table/m-p/3042715#M720164</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 have a requirement where i have to select program number(kunnr) from vbpa table&lt;/P&gt;&lt;P&gt;based on vbeln and parvw fields.I can use 'FOR ALL ENTRIES IN vbak table for vbeln field.But parvw field is not present in vbak table .Where can i get parvw field to select the program number(kunnr) from vbpa table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Oct 2007 06:42:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-26T06:42:45Z</dc:date>
    <item>
      <title>selecting program number(kunnr) from vbpa table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-program-number-kunnr-from-vbpa-table/m-p/3042715#M720164</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 have a requirement where i have to select program number(kunnr) from vbpa table&lt;/P&gt;&lt;P&gt;based on vbeln and parvw fields.I can use 'FOR ALL ENTRIES IN vbak table for vbeln field.But parvw field is not present in vbak table .Where can i get parvw field to select the program number(kunnr) from vbpa table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 06:42:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-program-number-kunnr-from-vbpa-table/m-p/3042715#M720164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T06:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: selecting program number(kunnr) from vbpa table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-program-number-kunnr-from-vbpa-table/m-p/3042716#M720165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;I guess you want Bill to party address&lt;/P&gt;&lt;P&gt;KUNRE is field from VBPA table	Where PARVW = &amp;#145;RE&amp;#146;&lt;/P&gt;&lt;P&gt;Rewards if Helpful....&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 06:53:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-program-number-kunnr-from-vbpa-table/m-p/3042716#M720165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T06:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: selecting program number(kunnr) from vbpa table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-program-number-kunnr-from-vbpa-table/m-p/3042717#M720166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi hema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARVW is present in VBFA (Sales Document: Partner ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So do like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT a&lt;SUB&gt;vbeln b&lt;/SUB&gt;parvw FROM vbak as a JOIN vbfa as b ON a&lt;SUB&gt;vbeln = b&lt;/SUB&gt;vbeln  INTO TABLE t_vbak WHERE b&lt;SUB&gt;parvw  IN s_parvw AND a&lt;/SUB&gt;vbeln IN s_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbeln kunnr FROM vbap INTO TABLE t_vbap FOR ALL ENTRIES IN t_vbak where vbeln = t_vbak-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Note:&lt;/P&gt;&lt;P&gt;where s_parvw and s_vbeln are SELECT-OPTIONS&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward me if useful.........&lt;/P&gt;&lt;P&gt;Harimanjesh AN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Harimanjesh AN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 06:55:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-program-number-kunnr-from-vbpa-table/m-p/3042717#M720166</guid>
      <dc:creator>harimanjesh_an</dc:creator>
      <dc:date>2007-10-26T06:55:28Z</dc:date>
    </item>
  </channel>
</rss>

