Amount field with dollar symbol?

Hello
I have a AMOUNT field on my_form. Because of good compatibility/data transfer i have defined it as a DECIMAL FIELD 12,3.
Data transfer is btwn my_form and back end system SAP / Oracle. Fine.
But, user want to have the below requirement:
Say, for example, user entered 10000 dollars, once user EXITs that field, adobe will make it formatting (bcz its defined as DECIMAL field) as 10,000. Fine
But, users want to see it as $10,000 (If its USA) if its Europe Euro / local currency symbol as prefix.
Pls. let me know how can achieve my requirement (is it Pattern related or JavaScript will do it)?

On the object palette select the display pattern (click the little down arrow on the left of the button)
Then select num.currency()

Similar Messages

  • Amount field with thousand separator

    Hi friends,
    i want to display amount field (5794.00)with thousand separator as (5,794.00).
    i defined amount field as character data type for my requirement.
    user want to see this value with thousan separator.
    Please help me hoe can i get thousand separator.
    Thanks
    ramesh

    Hi Ramesh,
    There is two functions for converting display currentcy
    CURRENCY_AMOUNT_SAP_TO_DISPLAY
    Convert currency value from value stored in SAP to displayed currency
    CURRENCY_AMOUNT_DISPLAY_TO_SAP
    Convert currency value from displayed currency value to value stored in SAP
    Try below,
    DATA declaration
    WMTO_S-AMOUNT =  Type DEC :: length 15 :: Deciamls 4
    parameter: p_discur like TCURC-WAERS,     "Display currency
               p_intval like WMTO_S-AMOUNT.   "Internal Amount
    data:      gd_disval  like WMTO_S-AMOUNT. "Display Amount
    *Start-of-selection.
    START-OF-SELECTION.
    CALL FUNCTION 'CURRENCY_AMOUNT_SAP_TO_DISPLAY'
         EXPORTING
              currency        = p_discur
              amount_internal = p_intval
        IMPORTING
             AMOUNT_DISPLAY   = gd_disval
        EXCEPTIONS
             INTERNAL_ERROR   = 1
             OTHERS           = 2.
    IF sy-subrc EQ 0.
    You are now able to manipulate the returned value.
                            I.e. Convert it to GBP
    Without using this function module you would only be manipulating the
    SAP stored value, which is often missing a number of zeroes.
          I.e. 28000 JPY is stored within SAP as 280.
    ENDIF.
    *End-of-selection.
    END-OF-SELECTION.
    write:/(30)  'Value stored in SAP:', p_intval,
          /(30)  'Displayed currency:',  p_discur,
          /(30)  'Ammount is displayed Currency:', gd_disval.
    Hope it help
    Wiparat

  • Amount field badi

    Hi,
    When i am assinging the value '0' for amount filed in badi i am getting the error "Data objects in a Unicode program are not convertible". Actually i have to fill the keyfigure amount with value '0' using badi.
    Compute method code.
    assign component P_KYF_AMT_GLO of structure C_S_DATA to <f_amount>.
    <f_amount> = 0.
    Key figure is amount field with data type 'CURR' - Currency field stored as DEC.
    Variable currency field Unit/Currency is '0CRM_COCURR'.
    Any help will be highly appreciated.
    Thanks for your reply.

    Hi,
    I tried the same in the following way
    INITIALIZE   (Method of BADI)
    FIELD-SYMBOLS:
            <l_s_sfk>     TYPE rrkg_s_sfk,
            <l_s_sfc>     TYPE rrkg_s_sfc .
    READ TABLE i_th_sfk ASSIGNING <l_s_sfk> WITH KEY kyfnm = 'KYF_AMT_GLO'.
    p_alias_KYF_AMT_GLO = <l_s_sfk>-value_returnnm.
    COMPUTE (Method of BADI)
    FIELD-SYMBOLS: <f_amount>. TYPE ANY,
    assign component p_alias_KYF_AMT_GLO of structure C_S_DATA to <f_amount>.
    <f_amount> = 0.
    Try this, might be helpful for u as well.
    regards
    rajesh

  • Amount Field Drop Down

    I would like to add '---Please Select---' to my amount field dropdown.
    But using this field allows you to submit the form (using a payment method other than credit card), without notifying you that it is a required field.
    Then when it submits it goes to a white page and won't properly process.
    Anyone know how to get around this as I have 5 different payment options and it would be great to have the customer make sure they choose the correct payment option for their needs.

    Try hiding the amount field, then insert a custom drop down list which contains the prices. When a drop down is selected, that value will then populate the hidden amount field with the price selected. You'll need to use JavaScript.

  • Determining decimal places in Amount field

    Dear All,
    I want to upload a file on app. Server. It has an Amount field.
    Requirement is to upload Amount field with right number of decimal places.
    How can I do this?
    Is there any Function Module or any other way for this?
    Please let me know.
    Thanks in advance.
    Kind Regards,
    Prasad

    Thanks a lot for quick replies.
    Actually, the field is WRBTR, for which decimal places depends upon currency key. For some it desplayed with 2 & for other with 3 decimals in actual transacion FB03. But, stored in database table BSEG with only 2 decimals always.
    This is the problem.
    I want to upload the same data as is diaplyed in the transaction.
    So, could u please help me for this?
    Best Regards,
    Prasad.

  • Loading amount field of length 22,9

    Hi,
    My requirement is to load an amount field with length 22 and 9 decimal places.
    If it is possible then how ?
    Thanks in Advance

    Not that I know of. Lets wait and see if some body has any tricks up thier sleeves to make this work.

  • Ssrs format amount with dollar sign

    In an SSRS 2008 r2 report, I am trying to display a transaction amount in the report
    with dollar and cents amounts. I have tried to used the following:
    =Format(Fields!TransactionAmount.Value, "C")
    but I do not see value that look like the following:
    $25.00
    $166.89.
    I just see:
    25.00 or 166.89.
    I do not see the $ in the amount.
    Note: In a summary line I have code like
    =IIF(Fields!PaymentType.Value=
    "Ch", sum(cdec(Fields!TransactionAmount.Value)),0)
    Thus can you tell me what I can do so the dollar and cents amounts are displayed in the report?

    You dont need to use Format function for this
    you can achieve it by selecting the relevant symbol option in textbox properties as below for currency type
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • FB03 alternate Trans or Report with Amount Field

    Hi,
    The user wants to see the "Amount" Field when he runs the Trans FB03.
    unfortunately its not available in dynamic selection.
    Is there any other SAP standard report or trans instead of FB03 where we can get the Amount field
    along with other Fields as in FB03.
    Or i may have to create one using SQ01 pls guide here as well i have never used this transaction before.
    Your help will be appreciated
    Regards

    thanks

  • Transfer amount fields to app. server using fieldsymbol

    Hi,,
    I am facing a strange problem while using fieldsymbols .Here is my requirement.
    I have a custom table records ( which also contains amount fields ) in fieldsymbol , which i need to transfer to application server . But when i am trying to transfer to file , using  Transfer <final> to p_file , amount fields are not getting converted to characted format and program is going to shortdump. After that i tried assigning this <final> to another fieldsymbol , of type c (using casting ) , records were able to transfer to file but the amount fields are not being converted to readable format (i.e unknown symbols , like #p## ) .
    I even tried SAP_CONVERT_TO_TEX_FORMAT to convert the contents to text format but i am unable to transfer with fixed length to application server file..
    As it is a dynamic program , i am using fieldsymbols instead of internal tables.
    Can anybody please help me transferring amounts also to appl .server file , with fixed length..
    Thanks in advance..

    Hi
    The <field symbols> doesn't change the format of the field, so you need to convert it in char format before transfering it to file.
    DATA: WA TYPE STRING.
    MOVE <FINAL> TO STRING.
    TRANSFER WA TO P_FILE.
    Max

  • Insert asterisk(*) for amount field (Very Urgent)

    Hi all,
    I want to insert asterisk() for amount field REGUD-SWNET(15C) in SAP script. ie suppose amount is 1000.00 rest of the length should be filled by asterisk() infrount of amount. ie ********1000.00 it has display like this.
    Your help ll be rewarded.
    Regards
    Yathish

    hi,
         We can replace leading spaces in a value with a FILL CHARACTER.
    SYNTAX:    <b> &symbol(Ff)&</b>    here f is fill character.
    example:    &REGUD-SWNET&  value is 700.00
                     &REGUD-SWNET(F*)& value printed as ******700.00.
    regards,
    sudheer.

  • How make $ appears in ALV amounts fields

    Hi
    If i have an ALV wich text and amount fields (columns)  ,  does somebody know is there a way to make the amounts appears with  '$' sign ?
    Regards
    Frank

    hello Frank Henrd ,
    If there is a Amount field there will be a Currency field too...in that case  you can
    1. Display the Currency field directly like USD or INR EUR etc....
    2. if you don't want to do so.. just move the Amount field in CHAR field and Concatinate the the Symbol accordingly Have a look up talble for same...
    3. OR check if you find some thing reg. this in the field Catlague structurer. ...( i din't found any...!)
    Hope it helps,

  • Dollar symbol as prefix?

    Hello
    I have a AMOUNT field on my_form. Because of good compatibility/data transfer i have defined it as a DECIMAL FIELD 12,3.
    Data transfer is btwn my_form and back end system SAP / Oracle. Fine.
    But, user want to have the below requirement:
    Say, for example, user entered 10000 dollars, once user EXITs that field, adobe will make it formatting (bcz its defined as DECIMAL field) as 10,000. Fine
    But, users want to see it as $10,000 (If its USA) if its Europe Euro symbol/local currency symbol as prefix.
    Pls. let me know how can achieve my requirement (is it Pattern related or JavaScript will do it)?
    Thank you

    Hello
    I have a AMOUNT field on my_form. Because of good compatibility/data transfer i have defined it as a DECIMAL FIELD 12,3.
    Data transfer is btwn my_form and back end system SAP / Oracle. Fine.
    But, user want to have the below requirement:
    Say, for example, user entered 10000 dollars, once user EXITs that field, adobe will make it formatting (bcz its defined as DECIMAL field) as 10,000. Fine
    But, users want to see it as $10,000 (If its USA) if its Europe Euro symbol/local currency symbol as prefix.
    Pls. let me know how can achieve my requirement (is it Pattern related or JavaScript will do it)?
    Thank you

  • DIsplaying WRBTR (AMOUNT FIELD)WITHOUT  DECIMAL PLACES

    Dear all,
    I am facing a problem in displaying amount field  in alv report. I have two currency keys (US dollar and Japan yen). if it is japan yen I should not have to show decimal places and if it is US dollar I should show decimal places.
    How can I do it in a alv report if I have only one output amount field?
    thanks
    Ranjan.

    Hi chittaramjan,
    1. use this kind of funda (just copy paste in new program)
    Important things
    a) one extra field in internal table
      declared in the same exact fashion
    waers LIKE tcurc-waers,
    b) Populate this field
    c) REST THE System will take care
       (based upon country settings)
    2.
    REPORT abc.
    TYPE-POOLS : slis.
    DATA : alvfc TYPE slis_t_fieldcat_alv.
    DATA  : BEGIN OF itab OCCURS 0,
            f1  LIKE P0008-BET01,
            waers LIKE tcurc-waers,
            END OF itab.
    START-OF-SELECTION.
      itab-f1 = '-4.15'.
      itab-waers = 'KRW'.
      APPEND itab.
      itab-f1 = '4.68'.
      itab-waers = 'GBP'.
      APPEND itab.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name     = sy-repid
          i_internal_tabname = 'ITAB'
          i_inclname         = sy-repid
        CHANGING
          ct_fieldcat        = alvfc.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program      = sy-repid
          it_fieldcat             = alvfc
        TABLES
          t_outtab                = itab
        EXCEPTIONS
          OTHERS                  = 2.
    regards,
    amit m

  • Error in Report: Next to amount field i could see 'ERROR' word in report

    Guys,
    Problem in Report: Next to amount field i could see 'ERROR' word in report
    Eg: Invoice Amount  : "1200ERROR"  it should be like "$1200".
    Pls help where do i need to check.
    Thanks

    Ajeet wrote :
    Hi,
    It can heppens if all the records getting aggregated in the report are of different currencies and not belonging to one currency.
    Do a currency conversion for the key figures and make them all with same currency.
    See if the records in the cube for the selection which you have given in the report gives you records with different currency and if it is true then as above said.
    Thanks
    AJeet
    Are you sure ???
    The mixed unit values will be displayed as * (by default unless its changed).
    ERR comes if unit is not maintained.

  • Length of amount field in New GL at the document entry

    Hi,
    1) At present I am working on ECC 6, EhP 4 with New GL Activated & Old GL "Not deactivated" (i.e deactivate update of Classic General Ledger GLT0 not done).
    2) The total table (FAGLFLEXT) & Line item table (FAGLFLEXA) field in new GL has amount field length as 23 digit.
    3) When I am trying to enter any FI Document in SAP, using transaction code F-02 or FB60 etc, the length of amount field is coming as 13 digit. I am not able to enter higher value
    Question:-
    a) Is the above issue due to "non-deactivation" of "Old GL"? As per my understanding, it is not, but wanted your opinion.
    b) Is there any configuration which needs to be done to increase the length of the amount field at transaction level?
    Thanking you in advance
    Santosh Agarwal

    a) Is the above issue due to "non-deactivation" of "Old GL"? As per my understanding, it is not, but wanted your opinion.
    No, it is not.
    b) Is there any configuration which needs to be done to increase the length of the amount field at transaction level?
    No, there isn't.  The field length that is appearing during document entry is really dictated by the data type of fields such as DMBTR, WRBTR in table BSEG; which is CURR (13,2).  Although the GL view (FAGLFLEX* tables) have longer length, the limitation in entry view (BSEG, etc.) stays as 13,2.

Maybe you are looking for

  • Lock Object error during batch load

    Batch load was delayed about an hour. First error message in the Server Log said "Object is already locked by user""Error 1053010 processing request [Lock Object]-Disconnecting"Then it went through a series of "Object locked by user admin" and "recei

  • Dynamic Header in JSP

    hi i need to have single Login.jsp whose Header will change. Looks of header will depend upong Id value present in HTTP HEADER. Lets say user A with id value 1 hit Login.jsp URL. it will show header with company abc.com LOGO and other info now user A

  • Search Help values to Internal table

    Dear Friends, Is it possible to export Search Help values to Internal table? On screen, when user click on Search button, the SAP standard search help will call (Customer Search). After entering values, some result get displayed and this result need

  • How to clear the Entity Cache

    I have an Entity based on a GLOBAL temp table. I have a ViewObject based on the Entity. A stored procedure is called from the client that populates the GLOBAL temp table and then calls executeQuery on the ViewObject. The first time the user does this

  • 64-bit version of Acrobat Professional X

    Can not seem to find a 64-bit version of Acrobat Professional X? Can someone please provide me with a link if there is one?