<?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: modify command in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-command/m-p/3007657#M710686</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop the table gt_rbco and &lt;/P&gt;&lt;P&gt;read gt_bkpf table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Nov 2007 09:50:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-07T09:50:02Z</dc:date>
    <item>
      <title>modify command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-command/m-p/3007656#M710685</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;i am fetching fwste(tax amount) from bset table  comparing with the fields of bkpf&lt;/P&gt;&lt;P&gt;table(bukrs,belnr,gjahr).&lt;/P&gt;&lt;P&gt;if bkpf-belnr is 170000000&lt;/P&gt;&lt;P&gt;for this belnr in bset it has 5 line items, for those 5 line items it consists of 5 -fwste (tax amount) values.so i need to get all those 5 tax amount values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so how to write code for these while using read table within a loop.&lt;/P&gt;&lt;P&gt;please see the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest me if we can use modify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; LOOP AT gt_bkpf WHERE belnr NE ' '.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MOVE gt_bkpf-bukrs TO gt_final-bukrs.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MOVE gt_bkpf-xblnr TO gt_final-xblnr.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MOVE gt_bkpf-belnr TO gt_final-belnr.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MOVE gt_bkpf-usnam TO gt_final-usnam.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MOVE gt_bkpf-budat TO gt_final-budat.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    READ TABLE gt_rbco WITH KEY belnr = gt_rbkp-belnr BINARY SEARCH.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      MOVE gt_rbco-buzei TO gt_final-buzei.&lt;/P&gt;&lt;P&gt;      MOVE gt_rbco-wrbtr TO gt_final-wrbtr.&lt;/P&gt;&lt;P&gt;      MOVE gt_rbco-menge TO gt_final-menge.&lt;/P&gt;&lt;P&gt;      MOVE gt_rbco-meins TO gt_final-meins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; READ TABLE GT_BSET WITH KEY BELNR = GT_BKPF-BELNR &lt;/P&gt;&lt;P&gt;                               bukrs = gt_bkpf-bukrs&lt;/P&gt;&lt;P&gt;                               gjahr = gt_bkpf-gjahr BINARY SEARCH.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;         MOVE GT_BSET-FWSTE TO GT_FINAL-FWSTE.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 09:43:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-command/m-p/3007656#M710685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-07T09:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: modify command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-command/m-p/3007657#M710686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop the table gt_rbco and &lt;/P&gt;&lt;P&gt;read gt_bkpf table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 09:50:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-command/m-p/3007657#M710686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-07T09:50:02Z</dc:date>
    </item>
  </channel>
</rss>

