<?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: Pricing condition routine in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pricing-condition-routine/m-p/8326713#M1637770</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;Don't add or delete items in XKOMV from a formula or other VOFM subroutine. Control if it must works with pricing requirement (VOFM) in the pricing procedures, ie, in tcode M/08 you create the conditions, and with these pricing requirements you decide if it must work or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: E_Hinojosa on Nov 15, 2011 3:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Nov 2011 14:18:15 GMT</pubDate>
    <dc:creator>eduardo_hinojosa</dc:creator>
    <dc:date>2011-11-15T14:18:15Z</dc:date>
    <item>
      <title>Pricing condition routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pricing-condition-routine/m-p/8326712#M1637769</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;I have a issue where i need to over write invoice price with PO price during invoice creation itself. i created a routine which is triggered when invoice is created. this populates the table XKOMV. But as this the first time i will be created a invoice i dont have any entries in XKOMV table. i need this table so that i can put the PO price against invoice price going forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the piece of code i have written in my routine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE knumv FROM ekko&lt;/P&gt;&lt;P&gt;      INTO zknumv WHERE ebeln = komp-aubel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      SELECT SINGLE infnr&lt;/P&gt;&lt;P&gt;                    ebeln&lt;/P&gt;&lt;P&gt;        FROM ekpo INTO (zinfnr, zebeln)&lt;/P&gt;&lt;P&gt;        WHERE ebeln = komp-aubel.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        SELECT SINGLE kbetr FROM konv&lt;/P&gt;&lt;P&gt;          INTO  zkbetr "xkomv-kbetr&lt;/P&gt;&lt;P&gt;          WHERE knumv = zknumv&lt;/P&gt;&lt;P&gt;          AND   kschl = 'PB00'.&lt;/P&gt;&lt;P&gt;        IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;          MOVE zkbetr TO xkomv-kbetr.&lt;/P&gt;&lt;P&gt;          MOVE c_ztpr TO xkomv-kschl. "'ZTPR'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          APPEND  xkomv.&lt;/P&gt;&lt;P&gt;          CLEAR xkomv.&lt;/P&gt;&lt;P&gt;          CLEAR komt1-kschl.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i cannot append data into XKOMV as i have done above. How else do i handle this issue? i want to do this when Invoice price is getting determined. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 10:58:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pricing-condition-routine/m-p/8326712#M1637769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-15T10:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Pricing condition routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pricing-condition-routine/m-p/8326713#M1637770</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;Don't add or delete items in XKOMV from a formula or other VOFM subroutine. Control if it must works with pricing requirement (VOFM) in the pricing procedures, ie, in tcode M/08 you create the conditions, and with these pricing requirements you decide if it must work or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: E_Hinojosa on Nov 15, 2011 3:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 14:18:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pricing-condition-routine/m-p/8326713#M1637770</guid>
      <dc:creator>eduardo_hinojosa</dc:creator>
      <dc:date>2011-11-15T14:18:15Z</dc:date>
    </item>
  </channel>
</rss>

