<?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: Editable ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/1981471#M401340</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;As u r referring the field with 6 decimal palces it will show like taht in the output.&lt;/P&gt;&lt;P&gt;So instead of taht in fieldcatalog refer the fieldname with the decimal places u need.&lt;/P&gt;&lt;P&gt;So taht  u can avoid this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: Curr MARA-NETWR liek that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;fieldcatalog-fieldname   = 'MEINS'.
Use refernce table and fieldname in this fcat
  fieldcatalog-seltext_m   = 'Order Unit'.
  fieldcatalog-col_pos     = 6.
  append fieldcatalog to fieldcatalog.
  clear  fieldcatalog.
  
  fieldcatalog-fieldname   = 'NETPR'.
  fieldcatalog-seltext_m   = 'Net Price'.
  fieldcatalog-col_pos     = 7.
  fieldcatalog-outputlen   = 15.
  fieldcatalog-datatype     = 'CURR'.
  append fieldcatalog to fieldcatalog.
  clear  fieldcatalog.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Feb 2007 06:40:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-26T06:40:40Z</dc:date>
    <item>
      <title>Editable ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/1981466#M401335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends i am doing Editable ALV&lt;/P&gt;&lt;P&gt;in which i am having 2 fields r editable those 2 fields i have taken below types(data elements)..&lt;/P&gt;&lt;P&gt;field1 type -&amp;gt;TB_PYIELD	                DEC	10	7&lt;/P&gt;&lt;P&gt;field2 type -&amp;gt;TPM_NOMINAL_AMT	CURR	21	2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my prblem is if i am entering 100 in field1  it is taking as 0.000100&lt;/P&gt;&lt;P&gt;     and also  if i am entering 100 in field2  it is taking as 1.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      and        if i am entering 100000000 in field1  it is taking as 100.000000&lt;/P&gt;&lt;P&gt;     and also  if i am entering 10000 in field2  it is taking as 100.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i have to do ?? ......(it should take waht ever we have given,it  should not convert into decimals...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 14:37:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/1981466#M401335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T14:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/1981467#M401336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the fieldcatalog givet he datatype as 'QUAN'  or 'CUKY' and checkout if it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fieldcat-datatype = 'QUAN'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 14:44:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/1981467#M401336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T14:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/1981468#M401337</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;For currency u can refer some currency key &amp;lt;b&amp;gt;WAERS&amp;lt;/b&amp;gt; with two deciamls.&lt;/P&gt;&lt;P&gt;So that it wont move the deciaml places.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 14:45:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/1981468#M401337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T14:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/1981469#M401338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my Editable ALV Report i have a field which is of type (data element)  TB_PYIELD ( u can check data elemet &amp;lt;b&amp;gt;TB_PYIELD&amp;lt;/b&amp;gt; in SE11)&lt;/P&gt;&lt;P&gt;Data Type        DEC&lt;/P&gt;&lt;P&gt;No. Characters       15&lt;/P&gt;&lt;P&gt;Decimal Places        6&lt;/P&gt;&lt;P&gt;Output Length        18&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my ALV out put if i enter 100 in field it is taking as 0.000100&lt;/P&gt;&lt;P&gt;and if i am entering 100000000 in field it is taking as 100.000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;means it is moving into decimals...&lt;/P&gt;&lt;P&gt;but if we enter 100 it has to take/keep it as 100/100.000000 na !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please give me the solution...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ramesh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ramesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 06:22:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/1981469#M401338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T06:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/1981470#M401339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friends,&lt;/P&gt;&lt;P&gt; My Problem is still not solved ,it has not been answered yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 06:27:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/1981470#M401339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T06:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/1981471#M401340</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;As u r referring the field with 6 decimal palces it will show like taht in the output.&lt;/P&gt;&lt;P&gt;So instead of taht in fieldcatalog refer the fieldname with the decimal places u need.&lt;/P&gt;&lt;P&gt;So taht  u can avoid this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: Curr MARA-NETWR liek that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;fieldcatalog-fieldname   = 'MEINS'.
Use refernce table and fieldname in this fcat
  fieldcatalog-seltext_m   = 'Order Unit'.
  fieldcatalog-col_pos     = 6.
  append fieldcatalog to fieldcatalog.
  clear  fieldcatalog.
  
  fieldcatalog-fieldname   = 'NETPR'.
  fieldcatalog-seltext_m   = 'Net Price'.
  fieldcatalog-col_pos     = 7.
  fieldcatalog-outputlen   = 15.
  fieldcatalog-datatype     = 'CURR'.
  append fieldcatalog to fieldcatalog.
  clear  fieldcatalog.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 06:40:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/1981471#M401340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T06:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/1981472#M401341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;field1 type -&amp;gt;TB_PYIELD DEC 10 &amp;lt;b&amp;gt;7&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;since field1 is taking 7 decimal places so, when u r entering 100 in field1 it is taking as &lt;/P&gt;&lt;P&gt;field1    decimals     output&lt;/P&gt;&lt;P&gt;100          1             10.0&lt;/P&gt;&lt;P&gt;100          2             1.00&lt;/P&gt;&lt;P&gt;100          3             0.100&lt;/P&gt;&lt;P&gt;100          4             0.0100&lt;/P&gt;&lt;P&gt;100          5             0.00100&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;100          6             0.000100&lt;/P&gt;&lt;P&gt;100          7             0.0000100&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same is hapenning when u r entering   100000000  in field 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field2 type -&amp;gt;TPM_NOMINAL_AMT CURR 21 2&lt;/P&gt;&lt;P&gt;since field2 is taking 2 decimal places so, when u r entering 100 in field2 it is taking as &lt;/P&gt;&lt;P&gt;field2    decimals     output&lt;/P&gt;&lt;P&gt;100          1             10.0&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;100          2             1.00&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when u r entering   10000 in field 2 &lt;/P&gt;&lt;P&gt;field2    decimals     output&lt;/P&gt;&lt;P&gt;10000       1             1000.0&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;10000       2             100.00&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 06:55:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/1981472#M401341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T06:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/1981473#M401342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;s sreekanth that what is happening..i know...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am asking for the solution....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have declared the internal table as like structure of ZTABLE( the table is already used in some other programs so ican not change the field attributes...)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so is there any solution to solve the problem in my ALV out put ...????????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ramesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 09:08:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/1981473#M401342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T09:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/1981474#M401343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I HAVE TRIED BY PUTTING...*  wa_fcat-DATATYPE = 'INT4'."DEC'."CURR'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WITH DIFFERENT TYPE ,,,,,IT IS NOT WORKING....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RAMESH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 09:21:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/1981474#M401343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T09:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/1981475#M401344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CLEAR wa_fieldcat.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-row_pos = 1.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-col_pos = 8.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-fieldname = 'NETPR'.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-tabname = 'JTAB'.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-outputlen = '15'.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-coltext = 'NET PRICE'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;  wa_fieldcat-datatype = 'CURR'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  wa_fieldcat-do_sum = 'X'.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-edit        = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcat TO i_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR wa_fieldcat.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-row_pos = 1.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-col_pos = 9.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-fieldname = 'NETWR'.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-tabname = 'JTAB'.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-outputlen = '15'.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-coltext = 'NET WEIGHT'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;  wa_fieldcat-datatype = 'CURR'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; wa_fieldcat-do_sum = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  wa_fieldcat-edit        = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcat TO i_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since NETPR and NETWR is a currency field so give datatype as CURR.&lt;/P&gt;&lt;P&gt;I have check netpr and netwr in my system it is working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;For field1 -&amp;gt;TB_PYIELD give&lt;/P&gt;&lt;P&gt;wa_fcat-DATATYPE = 'DEC'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For field2 -&amp;gt;TPM_NOMINAL_AMT give&lt;/P&gt;&lt;P&gt;wa_fcat-DATATYPE = 'CURR'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 09:30:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/1981475#M401344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T09:30:52Z</dc:date>
    </item>
  </channel>
</rss>

