Number field type mapped as String

Oracle Number field is mapped as CSTRING when using CRECORDSET class in VC++.
Any ideas why? or what I should do?

How big is the number column defined? ANything larger than a NUMBER(14) will map to a character string since there isn't a datatype large enough to hold say a NUMBER(30).
Here is the mapping as I rememeber it (it is old information and may not be quite up to date with the latest drivers):
if Scale = 0 then if Precision <= 4 then
Number Size: Integer
if Precision <= 9 then Number Size: Long
Integer
if Precision <= 15 then Number Size: Double
if Scale > 0 then if Precision <= 15 then
Number Size: Double
Any other field types mapped to Text (Field
Size = 255).

Similar Messages

  • Missing General Phone Number(field TYPE)while PC S...

    Hi
    When I sync my phone with Lotus Notes 7 via PC Suite, the General Phone field type didnt get sync accross to my Lotus Notes 7 Address book. Can someone let me know how I can resolve this problem? At the moment whenever i enter phone number through my mobile phone, i have to change the type to office/mobile in order to successfully sync with Lotus Notes 7. I noticed Lotus Notes 7 Address book doesnt have the General Phone field type hence data will be missing during sync.
    Here is the Operating Platform
    Windows XP Professional SP 2
    PC Suite 6.84.10.3
    Lotus Notes 7.0
    Hand Phone MODEL: 6500S
    Connection: Bluetooth
    Thanks
    Cheers!
    DK

    Just to confirm I am having the same problem (sorry not much help!). The 'Telephone' field in the E51 maps to 'Other Telephone' in Outlook 2007 and then 'disappears' when synched with my Revo. I have had to cut and paste the 'Telephone' field to the 'Telephone (home)' field on all my phone contacts and that has kept it under control.
    If when adding a new contact in the E51, the default field was 'Telephone (home)' then I would be happy. It does not seem possible to change the entry default? At the moment it means having to remember to add this field every time I need to add a new contact's home phone number. The 'mobile' field works fine.

  • Unable to locate the xml-definition for FieldName with FieldId '1f8a351c-965d-4927-9c22-8772b7089f55' when trying to activate feature with references a custom field type

    I´ve a solution which contains a custom field type (found somewhere on the net, the custom field type maps a choice field to managed metadata). There is a second solution which contains site column and site content type definitions using the custom field
    type definition from field type solution.
    On my developement environment, there is no problem with this two solutions. When field type solution is deployed, i can deploy the content type solution and activate the feature and everything is fine.
    However if i give the two solutions to our adminstrator to deploy them into our staging environment, content type feature activation fails. Deploying the field type solution makes no problems. The field type is then available and i can manually creates
    columns with this new field type. However activating the content type solution fails with the error shown in the title of this message. The FieldID from the message is not part of my content type project. Searching the net doens´t show any results for that
    id. So i think it´s not some of the standard field id´s from sharepoint.
    Can anyone help?

     Stack Trace
    Unable to locate the xml-definition for FieldName with FieldId '1f8a351c-965d-4927-9c22-8772b7089f55', exception: Microsoft.SharePoint.SPException: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) ---> System.Runtime.InteropServices.COMException (0x8000FFFF): Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
    at Microsoft.SharePoint.Library.SPRequestInternalClass.GetGlobalContentTypeXml(String bstrUrl, Int32 type, UInt32 lcid, Object varIdBytes)
    at Microsoft.SharePoint.Library.SPRequest.GetGlobalContentTypeXml(String bstrUrl, Int32 type, UInt32 lcid, Object varIdBytes) -
    -- End of inner exception stack trace ---
    at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)
    at Microsoft.SharePoint.Library.SPRequest.GetGlobalContentTypeXml(String bstrUrl, Int32 type, UInt32 lcid, Object varIdBytes)
    at Microsoft.SharePoint.SPFieldCollection.FetchFieldsFromWeb()

  • DIscount condition types mapping to value field  (+/-)

    Hi,
    1)While mapping SD condition types to Copa value fields, do we need to check the transfer +/- symbol for all discount condition types...
    or when do we need to check it..
    2) In our case we have some 4 to 5 discount condition types mapped to copa... If we check that symbol, as discount will always be negative system is posting discount values in negative in copa. At the time of report execution, since we give formula as Sales Less discount and discount is already negative in system it is getting added... so we are planning to change formula as sales + discounts... is that approach is right?
    Reg
    Karthik

    Hi Ajay,
    Thanks for your quick reply... generally for which condition types do we need to check this indicator in ke4i... for all discount condition types and rounding off condition types... is that right? Because as I told we have some 4 to 5 discount condition types and we have ticked for only one discount condition type which is mostly used...
    Reg
    Karthik

  • Oracle XML Gateway- Mapping XML to Oracle Apps API - Wrong Number or types

    XML GATEWAY INBOUND – CALLING AN API (PL/SQL record type IN variable) TO INSERT THE DATA INTO SAMPLE TABLE
    Hi,
    I am using XML Gateway to push data into Oracle Apps using a procedure call with “Record Type” as the parameter. I am getting a “wrong number” or types of arguments mismatch error inspite of following the process described in the Oracle XML Gateway User’s Guide
    Steps followed:
    DB
    1. I Created a sample table XX_CUST_HIST(ID NUMBER, ACCOUNT_NAME VARCHAR2(50), FIRST_NAME VARCHAR2(50), LAST_NAME VARCHAR2(50), TITLE VARCHAR2(50))
    2. I then Created a package ‘XX_XML_DEMO_API’ in which we have defined a record type and a procedure.
    3. The Record type ‘customerRecordType’ holds account_name , first_name, last_name and the title.
    4. The Procedure ‘insert_customer_r’ takes 2 IN arguments :
    1. p_ id number
    2. p_customer customerRecordType
    5. The procedure will insert the values into xx_cust_hist table
    p_id -> id
    p_customer.account_name -> account_name
    p_customer.first_name -> first_name
    p_customer.last_name -> last_name
    p_customer.title -> title
    Now I need to call the procedure ‘XX_XML_DEMO_API . insert_customer_r’ from XML gateway.
    Following are the steps to call the procedure:
    [1] Create DTD
    ELEMENT NEW_CUSTOMER_APIR (DATAAREA)
    ELEMENT DATAAREA (CUSTOMER_DATA)
    ELEMENT CUSTOMER_DATA (ID, CUSTOMER_RECORD)
    ELEMENT ID (#PCDATA) ELEMENT CUSTOMER_RECORD (ACCOUNT_NAME, FIRST_NAME, LAST_NAME, TITLE)
    ELEMENT ACCOUNT_NAME (#PCDATA)
    ELEMENT FIRST_NAME (#PCDATA)
    ELEMENT LAST_NAME (#PCDATA)
    ELEMENT TITLE (#PCDATA)
    [2] Creation of XML map Data Definition type for Source and Destination are set to XML.
    While executing the procedure ‘XX_XML_DEMO_API . insert_customer_r’ in post_process from the message designer, instead of 2 (p_id IN number , p_customer IN customerRecordType) parameters it is showing 6 parameters (p_id IN number, p_customer IN customerRecordType, account_name IN varchar2, first_name IN varchar2, last_name IN varchar2, title IN varchar2). Six parameters are getting mapped, instead of the 2 that the procedure really needs.
    [3] Testing of XML map. Error message in transaction monitor:
    ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'INSERT_CUSTOMER_R' ORA-06550: line 1, column 7: PL/SQL: Statement ignored -
    ECX_ACTIONS.BIND_PROC_VARIABLES
    The process executed and produced the error message given in the step 3. The standard documentation is unclear on how this should be done. Being a newbie to the XML Gateway technology I am unable to get a clue about what the error message could be and which step of the process produced the message. Could anyone help me to proceed further?
    Thanks in advance.

    Hi Siva,
    It seems like the walletkey property of event type is defined incorrectly. Please try by defining the event as follows:
    <wlevs:property name="walletkey" type="char" length="20"/>
    Use "char" instead of "char[]".
    Best Regards,
    Sandeep

  • Problem with field type STRING in table

    Hi Experts,
             I am new to ABAP. I have created a new transparent table which hold error info. One of the field has to store data of size about 1500 char.
    Since CHAR type is not acceptable for this field So I gave STRING type. Now when I try to create a TABLE parameter in a RFC enabled functional module using "LIKE YERROR" Then I get a error:
    "YERROR must be a flat structure. You cannot use internal tables, strings, references, or structure as component" 
    Why is this error? How to resolve it? Is it because I have used a field of type STRING in the table? If this is the problem then what other type can I use?
    What are other know problems with using STRING type?
    Please help!
    Thanks
    Gopal

    Hi,
    Try to declare it as type LCHR , it can hold up to 32000 chars.
    Regards
    vijay

  • Java Type mapping of NUMBER columns

    I'm using JDBC Oracle driver 10.2.0.4, with java 1.5 and Oracle 10.2.0.4.
    Reading a field of NUMBER(6) JDBC driver map it to java.lang.Integer, if I extend this column to NUMBER(9) Jdbc map it to java.lang.Long.
    When can I find a detailed documentation of Number mapping, i found some documentation for general field mapping but is not exhaustive about NUMBER fields and this behavior is not documented.
    Thanks
    Carlo

    That is all database/driver specific. So you have figure it out using what is in the Oracle java classes. There is no generic jdbc solution. If you are lucky the Oracle docs for the driver might document something useful.
    If it was me I would just wrap another proc around it and have that strip the fields out for me and return it as a regular result set.

  • 'Join' two different field types together into a String - possible in Java?

    Not entirely certain whether this is a straightforward Java or more of a JDBC question:
    I have two fields, one is a String and one an integer. I need to concatenate these fields together to form one String, prior to performing an insert on a table. ie:
    String s = dbRS.getString("partition_name");    //get full string
    String partstr = s.substring(0, 14);      // get first 14 (alpha) characters
    int new_partition_number = max_partition_number + 1;      //create new unique partition number, incremented by 1Now I have
    - a String (partstr - i.e. "TN1234567890_")
    - an integer (i.e. 50)
    (NB. The number has to be an integer because it is subject to calculation elsewhere.)
    I wish to join these together into a String ("TN1234567890_50") and use the field in an inserted row. I've tried using
    String partition_string = new StringBuffer(partstr).append(new_partition_number ).toString();... but this doesn't work.
    I read on a forum that it's impossible to cast an integer to a String in this way in Java, which sounds pretty incredulous from where I am! However my Osborne Java 2 Complete Reference doesn't mention it at all.
    Any assistance will be very gratefully received!
    Thanks.

    wonder why he thinks you can't append an int to a StringBuilder.
    Works fine. Might of course not yield the expected result depending on expectations, but it works just fine.
    But then, the coding conventions reminiscent of C don't bode well.

  • How to use type cast change string to number(dbl)?can it work?

    how to use type cast change string to number(dbl)?can it work?

    Do you want to Type Cast (function in the Advanced >> Data Manipulation palette) or Convert (functions in the String >> String/Number Conversion palette)?
    2 simple examples:
    "1" cast as I8 = 49 or 31 hex.
    "1" converted to decimal = 1.
    "20" cast as I16 = 12848 or 3230 hex.
    "20" converted to decimal = 20.
    Note that type casting a string to an integer results in a byte by byte conversion to the ASCII values.
    32 hex is an ASCII "2" and 30 hex is an ASCII "0" so "20" cast as I16 becomes 3230 hex.
    When type casting a string to a double, the string must conform the the IEEE 32 bit floating point representation, which is typically not easy to enter from the keyboard.
    See tha attached LabView 6.1 example.
    Attachments:
    TypeCastAndConvert.vi ‏34 KB

  • CUP: Mapping LDAP field to CUP Accounting Number field

    Hello CUP Experts,
    I have encountered a problem with the LDAP field mapping that I simply can't figure out on my own.
    We have a field named employeeNumber in our LDAP system, I want that employeeNumber to end up in the CUP field named Accounting Number and eventually hoping that this data will end up in the corresponding Accounting Number field in the back-end user master field.
    - This Accounting Number field is visible in the back-end system in SU01D on the Logon data tab in section Other Data.
    In the LDAP Mapping I have mapped a CUP field named ACCOUNTNR to the LDAP employeeNumber under additional fields.
    Is the CUP field named something else than ACCOUNTNR in CUP?
    Does anyone know of a solution to this problem or a similar problem?
    Thanks in advance,
    Stefan Ericsson
    +358-50-4867527

    Hi Stefan!
    Which issue exactly are you trying to solve:
    1. The LDAP field goes into the CUP request, but not into SU01
    2. The LDAP field does not even show up in CUP
    1) can be solved by maintaining Configuration - Field Mapping - Provisioning
    2) should work as you did it, alternatively you might be able to use a custom field (CAREFUL! once you use a custome field you'll never get it out of CUP again!)
    Kind regards,
    Frank.

  • GR Number fields should be mapped.

    Hi All,
    We need to have GR Number fields mapped in the report t-code ZMM085.  This is required for  Rejection invoice preparation
    Thanks & Regards.
    Mohamed.

    Hi,
    Ask you ABAPER to add the below
    Table MKPF - Field "XABLN" (GR/GI Slip No)
    If you want Material doc no  - Field form the same table "MBLNR"
    Hope it helps
    Thanks

  • Posting rule to be specified in target field of mapping area/Mapping prefix in Search string use?

    Posting rule change using search string configuration
    Hello Friends - I have defined Search string and specified Posting rule in target field of mapping area and set up done on Search search use tab.
    When I imported the Statement, based on text found on statement, Posting rule specified in Search string is determined.
    I see Search strings already maintained in my system that Posting rule is maintained in Search string use tab - Mapping prefix.
    My doubt is that if Posting rule can be maintained in any of the below:
    Either at Posting rule to be specified in target field of mapping area or Mapping prefix in Search string use?
    Thanks

    Hello Kalim - Thanks. I have already configured Search string the way you suggested me last time and imported the statement during testing. It is working fine.
    Can you pls tell me in which scenario "mapping prefix field" should be maintained. Now, I will try to understand this from F1 help.
    For Search Strings already defined in our System long ago that Posting rule is not specified in Target field in mapping field, but maintained Mapping prefix.
    Thanks,
    GT

  • How to execute a string formula and assign the result to a number field

    How to execute a string formula and assign the result to a number field
    Hi,
    we have a function that returns a string like this:
    '(45+22)*78/23'
    After we should calculate this string and assign the value to a numeric block field
    Example:
    k number(16,3);
    k:=fun1('(45+22)*78/23'); where fun1 execute and translate to number the string.
    Does exist a function like fun1 ??
    How can we do ?
    Regards

    Hello,
    this is the code that does the job:
    SQL> set serveroutput on
    SQL> DECLARE
    2 ch VARCHAR2(20) :='22+10' ;
    3 i NUMBER ;
    4 BEGIN
    5 EXECUTE IMMEDIATE 'select ' || ch || ' from dual' INTO i;
    6 dbms_output.put_line ('i = ' || TO_CHAR(i));
    7 END ;
    8 /
    i = 32
    Procédure PL/SQL terminée avec succès.
    SQL>
    just you have to do is to create a small stored function that take the string to calculate and return the number result
    Francois

  • Incompatable types:java.lang.String and phone number[]

    i am trying to run a search of an array but i can not get the Class to compile.
    The code is below:
    public class People
    private int numberSize;
    private PhoneNumber[] number;
    public People(int maxNumberSize)
    number = new PhoneNumber[maxNumberSize];
    numberSize = 0;
    public void addAPerson(String personName, String Number)
    PhoneNumber thePerson = new PhoneNumber (personName, Number);
    number[numberSize] = thePerson;
    numberSize++;
    private String findPhoneNumber(String person)
    int location = -1;
    for (int i=0; i<numberSize; i++)
    if (number.getNumber() == number)
    location = i ;

    Hi.
    you're using
    private String findPhoneNumber(String person)
    int location = -1;
    for (int i=0; i<numberSize; i++)
    if (number.getNumber() == number)
    location = i ;
    }Now - your method gets a name of a person, right?
    And you want to find that person's object in the array, and retrieve the phone number.
    Your first problem lies in -
    if (number.getNumber()==number)Can you see the problem? number is an array. You want to check the data of the object in the array's location i, but you're not doing it. So, first, you would change it to read
    if (number.getNumber()==number)
    Now - what are we doing here? You are getting the number of the person in place i in the array, by using the getNumber() method. Then you check if it equals to number.
    It won't be, because number is the array itself. And anyway - you are doing it the other way around, because you want to check if the object in place i in the array has the name that you got previously.
    So, you're looking at something like
    if (number.getName()==person)
    (person is the argument you got on calling the method, remember?)
    ok.
    Now you can go on with the rest.
    Nimo.

  • How to access Target field type, length from DT definition

    I have defined the XSD Type (String, Number, Date..) and the length in the DT for the Target message
    How do I access this info. in the mapping - so I can fill trailing spaces on String data, and zero-fill on Numeric data on the outbound XML MT ?
    Thanks in advance!

    Hi Satish,
    Thanks for this info.
    Exactly - I am trying to avoid Field length maintenance on every field level mapping.
    Currently, I have a  HashMap defined  as follows..
    empFieldLengthsMap = new HashMap();
    // emp field lengths 
    empFieldLengthsMap.put("Record_Type","1");
    empFieldLengthsMap.put("Movement_Type","1");
    empFieldLengthsMap.put("Company_Code","3");
    and then a UDF that yields me the size as follows from the map
    String out = "";
    out =  (String) empFieldLengthsMap.get( targetField );
    if (out == null || out.equals("") ) {
        out = "0";
    return out;
    HOWEVER, I cannot get the target field to input into this UDF!   Any ideas?
    Mustafa
    Edited by: Mustafa Dadawalla on Jul 15, 2010 11:44 AM

Maybe you are looking for

  • OIF with external IdP (Shibboleth) - certificate issue

    Hi, We are in the process of setting up Oracle Identify Federation(as SP) with an external IdP (shibboleth) for SSO, We got the meta data from the IdP and setup the Identify Provider in OIF with IdP meta data, The IdP got self sign certificate, When

  • Animated drop-down menu buttons won't respond onRelease

    I created a drop-down menu movie clip. Within it are multiple buttons which change their alpha values. I'm having an impossible time of getting the buttons to respond to an onRelease from the maintimeline. for instance: stop(); _root.menu_mc.print_bt

  • Photoshop CS6 Extended 64-bit Install error

    Everytime I try to install photoshop it says that I have a pirated or non-genuine copy. I have googled it and installed the adobe manager but it still doesn't fix the issue. The 32 bit version installs fine but the 64 bit version keeps giving me the

  • Sales order error - Only 0 EA of material 24 is available

    Hi friends, I got this message during sales order creation 'Only 0 EA of material 24 is available'. I checked for solutions for similar problem in this forum by search button. Could get hold of two unanswered question. I tried possibilities listed th

  • Setting the TabbedPane background color

    Hello everyone, The following code does not set the tabbedpane's background color: class LIB public static void main (String ... args) javax.swing.JTabbedPane t=new javax.swing.JTabbedPane(); t.setOpaque(true); t.setBackground(java.awt.Color.RED); t.