<?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: Need help in declaring the data type in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-declaring-the-data-type/m-p/7164743#M1516348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use variable of data type INT4, which is of length 10. Later you can move this to a CHAR field &amp;amp; use replace command as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: v_int type int2,&lt;/P&gt;&lt;P&gt;          v_char(20) type C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write: v_int to v_char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHIFT v_char LEFT DELETING LEADING space.&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF '.' IN v_char WITH space.&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF ',' IN v_char WITH space.&lt;/P&gt;&lt;P&gt;CONDENSE v_char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Adarsh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Aug 2010 10:37:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-16T10:37:13Z</dc:date>
    <item>
      <title>Need help in declaring the data type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-declaring-the-data-type/m-p/7164740#M1516345</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;Am facing some problem in declaring the data type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Presently,,Im printing a variable of int2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I pass the  value of 5 digits it is working fine,,but when a value more than 5 digits is passed to that variable, it's causing dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I tried to declare the variable as C, then it is printing the value as  4.9E+04.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when declared as N, it's printing '0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when declaared as I, it's printing the value '       48,820'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Req is I dont want the space before the value and there should nt be "," .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course this can be acheived by manipulating the number, But Iwant this to happen as it was happening with INT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current req: need a data type which can hold a value of morethan 5 digits, without commas and no space in front.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgs,&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 10:23:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-declaring-the-data-type/m-p/7164740#M1516345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-16T10:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in declaring the data type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-declaring-the-data-type/m-p/7164741#M1516346</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;Declare type PACKED number. (TYPE P)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also give the decimal places(if needed) to the declaration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 10:27:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-declaring-the-data-type/m-p/7164741#M1516346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-16T10:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in declaring the data type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-declaring-the-data-type/m-p/7164742#M1516347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur reply..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Packed has same effect as I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the output without Commas and space in front of the value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 10:32:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-declaring-the-data-type/m-p/7164742#M1516347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-16T10:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in declaring the data type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-declaring-the-data-type/m-p/7164743#M1516348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use variable of data type INT4, which is of length 10. Later you can move this to a CHAR field &amp;amp; use replace command as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: v_int type int2,&lt;/P&gt;&lt;P&gt;          v_char(20) type C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write: v_int to v_char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHIFT v_char LEFT DELETING LEADING space.&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF '.' IN v_char WITH space.&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF ',' IN v_char WITH space.&lt;/P&gt;&lt;P&gt;CONDENSE v_char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Adarsh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 10:37:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-declaring-the-data-type/m-p/7164743#M1516348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-16T10:37:13Z</dc:date>
    </item>
  </channel>
</rss>

