<?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 ROUTINE MODIFICATION in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/routine-modification/m-p/8805132#M1680605</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;Hi gurus&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;i am basically sd consultant , i have one requirement when you take return order with reference to invoice , once i create the return order with reference to invoice&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;invoice 3 line item&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;1 st -10 quantity&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;2 nd - 9 quantity&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;3 rd - 8 quantity&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;return order create&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;1 st - 1 quantity&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;2 nd- 1 quantity&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;3 rd - 1 quantity&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;next time create the return order with same invoice , in that time&amp;nbsp; the previous order quantity minus invoice quantity&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;1 st = 10-1 =9&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;2nd = 9-1&amp;nbsp; = 8&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;3 rd = 8-1 = 7&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;this quantity comes at second order quantity , how this capture&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;i tried to change routine a t copy control&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;DATA : w_kwmeng TYPE vbap-kwmeng,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; w_ntgew&amp;nbsp; TYPE vbap-ntgew,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; w_brgew&amp;nbsp; TYPE vbap-brgew,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bal_kwmeng TYPE vbap-kwmeng.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp; SELECT SUM( kwmeng ) SUM( ntgew ) SUM( brgew )&amp;nbsp; FROM vbap INTO (w_kwmeng , w_ntgew , w_brgew)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp; WHERE vgbel = cvbrp-vbeln AND vgpos = cvbrp-posnr.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp; IF sy-subrc EQ 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF NOT w_kwmeng IS INITIAL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: #0063a4;"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cvbrp-fkimg = vbrp-fkimg - w_kwmeng.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bal_kwmeng = cvbrp-fkimg - w_kwmeng.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cvbrp-fkimg = bal_kwmeng.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cvbrp-ntgew = cvbrp-fkimg.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cvbrp-brgew = cvbrp-fkimg.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;but system gives below quantity&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;1 st = 8&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;2 nd = 7&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;2 nd = 6&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;but i want sale order quantity like&amp;nbsp; 9, 8, 7&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;please help me , &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jun 2012 06:22:57 GMT</pubDate>
    <dc:creator>bsivasankarreddy_reddy</dc:creator>
    <dc:date>2012-06-07T06:22:57Z</dc:date>
    <item>
      <title>ROUTINE MODIFICATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/routine-modification/m-p/8805132#M1680605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;Hi gurus&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;i am basically sd consultant , i have one requirement when you take return order with reference to invoice , once i create the return order with reference to invoice&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;invoice 3 line item&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;1 st -10 quantity&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;2 nd - 9 quantity&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;3 rd - 8 quantity&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;return order create&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;1 st - 1 quantity&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;2 nd- 1 quantity&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;3 rd - 1 quantity&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;next time create the return order with same invoice , in that time&amp;nbsp; the previous order quantity minus invoice quantity&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;1 st = 10-1 =9&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;2nd = 9-1&amp;nbsp; = 8&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;3 rd = 8-1 = 7&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;this quantity comes at second order quantity , how this capture&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;i tried to change routine a t copy control&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;DATA : w_kwmeng TYPE vbap-kwmeng,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; w_ntgew&amp;nbsp; TYPE vbap-ntgew,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; w_brgew&amp;nbsp; TYPE vbap-brgew,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bal_kwmeng TYPE vbap-kwmeng.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp; SELECT SUM( kwmeng ) SUM( ntgew ) SUM( brgew )&amp;nbsp; FROM vbap INTO (w_kwmeng , w_ntgew , w_brgew)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp; WHERE vgbel = cvbrp-vbeln AND vgpos = cvbrp-posnr.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp; IF sy-subrc EQ 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF NOT w_kwmeng IS INITIAL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: #0063a4;"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cvbrp-fkimg = vbrp-fkimg - w_kwmeng.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bal_kwmeng = cvbrp-fkimg - w_kwmeng.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cvbrp-fkimg = bal_kwmeng.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cvbrp-ntgew = cvbrp-fkimg.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cvbrp-brgew = cvbrp-fkimg.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;but system gives below quantity&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;1 st = 8&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;2 nd = 7&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;2 nd = 6&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;but i want sale order quantity like&amp;nbsp; 9, 8, 7&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN lang="EN-US" style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;please help me , &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 06:22:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/routine-modification/m-p/8805132#M1680605</guid>
      <dc:creator>bsivasankarreddy_reddy</dc:creator>
      <dc:date>2012-06-07T06:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: ROUTINE MODIFICATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/routine-modification/m-p/8805133#M1680606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Add &lt;/P&gt;&lt;P&gt;CLEAR: &lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 12px; background-color: #ffffff;"&gt;w_kwmeng , w_ntgew , w_brgew&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;before select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 06:27:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/routine-modification/m-p/8805133#M1680606</guid>
      <dc:creator>former_member209920</dc:creator>
      <dc:date>2012-06-07T06:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: ROUTINE MODIFICATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/routine-modification/m-p/8805134#M1680607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;thq replly&lt;/P&gt;&lt;P&gt; can clear explanation , &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 11:23:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/routine-modification/m-p/8805134#M1680607</guid>
      <dc:creator>bsivasankarreddy_reddy</dc:creator>
      <dc:date>2012-06-07T11:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: ROUTINE MODIFICATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/routine-modification/m-p/8805135#M1680608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is it resolved ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 11:28:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/routine-modification/m-p/8805135#M1680608</guid>
      <dc:creator>former_member209920</dc:creator>
      <dc:date>2012-06-07T11:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: ROUTINE MODIFICATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/routine-modification/m-p/8805136#M1680609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;it is not resolved , same issue will come, check screen&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/109049" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but net weight and gross weight will come fine like below screen &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/109050" width="450" /&gt;&lt;/P&gt;&lt;P&gt;CLEAR: w_kwmeng , w_ntgew , w_brgew.&lt;/P&gt;&lt;P&gt;&amp;nbsp; SELECT SUM( kwmeng ) SUM( ntgew ) SUM( brgew )&amp;nbsp; FROM vbap INTO (w_kwmeng , w_ntgew , w_brgew)&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE vgbel = vbrp-vbeln AND vgpos = vbrp-posnr.&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF NOT w_kwmeng IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cvbrp-fkimg = cvbrp-fkimg - w_kwmeng.( here i missing some thing , this deduction it some come wrong ) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cvbrp-ntgew = cvbrp-fkimg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cvbrp-brgew = cvbrp-fkimg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can guide me&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 11:30:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/routine-modification/m-p/8805136#M1680609</guid>
      <dc:creator>bsivasankarreddy_reddy</dc:creator>
      <dc:date>2012-06-07T11:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: ROUTINE MODIFICATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/routine-modification/m-p/8805137#M1680610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;any reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 11:59:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/routine-modification/m-p/8805137#M1680610</guid>
      <dc:creator>bsivasankarreddy_reddy</dc:creator>
      <dc:date>2012-06-07T11:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: ROUTINE MODIFICATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/routine-modification/m-p/8805138#M1680611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your query is on VBAP where only key fields are VBELN and POSNR.&lt;/P&gt;&lt;P&gt;So you can remove SUM aggregate function.&lt;/P&gt;&lt;P&gt;Re-phrase selection query as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: #333333;"&gt;CLEAR: W_KWMENG , W_NTGEW , W_BRGEW.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: #333333;"&gt; SELECT KWMENG &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NTGEW &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BRGEW &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM VBAP INTO (W_KWMENG , W_NTGEW , W_BRGEW)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE VGBEL = VBRP-VBELN &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND VGPOS = VBRP-POSNR.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: #333333;"&gt; IF SY-SUBRC EQ 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: #333333;"&gt; IF NOT W_KWMENG IS INITIAL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: #333333;"&gt; CVBRP-FKIMG = CVBRP-FKIMG - W_KWMENG.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: #333333;"&gt; CVBRP-NTGEW = CVBRP-FKIMG.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: #333333;"&gt; CVBRP-BRGEW = CVBRP-FKIMG&lt;/SPAN&gt;&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;ManuB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 12:04:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/routine-modification/m-p/8805138#M1680611</guid>
      <dc:creator>former_member209920</dc:creator>
      <dc:date>2012-06-07T12:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: ROUTINE MODIFICATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/routine-modification/m-p/8805139#M1680612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;i check same but its come same no changes , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i remove for C &lt;/P&gt;&lt;P&gt;CVBRP-FKIMG = VBRP-FKIMG&amp;nbsp; - W_KWMENG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when this activate system last line item qunatity for all like below screen&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/108829" width="450" /&gt;&lt;/P&gt;&lt;P&gt;here 4 line qnatity 6 , this copy to all line item , this is my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can help this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 12:28:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/routine-modification/m-p/8805139#M1680612</guid>
      <dc:creator>bsivasankarreddy_reddy</dc:creator>
      <dc:date>2012-06-07T12:28:28Z</dc:date>
    </item>
  </channel>
</rss>

