<?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 Conversion problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-problem/m-p/2878462#M675899</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    My internal table contains following fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Net weight    type c length 15&lt;/P&gt;&lt;P&gt; Length           type c lenth 15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am moving length and netweight from vekp to my internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my internal table contains values as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Net weight 15.000&lt;/P&gt;&lt;P&gt;Length        5.000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to change above values as 00015.0  (before decimal 5 places and leading zeros if the value is not of length 5).  And after decimal only one digit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Length to 0005 (means no decimal and before decimal 4 places with leading zeros if space is there).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any body help on this. I have tried but the values are not changing properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Sep 2007 16:18:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-19T16:18:17Z</dc:date>
    <item>
      <title>Conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-problem/m-p/2878462#M675899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    My internal table contains following fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Net weight    type c length 15&lt;/P&gt;&lt;P&gt; Length           type c lenth 15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am moving length and netweight from vekp to my internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my internal table contains values as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Net weight 15.000&lt;/P&gt;&lt;P&gt;Length        5.000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to change above values as 00015.0  (before decimal 5 places and leading zeros if the value is not of length 5).  And after decimal only one digit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Length to 0005 (means no decimal and before decimal 4 places with leading zeros if space is there).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any body help on this. I have tried but the values are not changing properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 16:18:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-problem/m-p/2878462#M675899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T16:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-problem/m-p/2878463#M675900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001 .

data: Net_weight(15) type c value '15.000'.

data: str1 type string.
data: str2 type string.
data: whole(5) type n.
data: dec(1) type n.

split net_weight at '.' into str1 str2.
whole = str1.
dec = str2(1).
concatenate whole dec into net_weight separated by '.'.

write:/ net_weight.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 16:41:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-problem/m-p/2878463#M675900</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-09-19T16:41:18Z</dc:date>
    </item>
  </channel>
</rss>

