<?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 select in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1472006#M221753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;plz suggest me code for the below given description.&lt;/P&gt;&lt;P&gt;when i write inner join on  KONV it is showing error &lt;/P&gt;&lt;P&gt;could u plz suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Contract (PRICE_DESC): &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Select the document condition (VBRK-KNUMV)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Select all records from KONV where document condition in billing document (VBRK-KNUMV) is equal to document condition (KONV-KNUMV) AND where billing document line (VBRP-POSNR) is equal to document condition line (KONV-KPOSN) AND where the condition type (KONV-KSCHA) is equal to &amp;#145;ZPR0.&amp;#146;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. If the access (KONV-KOLNR) is equal to &amp;#146;40,&amp;#146; then map the attribute 6 value (KNA1-KATR6) for the Sold-to (KNA1-KUNNR) that is equal to the Sold-to on the billing document (VBRK-KUNAG). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Else, map blank value to field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;siri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Sep 2006 17:20:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-04T17:20:33Z</dc:date>
    <item>
      <title>select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1472006#M221753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;plz suggest me code for the below given description.&lt;/P&gt;&lt;P&gt;when i write inner join on  KONV it is showing error &lt;/P&gt;&lt;P&gt;could u plz suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Contract (PRICE_DESC): &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Select the document condition (VBRK-KNUMV)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Select all records from KONV where document condition in billing document (VBRK-KNUMV) is equal to document condition (KONV-KNUMV) AND where billing document line (VBRP-POSNR) is equal to document condition line (KONV-KPOSN) AND where the condition type (KONV-KSCHA) is equal to &amp;#145;ZPR0.&amp;#146;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. If the access (KONV-KOLNR) is equal to &amp;#146;40,&amp;#146; then map the attribute 6 value (KNA1-KATR6) for the Sold-to (KNA1-KUNNR) that is equal to the Sold-to on the billing document (VBRK-KUNAG). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Else, map blank value to field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;siri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 17:20:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1472006#M221753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T17:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1472007#M221754</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;KONV is a cluster table and you can't use this kind of table in a join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you should select the data of VBRK and VBRP you need by a join and after get data from KONV separatly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF T_BILL OCCURS 0,&lt;/P&gt;&lt;P&gt;        VBELN TYPE VBELN,&lt;/P&gt;&lt;P&gt;        KNUMV TYPE KNUMV,&lt;/P&gt;&lt;P&gt;        KUNAG TYPE KUNAG, &lt;/P&gt;&lt;P&gt;        POSNR TYPE POSNR,&lt;/P&gt;&lt;P&gt;        KATR6 TYPE KATR6,&lt;/P&gt;&lt;P&gt;      END   OF T_BILL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: T_KONV TYPE STANDARD TABLE OF KONV WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT A&lt;SUB&gt;VBELN A&lt;/SUB&gt;KNUMV A&lt;SUB&gt;KUNAG B&lt;/SUB&gt;POSNR &lt;/P&gt;&lt;P&gt;  FROM VBRK AS A INNER JOIN VBRP 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;          INTO TABLE T_BILL&lt;/P&gt;&lt;P&gt;        WHERE A~VBELN IN SO_VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  SELECT * FROM KONV INTO TABLE T_KONV&lt;/P&gt;&lt;P&gt;     FOR ALL ENTRIES IN T_BILL&lt;/P&gt;&lt;P&gt;                          WHERE KNUMV = T_BILL-KNUMV&lt;/P&gt;&lt;P&gt;                            AND KPOSN = T_BILL-POSNR&lt;/P&gt;&lt;P&gt;                            AND KSCHL = 'ZPRO'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the access (KONV-KOLNR) is equal to &amp;#146;40,&amp;#146; then map the attribute 6 value (KNA1-KATR6) for the Sold-to (KNA1-KUNNR) that is equal to the Sold-to on the billing document (VBRK-KUNAG). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT T_KONV WHERE KOLNR = '40'.&lt;/P&gt;&lt;P&gt;  READ TAVLE T_BILL WITH KEY KNUMV = T_KONV-KNUMV&lt;/P&gt;&lt;P&gt;                             POSMR = T_KONV-KPOSN.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    SELECT KATR6 INTO T_BILL-KATR6 FROM KNA1&lt;/P&gt;&lt;P&gt;                           WHERE KUNNR = T_BILL-KUNAG.&lt;/P&gt;&lt;P&gt;    MODIFY T_BILL INDEX SY-TABIX.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAX&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 17:59:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1472007#M221754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T17:59:35Z</dc:date>
    </item>
  </channel>
</rss>

