<?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 Replace amount in OOPS ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-amount-in-oops-alv/m-p/6523512#M1425511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using OOPS ALV to display the report. requirment is that i need to dispaly * when the value of the amount coloumn is 0.&lt;/P&gt;&lt;P&gt;i changed that coloumn to character and displayed as "*", but now i am not able to used the summing option given by ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so is there a way to put "*" insted of 0 without changing the data type of the coloumn ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jan 2010 14:19:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-19T14:19:11Z</dc:date>
    <item>
      <title>Replace amount in OOPS ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-amount-in-oops-alv/m-p/6523512#M1425511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using OOPS ALV to display the report. requirment is that i need to dispaly * when the value of the amount coloumn is 0.&lt;/P&gt;&lt;P&gt;i changed that coloumn to character and displayed as "*", but now i am not able to used the summing option given by ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so is there a way to put "*" insted of 0 without changing the data type of the coloumn ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 14:19:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-amount-in-oops-alv/m-p/6523512#M1425511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-19T14:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Replace amount in OOPS ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-amount-in-oops-alv/m-p/6523513#M1425512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ALV Sum is not allowed for character fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 16:04:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-amount-in-oops-alv/m-p/6523513#M1425512</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-19T16:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Replace amount in OOPS ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-amount-in-oops-alv/m-p/6523514#M1425513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not possible.  Only thing you could do is maybe change the 0 back to a numeric value and  use the ALV filter on the column to exclude any items from the report with a 0 qty and save the layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L Maryniuk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 16:09:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-amount-in-oops-alv/m-p/6523514#M1425513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-19T16:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Replace amount in OOPS ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-amount-in-oops-alv/m-p/6523515#M1425514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayakumar, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you will change 0  to * , sum operation will stop working in ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;is character and hence sum not allowed.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Harsh Bhalla on Jan 19, 2010 10:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 17:05:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-amount-in-oops-alv/m-p/6523515#M1425514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-19T17:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Replace amount in OOPS ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-amount-in-oops-alv/m-p/6523516#M1425515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you can do is create a custom conversion exit for the quantity field...they ALV sum will work....I have used this technique with FM based ALV, it will definitely work OOALV.&lt;/P&gt;&lt;P&gt;1) Create 2 FM :CONVERSION_EXIT_ZZERO_INPUT &amp;amp; CONVERSION_EXIT_ZZERO_OUTPUT.&lt;/P&gt;&lt;P&gt;2) The input should have a code like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FUNCTION CONVERSION_EXIT_ZQUAN_OUTPUT.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     REFERENCE(INPUT)
*"  EXPORTING
*"     REFERENCE(OUTPUT)
*"----------------------------------------------------------------------
if input = '*'.
 output =  '0.00'.
else.
output = input.
endif.

ENDFUNCTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and the output FM&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FUNCTION CONVERSION_EXIT_ZQUAN_OUTPUT.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     REFERENCE(INPUT)
*"  EXPORTING
*"     REFERENCE(OUTPUT)
*"----------------------------------------------------------------------
if input = '0.00' or input is initial.
 output =  '*'.
else.
output = input.
endif.
ENDFUNCTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Copy the Data Element/Domain for the quantity field data type to a custom one and attach the Conversion Exit ZQUAN to the domain and use the custom Data Element for the Quantity field in the ALV output table. The sub-total/summation and "*" output will both work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 19:31:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-amount-in-oops-alv/m-p/6523516#M1425515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-19T19:31:43Z</dc:date>
    </item>
  </channel>
</rss>

