Problem in Dcimal places

Hi,
I have an output value which is Rs.8,92,466.50.
The issue is if am using the variable to display as character am getting the output as Rs.892466.50.(without commas).
If i use float am getting an output as  8.9246650000000000E+05.
If i use i am getting commas 8,92,466 but the end part is truncated.
Please help me and suggest how 2 use the particular data type so that i can get my required output of <b>Rs.8,92,466.50.</b>
With regards
Vijay

Hi,
   declare that variable as type p with decimals 2
data : lv_var type p decimals 2.
otherwis use FM
*--Call function module to convert cycle & offset from floating to
character
    CALL FUNCTION 'FLTP_CHAR_CONVERSION_FROM_SI'
      EXPORTING
        char_unit       = v_unit
        decimals        = lc_dec
        fltp_value_si   = v_offset
        indicator_value = c_check
      IMPORTING
        char_value      = v_cycle
      EXCEPTIONS
        no_unit_given   = 1
        unit_not_found  = 2
        OTHERS          = 3.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
Regards,
Prashant

Similar Messages

  • Problems with decimal places and formatting

    Hi , we are having problems with an add on running on different localization companies. Decimal places separatd by "," differ from other localizations. We dont know if this is a SQL collation setting or somethng related to code or requirements to run add ons on different servers and languages.
    Any ideas??
    Thanks

    Hello
    Follow up with this thread:
    [Re: How to get the numeric value of DocTotal from UI API]
    Regards,
    J.

  • Problem with business place and section code in miro screen

    hi experts,
    i have done the following config. for validate the b/place and section code at the time of invoice and payment.
    in prerequisite-com.code=l001 and (posting key=31 or posting key=29 or posting key=21 
    in check-business place=1001 and section code=1001
    by this config. in t code fv60 and f-48 b/place and section code showing mandatory but in miro screen w/o b/place and section code system alowing to save the entry.
    please suggest me where i am wrong and what to do next?
    thanks and regards
    konishko

    hi
    i have written the condition as follows
    in prerequisite:bseg-bukrs=l001 and (bseg-bschl=31 or bseg-bschl=29 or bseg-bschl=21)
    in check:bseg-bupla=1001 and bseg-secco=1001
    by doing this in fv60 and f-48 screen is not allowing to post w/o b/place and section code but in miro screen system allow me to post w/o b/place . if i validate the miro screen then after giving the b/place it is not allowing me to post the same and giving the error message which i have created.
    how to solve this problem?
    please suggest me and please give me the steps.
    regards
    konishko

  • BAPI_ACC_INVOICE_RECEIPT_POST problem with Business place

    Hi Experts,
    I'm using the the BAPI  "BAPI_ACC_INVOICE_RECEIPT_POST" for the F-43 posting, it's working fine. But I have a little problem here, Even though I pass the correct values to the fields "Valuation type" and "Business place" in the posted document I could see only "?".
    Could you please some one help me in finding what might be the problem.
    Thanks
    Nivash

    hi
    hope it will help you.
    <REMOVED BY MODERATOR>
    BAPI_ACC_GL_POSTING_CHECK
    CALL FUNCTION 'BAPI_ACC_GL_POSTING_CHECK'
    EXPORTING
    documentheader = w_documentheader
    TABLES
    accountgl = it_accountgl
    currencyamount = it_currencyamount
    return = it_return.
    Populate the corresponding tables with the data you have.
    For the Date do convert it.
    PERFORM convert_date USING it_header-bldat
    CHANGING w_documentheader-doc_date.
    w_documentheader-comp_code = 'z998'
    w_documentheader-doc_type = 'SA'
    "and fill the respective tables this way .
    <b>
    BAPI_ACC_GL_POSTING_POST
    </b>
    call function 'BAPI_ACC_GL_POSTING_POST'
    exporting
    documentheader = doc_header
    IMPORTING
    OBJ_TYPE = l_objtype
    * OBJ_KEY =
    * OBJ_SYS =
    tables
    accountgl = t_accountgl
    currencyamount = t_curramt
    return = t_return
    * EXTENSION1 =
    Edited by: Alvaro Tejada Galindo on Feb 7, 2008 9:51 AM

  • [InDesign C# Script] Problem with textframe.place(imageName)

    Hi everyboy !
    I am beginning with the InDesign Scripting in C#, and the documentation is very poor. I have a problem and I can't find the solution.
    I have to place an image into a textframe on my document's page.
    I create my textframe without any problem :
               myDocument.Layers.Add();
            InDesign.Layer lastLayer = (InDesign.Layer) myDocument.Layers[myDocument.Layers.Count];
            InDesign.TextFrame myPicture = myPage.TextFrames.Add(lastLayer, InDesign.idLocationOptions.idUnknown, myPage);
            myPicture.GeometricBounds = new string[4] { myY, myX, myY2, myX2 };
    Then I try to place my Image, but I can't find which type of object is returned by .Place méthode :
    First try :
    InDesign.Graphics myGraphic =  (InDesign.Graphic) myPicture.Place(pathName, false);
    And I have got this error :
    {System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'InDesign.Graphics'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{C85A4AB3-9492-4C40-8A7B-F8305706C8B8}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
       at Service.createPhotograph(XmlNode photo, Page myPage) in c:\Documents and Settings\melaniep\My Documents\Visual Studio 2005\WebSites\WebSite6\App_Code\Service.cs:line 204}
    And I saw this tutorial in javascript for placing images  at http://www.adobe.com/devnet/indesign/pdfs/indesigncs4_scriptingtutorial.pdf
    //Display a standard open file dialog box to select a graphic file.
    var myGraphicFile = File.openDialog("Choose a graphic file");
    //If a graphic file was selected, and if you didn't press Cancel,
    //place the graphic file on the page.
    if((myGraphicFile != "")&&(myGraphicFile != null)){
    var myGraphic = myDocument.pages.item(0).place(myGraphicFile);
    //Since you can place multiple graphics at once, the place method
    //returns an array. To get the graphic you placed, get the first
    //item in the array (JavaScript arrays start with item 0).
    myGraphic = myGraphic[0];
    So I tried :
    InDesign.Graphics myGraphics =  (InDesign.Graphics) myPicture.Place(pathName, false);
                InDesign.Graphic myGraphic = (InDesign.Graphic) myGraphics[0];
    But I have got the same error.
    Someone have an idea? I am really lost, and I don't know what to do :'(
    Another little question.
    My picture is smaller than my textFrame.
    And I want my picture fits to the texframe.
    MyGraphic.HorizontalScale = widthOfTextFrame
    MyGraphic.VerticalScale = heightOfTextFrame
    Does it works? Or Am I in the wrong way?
    Thank you very much (and sorry for my bad english, I am french )

    Are you also beginning with C# ? Then please reconsider, and follow tried paths with JavaScript - plenty more support around here. You could at least write a draft of your program, and only if it works move it to C#.
    To get further on your issue, I'd follow the idea outlined here:
    http://msdn.microsoft.com/en-us/library/ms173183(VS.80).aspx
    If that does not work, I'm sorry - last time I used C# is years ago, and targeting some pocket PC. No InDesign involved.
    Dirk

  • Please Help Audio problem when i place a call on hold and make another one simultaneo​usly

    Dear All,
    I have a BB pearl 8120 and i noticed that when ever i make a call, place it on hold and then simultaneuosly make another call, i dont hear it ring and cant seem to connect with my new caller while it shows me connected on the screen.
    This also happens when i place calls on conference, i notice that im able to connect the parties involved but wont participate in the conference myself, but im able to join conference not made by me.
    Can anybody pls help?

    Hi,
    I am facing the same problem with my Blackberry Pearl 8120 mobile.
    I hope RIM will resolve this in the next software update for mobile phone.
    I found one workaround for this. Call the second person, put them into a conference at this time they can talk to each other. Now press menu and hold the call then resume the call. Mostly you will be in proper conference (all three).
    I also hope the experts in the forum suggests better solution
    Regards,
    Rajesh

  • Problem with Subform placement

    I have two subforms that are visable when their checkboxes are clicked (Let's say SubbformA & SubformB). I have it so the user can view one or both subforms at the same time.
    I want Subform B appear at the top of the current page IF only Subform A isn't selected. Otherwise if both are clicked- Sub B stacks perfectly behind Sub A.
    It all works fine if I just click Sub B.........But if I select Sub A first and then deselect it then click B, SubB appears on the next page. Does that make sense? How can I fix this? Any suggestions would be greatly appreciated.

    George,
    yes, that is an annoying bug.
    I use the following work-around. When the blue circle vanishes, I go to "Metadata > Manage my Places" and create a new place there. Then I locate the photo using "Metadata > Assign location" and enter the name of the new place in the search field. That will bring back a blue circle, that I can adjust.
    -- Léonie

  • Problem with text placement

    I have not a clue what is going on. The body of my text is ignoring all of the tables on the right. I have tried all I can think of. Does anyone have ideas as to what may be the issue?
    Thank you!!

    For starters, run your code through the validation tools below and fix any reported errors.  Code errors account for most if not all page rendering problems.
    Code validation tools
    CSS - http://jigsaw.w3.org/css-validator/
    HTML - http://validator.w3.org/
    If that doesn't cure the problem, come back and post the URL to your web page.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Install Problem Android Market Place

    Using Android 2.2.1.  Get error when trying to install Flash Player.  From a barcode it says the app is not found from the market place it says the same thing.  Running on a Star S3000 with MediaTek MTK6516, 416MHZ processor.

    Hi, This is the latest info as far as I know on these devices:
    http://www.adobe.com/flashplatform/certified_devices/   
    You may want to contact your Carrier or Manufacturer for more information. From all I've seen and read it seems like getting Flash Player on these phones is a best kept secret, LOL
    Hope you can find it.
    Thanks,
    eidnolb

  • Problem in Market Place

    Hi,
    Anyone have any problem with his user to access to obtain a new license key or to create a new note to SAP ?
    I cant do that and neither send notes and read my inbox.
    Regards.

    Hi Antonio,
    I just tried now and don't have any problems.
    The link I use is https://websmp206.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000706510&_SCENARIO=01100035870000000183&_ADDINC=011000358700001192682007E& and then on the right I select Inbox or License Key Request.
    You must of course have your S number and password.
    Hope this helps.

  • Problem with Market Place

    When I try to access to Market Place I receive the following message :
    Error Message - Access denied (R/3)
    What happened?
    You do not have permission to access this Object
    What can you do?
    Please contact a consulting adminstrative
    Error code: WEBSMP109-20080509125205-0015
    Error details: 2491DD9-702/1A053/3162-71A9CFA5-3CB9265-2992F9
    Service Name: SAPIDB
    Service Server: WEBSMP109
    Process-ID: 1656
    Thread-ID: 4520
    Sorry for any inconvenience.
    Your SAP Service Marketplace Team

    Hi,
    I suggest to contact SAP support or SAP administrator in your company. maybe you do not have a permission to browse the website.
    The website service.sap.com is as same as https://websmp209.sap-ag.de/,
    I've seen that the error message mention WEBSMP209. I am afraid you do not have the permission
    Rgds,

  • Problem with icon place

    hello,
    is it only me?
    i spend 20 minutes rearranging the icons according to my taste, under iTunes
    and after sync, i see on the iPod that the icons were randomly placed...
    and then i unchecked some apps and then sync'd...
    but all the 148 apps were still there on the iPod...
    so i guess it's serveral bugs....
    i have the latest iTunes and the news 3rd 32g iTouch

    Already i suggested you buddy if you really want to work with GridbagLayout, you have to do practice on this because what ever you are asking for that is not big task if you will do it.
    first of all going through all basics and try to understand all GridBagConstraints.
    I hope you will be able to do your own. All the best.

  • Problem in decimal places

    Hi,
    I have an output value which is Rs.8,92,466.50.
    The issue is if am using the variable to display as character am getting the output as Rs.892466.50.(without commas).
    If i use float am getting an output as  8.9246650000000000E+05.
    If i use i am getting commas 8,92,466 but the end part is truncated.
    Please help me and suggest how 2 use the particular data type so that i can get my required output of <b>Rs.8,92,466.50.</b>
    With regards
    Vijay

    Hi Vijay,
    As an alternative you can also try this at configuration level.This is done basically if there are different results for different countries.
    If such is your case, you can go to SPRO->SAP Netweaver->general Settings->Set Countries-> Execute 'Define coutries in mySAP System'
    This will display a list of coutries,select the country for which you want to make the changes(say SG singapore).
    Double click on this code and you can change the decimal point format for that country.
    Reward points,if useful,
    -Bhavin P Shah

  • Having problems logging into places or using buttons they are unresponsive?!

    when on some web sites I can not log on or navigate through them, It seems to be unresponsive.

    Hi
    Try logging on to AIM on port 443 rather than port 5190.
    Go to IChat in the menu bar > Preferences > Accounts.
    Log out of AIM and then use the Server Settings tab
    Set the port to 443.
    Untick SSL
    Log back in again.
    Tony

  • Wierd Ipod problem just took place?

    My iPod froze and my icons were shaking. Anyone know why?

    It's in the "customize" mode. Press the home key to stop the shaking.
    Download the new iPhone manual here: http://manuals.info.apple.com/en/iPhoneUserGuide.pdf
    Read about customizing the home screen on page 20.

Maybe you are looking for