<?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: Problem in ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv/m-p/1641947#M285894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vara&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This behavious is not normal. I made the following test:&lt;/P&gt;&lt;P&gt;(1) Copy BCALV_EDIT_03 to Z_BCALV_EDIT_03&lt;/P&gt;&lt;P&gt;(2) Modify form BUILD_FIELDCATALOG:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/code"&gt;&lt;/A&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  BUILD_FIELDCAT&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     &amp;lt;--P_GT_FIELDCAT  text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;form build_fieldcat changing pt_fieldcat type lvc_t_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data ls_fcat type lvc_s_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'LVC_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            i_structure_name = 'SFLIGHT'&lt;/P&gt;&lt;P&gt;       changing&lt;/P&gt;&lt;P&gt;            ct_fieldcat      = pt_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at pt_fieldcat into ls_fcat.&lt;/P&gt;&lt;P&gt;    if    ls_fcat-fieldname eq 'PLANETYPE'&lt;/P&gt;&lt;P&gt;       or ls_fcat-fieldname eq 'SEATSOCC'&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;*$Commment: Make field PRICE editable, too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       or ls_fcat-fieldname eq 'PRICE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*§1.Set status of columns PLANETYPE and SEATSOCC to editable.&lt;/P&gt;&lt;P&gt;      ls_fcat-edit = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Field 'checktable' is set to avoid shortdumps that are caused&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;by inconsistend data in check tables. You may comment this out&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;when the test data of the flight model is consistent in your system.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ls_fcat-checktable = '!'.  "do not check foreign keys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      modify pt_fieldcat from ls_fcat.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I now run the report and enter value 12 in column "Airfare" and push ENTER (or REFRESH) the value is displayed as 12.00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Oct 2006 04:25:44 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2006-10-31T04:25:44Z</dc:date>
    <item>
      <title>Problem in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv/m-p/1641946#M285893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I am using ALV grid control to display a table. The table contains one quanity field with 3 decimals. The ALV is editable.&lt;/P&gt;&lt;P&gt;Now, when the user enters a value in the quantity field..for example 12, then ALV assumes it as 0.012. How can avoid this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 20:46:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv/m-p/1641946#M285893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-30T20:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv/m-p/1641947#M285894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vara&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This behavious is not normal. I made the following test:&lt;/P&gt;&lt;P&gt;(1) Copy BCALV_EDIT_03 to Z_BCALV_EDIT_03&lt;/P&gt;&lt;P&gt;(2) Modify form BUILD_FIELDCATALOG:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/code"&gt;&lt;/A&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  BUILD_FIELDCAT&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     &amp;lt;--P_GT_FIELDCAT  text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;form build_fieldcat changing pt_fieldcat type lvc_t_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data ls_fcat type lvc_s_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'LVC_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            i_structure_name = 'SFLIGHT'&lt;/P&gt;&lt;P&gt;       changing&lt;/P&gt;&lt;P&gt;            ct_fieldcat      = pt_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at pt_fieldcat into ls_fcat.&lt;/P&gt;&lt;P&gt;    if    ls_fcat-fieldname eq 'PLANETYPE'&lt;/P&gt;&lt;P&gt;       or ls_fcat-fieldname eq 'SEATSOCC'&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;*$Commment: Make field PRICE editable, too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       or ls_fcat-fieldname eq 'PRICE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*§1.Set status of columns PLANETYPE and SEATSOCC to editable.&lt;/P&gt;&lt;P&gt;      ls_fcat-edit = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Field 'checktable' is set to avoid shortdumps that are caused&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;by inconsistend data in check tables. You may comment this out&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;when the test data of the flight model is consistent in your system.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ls_fcat-checktable = '!'.  "do not check foreign keys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      modify pt_fieldcat from ls_fcat.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I now run the report and enter value 12 in column "Airfare" and push ENTER (or REFRESH) the value is displayed as 12.00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 04:25:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv/m-p/1641947#M285894</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-10-31T04:25:44Z</dc:date>
    </item>
  </channel>
</rss>

