Smartforms Currency decimals 3

Hi,
I have a problem with the element KBETR, in vf03 i have 1,769- %.
In the table KONV, the field kbetr have 17,69-.
How can i convert the field in percentage please?
Do you know a data element with currency and decimals 3? when i divide by 10 i have 1,77- and not 1,769-.
I repeat that im work with smartforms.
They are not an other solution that create a data element?
Thanks.
Edited by: Spawn rad on Jul 21, 2008 5:36 PM
<MOVED BY MODERATOR TO THE CORRECT FORUM>
Edited by: Alvaro Tejada Galindo on Jul 21, 2008 12:19 PM

try this
&symbol(.N)& Display upto N decimal places.
other options:
&symbol(Z)& Omit Leading Zeros
&symbol(S)& Omit Leading Sign
&symbol(<)& Display Leading Sign to the Left
&symbol(>)& Display Leading Sign to the Right
&symbol(C)& Compress Spaces
&symbol(.N)& Display upto N decimal places
&symbol(T)& Omit thousands separator
&symbol(R)& Right justified
&symbol(I)& Suppress output of the initial value
u can use various combinations of these options.
Example:
&SFSY-FORMPAGES(3ZC)&---outputlen,c-condense,z-
Reward if helpful

Similar Messages

  • Currency Decimals in workflow inbox

    In my workflow, after the user enter the incoming invoice (MIRO) will send out a email with PO number, amount, currency to manager inbox, the manager will approve it.
    Right now, it not worked for non decimal currencies, such JPY, KRW. for example, the amount is 1000JPY will display as 100.00 JPY in manger inbox.
    I know i can use 'FWOS_CURRENCY_DECIMALS_READ' to get local currency decimal , or use write amount to field with currecny to process it in the report, but now i do not know how to process it in workflow inbox, where  should i put my codes to display the amount with right currency decimals?
    Thanks!

    Please check the Task container If it is appearing properly there it will surely appear in Task Description. If everything in binding is fine then I think you have to refres Buffer(SWU_OBUF) Logout and Login and test. If after also it does not work have a coffee at ur coffee corner and come a little bit later to test.:)))
    Thanks
    Arghadip

  • Currency/decimals.tutorial

    I'm having difficulty understanding how to format currency/decimals. Anyone know of a good tutorial

    Take a look at the methods under Configuring the Format of Currency in the NSNumberFormatter reference. Then see if the example code at either of these links is helpful:
    [http://mac-objective-c.blogspot.com/2009/04/nsnumberformatter-some-examples.htm l]
    [http://www.mugginsoft.com/content/very-simple-nsnumberformatter-currency-subcla ss]
    Search the web on keys like "NSNumberFormatter example currency" for more discussions and examples.
    \- Ray

  • Country based currency & decimals issue

    Hi All,
    Can any one help me here, I need to decide the decimal places for particular currency of a country accordingly I need to add the decimal places.
    Example: JPY: Japan yens dont have a decimal place
                   INR will have 2 decimal places. like this way.
    thanks.
    Kalyan.

    Hi,
    Ustry the following code.
            DATA:
                  lv_decimals      type     tcurx-currdec,
                  lv_amount         type    char30.
            CALL FUNCTION 'G_DECIMAL_PLACES_GET'
              EXPORTING
                currency       =    lv_waers  (currency key)
              IMPORTING
                decimal_places = lv_decimals.
            IF NOT lv_decimals IS INITIAL.
              WRITE: lv_wrbtr TO lv_amount DECIMALS lv_decimals.
          endif.
    thanks
    kasturi

  • Smartforms Currency format wrongly printing

    Hi All,
      I'm facing a problem with printing the amount field on Smartform.
    I also tried it display in Document currency format eg.,
    In the document amount displayed like 1,234.56 (in a standard transaction)
    When printing on the form it displayed like 1.234,56
    I also checked my user settings in SU3 it is like 1,234.56 format only.
    When i checked it in Debug mode the Amount is showling 1,234.56 correctly.. till it reaches to form end but while displaying it changing the format.
    Any suggestion ? please help.
    Thanks in advance.
    -Kiran

    Hello,
    If you print an invoice, the print program RLB_INVOICE usually reads the country of the customer.
    This is the reason why the decimal notation is not correct.
    See please the T-code OY01 also.
    This is the standard customising of SD. A customer from country e.g. OMAN (OM)
    gets number like 332.500,00 and a customer from GB gets 332,500.00.
    If you really need to modify the decimal format, you can add the command SET COUNTRY 'EN' in
    your Smartforms. So the effect of a change of the decimal format is a cosmetic one only.
    Via debug you can change  the value of the field IT_HD_GEN-DLV_LAND to EN.
    Check the following code part in include RLB_INVOICE_FORM01 sample code:
    get delivery land
      PERFORM GET_DLV-LAND USING    CS_BIL_INVOICE-HD_GEN
                           CHANGING CS_DLV-LAND.
    CS_DLV-LAND = OM.
    Regards,
    David

  • Currency decimals

    Hi frnds,
         I want to know from which table we can get the number of decimal places for a particular currency type.
       Eg: USD has 2 decimals
             JPY has 0 decimals
         Please help me.
    Thanks in advance

    Hi,
    Check the table TCURX.
    Based on user profile you can get the currency format from USR01.
    USE THIS CODE: IT TAKES CARE OF DECIMAL NOTATION BASED ON USER PROFILE.
    WHAT EVER MAY BE THE USER PROFILE FOR DECIMAL NOTATION.
    FIELD_NUM = 1,233.50
    OR
    FIELD_NUM = 1.233,50
    OR
    FIELD_NUM = 1 233,50
    SELECT SINGLE DCPFM FROM USR01
    INTO VAR_DCPFM WHERE BNAME EQ SY-UNAME.
    IF VAR_DCPFM EQ 'X'.
    REPLACE ALL OCCURRENCES OF ',' IN: FIELD_NUM WITH ''.
    TRANSLATE FIELD_NUM USING ','.
    ELSEIF VAR_DCPFM EQ ''.
    REPLACE ALL OCCURRENCES OF '.' IN: FIELD_NUM WITH ''.
    TRANSLATE FIELD_NUM USING '.'.
    TRANSLATE FIELD_NUM USING ',.'.
    ELSEIF VAR_DCPFM EQ 'Y'.
    TRANSLATE FIELD_NUM USING ',.'.
    ENDIF.
    THIS CODE WILL WILL RESULT INTO :
    FIELD_NUM = 1233.50
    Regards,
    Raj.

  • JPY Currency decimals in SQ01 output

    Hi Sap Gurus,
    My SQ01 query output has JPY values with decimals.  In normal report, we can get appropriate values thru function module BAPI_CURRENCY_CONV_TO_EXTERNAL.  But how to achieve this result in ABAP Query?
    Thanks in advance...
    Best regards,
    Madhu

    I've introduced an additional field and added code as below
        CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_EXTERNAL'
          EXPORTING
            currency        = bkpf-HWAER
            amount_internal = faglflexa-hsl
          IMPORTING
            AMOUNT_EXTERNAL = zhsl.
    It worked.

  • OY04 - Currency Decimals

    Hi Experts,
    We recently made a client copy of our production system to our quality system. In our production client all our values in the transactions display correctly, but in our quality client the values are not being displayed correctly. I checked transaction OY04, and noticed that in quality our currency AED is having 3 decimal places, whereas in production there is no record for the same currency. Is it advisable to remove this record from quality. There are a lot of warnings displayed by SAP when the transaction is being called. Please advise on the best practice to correct this issue. As this issue is hampering in development of layouts and reports as the value in the database is being stored in a different way.
    I can use
    write: value currency 'AED'.
    but I feel this is not the best way to go about this issue as there will be a lot of layouts to change. And since the issue is not in production, there will be some work around.
    Regards,
    Abdullah Ismail

    Hello,
    You can use another currency which has the same number of decimals as 'AED' and is consistent across systems . This will make the layout come out correct across all systems .
    Cheers

  • Use SpryValidationTextField to check Currency Decimals

    I have a SpryValidationTextField widget defined in my form to
    see whether a currency field has a certain minimum value. It works
    fine as lomg as I integer values as minimum values. As soon as I
    use decimals the valuation starts going horrorably wrong; the
    system will allow any value to pass really, as long as they have
    the correct format.
    I assume this is a bug of the validation function.
    Can an Adobe member of the forum please suggest an
    appropriate fix or point out what I am doing wrong.
    <span id="sprytextfield1">
    <input type="text" name="cost" id="cost" value="0.00"
    size="32" />
    <span class="textfieldRequiredMsg">A value is
    required.</span><span
    class="textfieldInvalidFormatMsg">Invalid
    format.</span><span class="textfieldMinValueMsg">The
    entered value is less than the minimum
    required.</span><span class="textfieldMaxValueMsg">The
    entered value is greater than the maximum
    allowed.</span></span>
    <script type="text/javascript">
    <!--
    var sprytextfield1 = new
    Spry.Widget.ValidationTextField("sprytextfield1", "currency",
    {validateOn:["blur"], minValue:0.5, maxValue:1000,
    useCharacterMasking:true, hint:"Cost in account currency"});
    //-->
    </script>

    This looks like it may be a bug in the
    SpryValidationTextField code. You can work around the problem by
    quoting your min and max values and if you are going to specify a
    digit after the decimal point, make sure there are 2 digits. So in
    your example, change:
    minValue: 0.5
    to
    minValue: "0.50"
    --== Kin ==--

  • Smartforms currency key problem

    friends help
    I declared in the smartform as below.
    gt_itab like zitab. "zitab is a structure and gt_itab is a table i am getting from program.
    I have declared the field kbetr in structure as follows
    component componenttype  datatype refenrencetable reffield
    KBETR        KWERT       CURR               KOMK         WAERK
    In the smartform I am looping at gt_itab into gw_itab and printing the data in the table in main window.
    At the time of display smartform is giving error like below.
    Reference field gw_itab-kbetr unkown in the form
    Please tell how to correct this error.

    Hi,
    Please go through below link for the better understanding, why you need to define currency/ quantity field in the Tab Currency/Quant. Fields. It is explained in that thread.
    [Currency and quantity fields in Smartforms;
    Regrads,
    Lokesh.

  • Smartform-currency field error.

    Hi folks,
      In My smartform i want to print the net value from vbrp table ( netpr) .but when iam executing the form it is throwing error as " reference field netpr " is unknown in form..
    where i have to declare reference field of netpr.
    Thanks,
    Neelima.N

    hi ,
      use the following documentation for your help.
    Displaying Fields That Refer to Currencies or Quantities
    Use
    In the ABAP Dictionary, you can assign a currency or quantity field to a table field if the table field contains a currency or quantity value. When printing these fields, SAP Smart Forms can take into account the assigned currency or unit:
    If the value field is in the same table as the assigned currency or quantity field, SAP Smart Forms automatically recognizes this and, during output, formats the value field according to the currency or unit in the assigned field.
    If the value field and the assigned currency or quantity field are stored in different tables, SAP Smart Forms cannot automatically recognize the relationship.
    In the second case, you must inform SAP Smart Forms about the relationship.
    Procedure
    As mentioned above, you only have to perform the following steps if a value field that is to be displayed in a table (for example, VALTAB) has a relationship to a currency or quantity field in another table (for example, CURTAB). In this case, you have to specify the relationship explicitly:
    In the form, define a global field of the same type as the table in which the currency or quantity field is stored, for example WA_CURTAB. Also define a work area for the output of your value field, for example WA_VALTAB.
    If you use a table with a header line, you do not need to define a work area. Instead, you work through the following steps with the header line of the relevant table. In the following step, for example, you would specify the field VALTAB-VALUE instead of WA_VALTAB-VALUE under Field Name.
    Create the relationship to the currency field by switching to the Currency/Quantity fields of the Global Definitions node and entering the following values:
    Field name: WA_VALTAB-VALUE if this is the value field of VALTAB that is to be output
    Reference field: WA_CURTAB-CURRENCY, therefore the currency field of CURTAB
    Use the work area WA_VALTAB on the data tab page of your table node or loop node.
    Create a program lines node before the event at which the value field is printed.
    In the program lines node, assign the currency or unit in which you want to format the value field WA_VALTAB-VALUE to the currency or quantity field of the global field WA_CURTAB-CURRENCY. You have to either select the value of WA_CURTAB-CURRENCY afterwards or have already passed it to the form interface.
    Display or print the value field WA_VALTAB-VALUE.
    Result
    During output, SAP Smart Forms formats the value field WA_VALTAB-VALUE according to the value assigned to the currency or quantity field of the global variable WA_CURTAB_CURRENCY.
    regards,
    Veeresh

  • Change currency decimals

    hi,
    I am using the currency code XOF for my transactions and but the issue is the curreny coversion is happening without the decimals. therefore all my reports give incorrect picture. I want to transaction value to be displayed in four decimals. how can i change this?
    Thanks
    Edited by: gayani premawardena on Sep 6, 2010 1:19 PM
    Moderator: Please, search SDN

    Hi,
    OSS note 783877 for more details on the impact of changing the decimal places in a currency.
    Regards,
    Gaurav

  • SAPScript/SMARTFORM currency symbol

    I have an Invoice SMARTFORM that users now want $ against all the amounts.
    I have tried this
    $&IS_BIL_INVOICE-HD_GEN-DPVAL(<)&
    and this will print out
    $   1234.56
    I want to be be
    $1234.56
    How can I do this ?

    Hi,
    If you are using SAP Script, then in the text elements you just specify the (c)  ie.condense in between the $ feild and he Amount Field.
    Example:  $(c)123.00 then the output will be $123.
    Hope this may help you.
    regards,
    Dhanalakshmi L
    Edited by: Dhanalakshmi Lakshumanan on Aug 7, 2009 10:11 AM

  • Smartform  currency

    can anyone help me with smrtforms in my smartform (invoice) total amount is 347,467.00 RS and in words it is spelling as
    RUPEES THREE HUNDRED FORTY-SEVEN THOUSAND FOUR HUNDRED SIXTY-SEVEN AND ZERO PAISE ONLY.
    MY USER WANT IT TO SPELL AS
    RUPEES THREE LAKHS FORTY-SEVEN THOUSAND FOUR HUNDRED SIXTY-SEVEN AND ZERO PAISE ONLY.
    PLS HELP ME AS IAM NEW TO SMARTFORMS.
    THANKS

    Hi,
    refer to the following link:
    http://sap-img.com/abap/figure-to-words-for-india-but-can-be-modified-to-any-requirement.htm
    Hope this helps.
    Reward if helpful.
    Regards,
    Sipra

  • Currency with 3 decimals

    Hi !
    i need to manage prices with 3 decimals and not 2 only. So i think i will set customising (set decimal places for currencies) in order to change all currencies decimal defined on 2 decimals.
    Is there a risk to change this customising ?
    Thanks
    Jak

    hi,
        i do not think there will be any problem when change the currency decimals from 2 to 3.
    however if there is problem then ucreate ANOTHER KEYFIGURE AND WITH THREE DECIMALS PLACES.AND USE IT
    REGARDS

Maybe you are looking for

  • ITunes update 11.1.3.8 to 11.1.4 for Windows 7, 64-bit

    I have a HP Pavillion DV6, Windows 7, SP1, 64-bit.  I am also administrator and the only one who uses my computer. I recently tried to update iTunes to the 11.1.4 and it was unsuccessful and installing.  After that my old version of iTunes wouldn't c

  • Exporting Metadata from bridge to excel or other like program.

    Is there a way to export just the metadata, using Bridge, associated with an image file into excel, access, or some other like program? I would like to perform some kind of batch processing, so as to make the process quick. But I would be open to any

  • I click on a button to bring up a PDF form to print, button doesn't work and I get "javascript history.go(0).

    I just this week started to use Firefox 4.0 Beta 12. Our golf organization has a website that has tournament entry forms in the PDF format. You click on a button and get the form ready to print. When I click on the button, I don't get the form and th

  • Hardware Requirement for Oracle Database

    Hi, i need help, i wanna build new server with some requirement of total user who is connect, size of database n etc. Can u tell me how to calculate ram size, processor need and etc to build good server for my company need? I remember Oracle before h

  • EXC_BAD_ACCESS (0x0001) crash after 10.4.9 upgrade

    I recently upgraded OS from 10.3.9 to 10.4 then 10.4.9 (combo) Main project uses Dreamweaver 8 and it will not open a page but will crash immediately. I have redone permissions, Deleted various Prefs, plists, and config files, and was able to access