<?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: code needed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-needed/m-p/1716883#M313349</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Ali&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Hope the below code gives you some idea on addressing the same:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;tables: vbpa, kna1.
types: begin of t_partn,
         vbeln like vbpa-vbeln,
         kunnr like vbpa-kunnr,
         katr6 like kna1-katr6,
       end of t_partn.
data: it_partn type standard table of t_partn.
data: w_katr6 like kna1-katr6.

select vbpa~vbeln vbpa~kunnr kna1~katr6
       into table it_partn
       from vbpa
       inner join kna1
       on vbpa~kunnr = kna1~kunnr
       where vbpa~vbeln = VBKDR-VBELN
       and   vbpa~parvw = 'RE'
       and   vbpa~posnr = '000000'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Oct 2006 09:14:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-30T09:14:20Z</dc:date>
    <item>
      <title>code needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-needed/m-p/1716881#M313347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GET BILLTO_PARTNER customer number for the document (reading VBPA where VBELN = document number VBDKR-VBELN and partner PARVW = &amp;#145;RE&amp;#146; / &amp;#145;BP&amp;#146;)&lt;/P&gt;&lt;P&gt;Read table KNA1 to get field KNA1-KATR6 where KUNNR equals Billto partner, and fields VBDKR-VKORG, VBDKR-VTWEG, VBDKR-SPART, &lt;/P&gt;&lt;P&gt;Store first character of field KNA1-KATR6 in a work field e.g. W_ KATR6.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 08:57:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-needed/m-p/1716881#M313347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-30T08:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: code needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-needed/m-p/1716882#M313348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please elaborate this more?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 09:13:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-needed/m-p/1716882#M313348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-30T09:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: code needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-needed/m-p/1716883#M313349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Ali&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Hope the below code gives you some idea on addressing the same:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;tables: vbpa, kna1.
types: begin of t_partn,
         vbeln like vbpa-vbeln,
         kunnr like vbpa-kunnr,
         katr6 like kna1-katr6,
       end of t_partn.
data: it_partn type standard table of t_partn.
data: w_katr6 like kna1-katr6.

select vbpa~vbeln vbpa~kunnr kna1~katr6
       into table it_partn
       from vbpa
       inner join kna1
       on vbpa~kunnr = kna1~kunnr
       where vbpa~vbeln = VBKDR-VBELN
       and   vbpa~parvw = 'RE'
       and   vbpa~posnr = '000000'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 09:14:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-needed/m-p/1716883#M313349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-30T09:14:20Z</dc:date>
    </item>
  </channel>
</rss>

