<?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: xkomv updates in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/xkomv-updates/m-p/6364911#M1401012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[Step by Step Process:-  VOFM is the Transaction, where we can create New Routine.|http://sapdocs.info/sap/sd-related-topics/routines-in-sd/]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Dec 2009 19:03:55 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2009-12-17T19:03:55Z</dc:date>
    <item>
      <title>xkomv updates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xkomv-updates/m-p/6364907#M1401008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am updating the xkomv table in a user exit using the code at the bottom of this message.  The xkomv table appears to be updated correctly and works when there is only 1 line item on my order.  However, when there are 2 line items or more then the pricing conditions are added but the "Condition value" is not populated.  I can scroll through the line items and then F3 out of the order and get a popup asking if I want to save changes.  I respond yes (although I did not change anything in the order I just scrolled through the line items while looking at the conditions tab using the black arrow at top left of screen).  When I pull the order back up the "Condition value" is populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need the "condition value" to be populated by the code and work properly.  I am a new ABAPer and would appreciate any advice about adding pricing conditions to xkomv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code&lt;/P&gt;&lt;P&gt;READ TABLE xkomv INTO wa_komv&lt;/P&gt;&lt;P&gt;        WITH KEY kposn = wa_vbap-posnr kschl = 'KF00'.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;found KF00 condition for line item so update rate&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   xkomv-kwert = lrate.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    wa_komv-kwert = lrate / rcnt.&lt;/P&gt;&lt;P&gt;    wa_komv-kbetr = lrate / rcnt.&lt;/P&gt;&lt;P&gt;    MODIFY xkomv FROM wa_komv INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;no KF00 condition so create it&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;    READ TABLE xkomv INTO wa_komv&lt;/P&gt;&lt;P&gt;        WITH KEY kposn = wa_vbap-posnr kschl = 'PR00'.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         xkomv-kposn = xvbap-posnr.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      PERFORM get_confition_types TABLES xkomv&lt;/P&gt;&lt;P&gt;                                   USING 'KF00'.&lt;/P&gt;&lt;P&gt;      xkomv-kwert = lrate.&lt;/P&gt;&lt;P&gt;      xkomv-kbetr = lrate / rcnt.&lt;/P&gt;&lt;P&gt;      APPEND xkomv.&lt;/P&gt;&lt;P&gt;      READ TABLE xkomv INTO wa_komv&lt;/P&gt;&lt;P&gt;        WITH KEY kposn = wa_vbap-posnr kschl = 'KF00'.&lt;/P&gt;&lt;P&gt;      wa_komv-kwert = lrate / rcnt.&lt;/P&gt;&lt;P&gt;      wa_komv-kbetr = lrate / rcnt.&lt;/P&gt;&lt;P&gt;      MODIFY xkomv FROM wa_komv INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         append xkomv.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;End of code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2009 16:48:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xkomv-updates/m-p/6364907#M1401008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-10T16:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: xkomv updates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xkomv-updates/m-p/6364908#M1401009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just changing the values in user exit might not work always... specially when you are making changes to condition based value and condition value.. there is lots of logic involved, to determine and make sure values are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to change the value then try to write code in pricing routines, which are attached to your condition types... pricing routines can be seen in Tr. VOFM, its the functional team which have to guide to create a P routine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is a lot of other validations which take place on re-pricing and on any change done in SO of Inv.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2009 16:58:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xkomv-updates/m-p/6364908#M1401009</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-12-10T16:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: xkomv updates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xkomv-updates/m-p/6364909#M1401010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I worked with a funcitonal consultant that got the pricing conditions added for me via Config and Master Data.  I then update those pricing conditions with the code above and it is working as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe my issue was primarily how I created the pricing conditions.  So having SAP create them and then just modifying the amounts accordingly is working for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 17:25:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xkomv-updates/m-p/6364909#M1401010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-17T17:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: xkomv updates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xkomv-updates/m-p/6364910#M1401011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I worked with a funcitonal consultant that got the pricing conditions added for me via Config and Master Data.  I then update those pricing conditions with the code above and it is working as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe my issue was primarily how I created the pricing conditions.  So having SAP create them and then just modifying the amounts accordingly is working for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 17:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xkomv-updates/m-p/6364910#M1401011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-17T17:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: xkomv updates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xkomv-updates/m-p/6364911#M1401012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[Step by Step Process:-  VOFM is the Transaction, where we can create New Routine.|http://sapdocs.info/sap/sd-related-topics/routines-in-sd/]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 19:03:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xkomv-updates/m-p/6364911#M1401012</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-12-17T19:03:55Z</dc:date>
    </item>
  </channel>
</rss>

