<?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 Output display problem....Urgent.!!! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-display-problem-urgent/m-p/2695370#M623771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends.&lt;/P&gt;&lt;P&gt; I have a field which has a numeric o?p.&lt;/P&gt;&lt;P&gt;But as the user specification the result should be such that if &lt;/P&gt;&lt;P&gt;a) the data is 100.0000 then it sud display 100&lt;/P&gt;&lt;P&gt;b)the data is 1.600 then it sud display 1.6&lt;/P&gt;&lt;P&gt;c)the data is .1000 then it sud display .1 only.&lt;/P&gt;&lt;P&gt;This data is for only one field not 3 seperate fileds.&lt;/P&gt;&lt;P&gt;So please suggest me some way out.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shweta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Aug 2007 11:19:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-22T11:19:48Z</dc:date>
    <item>
      <title>Output display problem....Urgent.!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-display-problem-urgent/m-p/2695370#M623771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends.&lt;/P&gt;&lt;P&gt; I have a field which has a numeric o?p.&lt;/P&gt;&lt;P&gt;But as the user specification the result should be such that if &lt;/P&gt;&lt;P&gt;a) the data is 100.0000 then it sud display 100&lt;/P&gt;&lt;P&gt;b)the data is 1.600 then it sud display 1.6&lt;/P&gt;&lt;P&gt;c)the data is .1000 then it sud display .1 only.&lt;/P&gt;&lt;P&gt;This data is for only one field not 3 seperate fileds.&lt;/P&gt;&lt;P&gt;So please suggest me some way out.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shweta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 11:19:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-display-problem-urgent/m-p/2695370#M623771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T11:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Output display problem....Urgent.!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-display-problem-urgent/m-p/2695371#M623772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shweta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that you are working with a basic list reporting, if so, you can add "NO-ZERO" after your WRITE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any questions, please let me know.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sayan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 11:27:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-display-problem-urgent/m-p/2695371#M623772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T11:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Output display problem....Urgent.!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-display-problem-urgent/m-p/2695372#M623773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shweta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simple!!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u have data in itab like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab - fld1&lt;/P&gt;&lt;P&gt;100.0000 &lt;/P&gt;&lt;P&gt;1.600 &lt;/P&gt;&lt;P&gt;.1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split itab-fld1 at '.' into str1 str2. str2 = 600&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now place ' 'in place of 0 in str2. &lt;/P&gt;&lt;P&gt;replace all occurances of '0' with space in str2.str2 = 6  .&lt;/P&gt;&lt;P&gt;condencs str2. here  str2 = 6.&lt;/P&gt;&lt;P&gt;now concatenate str1 and str2 with '.' . 1.6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points to all helpful answers &lt;/P&gt;&lt;P&gt;kiran.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 11:30:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-display-problem-urgent/m-p/2695372#M623773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T11:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Output display problem....Urgent.!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-display-problem-urgent/m-p/2695373#M623774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;Execute the logic below for all the values in ur requirement and see if this logic is working for you.I hope this will do . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to convert to characters to make this functionality work .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im expecting some more logics from SDN members Lets wait and see . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : v1 type p decimals 4.
data : rem(6) type c.
data : v3(13) type c.
data : val1(4) type c.
data : v4(17) type c.
v1 = '100.0000'.       "give ur inputs here 

v3 = trunc( v1 ).
rem = frac( v1 ).
rem = rem * 100.
val1 = rem.

condense  val1 no-gaps.
condense  v3 no-gaps.

if val1 is not initial.
concatenate v3 val1 into v4 separated by '.' .
else.
v4 = v3.
endif.
write:/ v4 no-zero.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 12:00:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-display-problem-urgent/m-p/2695373#M623774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T12:00:05Z</dc:date>
    </item>
  </channel>
</rss>

