<?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: creating new fields with arithmetic operations in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-new-fields-with-arithmetic-operations/m-p/4529339#M1070500</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;&lt;STRONG&gt;loop at it into wa.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;write : / wa-kunnr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa-kunnr = wa-kunnr + 100.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;write :  wa-kunnr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endloop.&lt;/STRONG&gt;&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;&lt;/P&gt;&lt;P&gt;Durai.V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 27 Sep 2008 08:29:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-27T08:29:33Z</dc:date>
    <item>
      <title>creating new fields with arithmetic operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-new-fields-with-arithmetic-operations/m-p/4529336#M1070497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : begin of  wa, kunnr type kunnr, end of wa, it like table of wa.&lt;/P&gt;&lt;P&gt;select kunnr into table it from kna1 up to 10 rows.&lt;/P&gt;&lt;P&gt;loop at it into wa. write : / wa-kunnr. endloop.&lt;/P&gt;&lt;P&gt;Here 5 customer numbers are displayed.. i want a another new column with adding 100 to each of customer number which is disaplyed from kna1 table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone solve my problem with codings..&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Thiru.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Sep 2008 07:50:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-new-fields-with-arithmetic-operations/m-p/4529336#M1070497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-27T07:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: creating new fields with arithmetic operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-new-fields-with-arithmetic-operations/m-p/4529337#M1070498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;try to code like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of wa, &lt;/P&gt;&lt;P&gt;          kunnr type kunnr, &lt;/P&gt;&lt;P&gt;          v_kun type kunnr,&lt;/P&gt;&lt;P&gt;         end of wa.&lt;/P&gt;&lt;P&gt;data  it like table of wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select kunnr into table it from kna1 up to 10 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it into wa. &lt;/P&gt;&lt;P&gt;v_kun = wa-kunnr + 100.&lt;/P&gt;&lt;P&gt;write : / wa-kunnr, v_kun. &lt;/P&gt;&lt;P&gt;clear: wa, v_kun.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help u.&lt;/P&gt;&lt;P&gt;by&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Sep 2008 08:03:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-new-fields-with-arithmetic-operations/m-p/4529337#M1070498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-27T08:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: creating new fields with arithmetic operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-new-fields-with-arithmetic-operations/m-p/4529338#M1070499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for ur idea, but v_kun has to be decalred as a integer in data statements..&lt;/P&gt;&lt;P&gt;Regards,Thiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Sep 2008 08:06:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-new-fields-with-arithmetic-operations/m-p/4529338#M1070499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-27T08:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: creating new fields with arithmetic operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-new-fields-with-arithmetic-operations/m-p/4529339#M1070500</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;&lt;STRONG&gt;loop at it into wa.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;write : / wa-kunnr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa-kunnr = wa-kunnr + 100.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;write :  wa-kunnr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endloop.&lt;/STRONG&gt;&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;&lt;/P&gt;&lt;P&gt;Durai.V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Sep 2008 08:29:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-new-fields-with-arithmetic-operations/m-p/4529339#M1070500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-27T08:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: creating new fields with arithmetic operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-new-fields-with-arithmetic-operations/m-p/4529340#M1070501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Changed the above code....little bit....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : BEGIN OF wa,
kunnr TYPE kunnr,
END OF wa,

v_kun TYPE i.

DATA it LIKE TABLE OF wa.

SELECT kunnr INTO TABLE it FROM kna1 UP TO 10 ROWS.

LOOP AT it INTO wa.
  v_kun = wa-kunnr + 100.
  WRITE : / wa-kunnr, v_kun.
  CLEAR: wa, v_kun.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Sep 2008 08:29:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-new-fields-with-arithmetic-operations/m-p/4529340#M1070501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-27T08:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: creating new fields with arithmetic operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-new-fields-with-arithmetic-operations/m-p/4529341#M1070502</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;Use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of wa,&lt;/P&gt;&lt;P&gt;kunnr type kunnr,&lt;/P&gt;&lt;P&gt;end of wa.&lt;/P&gt;&lt;P&gt;data it like table of wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: KUNNR TYPE C,&lt;/P&gt;&lt;P&gt;           V_KUNNR TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_KUNNR = KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select KUNNR into table it from kna1 up to 10 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it into wa.&lt;/P&gt;&lt;P&gt;v_kunnr = wa-kunnr + 100.&lt;/P&gt;&lt;P&gt;write : / wa-kunnr, V_KUNNR.&lt;/P&gt;&lt;P&gt;clear: wa, v_KUNNR.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope my answer helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Sep 2008 08:44:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-new-fields-with-arithmetic-operations/m-p/4529341#M1070502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-27T08:44:24Z</dc:date>
    </item>
  </channel>
</rss>

