Re: Display comma in a amount value.

Hi experts,
My requirement is i want to to display the comma in amount fields in script.
i was declared one internal table with 5 fields , in that 3 fields are amount fields , these 3 fields also i was declared as type char, because i have to do some calculations and add some text after the amount.
Here my problem is i want to display the amount value with commas and with out decimal places (12,34,500) like this.
i was removed the decimal places using 'MOVE_CHAR_TO_NUM' functin module , but i am not able to add the commas for the amount field , can any body let me know how to do this.
Thanks in advance.

Hi..
You can give these amount fields type as some standard amount fields instead of char.
For Example. for netprice you can give..
data: begin of it_itab,
         netpr type ekpo-netpr,
        end of it/-itab.
Regards,
Vishwa.

Similar Messages

  • Displaying Amount value with comma separation

    Hi ,
    There are some amount fields in the page
    displaying in the format Amount 1000000.00
    Required to display in the format 1,000,000.00
    Is there any profile to set like this or we have to do anything by personalization.
    Regards,
    Krishna.

    Hello Krishna,
    Were you ever successful in finding a fix for this? We have a similar requirement, but I'm not seeing anything where this can be done, either via personalizations or the Property Inspector in java.
    One question I do have though, is if we do turn this on for our number values, and we have an Export to Excel function, is that going to cause the data to get improperly separated when the Export to Excel function is invoked?
    Thanks,
    Janel

  • Display comma for numeric values

    Hi,
    I want to display comma for numeric values.I know we can use strlen and concatenate, but any one can give me an example.
    Ex: 1,234  and 12,234 , 1,22,500  ( iam expecting)
    Thanks,
    Veeru

    it depends on ur data...
    if it is currency then u can use
    WRITE.... CURRENCY...
    if it is qty then u can use
    WRITE....UNIT....
    or u simply pass it to a packed field and it will take the default decimal settings of the user profile...
    Reward points if helpful

  • Converting Comma into Dot for Amount value

    Hi All,
    I need to convert the amount value in comma to dot say 1000,00 to 1000.00.Any function module is there to convert it.After converting it i need to pass this value as exporting parameter to a function module having data type as character(lenght 13).
    Thnks
    Deb

    Hello Deb,
    Try the code below:
    DATA:
    V_AMT  TYPE WRBTR VALUE '5000,00',
    V_INT1 TYPE NUMC10,
    V_DEC1 TYPE NUMC2,
    V_DATA TYPE CHAR13.
    V_INT1 = TRUNC( V_AMT ).
    V_DEC1 = FRAC( V_AMT ).
    CONCATENATE V_INT1 '.' V_DEC1 INTO V_DATA.
    WRITE: V_DATA.
    Hope this helps.
    BR,
    Suhas

  • How can we remove the commas from the Formula value in SAP BW BEx query

    Hi All,
    How can we remove the commas from the Formula value in SAP BW BEx query
    We are using the formula replacing with characteristic.The characteristic value needs to be display as number with out commas.
    Regards
    Venkat.

    Do you want to remove the commas when you run the query on Bex Web or in RSRT?
    Regards

  • How can I use comma in the return values of a static list of values

    Hi all,
    I want to create a select list (static LOV) like the following:
    Display Value / Return Value
    both are "Y" / 'YY'
    one is "Y" / 'YN','NY'
    I write the List of values definition is like this:
    STATIC:both are "Y"; 'YY',one is "Y";'YN', 'NY'
    However, it is explain by htmldb like this:
    Display Value / Return Value
    both are "Y" / 'YY'
    one is "Y" / 'YN'
    / 'NY'
    I tried using "\" before the ",", or using single or double quote, but all these do not work:(
    How can I use a comma in the return values?
    Thanks very much!

    "Better still, why not process the code of both Y with 2Y and one is Y with 1Y? "
    Could you please explain in detail? thanks! I am quite new to htmldb
    In fact I have a table which has too columns "a1" and "a2", both the values of these two columns are "Y" or "N". AndI want to choose the records that both a1 and a2 are "Y", or just one of a1, a2 is "Y".
    So I write the report sql like this:
    "select * from t1 where a1 || a2 in(:MYSELECTLIST) "
    Thus, I need to use "," in the LOV, since expression list in IN(,,,) using ",".
    Any other way to implement this?

  • How to display total "items" and "amount " in header.jsp in CRM ISA B2B

    Hi,
    I am modifying “header.jsp” in standard CRM ISA B2B application.  Here we have summary of total number of items and total amount but it is coming in to button and for that below code is there in “header.jsp” and it display it as button text.
    if (!ui.homActivated) { %>
    !!" alt="" border="0" height="16" width="20">
    </td>
    <td class="vertical-align-middle" name="miniBasket" value="<isa:translate key="b2b.header.minibasket.default"/>" >
            <form name="basketForm" action="javascript:show_basket();">
         <input class="green" name="miniBasket" type="button" value="<isa:translate key="b2b.header.minibasket.default"/>"/>   
        </form>
    </td>   
    <% } else { %>
    <!-- HOM scenario - minibasket displays collective order -->
    <td  class="vertical-align-middle" align="right">
    !!" alt="" border="0" height="16" width="20">
    </td>
    <td  class="vertical-align-middle" name="miniBasket" value="<isa:translate key="b2b.header.collorder.default"/>">
    <form name="basketForm" action="javascript:show_collective_order();">
        <input class="green" name="miniBasket" type="button" value="<isa:translate key="b2b.header.collorder.default"/>"/>   
    </form>
    </td>
    <% } %>
    Now I want to display total number of items and total amount separately in two different <td> element.
    How I can get total number of items and total amount in “header.jsp” I tried below code but did not get any success.
    Insert below line in “header.jsp” with respective page import statement for class or let me know which class I have to import.
    <%
         HeaderSalesDocument  hdr =
                (HeaderSalesDocument) request.getAttribute(MaintainBasketBaseAction.RK_HEADER);
        ItemList items =
                (ItemList) request.getAttribute(MaintainBasketBaseAction.RK_ITEMS);
    %>
    And then I use
    <td><%= hdr.getNetValue() %></td>
    <td><%= items.size() %></td>
    But it is not printing any thing and header page not display at all.
    Pl. tell me how to get total amount and number of items in header area. Which class or object I have to use here.
    I really appreciated any help from any one.
    Thanks and regards.
    Ashish Patel.

    Hi, I tried another logic. I took value from  Standard button, in which B2B application display total items and amount and I hide this field, to another text element.
    Now I Am breaking that value in words and stored them in array  and then trying to display that array with particular number which contains total item and amount through Java Script on Focus.
    But problem here is, It is not getting updated automatically I have to click on new text files to trigger Onfocus event. How I can achieve effect like as soon as Standard button changes it's value which is now hidden filed my new text box should update automatically.
    Thanks.
    Ashish

  • Struggling with Comma for an amount in sap script

    Hi Experts
    I am strugling with comma for an amount in sap script .
    For ex: 1234.56  and i need 1,234.56
    I tried  system->userprofile->owndata->Default(Tab)->Decima Notation 1,234,567..89(Selected)
    and i did use /:Edit Mask Field name  but i am not getting comma.
    Thanks & Regards
    Reddy

    Hello,
    In the driver program, assign the amount to a variable of type P and use that variable to display in the script. You will get the commas.
    Vikranth

  • SAP Scripts : Conditions on amount values

    Dear All,
    I have to compare a Netvalue and Print a somthing if value is less than 20,000.
    So I wrote ..
    /: if &VAR(CT)& LT '20000.00'.
    Z2 xxxxxxx
    /: ELSE.
    Z2 yyyyyy
    /: ENDIF.
    But this is not working properly.
    I wonder how can I compare a amount value.
    I am using &VAR(CT)&, just to remove commas, and blank.
    Regards
    Venkat.

    Hi,
    Always prefer to take net value in currency format and companre with amount.
    I feel you might have store currency in character format.
    in &VAR&.
    store it in a variable type wrbtr.
    and compane ....
    if &v_wrbtr& LE 20000
    leave comma or decimals.
    Check this wasy. Hope this will resolve your query.
    *Please mark all helpful answers.

  • Put comma in the amount field

    Hi Experts,
    I need to put the comma in the amount field.
    eg: 3000.00 as 3,000.00.
    Is there any FM which can do this conversion.
    Thanks In Advance
    Asish

    The best way is type casting.
    Ex:
    Data: amount(10) Type p decimals 2.
    Value = '3000'.
    WRITE VALUE TO amount.
    Write amount.  "3,000
    Close the thread once your question is answered.
    Regards,
    SaiRam

  • Download amount value without decimal place but element with decimal place

    Hi all,
    to display the amount without decimal places in classic report, i can use this way which is wa_wrshb NO-ZERO CURRENCY wa__waers.
    may i know,
    1) how to display amount in ALV where amount value (which using dmshb/wrshb) has no decimal place like JPY?
    2) what should i do if i want to download the amount value which field using dmshb or wrshb that the value has no decimal place like JPY?
    Thanks

    Hello,
    You can display the ALV output according to the decimal point in the currency.
    When creating the field catlog for the amount field add the currency parameter also.
      wa_fieldcat-fieldname     = <amount_field>.
      wa_fieldcat-tabname       = <output_table>.
      wa_fieldcat-seltext_l     = <column_heading>.
      wa_fieldcat-outputlen     = p_olen.
      wa_fieldcat-currency      = wa_waers.              " This will work same as CORRENCY wa_waers
    Regards
    DKS

  • In ColumnChart, how to stop displaying small column for zero value?

    I'm trying to create a ColumnChart that does not display a column when the value is zero. The chart currently looks like this:
    This is a stacked column chart with red values representing Faults and green values representing Throughput. Each hour has an explicit value of zero for Faults. I don't want to see any red lines when the value is zero. Is there any way to accomplish this?
    My code looks like this:
    <mx:Script><![CDATA[
         import mx.collections.ArrayCollection;
         [Bindable]
         public var simpleStats:ArrayCollection = new ArrayCollection([
            {Hour:"0:00", Throughput:0, ThroughputThreshold:2000, Faults:0, MaxResponseTime:450, AvgResponseTime:200, MinResponseTime:180,
                 AuthenticationAcceptance:50, AuthenticationRejection:0, AuthorizationAcceptance:50, AuthorizationRejection:0},    
            {Hour:"1:00", Throughput:0, ThroughputThreshold:2000, Faults:0, MaxResponseTime:450, AvgResponseTime:200, MinResponseTime:180,
                 AuthenticationAcceptance:50, AuthenticationRejection:0, AuthorizationAcceptance:50, AuthorizationRejection:0},    
            {Hour:"2:00", Throughput:0, ThroughputThreshold:2000, Faults:0, MaxResponseTime:450, AvgResponseTime:200, MinResponseTime:180,
                 AuthenticationAcceptance:50, AuthenticationRejection:0, AuthorizationAcceptance:50, AuthorizationRejection:0},    
            {Hour:"3:00", Throughput:5, ThroughputThreshold:2000, Faults:0, MaxResponseTime:450, AvgResponseTime:200, MinResponseTime:180,
                 AuthenticationAcceptance:50, AuthenticationRejection:0, AuthorizationAcceptance:50, AuthorizationRejection:0},    
            {Hour:"4:00", Throughput:0, ThroughputThreshold:2000, Faults:0, MaxResponseTime:450, AvgResponseTime:200, MinResponseTime:180,
                 AuthenticationAcceptance:50, AuthenticationRejection:0, AuthorizationAcceptance:50, AuthorizationRejection:0}
      ]]></mx:Script>
                                     <mx:ColumnChart id="trafficChart"
                                        dataProvider="{simpleStats}"
                                        showDataTips="true" width="500" height="100%" seriesFilters="[]"
                                        type="stacked">
                                        <mx:verticalAxis>
                                            <mx:LinearAxis title="Messages" id="a1"/>
                                        </mx:verticalAxis>                                   
                                        <mx:horizontalAxis>
                                           <mx:CategoryAxis
                                                   id="TrafficTimeAxis"
                                                dataProvider="{simpleStats}"
                                                categoryField="Hour"
                                                />
                                        </mx:horizontalAxis>
                                        <mx:horizontalAxisRenderers>
                                            <mx:AxisRenderer axis="{TrafficTimeAxis}" canDropLabels="true"/>                                       
                                        </mx:horizontalAxisRenderers>                                            
                                        <mx:series>                                                                         
                                           <mx:ColumnSeries
                                                yField="Faults"
                                                displayName="Faults"
                                                fill="{sc2}"
                                                stroke="{s2}"
                                                 minHeight="0">
                                           </mx:ColumnSeries>                                                                                                          
                                           <mx:ColumnSeries
                                                yField="Throughput"
                                                displayName="Throughput"
                                                fill="{sc1}"
                                                stroke="{s1}"
                                                minHeight="0">
                                            </mx:ColumnSeries>                                      
                                        </mx:series>
                                     </mx:ColumnChart>

    Answered my own question!!
    The solution is to set the stroke for the ColumnSeries to {noStroke}, which I defined like this:
        <mx:Stroke id="noStroke" color="0xFFFFFF" weight="0"/>
    Note that if you define {noStroke} without a color property, black is used by default, which means that those columns that do appear show up in black stroke outline.
    If there's a more elegant solution to the problem, please let me know...

  • Count the number of elements in comma seperated list of values

    Hello Friends,
    I have a string with comma seperated list of values say
    String v = 34343,erere,ererere,sdfsdfsdfs,4454,5454,dsfsdfsfsd,fsdfsdfsdfs,dfdsfsdfsdfs,sdsfdsf,ererdsdsd45454,fsdfsdfs
    Want to count how many elements are existing in this string .
    Thanks/Kumar

    Hi, Kumar,
    REGEXP_COUNT, which Hoek used, is handy, but it only works in Oracle 11. Which version of Oracle are you using?
    In any version of Oracle, you can count the commas by seeing how much the string shrinks when you remove them.
    LENGTH (str) + 1 - LENGTH (REPLACE (str, ',')) Can str have multiple commas in a row? What if there's nothing between consecutive commas, or nothing by whitespace? Can str begin or end with a comma? Can str consist of nothing but commas? Depending on your answers, you may have to change things. You might want
    REGEXP_COUNT ( str
                 , '[^,]+'
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using.
    See the forum FAQ {message:id=9360002}

  • Adding a parameter with comma separated having different values

    i want to add a parameter with comma separated having different values of a column. e.g i have column having values from 10000 to 99999. i want to create report for the selected values of 11111,12111,131111 etc. This selection can be one or more values as desired. Second problem is restricting the records as per parameter.

    Reports doesn't allow multi-selection of a parameter in its parameter form. You need to use Oracle*Forms or an HTML Form to front end more advanced parameter form options.
    However, you could have multiple parameters and combine their selections into a single parameter in the after parameter form trigger. This would at least allow you to give the user the option for selecting up to 'n' parameters. The single parameter would have to be of type "character" and you probably want to add appropriate quotes around the values in the after parameter form trigger.
    Second problem is restricting the records as per parameter. Once you've got the comma seperated values into a single parameter (say p_myValues with a default value of '') then you can just use a lexical parameter to restrict the values as in:
    select * from emp
    where to_char(empno) in (&p_myValues)

  • UDF to check the amount value

    Hi
    I have a scenario where i have to check the amount value sholuld be greater than Zero or not, if it is not greater than zero i have to raise an exception and skip that record ..
    i wanna do that using UDF..How we do that
    venkat

    Hi paul
    I need to Import Any Java packages .
    It s giving Error :
    Source code has syntax error:  /usr/sap/D06/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map08e7dc10452d11dcb4a1e210bc394725/source/com/sap/xi/tf/_MM_ACEAwardInformation_to_TaxBalances_.java:113: operator > cannot be applied to java.lang.String,int if(Amount>0)
    My code
    public String AmountValue(String Amount,Container container){
    int AmountValue =Integer.parseInt( Amount);
    try{
    if(Amount>0)
    create record;
    else throw new Throwable("Records not greater than 0...");
    }catch(Throwable t){}
    venkat

Maybe you are looking for

  • Change Reconciliation account - reverse documen

    HI, I have changed the reconciliation account for the customer. In the next step I have run SAPF101 program to transfer balance between the old and the new reconciliation account. SAPF101 has used the adjustment accounts according to the OBBW configu

  • Is there a way to save multiple audio hardware settings?

    Hi Everyone,                        I use a multiple preamp set up to record. I would like to be able to playback and do my editing without having to have my preamps all plugged in and just use the computer's built in hardware.  Of course as soon as

  • Can I backup my iPhone into a new iTunes install on a new PC without losing all my data?

    I've recently lost an old Windows XP PC which I have been using for several years and had my entire iTunes library and iPhone history. I have since purchased a new Windows 7 PC and installed itunes onto it. Is it possible for me to sync my iPhone ont

  • Server stops working correctly after Call Trace

    I use linux-lts on servers. This one is running 3.10.16-1-lts and today it got the next call trace. Before this I've suspected proftpd like a possible reason and have changed it to vsftpd. There were the same server crashes with proftpd. In this case

  • Javax.xml.rpc.JAXRPCException ???????

    I have deployed a simple web service using Apache Tomcat 6.0 and Axis 1.4 in Windows XP. Now the server is very simple: [code] import java.io.*; import java.util.*; HelloWorld.java This is our web service public class HelloWorld public String getHell