<?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 Order quantity cumulation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/order-quantity-cumulation/m-p/5696335#M1294161</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;&lt;/P&gt;&lt;P&gt;We are facing one issue with sales order creation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per the requirement, line items should not repeated in an order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever the user enters an item which is already available in the order, then&lt;/P&gt;&lt;P&gt;instead of creating new line item the system should cumulate the order quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We tried the user exit USEREXIT_MOVE_FIELD_TO_VBAP. But once the quantity is updated in the line item then item order quantity field has been changed to 'non-modifiable' mode and we are not able to change the quantity again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the quantity is NOT getting updated in schedule lines (VBEP)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help us to resolve this issue ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shaju&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: shaju tv on May 25, 2009 12:10 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: shaju tv on May 25, 2009 2:39 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 May 2009 09:39:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-25T09:39:45Z</dc:date>
    <item>
      <title>Order quantity cumulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/order-quantity-cumulation/m-p/5696335#M1294161</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;&lt;/P&gt;&lt;P&gt;We are facing one issue with sales order creation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per the requirement, line items should not repeated in an order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever the user enters an item which is already available in the order, then&lt;/P&gt;&lt;P&gt;instead of creating new line item the system should cumulate the order quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We tried the user exit USEREXIT_MOVE_FIELD_TO_VBAP. But once the quantity is updated in the line item then item order quantity field has been changed to 'non-modifiable' mode and we are not able to change the quantity again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the quantity is NOT getting updated in schedule lines (VBEP)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help us to resolve this issue ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shaju&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: shaju tv on May 25, 2009 12:10 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: shaju tv on May 25, 2009 2:39 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 09:39:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/order-quantity-cumulation/m-p/5696335#M1294161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T09:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Order quantity cumulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/order-quantity-cumulation/m-p/5696336#M1294162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;To make changes in schedules lines you willhave tomake use of 'USEREXIT_MOVE_FIELD_TO_VBEP '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you achieving your solution. Can you share the code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 12:45:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/order-quantity-cumulation/m-p/5696336#M1294162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T12:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Order quantity cumulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/order-quantity-cumulation/m-p/5696337#M1294163</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;Please find the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; read table xvbap with key matnr = vbap-matnr.&lt;/P&gt;&lt;P&gt; if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not RV45A-KWMENG is initial.&lt;/P&gt;&lt;P&gt;    xvbap-kwmeng = xvbap-kwmeng + RV45A-KWMENG.&lt;/P&gt;&lt;P&gt;    modify xvbap index sy-tabix transporting kwmeng.&lt;/P&gt;&lt;P&gt;    clear vbap-posnr.&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;Here i am able to change the quatity at item level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried changing the order quantity in the exit 'USEREXIT_MOVE_FIELD_TO_VBEP ' and it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please give some idea ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shaju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 13:41:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/order-quantity-cumulation/m-p/5696337#M1294163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T13:41:24Z</dc:date>
    </item>
  </channel>
</rss>

