Calculating length of a number field

Hello,
          I have a DESKI report containing a column named 'Mobile number', which is a numeric field. I want to calculate the lenght of the mobile number. However, since it is a numeric field (in the universe itself), I cannot use the 'Length' fuction, since the 'Length' function can only be used on characters. Neither there is any function like 'ToText' in DESKI, which can be used to convert numeric values to text. Thus, any suggestion for achieving the above described requirement, would be greatly appreciated.
Best Regards,
Alok.

This works for me:
Create a dimension variable called ToString which converts the telephone number to a string:
=<Telephone Number> + ""
Create another variable which retrieves the length of this new string dimension:
=Length(<ToString>)
Cheers,
Fritz

Similar Messages

  • BATCH Number Field

    HI ALL,
      As anyone come across with requirement from Client to extend the length of Batch Number field(MCHA-CHARG). say from 10 to 20 chars. Is there any oss note or something?
    Thanks & Regards
    Sri

    Solved - LOIPRO01 IDoc does not pick up the Batch Number from AFPO table, instead from table RESB.    We need batch from AFPO and just created a lookup using the Process Order Number as import param

  • Increasing length of equvalnce number (BADI/field exits)

    Hi friends,
    Currently I have one requirement in which
    I need to increase the length the Equivalnce number which is present on Apportonment to Co-products tab on Costing tab of material master.
    Path for same is given below,
    "<b>Material Matser</b>" screen >> "<b>Costing1</b>" Tab >> Click on "<b>Joint Production</b>" Button (it will bring to Cost Apportonment to Co-products:Apportionment Structures screen ) >> Click on "<b>Equivalnce Numbers</b>" ( it will bring to Cost Apportonment to Co-products:Equivalnce Numbers screen)
    Currently length of euivalncve number (last column) is 3 as standard,In my requirnment I will have to increase the length.
    How it could been done ? With field exits or BADI.
    Regards,
    Amit

    Hi,
    SAP provides as 18 charcter by default.
    You can even use the reference field of House bank to put extra digits.
    Account number BANKN - 18 + Reference info REFZL - 4.
    While exporting the data use functional module CONVERT_HOUSEBANK_ACCOUNT_NUM and pass data in this.
    This solution is valid only where you have new developments but need to check SAP standard reports for the flexibility.
    John

  • ESI number field length

    Hi,
    In IT588, subtype 0001, the field lenght for ESI is shorter.
    As per the karnataka ESI dept, there are new ESI numbers which are 17 digit long.
    Is ther any notes or alternate solution to increase the field lenght for the ESI number field.
    thanks,
    Ayyappan

    Hi Dilek/praveen,
    Thx for the solution.
    The issue is actually with the temp certificate No. field. How to increase the field lenght for that.
    thx
    ayyaps
    Hi Ayyapas,
    As Praveen has said, u have to go for a custom development. Take the help of an Abap-er and get it done. Shud not be an issue with Abap-er to increase the length of the field.
    Regards,
    ARNAV...

  • "The even-numbered length of the DEC field I_DFZ_EX can lead to problems"

    Hi All,
    I am getting the following warning message while activating the PP datasources,
    2LIS_04_P_MATNR
    2LIS_04_P_ARBPL
    Warning Message: "The even-numbered length of the DEC field I_DFZ_EX can lead to problems"
                                   "The even-numbered length of the DEC field I_DLZ_EX can lead to problems"
                                   "The even-numbered length of the DEC field S_DFZ_EX can lead to problems"
                                   "The even-numbered length of the DEC field S_DLZ_EX can lead to problems"
    Checked in SDN, but no answer.
    Need your expert solution, to resolve.
    With Regards,
    Sekhar

    Thank you Des, for immediate response.
    But i have already gone through the Note.
    As we are using ghe standard datasources, can you suggest which option should i use to resolve.
    Solution
    If the field is not manipulated in the customer exit or elsewhere, no
    processing is required.
    If you change the field, the following possible solutions are available:
    1. You can make sure that the number of the characters does not
    increase after the manipulation.
    2. If you can change the extract structure of the DataSource without
    affecting other scenarios (for example, if it was generated in
    transaction RSO2), you can increase the length of the DEC field (or
    CURR, QUAN) there to the next odd character (in the example above:
    from DEC 4 on DEC 5).
    3. If neither of these solutions are possible, you can use a customer
    append that contains a relevant DEC field (or CURR, QUAN) with the
    next highest odd length. This can be used for the result of the
    calculations. This means that you do not have to manipulate the
    previous field.
    With Regards,
    Sekhar

  • How do I validate one field's length based on another field's selection?

    I am creating a form for our offices where I need to check one field for length of a serial number based on the answer to a previous field's selection.  Depending on the product selection, the serial number has two different lengths.  Both fields are marked as required, but I want to make sure that we receive the full serial number for our product.  Previous forms were done on paper and instructions were for the last 4 digits only which now we want the full serial number.  One product has a 12 digit number and the other is 6.
    I'm guessing that I need a validation script in the serial number field, but I am not a JavaScript coder and haven't found the right thing when searching.  Any help would be great!
    Thanks!

    Never trust your users to follow what you expect them to do... That often leads to mistakes and problems later on.
    I would reset the s/n field when a selection is made in the drop-down. To do so set the drop-down field to commit the selected value immediately and add code as its custom validation script:
    this.getField("Serial Number").value = "";
    To validate the s/n field you can use something like this as that field's custom validation script (of course, you'll need to adjust the field names and values to match the actual ones in your file):
    event.rc = true;
    if (event.value) {
         var selection = this.getField("Dropdown1").valueAsString;
         if (selection=="1" && event.value.length!=6) {
              app.alert("Error! The s/n must be 6 digits long.");
              event.rc = false;
         if (selection=="2" && event.value.length!=12) {
              app.alert("Error! The s/n must be 12 digits long.");
              event.rc = false;

  • Setting minimum length of a text field

    Forms [32 Bit] Version 10.1.2.3.0 (Production)
    Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning and Data Mining options
    Oracle Toolkit Version 10.1.2.0.2 (Production)
    PL/SQL Version 10.1.0.5.0 (Production)
    Oracle Procedure Builder V10.1.2.3.0 - Production
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Oracle Query Builder 10.1.2.3.0 - Production
    Oracle Virtual Graphics System Version 10.1.2.0.2 (Production)
    Oracle Tools GUI Utilities Version 10.1.2.0.2 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle Tools Integration Version 10.1.2.0.2 (Production)
    Oracle Tools Common Area Version 10.1.2.0.2
    Oracle CORE     10.1.0.5.0     Production
    Is there a way to set the minimum length of a text field without using a trigger?
    for example. I have a field called journal_no varchar2(7), I want to enforce that at least 4 characters are entered.

    In order to set a text item to a minimum value, you need to set the format mask.
    In my case it was
    AAAA
    and i was wrong...!!!!
    that just limits the number of characters to 4, i want at least 4, back to the drawing board......
    Edited by: DM on Jan 27, 2010 11:39 AM

  • How to prevent users from entering '+' or '0' in front of country code in the phone number field?

    Requirement:
    How can I prevent guest users from entering '+' sign or '0' in front of country-code in the visitor phone number field during self registration?
    Few SMS service providers are not looking for '+' sign or '0' or '00' in front of the international phone numbers to trigger the sms. Providing these values in front of country code during self-registration may fail to deliver the sms to recipient.
    Solution:
    Using a simple regular expression, you can validate the entered phone number during the guest registration. 
    The below regular expression will help you to validate the phone number and allows to register only  when the phone number is not staring with '+' or '0'. 
    ^[1-9][0-9](\d{7}|\d{8}|\d{9}|\d{10}|\d{11}|\d{12})$
    It also performs the below validations.
    only numbers are allowed.
    first digit of the entered phone number should be 1 to 9, so '+' or '0' is not allowed. 
    numbers from 0 to 9 are allowed from the second digit.
    also validates phone number length, the length of the phone number should be 9 to 14.
    Configuration:
    To add the above regex in the visitor_phone number filed, please navigate to ClearPass Guest >> Configuration >> (Pages)Guest Self-Registration >> select the self-registration page and go to Edit >> Register Page >> Form >>  select the filed visitor_phone and set the Validator to " ISRegexMatch" and enter the above regex in the Validator Argument filed as shown below.
    Note:  Edit the Validation Error as per your requirement.
    Verification
    Adding the given regex will validate the phone number and prevent the guest user from registering the phone number starts with '+' or '0'.
    Please find below the sample outputs for your reference.
    Result when phone number starts with '+' or '0'.
    Successful registration.

    Is this a Mac Preview issue?

  • Can I set a number field in Acrobat that will allow me to start with Zero?

    For example 012594 when I type this in as a number the zero disappears, is there anyway I can script it to allow the use of a Zero? I know I can do this by making it a text field but to limit people making mistakes of accidentally typing a letter in I was trying to make it number only for example a Mobile number or Account number where there are to be no letters.

    The following will allow you to only input numbers and spaces. Set up a Custom Keystroke script which calls this function. And make your field a text field, not a number field.
    function validateNumericEntry() {
    var re = /[\d\s]/;
    if (event.change.length >0) {
    if (event.willCommit == false) {
    if (re.test(event.change)) {
    } else {
    event.rc = false
    If you want a warning if the field is incomplete, you will need to specify a pattern with regular expressions in a custom validation script.

  • Error in determining country specific length for account number

    Cannot determine country-specific length for account number;No instance of object type AccountClosureAM has been created. External reference: 0271409168GTABNGODUMMY00USDGO

    Thanks KI & Sujit
    Can you please tell me the Menu Path for OB40
    I have one another problem as below
    Jurisdiction code not defined for procedure TAXINN
    Message no. FF748
    Diagnosis
    You have entered a jurisdiction code in a country whose calculation procedure does not allow the entry of jurisdiction codes.
    System response
    Procedure
    Check and, if necessary, correct the entry.
    Procedure for System Administration
    If it is not an input error, check and possibly change the system settings.
    To do this, choose Maintain entries (F5).
    Change your calculation procedure so that tax calculation is carried out using the jurisdiction code.
    Can you please tell me how to solve this.
    Rakesh

  • Find length of  a particular field.

    Hi,
    I am new in ABAP. So Please guide me how to find out the length of a particular field and also give the function name with example.
    Ram Shanker

    Hi RAM,
    DESCRIBE FIELD
    Syntax
    DESCRIBE FIELD dobj
      [TYPE typ [COMPONENTS com]]
      [LENGTH ilen IN {BYTE|CHARACTER} MODE]
      [DECIMALS dec]
      [OUTPUT-LENGTH olen]
      [HELP-ID hlp]
      [EDIT MASK mask].
    Effect
    This statement determines several properties of the data object dobj and assigns them to the specified variables. The various additions enable you to determine the data type and the number of components for structures, the length used in the memory, the number of decimal places, the output length, the name of the data type for a reference to a data element of the ABAP Dictionary, and a possible conversion routine.
    Notes
    You can specify field symbols or formal parameters in procedures for dobj to determine the properties of the data object they represent at the time of the statement execution.
    The statement DESCRIBE is used to determine the properties of data objects of elementary data types. When DESCRIBE is used for structures or data objects of deep data types like strings, internal tables, or reference variables, you can only determine elementary properties. Further details, for example, the static or dynamic type of a reference variable cannot be determined using DESCRIBE. For this kind of information, you can use the type classes of Run Time Type Services (RTTS). They enable you to determine all properties of data objects of all data types.

  • Error  The even-numbered length of the DEC field LC_SRV_DURATION can lead t

    Hi Guys,
    When I activate or generate Datasource '0CRM_SRV_PROCESS_H' it gives me following warning
    'The even-numbered length of the DEC field LC_SRV_DURATION can lead to problems'.
    Actually , the field LC_SRV_DURATION is type DEC and lenght 10,
    I know this is only waring but still it is not allowing me to activate.
    I have seen some threads regardin this , but none of them have solution .
    Can you please throw some light on this  ?
    Thanks
    Jimmy

    Hi jimmy,
    The reason for the error will be clear for you when you check the following link 
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21f2f2446011d189700000e8322d00/content.htm
    And check your table if you put the even number for the decimal field.
    With regards
    Chandru

  • Project Number field

    Hi All,
    When I want to print Project Number field in XML Publisher Template then its displaying some of the values in HEXADECIMAL, please let me know what to do.
    0541370E01 (This value is displayed in HEXADECIMAL as 5.41E+06 )
    0533012B06 (This value is OK).
    When I concatenate it with Spaces like project_number || ' '
    Then it displays fine.
    But when I display it with spaces then user are complaining that Vlookup function in EXCEL does not work..
    Thanks
    J
    Edited by: user12294561 on Oct 11, 2011 7:38 AM

    Excel will automatically convert the large number into expo/Scientific notation, which is correct.
    but a number format does not affect the actual cell value that Excel uses to perform calculations. The actual value is displayed in the formula bar. check if that is true.

  • Declaring a Number field with specific number of digits and without

    Hai Everybody.
    I have a small doubt. At the time of creating a Table with column as Number data type, if i do not specify the length of digits, what it will take by default. What are the advantages and disadvantages of declaring the number field without specifying the length.
    For example:
    Create Table temp1 (col1 number);
    Create Table temp1 (col1 number(6));
    What is the difference between both the above statements. With the First Statement, what is the maximum number the table will accept.
    Which one is better in terms of resource optimisation like alloting the memory space or processing speed or any other resources.
    Pl clerify me.
    Thanks
    JD

    Hi,
    JayaDev(JD) wrote:
    Hai Everybody.
    I have a small doubt. At the time of creating a Table with column as Number data type, if i do not specify the length of digits, what it will take by default. What are the advantages and disadvantages of declaring the number field without specifying the length.NUMBER means any number (that Oracle can handle).
    NUMBER (6) means an integer, with no more than 6 digits. If you INSERT 12.345, it will automatically get rounded to 12. If you try to INSERT 1234567, it will raise an error.
    The default value is NULL in both cases, unless you specify otherwise.
    >
    For example:
    Create Table temp1 (col1 number);
    Create Table temp1 (col1 number(6));
    What is the difference between both the above statements. With the First Statement, what is the maximum number the table will accept.In Oracle 11, the largest number is 9.99999999999999999999999999999999999999E+125, I believe.
    Which one is better in terms of resource optimisation like alloting the memory space or processing speed or any other resources.NUMBER (6) is more efficient.
    As in so many things, you get what you pay for. If you want the ability to handle larger or more precise NUMBERs, you pay for it in more storage space and less speed.
    Read the pages that Karthick and Maktutakdu shown you.

  • Address Book/iSync - email addresses moving to phone number fields

    I'm not sure what is causing this, but I'm noticing that email addresses in my cards are moving to phone number fields. I originally thought this had something to do with cards that had no phone number in them, only an email address, but now I"m realizing that's not the case.
    I fixes all cards last night and just a minute ago, when I was in Address Book I noticed some or all of the email addresses had moved again. I reverted to my backup from last night and it fixed things, but I'm wondering what's going to cause those addresses to move again.
    I do use iSync to sync my AB contacts to my Motorola phone (I think I have it set up where it's one way, computer to phone) and I have Entourage that's using my AB contacts to populate its address book.
    Any thoughts about what in my environment is causing this?
    -John

    Thank you for the suggestion. I did this, but noticed that some cards were still messed up. So I reverted back to a clean copy of my address book from last night. Then I went to iSync and synchronized with my Motorola phone. That's when iSync says that it's going to modify over 5% of my contacts in AB (122) at which point I said okay. Problem appears to be that the cards it modifies is random.
    Now to make matters worse, it appears that if I repeat this process over and over (revert, iSync, look through cards), there is no pattern to which cards are changing. I don't even know how to troubleshoot this. I'd love make iSync go one way - computer to phone - so that the phone can never write information to the computer. Is that possible?
    I'm sure this needs to go to a different section...
    -John

Maybe you are looking for

  • I can't get my Equium A200 started

    I cant get my laptop started. I had left it on standby and when I returned it appeared to have crashed. When I turn it on the LED lights come on, on the Equium sign and the power symbol on the laptop makes some encouraging sounds but then nothing com

  • Multi Channel Messaging service Configuring, Testing using Simulator

    Hi I am working on soa project to implement human workflow implementation like sms, voice additional to email service. Can any one guide me to the simulator to be used and configuration to be set.

  • Make Adobe PDF (Print) the default choice

    Just recently the default setting when exporting a .pdf from InDesign has switched from Adobe PDF (Print) to Adobe PDF (Interactive). Is there any way to switch the default to be Adobe PDF (Print)? This is a very annoying default if you frequently cr

  • Options for Scaling up (PRESERVE DETAIL in CC)

    Hello! I have textures that are 4,000x5000, that will end up being scaled up in a doc maybe 7k x 10k. I've done 2 different methods before. 1) copy over the texture layer and just transform>scale 2) convert to smart object then scale via transform No

  • Centering a web page with nested layers (divs)

    Hi, I know this must be asked numerous times but some help woud be appreciated. I am currently upgrading my wed site produced in Dreamweaver 6 and 8. I used layers and nested layers with the page aligned to the left of the browser. I am now redesigni