Thousand separator in RFC-type-based field

Hi everybody,
I am developing a WDPJ application where every input field is bound to an R/3 RFC data type.
An automatic validation is performed on the data type (i.e. if the user types 'hello' in a numeric field an error is displayed).
I would like the field to automatically validate also thousand separators just as in standard R/3 transaction (i.e.: 3.000 is ok, 3.00 is not ok, where thousands separator is dot). Actually the validation simply ignores the thousand separator if not in the proper position (3.00 becomes 300).
Can anyone please help?
Thanks in advance, points will be awarded
Vincenzo

Hi,
I assume that you have already written some validation code for this field in Webdynpro Java. If your requirement is to validate the number of zeros after the . then you can user StringTokenizer or String.split() and find the number of digits after the thousand separator.
regards
Srini

Similar Messages

  • Add thousand separator as user types

    Dear all,
    Is there anyway we add a thousand separator on the TextInput
    as user is typing a number there? Could anybody give me a hint on
    how to do this?
    Thanks in advance.

    number formatter class has thousand separator on by default,
    so let's create one instance of it:
    <mx:NumberFormatter id="nfWithThousandSep"/>
    I did the formatting on valueCommit event:
    <mx:TextInput id="from" width="70" textAlign="right"
    valueCommit="this.from.text =
    nfWithThousandSep.format(this.from.text)"/>
    you might want to do the same thing on key down or up.
    ATTA

  • CONVERSION EXIT to remove thousand separator from quantity field

    HI
    NEED HELP
    do u know any  FM or CONVERSION EXIT which remove thousand separator from quantity field.
    Eg. 1,234,567.11 SHOULD be displayed as 1234567.11

    Hi Chetanpatil.
    Try this:
    If your quantity has thousand separator as comma:
    translate lv_quantity using ', '.
    condense lv_quantity.
    If your quantity has thousand separation as dot:
    translate lv_quantity using '. '.
    translate lv_quantity using ',.'.
    condense lv_quantity.
    You'll need to check for the user thousand separator configuration in table USR01 field DCPFM or by calling BAPI_USER_GET_DETAIL and act accordingly.
    Regards,
    Andres.

  • 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

  • Thousand Separator is Not Appearing in Amount Fields iRecruitment

    Hey Guys,
    My requirment is to show comma as thousand Separator for example 10,000 but its showing 10000.
    I am facing this issue in all amount fields in iRecruitment like Vacancy Page (Min Propose and Max Propose) and Offer Page.
    I set the below profile options
                  Currency:Thousands Separator = Yes
               ICX: Numeric Characters = 10,000.00
    and
             Preferencess > Regional Section > Number Format  = 10,000.00
    I am using EBS 12.1.3 and i cleared cashe but still no effecet. Is there any other setting need to be done?
    Please Help
    Regard
    Mazhar Hussain

    i am also thinking same about it, but right now my CSI is has been expired so i cnt log SR that why i asked here if someone even experience it.
    Regards
    Mazhar Hussain

  • Thousand Separator is Not Appearing in Amount Fields in iRecruitment

    Hey Guys,
    My requirment is to show comma as thousand Separator for example 10,000 but its showing 10000.
    I am facing this issue in all amount fields in iRecruitment like Vacancy Page (Min Propose and Max Propose) and Offer Page.
    I set the below profile options
                  Currency:Thousands Separator = Yes
               ICX: Numeric Characters = 10,000.00
    and
             Preferencess > Regional Section > Number Format  = 10,000.00
    I am using EBS 12.1.3 and i cleared cashe but still no effecet. Is there any other setting need to be done?
    Please Help
    Regard
    Mazhar Hussain

    When i go through Patch Description
    Patch Applicable for versions:
      Iprocurement R12
    5. Dependant Applications:
      None.
    6. Patch to be applied:
      Server.
    7. Patch applicable only when a particular application installed:
      Oracle Iprocurement.
    Its say that Patch for  Iprocurement so how can i apply this patch for iRec?
    Regrds
    Mazhar

  • Thousands separator when displaying year in dashboard prompts

    In our reports, when we include just the year field in prompts, they display with a thousands separator (e.g. 2,012 for the year 2012)
    Does anybody have any ideas on how to fix this. We are on 10.1.3.4 but any hint would be helpful.

    Change the year column data type to INT in the physical later. Or you can change the column properties of the column in Answers.
    Hope it helps.
    Regards,
    Kalyan Chukkapalli
    http://123obi.com

  • Problem with thousands separator

    Hi,
    I'am working on dunning letters print and i've a problem with the thousands separator.
    Data is stored in a table field typed CURR. The intern format is 119600,60
    When i print directly this value on my SmartForm, there are many blanks before the number, corresponding to the size of the variable (15 caracters). I don't know hax to remove this blanks.
    I tried to change the type of the variable by moving the value into a CHAR variable. The result is better : the blanks have been cleared out but unfortunatelly, the thousands seperators too.
    Does someone know how to put the value of a variable typed CURR in a string or a char variable with thousands separators ?
    To sum up my query :
    The CURR variable contains 119600,60
    I want a String or a char variable containing 119 600,00
    Thanks a lot
    regards
    Edited by: Larrière Dorian on Jun 19, 2008 11:53 AM

    Hi...
    write : wf_cu LEFT-JUSTIFIED.
    This state ment removes the blanks at the beginning....
    The wf_cu may be of curr type
    Edited by: Rudra Prasanna Mohapatra on Jun 19, 2008 12:08 PM

  • Custom thousand separator for decimal values.

    Hello esperts,
    I have a a WD app with a decimal context attribute, I have already a Simple Type that formats the decimal so the thousand separator is a coma (,) and the decimal separator is the dot (.)
    I want to know if it is possible to change the thousand separator to dot and the decimal separator to comma without changing the user's language. Or even use whatever character I want to be the thousand separator e.g. @ | ¬ whithout changing the data type (decimal).
    Thanx in advance.
    JV

    Hi Siarhei,
    I dont want to use calculated fields, nor strings because I need the values of the decimal attribute. I will be desplaying these decimal values through a table and sorting functionality is a must. So as you should know, if I have 1, 2, 3, 20 and 100 and convert them to string, on sort it will be incorrect because of string sorting ( 1, 100, 2, 20 and 3).
    Basically my requirement is to be able to change the decimal presentation without changing the user's locale or language. I don't know if that's possible.
    Say, I select an option on my application that says "comma separated thousands", the decimal values will be presented this way ###,###,###,###.00 or when the user selects the option "dot separated thousands", the decimal values will be presented like this ###.###.###.###,00. I already tried to format the last reprersentation but I get java.lang.IllegalArgumentException: Malformed pattern. I have already checked the DecimalFormat API, so I know the pattern is incorrect, still I'm looking if by chance I'm forgeting something else to do in order the application to work as I spect.
    Thanks!
    JV

  • Created column not showing in the Document Library View for a Custom Content Type based on Document

    We have a custom content type based of Document Content Type. The OOTB "Created" column does not show up in the view as well as in the Site Settings -> Columns.
    But it shows up in the Display Form and Edit Form of the Item at the bottom "Created at " by " " and "Modified by" at by ""
    Would anyone know how to make this column appear as part of the view ?
    thanks,
    Harsh

    Hi,
    They should by default be possible to add to a view. The only reason they would disappear from the UI if someone has changed the attribute of the Field to hidden = true. You can verify that with PowerShell and if so you can use PowerShell to revert the setting
    to false.
    $w = Get-SPWeb http://dev13$f = $w.Fields.GetFieldByInternalName("Created")$f.Hidden$f.Hidden = $false$f.Update()

  • How to put SPACE thousands separator

    Hi there, I'm thinking how to format following numbers, eg: (integers)
    150000
    2000000
    and I would like to export them as CSV file from sqldeveloper to MS Excel and displaying them like =>
    (with space separator)
    150 000
    2 000 000
    without Excel (formatting), so since beginning, Excel will see it as number with space thousands separaors
    Could You help me?

    Hi,
    This is an Excel problem. You'll have to do something inside Excel to recognize that column as a number and display it with spaces.
    As you pointed out, Excel's default behavior, when it sees an embedded space in the column, is to treat the column as text.
    Excel's default behavior (at least on my system) is to use ',' as a thousands separator, if it uses a separator at all.
    If that column is going to contain spaces and be treated as a number, then you need to override Excel's defaults.
    This is an Oracle forum You may get lucky, and find someone who knows enough about both Oracle and Excel to solve your problem completely. I'm sorry I don't know enough about Excel to do it for you. The most you can expect from an Oracle forum is for someone to show how to produce a certain type of CSV, but you'll have to spell out exactly what that CSV has to contain.
    For example, if you can find some string of characters that tells Excel "the folloiwng column of the CSV is a number, and should bne displayed with spaces as the thousands separator", then someone in this forum can help you produce that output with that string of characters in Oracle.

  • Define Time-Based Fields for Cost Centers

    Dear All!
    I would like to know , how I'm abale to cahnge the setting
    of business area for Time-Based Field of Cost Centers to period
    Transaction is OKEG
    Would be thankful

    You can maintain master data for cost centers, cost elements, activity
    types, and business processes with time dependencies. You can make
    changes at any time for any given time interval. Data storage also takes
    place with a time reference. In this way, a master data record can have
    multiple database records storing different information.
    The smallest interval is one day. To ensure data consistency, you
    cannotchange each field daily. The timeframes in which you can change a
    field depend on the field functions, which are fixed by the SAP R/3
    System and cannot be changed. Master data maintenance includes an
    automatic check for each field's time-based consistency, resulting in
    individual time-based maintenance for each field.
    Regards
    Prabhu

  • Change order type based on sold to party

    Hi all,
    Is there any user exit to change the order type based on Sold to party.
    Eg: if any user select some sold to party during sales order creation then using sold to party the order type is changed.
    Any suggestions welcome.
    Regards,

    Hi Navadeep,
    Please try with these
    The program MV45AFZB   
    USEREXIT_CHECK_VBAK                                                     
    This user exit can be used to carry out additional checks (e.g. for     
    completion) in the document header. The system could, for example,      
    check whether certain shipping conditions are allowed for a             
    particular customer group.     
    The program MV45AFZZ                                                                               
    USEREXIT_FIELD_MODIFICATION                                        
    This user exit can be used to modify the attributes of the screen  
    fields.                                                            
    To do this, the screen fields are allocated to so-called           
    modification groups 1 - 4 and can be edited together during a      
    modification in ABAP. If a field has no field name, it cannot be   
    allocated to a group.                                              
    The usage of the field groups (modification group 1-4) is as       
    follows:                                                                               
    -   Modification group 1:   Automatic modification with transaction
        MFAW                                                                               
    -   Modification group 2:   It contains 'LOO' for step loop fields 
    -   Modification group 3:   For modifications which depend on check
        tables or on other fixed information                                                                               
    -   Modification group 4:   is not used                            
    The FORM routine is called up for every field of a screen. If you require changes to be made, you must make them in this user exit.         
    This FORM routine is called up by the module FELDAUSWAHL.                 
    See the Screen Painter manual for further information on structuring      
    the interface.                                                                               
    USEREXIT_SAVE_DOCUMENT                                                     
    Use this user exit to fill user-specific statistics update tables.         
    The user exit is called up by the FORM routine BELEG-SICHERN before        
    the COMMIT command.                                                        
    Note                                                                       
    If a standard field is changed, the field r185d-dataloss is set to         
    X. The system queries this indicator at the beginning of the safety        
    routine. This is why this indicator must also be set during the            
    maintenance of user-specific tables that are also to be saved.                                                                               
    USEREXIT_SAVE_DOCUMENT_PREPARE                                             
    Use this user exit to make certain changes or checks immediately           
    before saving a document. It is the last possibility for changing or       
    checking a document before posting.                                        
    The user exit is carried out at the beginning of the FORM routine          
    BELEG_SICHERN.  
    I hope it will help you,
    Regards,
    Murali.

  • Filter Document Type based on Authorization Object

    Hello Everyone,
    I have a requirement where i was asked to filter the document type based on authorization object M_BEST_BSA in transaction /KCP/2,ME21N, ME22N and ME23N.
    When I create or modify a purchase order, I dont want  to be lost in choosing the PO type. I want the field EKKO-BSART displays only the values authorized for the user(me).
    Thanks a lot

    RE is standard for MIRO .This is SAp standard .
    Please clarify what u require .
    Did you need other RE  for example LE for miro doc type in your co code 1130 and miro doc type EE for your co code 1145.
    like wise
    Edited by: manu m on Jul 13, 2009 7:53 AM

  • Trip Expense Types based upon Trip Activity Type

    Hi
    I have a requirement. I know that Travel Expense Types do have the permissibility based upon "Employee Grouping for Travel Expense Types". This is being done in V_T706B1 in the field 'ExpTy.Permissibility'. Based upon the group the employee belongs to, he/she can have the visibility to the expense type in 'Travel Expense Report'
    Now my requirement is can I have the same type of permissibility to travel expense types based upon the Trip Activity type. For example if I choose a trip activity type 'Billable to Customer' in Trvael Request Form I should be able to see expense types AIR, TRAIN while if I choose 'Internal Training' I should be able to see only TRAIN in Travel Expense Report.
    Is this possible?

    Dear,
    Open data element:SPKZL from SE11.
    Check the search help name:SH_EXPENSE_TYPES.
    Double click on the search help SH_EXPENSE_TYPES.
    You can find the search help exit name:PTRV_F4_EXP_TYPE_SH_EXIT
    Copy that PTRV_F4_EXP_TYPE_SH_EXIT into a 'Z' function module.
    Filter the expense type, in the loop,
    loop at spkzls where spkzl in t_spkzl_selopt and sptxt in t_sptxt_selopt.
      ****write ur logic here to filter the expense types based on the activity
    append spkzls to spkzls_help.
    endloop.
    After activating the above z function module, replace the standard function module with 'z' function module in search help exit filed.
    Thanks and Regards

Maybe you are looking for

  • Sap query sq02

    Dear all, since TWO days Iam working on this .... SAP Query without succes. Now I wanted to ask you here. I want to make a select-option in the SAP Query. Ok, this is easy! now the customer want to have F4-Help. Iam now in SQ02 where the data coming

  • What video codecs are required for dobly digital playback on ipad 2?

    I am using ipad 2 with the digital av cable.  I have tried ripping several different video/audio formats with no luck getting the dolby digital output to my receiver.  I have the video working and stereo audio but no 5.1.   Some helpful direction wou

  • How to open a word document in dynpro

    Hi experts, i am new to web dynpro, i have a problem that i need to open a word document from desktop in my screen. its not ALV or i dont have to upload the file but i have to OPEN the file.. plz help Regards: Parteek

  • Upgraded to Maverick and printer no longer works

    I upgraded to Maverick and my printer: Canon MX850 no longer works.  I downloaded drivers from canon website but did not seem to work

  • Mail Server -Migration

    hi, how to backup data on serveradmin at maintenance that shown email user and qouta to new mailserver, i already backup all user and mail storage using mailbfr and LDAP(WGM) but when i check on new mailserver using serveradmin on maintenance divisio