<?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: SD: Pricing Routine/Condition value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-pricing-routine-condition-value/m-p/4899395#M1144219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rakesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should check the user exit in sd billing along with the pricing type in SD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Sep 2009 07:19:08 GMT</pubDate>
    <dc:creator>vivekchokshi</dc:creator>
    <dc:date>2009-09-08T07:19:08Z</dc:date>
    <item>
      <title>SD: Pricing Routine/Condition value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-pricing-routine-condition-value/m-p/4899393#M1144217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;&amp;lt;Do not offer rewards&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have three condition types, ZCIF, ZFRE, ZFBP. My aim is to bring  ZFBP = ZCIF - ZFRE.&lt;/P&gt;&lt;P&gt;I have written a routine with the help of my SD consultant. My logic is working fine in VA01, VF01, VF02. The problem i'm facing is when the user changes the value in VF01 and save again, it is not updating the pricing with the new value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the if the user changes new values in VA01 and VF02 and save, then it is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me in this. Usefull answers will be surely rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code i used inside the routine is as follows. (Routine is attached in ZFBP in pricing, (V/08))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Rakesh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;READ TABLE lit_xkomv INTO lfl_xkomv1
                           WITH KEY kschl = ZCIF.

      IF sy-subrc EQ 0.

        READ TABLE lit_xkomv INTO lfl_xkomv2
                           WITH KEY kschl = 'ZFRE'.

        IF sy-subrc EQ 0.

          lfl_xkomv-kwert = lfl_xkomv1-kwert - lfl_xkomv2-kwert.
          lfl_xkomv-kbetr = lfl_xkomv1-kbetr - lfl_xkomv2-kbetr.


          xkomv-kwert = lfl_xkomv-kwert.
          xkomv-kbetr = lfl_xkomv-kbetr.
          xkwert      = lfl_xkomv-kwert.



        ELSE.


          xkomv-kwert = lfl_xkomv1-kwert.
          xkomv-kbetr = lfl_xkomv1-kbetr.
          xkwert      = lfl_xkomv1-kwert.

        ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Dec 19, 2008 1:32 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2008 10:52:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sd-pricing-routine-condition-value/m-p/4899393#M1144217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-18T10:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: SD: Pricing Routine/Condition value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-pricing-routine-condition-value/m-p/4899394#M1144218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rakesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to check your config. part like copy control etc.&lt;/P&gt;&lt;P&gt;I dont think it has to do anything with code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Maharshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2008 11:14:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sd-pricing-routine-condition-value/m-p/4899394#M1144218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-18T11:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: SD: Pricing Routine/Condition value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-pricing-routine-condition-value/m-p/4899395#M1144219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rakesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should check the user exit in sd billing along with the pricing type in SD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 07:19:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sd-pricing-routine-condition-value/m-p/4899395#M1144219</guid>
      <dc:creator>vivekchokshi</dc:creator>
      <dc:date>2009-09-08T07:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: SD: Pricing Routine/Condition value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-pricing-routine-condition-value/m-p/4899396#M1144220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rakesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, instead if using read statement again and again, use 'LOOP AT LIT_XKOMV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A Sample Code is written below, if it could help you out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;CODE&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA:  ZKOMV LIKE XKOMV OCCURS 0 WITH HEADER LINE,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       &lt;STRONG&gt;KBETRT LIKE XKOMV-KBETR,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       &lt;STRONG&gt;KWERTT LIKE XKOMV-KWERT,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       &lt;STRONG&gt;CURRENTLINE LIKE SY-TABIX.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;LOOP AT XKOMV .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;MOVE-CORRESPONDING XKOMV TO ZKOMV.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;APPEND ZKOMV. CLEAR ZKOMV.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;IF XKOMV-KSCHL = 'ZFBP'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;CURRENTLINE = SY-TABIX .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;ENDLOOP.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;READ TABLE XKOMV INDEX  CURRENTLINE.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                      &lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;LOOP AT ZKOMV.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;IF ZKOMV-KSCHL EQ 'ZCIF' .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       &lt;STRONG&gt;KBETRT = KBETRT + ZKOMV-KBETR .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       &lt;STRONG&gt;KWERTT = KWERTT + ZKOMV-KWERT .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;ELSEIF ZKOMV-KSCHL EQ 'ZFRE' .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       &lt;STRONG&gt;KBETRT = KBETRT - ZKOMV-KBETR .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       &lt;STRONG&gt;KWERTT = KWERTT - ZKOMV-KWERT .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;ENDLOOP.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;XKOMV-KWERT = KWERTT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;XKOMV-KBETRT = KBETRT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;XWERT = KWERTT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;END OF CODE&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be bit useful for you. Just Try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Anil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 07:46:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sd-pricing-routine-condition-value/m-p/4899396#M1144220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-08T07:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: SD: Pricing Routine/Condition value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-pricing-routine-condition-value/m-p/4899397#M1144221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, can you tell me how can you solved it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 14:09:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sd-pricing-routine-condition-value/m-p/4899397#M1144221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-06T14:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: SD: Pricing Routine/Condition value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-pricing-routine-condition-value/m-p/4899398#M1144222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;None of those posted solutions are any good - put your requirement/issue into a new post and you might get a better answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 16:16:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sd-pricing-routine-condition-value/m-p/4899398#M1144222</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2010-12-06T16:16:01Z</dc:date>
    </item>
  </channel>
</rss>

