<?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: Removing comma from a table field. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-comma-from-a-table-field/m-p/944169#M63809</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; There are couple ways of doing it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The best one is to use 'REPLACE' command .... check the syntax by pressing F1 , and replace comma by space and then use 'CONDENSE' statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards , &lt;/P&gt;&lt;P&gt;vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 25 Jun 2005 16:27:36 GMT</pubDate>
    <dc:creator>viveksagar_sareen</dc:creator>
    <dc:date>2005-06-25T16:27:36Z</dc:date>
    <item>
      <title>Removing comma from a table field.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-comma-from-a-table-field/m-p/944168#M63808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi People,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to remove comma from the currency and weight fields How can  do that? Can somebody please help? Also if I have to round off a number how can I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jun 2005 16:12:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-comma-from-a-table-field/m-p/944168#M63808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-25T16:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Removing comma from a table field.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-comma-from-a-table-field/m-p/944169#M63809</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; There are couple ways of doing it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The best one is to use 'REPLACE' command .... check the syntax by pressing F1 , and replace comma by space and then use 'CONDENSE' statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards , &lt;/P&gt;&lt;P&gt;vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jun 2005 16:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-comma-from-a-table-field/m-p/944169#M63809</guid>
      <dc:creator>viveksagar_sareen</dc:creator>
      <dc:date>2005-06-25T16:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Removing comma from a table field.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-comma-from-a-table-field/m-p/944170#M63810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To round:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type "round" in your ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put your cursor over "round".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Press F1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jun 2005 18:52:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-comma-from-a-table-field/m-p/944170#M63810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-25T18:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Removing comma from a table field.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-comma-from-a-table-field/m-p/944171#M63811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please understand that commas / decimals are displayed in currency amount / qty fileds are displayed as per the user profile defaults ...and does not exactly exist in database tables ...in db table it is kept simply as a number with no comma / decimal only when you display it using any utility SE16 / Se11 / your programs...then you see the comma / decimals as per your user profile defaults.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you want the comma to be removed within your program , you can copy the amount value into a char variable and then use REPLACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check ROUND , FLOOR or CEIL function commands and check which one is suitable for your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Press F1 to see the details of these commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jun 2005 04:07:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-comma-from-a-table-field/m-p/944171#M63811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-26T04:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Removing comma from a table field.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-comma-from-a-table-field/m-p/944172#M63812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The 'TRANSLATE' statement is very useful, especially for what you have to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TRANSLATE w_amount using ', '.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erwan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2005 08:08:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-comma-from-a-table-field/m-p/944172#M63812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-27T08:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Removing comma from a table field.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-comma-from-a-table-field/m-p/944173#M63813</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;Try this out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_data_function .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;numeric datatypes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA n TYPE p DECIMALS 2.&lt;/P&gt;&lt;P&gt;DATA m TYPE p DECIMALS 2 VALUE '-5.55'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;n = abs( m ).   WRITE:   'ABS:  ', n.&lt;/P&gt;&lt;P&gt;n = sign( m ).  WRITE: / 'SIGN: ', n.&lt;/P&gt;&lt;P&gt;n = ceil( m ).  WRITE: / 'CEIL: ', n.&lt;/P&gt;&lt;P&gt;n = floor( m ). WRITE: / 'FLOOR:', n.&lt;/P&gt;&lt;P&gt;n = trunc( m ). WRITE: / 'TRUNC:', n.&lt;/P&gt;&lt;P&gt;n = frac( m ).  WRITE: / 'FRAC: ', n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try excuting this program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2005 09:10:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-comma-from-a-table-field/m-p/944173#M63813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-27T09:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Removing comma from a table field.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-comma-from-a-table-field/m-p/944174#M63814</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;Try this out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_data_function .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;numeric datatypes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA n TYPE p DECIMALS 2.&lt;/P&gt;&lt;P&gt;DATA m TYPE p DECIMALS 2 VALUE '-5.55'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;n = abs( m ).   WRITE:   'ABS:  ', n.&lt;/P&gt;&lt;P&gt;n = sign( m ).  WRITE: / 'SIGN: ', n.&lt;/P&gt;&lt;P&gt;n = ceil( m ).  WRITE: / 'CEIL: ', n.&lt;/P&gt;&lt;P&gt;n = floor( m ). WRITE: / 'FLOOR:', n.&lt;/P&gt;&lt;P&gt;n = trunc( m ). WRITE: / 'TRUNC:', n.&lt;/P&gt;&lt;P&gt;n = frac( m ).  WRITE: / 'FRAC: ', n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try excuting this program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also try this one to round off&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: pack TYPE p DECIMALS 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pack = 1 / 3 * 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE pack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;O/p will be 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2005 09:11:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-comma-from-a-table-field/m-p/944174#M63814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-27T09:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Removing comma from a table field.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/removing-comma-from-a-table-field/m-p/944175#M63815</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;Check this sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data v type mara-ntgew value '56.6'.&lt;/P&gt;&lt;P&gt;data cur(15) value '56,000'.&lt;/P&gt;&lt;P&gt;data int type i.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;int = v.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;write int.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;replace ',' with '' into cur.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;write cur.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2005 09:35:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/removing-comma-from-a-table-field/m-p/944175#M63815</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-06-27T09:35:12Z</dc:date>
    </item>
  </channel>
</rss>

