<?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  itab. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab/m-p/3319086#M795069</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Monica&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         Looks like you are having trouble to get he bigger value...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why don't you use &lt;STRONG&gt;SORT by billnumber descending&lt;/STRONG&gt; ? and capture the number you wanted..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for modify satement..&lt;/P&gt;&lt;P&gt;it_final does this table have values before..? if not it will dump... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it don nnot have any values... u need to use append...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jan 2008 14:15:48 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2008-01-31T14:15:48Z</dc:date>
    <item>
      <title>modify  itab.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab/m-p/3319085#M795068</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 am fetching data from vbfa successfully now problem is that&lt;/P&gt;&lt;P&gt;in vbrk invoice date and invoice number is there .&lt;/P&gt;&lt;P&gt;but i need last invoice numbe. i.e  VL02n  if i cancel IB intercompany Billing Number 90003843 then last Billing number is 90003844 so in that condition i want that data should come.&lt;/P&gt;&lt;P&gt;its comming in internal table but i am gettin problem how to modify my internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR : wa_vbrk, sy-subrc.&lt;/P&gt;&lt;P&gt;          READ TABLE it_vbrk INTO wa_vbrk WITH KEY vbeln = wa_vbfa-vbeln.&lt;/P&gt;&lt;P&gt;          IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;            MOVE : wa_vbrk-fkdat TO wa_final-fkdat_bill,  " invoice date&lt;/P&gt;&lt;P&gt;                   wa_vbrk-vbeln TO wa_final-vbeln_inv.  " invoice date&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is working fine but not picking last billing number i.e 90003844 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i have take loop.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         LOOP AT it_vbfa INTO wa_vbfa.&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;           READ TABLE it_vbrk INTO wa_vbrk WITH KEY vbeln = wa_vbfa-vbeln.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             MOVE : wa_vbrk-fkdat TO wa_final-fkdat_bill,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                    wa_vbrk-vbeln TO wa_final-vbeln_inv.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             IF it_final IS NOT INITIAL.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;               MODIFY  it_final FROM wa_final  index sy-tabix TRANSPORTING fkdat_bill vbeln_inv.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             ENDIF.&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;           ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         ENDLOOP.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it  showing dump.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 14:06:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab/m-p/3319085#M795068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-31T14:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: modify  itab.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab/m-p/3319086#M795069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Monica&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         Looks like you are having trouble to get he bigger value...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why don't you use &lt;STRONG&gt;SORT by billnumber descending&lt;/STRONG&gt; ? and capture the number you wanted..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for modify satement..&lt;/P&gt;&lt;P&gt;it_final does this table have values before..? if not it will dump... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it don nnot have any values... u need to use append...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 14:15:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab/m-p/3319086#M795069</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-01-31T14:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: modify  itab.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab/m-p/3319087#M795070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if all of your code is pasted in here.. but this is a problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY it_final FROM wa_final index sy-tabix &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The INDEX SY-TABIX refers to the line counter of the table in your LOOP.  In this case, it is using SY-TABIX from LOOP AT IT_VBFA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what the surrounding code contains - but I would try removing the INDEX SY-TABIX from the MODIFY verb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that does not fix it, you must first read IT_FINAL to the current record that you wish to update.  Then use MODIFY .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 14:15:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab/m-p/3319087#M795070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-31T14:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: modify  itab.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab/m-p/3319088#M795071</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;You can do as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
sort itab by BIllingNumber descending.

Read the first item.

You will get last document number.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 14:16:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab/m-p/3319088#M795071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-31T14:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: modify  itab.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab/m-p/3319089#M795072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks jay.&lt;/P&gt;&lt;P&gt;point given&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2008 14:31:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-itab/m-p/3319089#M795072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-01T14:31:00Z</dc:date>
    </item>
  </channel>
</rss>

