<?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: Problem with Table updation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-table-updation/m-p/2840766#M665324</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Columns are not displayed with right space justification.&lt;/P&gt;&lt;P&gt;Actual table: &lt;/P&gt;&lt;P&gt;Amount Field contains &lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;7&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output for Amound field should be&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;7&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;9.99&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actual Quantity Field values: should remain the same in the output as well&lt;/P&gt;&lt;P&gt;34&lt;/P&gt;&lt;P&gt;76&lt;/P&gt;&lt;P&gt;30&lt;/P&gt;&lt;P&gt;52&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Padma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Sep 2007 06:27:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-28T06:27:36Z</dc:date>
    <item>
      <title>Problem with Table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-table-updation/m-p/2840765#M665323</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 have the following requirement&lt;/P&gt;&lt;P&gt;I have a table with two columns &amp;#147;Amount&amp;#148; and &amp;#147;Quantity&amp;#148;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amount     Quantity&lt;/P&gt;&lt;P&gt;0	34&lt;/P&gt;&lt;P&gt;4	76	&lt;/P&gt;&lt;P&gt;7	30&lt;/P&gt;&lt;P&gt;5	52&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the requirement&amp;#151;&lt;/P&gt;&lt;P&gt;When there is &amp;#147;0&amp;#148; in &amp;#147;Amount&amp;#148; column in FIRST record, then I have to update &amp;#147;Amount &amp;#147; field by replacing index 1 value of Amount wthl index2 value of Amount&lt;/P&gt;&lt;P&gt;Index 2 value with  Index 3 value etc&amp;#133;and fill index n value with 9.99.   And&amp;#147;Quantity&amp;#148; should remain the same.&lt;/P&gt;&lt;P&gt;Output  should look like this.&lt;/P&gt;&lt;P&gt;Amount     Quantity&lt;/P&gt;&lt;P&gt;4           34&lt;/P&gt;&lt;P&gt;7           76	&lt;/P&gt;&lt;P&gt;5           30&lt;/P&gt;&lt;P&gt;9.99      52&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me on this.  Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Padma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 06:22:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-table-updation/m-p/2840765#M665323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T06:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-table-updation/m-p/2840766#M665324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Columns are not displayed with right space justification.&lt;/P&gt;&lt;P&gt;Actual table: &lt;/P&gt;&lt;P&gt;Amount Field contains &lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;7&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output for Amound field should be&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;7&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;9.99&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actual Quantity Field values: should remain the same in the output as well&lt;/P&gt;&lt;P&gt;34&lt;/P&gt;&lt;P&gt;76&lt;/P&gt;&lt;P&gt;30&lt;/P&gt;&lt;P&gt;52&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Padma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 06:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-table-updation/m-p/2840766#M665324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T06:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-table-updation/m-p/2840767#M665325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if say itab contains fields-amt and quan and ur itab has the values which u said-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab2 like itab..&lt;/P&gt;&lt;P&gt;data: gv_quan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear gv_quan.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;if gv_quan is not initial.&lt;/P&gt;&lt;P&gt;itab2-amt = itab-amt.&lt;/P&gt;&lt;P&gt;itab2-quan = gv_quan.&lt;/P&gt;&lt;P&gt;append itab2.&lt;/P&gt;&lt;P&gt;clear gv_quan.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt; if itab-amt eq 0.&lt;/P&gt;&lt;P&gt;   gv_quan = itab-quan.&lt;/P&gt;&lt;P&gt;   continue.&lt;/P&gt;&lt;P&gt;endif.   &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now ur itab2 will have the format u required..&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 06:32:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-table-updation/m-p/2840767#M665325</guid>
      <dc:creator>abdulazeez12</dc:creator>
      <dc:date>2007-09-28T06:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-table-updation/m-p/2840768#M665326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt; please check this following coding ..&lt;/P&gt;&lt;P&gt;REPORT  Z0322_UPGRATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of wa_sample,&lt;/P&gt;&lt;P&gt;         amount  type i,&lt;/P&gt;&lt;P&gt;         quantity type i,&lt;/P&gt;&lt;P&gt;       end of wa_sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : s type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_sample like table of wa_sample with header line,&lt;/P&gt;&lt;P&gt;       it_sample1 like table of wa_sample with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_sample-amount = 0.&lt;/P&gt;&lt;P&gt;it_sample-quantity = 34.&lt;/P&gt;&lt;P&gt;append it_sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_sample-amount = 4.&lt;/P&gt;&lt;P&gt;it_sample-quantity = 76.&lt;/P&gt;&lt;P&gt;append it_sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_sample-amount = 7.&lt;/P&gt;&lt;P&gt;it_sample-quantity = 30.&lt;/P&gt;&lt;P&gt;append it_sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_sample-amount = 5.&lt;/P&gt;&lt;P&gt;it_sample-quantity = 52.&lt;/P&gt;&lt;P&gt;append it_sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_sample.&lt;/P&gt;&lt;P&gt;  write : / it_sample-amount , it_sample-quantity.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write /: 'AFTER '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-tabix &amp;lt;&amp;gt; 1.&lt;/P&gt;&lt;P&gt;  it_sample1-amount = it_sample-amount.&lt;/P&gt;&lt;P&gt;  it_sample1-quantity = s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  append it_sample1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; s = it_sample-quantity.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_sample1.&lt;/P&gt;&lt;P&gt;  write : / it_sample1-amount , it_sample1-quantity.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;send me if u get any error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;baskaran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 06:36:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-table-updation/m-p/2840768#M665326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T06:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-table-updation/m-p/2840769#M665327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Bhaskaran.  It worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 07:17:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-table-updation/m-p/2840769#M665327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T07:17:28Z</dc:date>
    </item>
  </channel>
</rss>

