<?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: How does QUANT field display conversion work with no conversion exit? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-does-quant-field-display-conversion-work-with-no-conversion-exit/m-p/1708375#M310077</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nope, that doesn't work either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a quantity field zsp01-brgew type brgew (QUANT 13); it contains the value 2.000, representing the value 2. It appears on the screen as 2, not 2.000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do this as suggested:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: bdc_qty(10) type c.
bdc_qty = zsp01-brgew.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the value 2.000 in the bdc_qty field, which is 2000 with the country settings I have to use (000's separator is a '.').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I am having to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'CEVA_CONVERT_FLOAT_TO_CHAR'
  EXPORTING
    FLOAT_IMP  = ZSP01-BRGEW
    FORMAT_IMP = 'P10_3'
    LEFT_IMP   = 'X'
    ROUND_IMP  = '+'
  IMPORTING
    CHAR_EXP   = FVAL.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which works, but I'm sure there must be an easier way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 29 Oct 2006 12:10:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-29T12:10:42Z</dc:date>
    <item>
      <title>How does QUANT field display conversion work with no conversion exit?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-does-quant-field-display-conversion-work-with-no-conversion-exit/m-p/1708370#M310072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a screen that I am using with a database table field that is based on the quantity field BRGEW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the database table has a value '2,000' stored in the field, it is displayed as '2', which is fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know how this conversion on the screen is happening. There is NO conversion exit routine behind the data element, and NO explicit use of a conversion routine associated with my screen element, and yet the conversion still happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody tell me how this is being done? I need to use the same functionality writing to a BDCDATA-FVAL field, making sure the BDCDATA-FVAL field has data input as displaued, not as stored in the database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Oct 2006 08:42:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-does-quant-field-display-conversion-work-with-no-conversion-exit/m-p/1708370#M310072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-29T08:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: How does QUANT field display conversion work with no conversion exit?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-does-quant-field-display-conversion-work-with-no-conversion-exit/m-p/1708371#M310073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi anthony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think it might be in the screen layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly check there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Oct 2006 09:12:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-does-quant-field-display-conversion-work-with-no-conversion-exit/m-p/1708371#M310073</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-10-29T09:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: How does QUANT field display conversion work with no conversion exit?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-does-quant-field-display-conversion-work-with-no-conversion-exit/m-p/1708372#M310074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anver,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No it isn't; I just explicitly stated that it is not in the screen settings for the field or in the data element itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Oct 2006 10:43:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-does-quant-field-display-conversion-work-with-no-conversion-exit/m-p/1708372#M310074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-29T10:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: How does QUANT field display conversion work with no conversion exit?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-does-quant-field-display-conversion-work-with-no-conversion-exit/m-p/1708373#M310075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anthony, the formatting is happening automatically by the screen renderer.  THe built in data types are formatted in a specific way when used in screens.  Also for the BDC problem,  You simply need to move to a smaller field, like 10 characters.   Then use this field to build the BDCDATA-FVAL.  No need for formatting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: bdc_qty(10) type c.

bdc_qty = mara-brgew.

perform bdcdata.......&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&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>Sun, 29 Oct 2006 10:51:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-does-quant-field-display-conversion-work-with-no-conversion-exit/m-p/1708373#M310075</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-29T10:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: How does QUANT field display conversion work with no conversion exit?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-does-quant-field-display-conversion-work-with-no-conversion-exit/m-p/1708374#M310076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anthony&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The conversion is automatically made using the measure unit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can use WRITE statament with option UNIT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE BRGEW UNIT &amp;lt;UNIT&amp;gt; TO BDCDATA-FVAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Oct 2006 11:05:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-does-quant-field-display-conversion-work-with-no-conversion-exit/m-p/1708374#M310076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-29T11:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: How does QUANT field display conversion work with no conversion exit?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-does-quant-field-display-conversion-work-with-no-conversion-exit/m-p/1708375#M310077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nope, that doesn't work either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a quantity field zsp01-brgew type brgew (QUANT 13); it contains the value 2.000, representing the value 2. It appears on the screen as 2, not 2.000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do this as suggested:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: bdc_qty(10) type c.
bdc_qty = zsp01-brgew.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the value 2.000 in the bdc_qty field, which is 2000 with the country settings I have to use (000's separator is a '.').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I am having to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'CEVA_CONVERT_FLOAT_TO_CHAR'
  EXPORTING
    FLOAT_IMP  = ZSP01-BRGEW
    FORMAT_IMP = 'P10_3'
    LEFT_IMP   = 'X'
    ROUND_IMP  = '+'
  IMPORTING
    CHAR_EXP   = FVAL.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which works, but I'm sure there must be an easier way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Oct 2006 12:10:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-does-quant-field-display-conversion-work-with-no-conversion-exit/m-p/1708375#M310077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-29T12:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: How does QUANT field display conversion work with no conversion exit?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-does-quant-field-display-conversion-work-with-no-conversion-exit/m-p/1708376#M310078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's just about it thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to remove leading spaces though:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
WRITE ZSP01-BRGEW  UNIT ZSP01-GEWEI TO FVAL.
SHIFT FVAL LEFT DELETING LEADING SPACE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Oct 2006 12:16:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-does-quant-field-display-conversion-work-with-no-conversion-exit/m-p/1708376#M310078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-29T12:16:05Z</dc:date>
    </item>
  </channel>
</rss>

