<?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 adding type c fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-type-c-fields/m-p/7967027#M1603422</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 have added two character fields by removing ',' from them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After adding i want now the ',' back .  snippet of code written&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_num_1                         TYPE c LENGTH 32,"P DECIMALS 2,"LENGTH 32,&lt;/P&gt;&lt;P&gt;      ls_num_2                         TYPE c LENGTH 32,&lt;/P&gt;&lt;P&gt;      ls_num_3                         TYPE c LENGTH 32,&lt;/P&gt;&lt;P&gt;      ls_str_amt                       TYPE c LENGTH 32,&lt;/P&gt;&lt;P&gt;      ls_dec_amt                       TYPE c LENGTH 32,&lt;/P&gt;&lt;P&gt;      ls_str_amt_final                 TYPE c length 32&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;      ls_num_1 = ls_price_form_data-column2.&lt;/P&gt;&lt;P&gt;      ls_num_2 = ls_price_form_data-column3.&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;    Remove commas to be able to add the numbers&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      replace ',' in ls_num_1 with ''.&lt;/P&gt;&lt;P&gt;      replace ',' in ls_num_2 with ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ls_str_amt = ls_num_1 + ls_num_2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ls_dec_amt = ls_str_amt.&lt;/P&gt;&lt;P&gt;      write ls_dec_amt to ls_str_amt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Right-justify the string&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      shift ls_str_amt right deleting trailing space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ls_price_form_data-column4 = ls_str_amt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to print in smart form by adding ','. Tried to move to type p but did not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestions to get back the ',' into numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Kamala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jun 2011 00:59:56 GMT</pubDate>
    <dc:creator>kp_25</dc:creator>
    <dc:date>2011-06-03T00:59:56Z</dc:date>
    <item>
      <title>adding type c fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-type-c-fields/m-p/7967027#M1603422</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 have added two character fields by removing ',' from them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After adding i want now the ',' back .  snippet of code written&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_num_1                         TYPE c LENGTH 32,"P DECIMALS 2,"LENGTH 32,&lt;/P&gt;&lt;P&gt;      ls_num_2                         TYPE c LENGTH 32,&lt;/P&gt;&lt;P&gt;      ls_num_3                         TYPE c LENGTH 32,&lt;/P&gt;&lt;P&gt;      ls_str_amt                       TYPE c LENGTH 32,&lt;/P&gt;&lt;P&gt;      ls_dec_amt                       TYPE c LENGTH 32,&lt;/P&gt;&lt;P&gt;      ls_str_amt_final                 TYPE c length 32&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;      ls_num_1 = ls_price_form_data-column2.&lt;/P&gt;&lt;P&gt;      ls_num_2 = ls_price_form_data-column3.&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;    Remove commas to be able to add the numbers&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      replace ',' in ls_num_1 with ''.&lt;/P&gt;&lt;P&gt;      replace ',' in ls_num_2 with ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ls_str_amt = ls_num_1 + ls_num_2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ls_dec_amt = ls_str_amt.&lt;/P&gt;&lt;P&gt;      write ls_dec_amt to ls_str_amt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Right-justify the string&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      shift ls_str_amt right deleting trailing space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ls_price_form_data-column4 = ls_str_amt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to print in smart form by adding ','. Tried to move to type p but did not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestions to get back the ',' into numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Kamala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2011 00:59:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-type-c-fields/m-p/7967027#M1603422</guid>
      <dc:creator>kp_25</dc:creator>
      <dc:date>2011-06-03T00:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: adding type c fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-type-c-fields/m-p/7967028#M1603423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this a workflow question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 07:12:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-type-c-fields/m-p/7967028#M1603423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-06T07:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: adding type c fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-type-c-fields/m-p/7967029#M1603424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Moved to ABAP forum&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 09:15:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-type-c-fields/m-p/7967029#M1603424</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2011-06-06T09:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: adding type c fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-type-c-fields/m-p/7967030#M1603425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you tell us more about the requirement, i.e. inputs and the desired output?&lt;/P&gt;&lt;P&gt;Are you meaning to work on number with explicit declaration using character type?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 09:26:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-type-c-fields/m-p/7967030#M1603425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-06T09:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: adding type c fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-type-c-fields/m-p/7967031#M1603426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Declare a variable of type I and move the value to it.  Use this variable to display.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 09:38:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-type-c-fields/m-p/7967031#M1603426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-06T09:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: adding type c fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-type-c-fields/m-p/7967032#M1603427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;erm, this seems very weird to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not how one would do calculations. If your number after the comma are not 00 then you will mess up the outcome highly by your routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally calculations are done in number formats, and then when they done, you can move the outcome to some char variable for formatting issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to concatenate stuff, then you need char variable. Anyway have a look at the help to the "WRITE TO" statement. this can spare you a lot of coding and variables like it seems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 09:43:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-type-c-fields/m-p/7967032#M1603427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-06T09:43:46Z</dc:date>
    </item>
  </channel>
</rss>

