Import number fields with scale and precision

When i import data to create a new table, how do i specify the scale and precision when importing ? ...or do i have to create the table manually and then import to an existing table?

The Data Workshop wizard allows you to specify the scale and precision for numeric columns.

Similar Messages

  • Numeric scale and precision

    Does anyone know if Oracle has any plans to make the scale and precision mandantory on numeric fields?
    My group has built an ODS of Oracle Financials data. The source has fields defined as numeric, but in our ODS we choose to have them defined as numeric(30,8). One of the table loads abended last night and I am thinking of changing those fields to numeric to avoid future abends, but I want to make sure that down the line I won't be changing them back....
    Thanks,
    Ann

    I can't imagine Oracle would break the piles of existing code that declares plain NUMBER columns. I doubt you're going to find anything official from Oracle that it plans to continue allowing you to omit scale and precision for the same reason that you won't find anything saying that it plans to continue supporting BEFORE INSERT triggers.
    If, for some reason, Oracle started requiring scale & precision, they'd give you a number of years to make the change. Heck, they started saying "LONGs are going away" when 8.1.5 came out but still supports them for legacy apps in 10.1.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Formatting a number element with commas and decimals.

    I have a dataset with numbers.  I already set the column type to "number".
    I want to format the number data with commas and decimals.  I found a way to add decimals, but I'm still very confused how to do commas and to combine that with the decimal formatting.
    Also, how do I apply that to a repeat region in my spry region?
    Any help would be appreciated.  Thank you very much.

    I found this on one of the forum questions.
    Excel dont preserve the trailing zeros.
    try opening the xcel and type 5.0000 and tab out, it wont preserve the trailing zeros after decimal.
    try finding out how to disable the option in excel. if you do that, you will see what you send out from the report.
    But you can try to convert the number into a text by trying to append a space at the beginning. See if that would work.
    Thanks
    Swarna

  • 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.

  • JS CS3 flag duplicate images with scale and rotation differnce

    I've been trying to cut down on the number of images a script I have would produce.  The old script would look for links that are being used multiple times and then just version the link which is fine.  What I am finding this that although a document may have one image linked 9 time 6 times out of the nine the image is scaled and rotated the same amount and the other 3 times the rotation and scaling also match. In this example the image only needs 2 versions the first as the original and the second with the scale and rotation of the image used 3 time let say.
    So to the code:
    The following code will work through the doc and create an array of the links as duplicates:
    function LinkUsage(myLink) {
        var myLinkCounter = 0;
            for (var myCounter =  0; myCounter < myDoc.links.length; myCounter++) {
            if (myLink.filePath == myDoc.links[myCounter].filePath) {
                myLinkCounter++;
        return myLinkCounter
    var myDoc = app.activeDocument;var myNumLinks = [];
    for ( var t = myDoc.links.length-1; t >= 0; t-- ){
        if(LinkUsage(myDoc.links[t])>1){
                myNumLinks.push(myDoc.links[t].id);
    Is there a way to loop through the array and only flag the differnent scale and roatations.  What I should get is that out of the multiple link uasage the image is only changed twice out of the 9 times used.
    I was trying to loop through the array and then loop through it within the loop to compare the link but this does not work for obvious reasons.
    for (var i=0  ; i <myNumLinks.length; i++){
        var valLink = myDoc.links.itemByID( myNumLinks[i]);
            if(valLink.parent.constructor.name == "Image"){
                for (var j=0  ; j<myNumLinks.length; j++){
                    if(myDoc.links.itemByID( myNumLinks[j]).parent.constructor.name == "Image"){
                        if(valLink.parent.parent.images[0].rotationAngle != myDoc.links.itemByID( myNumLinks[j]).parent.parent.images[0].rotationAngle){
                            $.write(myNumLinks[i]+"\n");
    Is what I am trying to do possible and if so any suggestions would be appreciated.
    Cheers, John.

    I think I might be one step closer to getting this to work.  I've been able to just capture the file path of the duplicates using:
    //count the number of times the link is used
    function LinkUsage(myLink) {
        var myLinkCounter = 0;
            for (var myCounter =  0; myCounter < myDoc.links.length; myCounter++) {
            if (myLink.filePath == myDoc.links[myCounter].filePath) {
                myLinkCounter++;
        return myLinkCounter
    //check if the filepath has been added to the array
    function chkVal(val){
        var compCount = 0;
        for(var arr =  0; arr < myNumLinks.length; arr++){
            if(val == myNumLinks[arr] ){
            compCount++;
        if(compCount >=1){
            return false;
            }else{
                return true;
    //check the links inthe doc
    var myDoc = app.activeDocument;
    var myNumLinks = [];
    for ( var t = myDoc.links.length-1; t >= 0; t-- ){
        if(LinkUsage(myDoc.links[t])>1){
            if(myNumLinks == 0){
                myNumLinks.push(myDoc.links[t].filePath);
                }else{
                    if(chkVal(myDoc.links[t].filePath)){
                        myNumLinks.push(myDoc.links[t].filePath);
    for (var i=0  ; i <myNumLinks.length; i++){
        $.write(myNumLinks[i]+"\n");

  • I cannot import my photos with Preview and iOS 5. Help!

    I've just update my iPhone 4 to iOS5 and now i can't import my pic with Preview on a Macbook Pro (OSX fully updated). Someone knows something or has had the same problem?

    Some kinds of bugs has arrived with the new iOS. Neither can I import my photos to my IPad2 from my Sony digital camera anymore. That was no problem before with ios4. There seems to many "small" problem. Also the AirPlay used with the app "GarageBand" does not work anymore.

  • Same part number one with valuation and another without valuation

    Hi
    I would like to know the below on inventory:
    We buy sapare parts for the project1 , but some still left in the store, lets say 30pcs.
    we would like to use these 30 spare parts with zero value,becuase we already paid for this spare parts.
    Now we buy the same part number (spare parts) for the project 2 with price $5 .
    how do we differentiate these old and new spares when choosing in daily transactions.
    Please explain we to handle this.
    and also we are trying to assign global code for all materials, in this case how do we assign same number for the spareparts with value and without value.
    Please let me know if you still need clarifications to give the correct idea and answer. Thanks in advance.
    Thanks
    Udaya

    Hi,
    Is it possible to put quantity with Zero price ?, please advise
    For example : if matain our stock in two batches with the follwoing prices is it possible ?
    Value Batch1:     40 x 4.00 = 160.00
    Value Batch2:     60 x 0.00 = 0.00
    Total value:     = 160.00
    Average price:     160.00 / 100 = 1.60
    If we use Batch 1 material the price will be 4.00/pc
    If we use Batch2 material the price will be 0.0/pc
    is this correct. apprciate if you confirm this scenario. thanks.
    Thanks
    Udaya

  • Question for load VRML file with scale and position missed

    Hi,
    I trid to read a .wrl file from the "load VRML" vi, most simple .wrl models can be correctly read but for some more compliacted models their scales and positions were incorrect.
    I attached the file which I read the .wrl file and a car model from Matlab Virtual Reality toolbox. The file can be read but their position and scale was missed. I check this model on other VRML readers and I believe the car model is correct. Does anyone know how to fix this problem?
    Thanks,
    -Alex
    Attachments:
    VRMLproblem.zip ‏88 KB

    Hi Yi Y,
    Thanks for your reply.
    The attached files are the correct .wrl file and the one read from LabVIEW.
    The colored is incorrect, the car is seperated to some parts, and the scale of some of the parts are wrong.
    I think you can use any .wrl reader to read the wrl file I posted, all the reader I tried can read it successfully besides LabVIEW.
    In the vi I have you can try to adjust the scale or rotate it then I think you can find the seperated car parts.
    I will appreciate if you can give me any suggestion. Thanks,
    -Alex
    Attachments:
    original.JPG ‏110 KB
    readfromLabView.JPG ‏74 KB

  • Need help in formatting a number field with same precision for excel output

    I am trying to get the same preciision for a field in RTF template when the output is in EXCEL
    i.e. same number of digits after decimal. So, I would like to show 150 as 150.00 and 123.2 as 123.20 etc !! Is there a way to do it. the Built in formatting will not display 150.00 for 150 . but if i add $ symbol it will display. But i dont need $ syambol. please help.

    I found this on one of the forum questions.
    Excel dont preserve the trailing zeros.
    try opening the xcel and type 5.0000 and tab out, it wont preserve the trailing zeros after decimal.
    try finding out how to disable the option in excel. if you do that, you will see what you send out from the report.
    But you can try to convert the number into a text by trying to append a space at the beginning. See if that would work.
    Thanks
    Swarna

  • Union two tables with diffrent count of fields with null and float value

    Hello,
    i want to union two tables, first one with 3 fields and second one with 4 fields (diffrent count of fields).
    I can add null value at end of first select but it does not work with float values in second table. Value form second table is convert to integer.
    For example:
    select null v1 from sessions
    union
    select 0.05 v1 from sessions
    result is set of null and 0 value.
    As workaround i can type:
    select null+0.0 v1 from sessions
    union
    select 0.05 v1 from sessions
    or simple change select's order.
    Is any better/proper way to do this? Can I somehow set float field type in first select?
    Best regards,
    Lukasz.
    WIN XP, MAXDB 7.6.03

    Hi Lukasz,
    in a UNION statement the first statement defines the structure (number, names and types of fields) of the resultset.
    Therefore you have to define a FLOAT field in the first SELECT statement in order to avoid conversion to VARCHAR.
    Be aware that NULL and 0.0 are not the same thus NULL+0.0 does not equal NULL.
    In fact NULL cannot equal to any number or character value at all.
    BTW: you may want to use UNION ALL to avoid the search and removal of duplicates - looks like your datasets won't contain duplicates anyhow...
    Regards,
    Lars

  • Number field - Format mask and validation

    APEX 4.2.1
    When a page item with source=DB column uses a Number type and a currency format mask (FML999G etc), when the page is rendered, it properly formats the number.
    The built-in Item is numeric validation appears to be handle this reasonably ok. i.e. both formatted values and only-digits both validate ok.
    But any after-submit validations choke on the non-numeric characters in the field! Please don't tell me I have to a) create shadow items and/or b) replace() out the non-numeric characters in the validation.
    After so many years and versions, why doesn't APEX have a simple, declarative, elegant solution to handle such a basic function?
    Am I missing something?
    Thanks

    As described in the item help
    "Select or enter a format mask. Note that format mask is applicable only to items of source type Database Column."
    In my experience, and this goes for the great web experience, not just the application you're designing - I've found the most data entry fields avoid formatting.
    Relevant information is often shown item labels.
    Any occasional the business has specifically asked for formatting, I've taken the same approach as I've needed to for years - before web development (and every time you use the to_date/to_char functions for date conversions) - validate the information as per expectation. If you think the user will be adding punctuation to a numeric field, then you must validate accordingly.
    This usually means adding TO_CHAR(value_entered, expected_format_mask) to your validation control, instead of presuming APEX will read the user's mind and know the content of that numeric field may not be numeric.
    Date entry does the same thing - ultimately there is a session date format that is implicitly used by Oracle to convert an entry of 12-10-2012 to the appropriate date -- ie, is it October or December?
    Have a think about the various websites you visit personally - plane bookings, concerts, ebay, etc - how many expect entry to be purely numeric? My recollection is most, except maybe some credit card fields, but most use some sort of regular expression to sort that out. And you can tell the validation is coded respectively.
    Generally, I reserve this sort of primping to reporting - even then it's made to be subtle - just like I'd prefer makeup to be ;-)
    Most users just care about the data, not how it looks.
    Scott
    blog: [url grassroots-oracle.com]grassroots-oracle.com
    twitter: [url twitter.com/swesley_perth]@swesley_perth
    -- please mark any useful posts as helpful or correct, in the end it helps us all

  • How to sort a character field with numbers and letters on the end

    I have an internal table with character field which has data like this after I sort it.  This is not what I expect from the sort.:
    13A
    15A
    29A
    30A
    31A
    33A
    123A
    125
    62 
    76 
    94A
    I expect this, which is sorted number first, then alpha.  Any ideas how to get this sort?:
    13A
    15A
    29A
    30A
    31A
    33A
    62 
    76 
    94A
    123A
    125

    Thanks for the suggestions.  After reading the suggestions and reviewing some other post threads, here's what I did to get the sort to work:
    Add a dash - to the end of any record that did not have an alphabet character at the end.  This way, all records have at least one non-numeric character at the end.  Then I overlayed zeros  '0000000'  over each record.  Then I sorted the table.  Afterwards, I removed the dashes and zeros.
    The long way around, but it worked for me.  Since the internal table is processed in memory, it doesn't add much overhead to the run time.

  • F4 help for PO number field with SELECT OPTIONS

    Hi all,
    I have a field (PO no) using SELECT OPTIONS on my selection screen.I need F4 help for this field.How shud i declare it?
    I have declared it as follows:
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    select-options sel_po for ZPO_LOI-zobject_id obligatory .
    SELECTION-SCREEN END OF BLOCK b1.
    ZPO_LOI is a table view with a z data element ZOBJECT_ID to which i have attached a search help which displays the required values for the PO field in the selection screen.But now the problem is i cant see the F4 icon for the field on the sel screen.
    Please help.

    Hi I have a sapmle code for this.
    *&                AT SELECTION SCREEN ON VALUE REQUEST
    *-- F4 help for IDOC numbers
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_docnum-low.
      PERFORM value_request_status USING 'S_DOCNUM-LOW'.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_docnum-high.
      PERFORM value_request_status USING 'S_DOCNUM-HIGH'.
    *&      Form  value_request_status
          text
         -->fp_field  dynpro field that gets the return value
    FORM value_request_status  USING fp_field TYPE dynfnam.
      STATICS tl_values TYPE STANDARD TABLE OF tp_value.
      IF tl_values IS INITIAL.
         SELECT docnum FROM edidc UP TO 500 ROWS INTO TABLE tl_values
              WHERE credat   IN  s_credat
              AND   cretim   IN  s_cretim.
         IF sy-subrc eq 0.
            CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
             EXPORTING
              retfield        = 'DOCNUM'
              dynpprog        = syst-repid
              dynpnr          = syst-dynnr
              dynprofield     = fp_field
              value_org       = 'S'
             TABLES
              value_tab       = tl_values
             EXCEPTIONS
              parameter_error = 1
              no_values_found = 2
             OTHERS          = 3.
             IF sy-subrc IS NOT INITIAL.
               MESSAGE i999(zz) WITH 'No values found'(004).
             ENDIF.
          ENDIF.
        ENDIF.
    ENDFORM.                    " value_request_status
    Regards,
    Amit.

  • How do I count/add fields with numbers and fields with letters?

    This is an attendance calendar I'm making for my work.
    Cells in CLIENT A column will be marked with either a number ( >0, indicating how many hours attended) or a letter (A = absent, H = Holiday).
    I need 2 formulas/scripts I suppose:
    1) I would like cell DP1 to represent how many cells in the CLIENT A column are marked only with a number >0 -indicating how many days were attended, not how many total hours there are.
    2) I would like cell DA1 to represent how many cells in the CLIENT A column are marked only with the letter A -indicating how many days were not attended.

    Let's say there are 20 fields in the column. In that case you can use these scripts:
    Custom calculation script for "DPA"
    var total = 0;
    for (var i=1; i<=20; i++) {
        var v = +this.getField("CA"+i).value;
        if (isNaN(v)==false && v>0)
            total++;
    event.value = total;
    Custom calculation script for "DPB"
    var total = 0;
    for (var i=1; i<=20; i++) {
        var v = this.getField("CA"+i).value;
        if (v=="A")
            total++;
    event.value = total;

  • Imported files incompatible with iPad and iWork '09.

    As a trial, I tried to import a Pages document to my iPad. All seemed to go well, but at first I could not find it on the iPad.
    Clicking the folder button showed a long list of Pages documents (maybe templates) but I didn't see my document whose name began with "W".
    En passant, I tried opening one of the many listed documents/templates. After downloading, the iPad gave an error message stating that it had not been created by iWork '09. None of the list of ~40 documents would open. Eventually I got to the bottom, and found my imported document which opened fine.
    What I want to know is where the incompatible documents/templates came from? My host machine has an up-to-date version of iWork '09, so why does the iPad see earlier versions of documents/templates?
    Any suggestions would be welcome.
    John

    Pages 09 does have an option to save things in Pages 08 format, but it seems unlikely that you would be doing that...

Maybe you are looking for

  • Cannot send or receive email using Thunderbird, but can get it just fine on Verizon server.

    Every time Mozilla/Thunderbird does a major upgrade I have a problem with sending and receiving my email. When trying to send an email, I get the message: "An error occurred while sending mail. The mail server responded: 5.7.1 Missing or literal doma

  • Where can i get an older version of Download Helper?

    Since the Download Helper no longer works with the new Browser/Add-on Update & it doesn't appear that it will be fixed anytime soon, where could I get and install an older version of the Download Helper?

  • Is graphical mapping best for a large IDoc mapping to file?

    Hello, I have to map an IDoc to a file and 450+ lines are mandatory or needed to go a file output.  A lot of the lines need some value mapping.  Is XSLT or Java mapping better for this task?  John Xi

  • BAPI/FM for PRT's

    All, I am trying to find a BAPI or function module that can attach a PRT (DMS Document PRT to be specific) to an existing task list. Can anyone please provide the correct FM or BAPI?  What Package would FM's for PRT's be stored under?

  • SAPCCM4X agent reports active eventhough its stopped at OS level

    We are having sapccm4x agent running on NW PI 7.1 system connected to Solman 7.0 When we stop the agent or if the agent process stops / killed, normally its reported at SAP level as Inactive and availability as 0 On Solman system RZ21 --> Technical I