<?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 Deleting inactive pricing types in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-inactive-pricing-types/m-p/2811342#M657180</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;          we have a requirement, where we need to delete the inactive pricing types from the sales order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have configured a pricing routine (902) with the pricing condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when we create/change a sales order, the control comes to the routine, but the table xkomv[] is not populated with value for the field KINAK. This field determines, whether the pricing type is active or not. if its not blank, then its inactive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when the control comes to any of the user exit ( MV45AFZB - check_vbap using us_dialog), the table xkomv[] is populated with the field KINAK. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i need to delete those entries which have been marked, and recalculate the pricing conditoon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one, tell me how to do that? where to implement the logic?&lt;/P&gt;&lt;P&gt;how to invoke the recalualtion of pricing condtion manually?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FInd the code which i have wriiten in pricing routine 902. * this is for ur refrence. this is not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at xkomv where not kinak is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete xkomv index sy-tabix&lt;/P&gt;&lt;P&gt;endloop&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;Niyaz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2007 16:42:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-24T16:42:09Z</dc:date>
    <item>
      <title>Deleting inactive pricing types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-inactive-pricing-types/m-p/2811342#M657180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;          we have a requirement, where we need to delete the inactive pricing types from the sales order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have configured a pricing routine (902) with the pricing condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when we create/change a sales order, the control comes to the routine, but the table xkomv[] is not populated with value for the field KINAK. This field determines, whether the pricing type is active or not. if its not blank, then its inactive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when the control comes to any of the user exit ( MV45AFZB - check_vbap using us_dialog), the table xkomv[] is populated with the field KINAK. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i need to delete those entries which have been marked, and recalculate the pricing conditoon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one, tell me how to do that? where to implement the logic?&lt;/P&gt;&lt;P&gt;how to invoke the recalualtion of pricing condtion manually?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FInd the code which i have wriiten in pricing routine 902. * this is for ur refrence. this is not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at xkomv where not kinak is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete xkomv index sy-tabix&lt;/P&gt;&lt;P&gt;endloop&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;Niyaz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2007 16:42:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-inactive-pricing-types/m-p/2811342#M657180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-24T16:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting inactive pricing types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-inactive-pricing-types/m-p/2811343#M657181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any update on this? very urgent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points for sure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2007 23:04:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-inactive-pricing-types/m-p/2811343#M657181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-24T23:04:11Z</dc:date>
    </item>
  </channel>
</rss>

