Data types - integer element...

Hi all,
I have a little doubt!
I’m creating a data type and when I need to specify the length of my integer element with fraction values, I have two gaps to fulfill: first TotalDigits and the second is FractionDigits. My question is: If I have an integer (7, 2) my TotalDigits is equal to 9 or 10? I don’t know if coma (,) counts in TotalDigits?
Thanks in advance,
Ricardo.

Hi Ricardo,
          Yes, i agree its better to solve in mapping , you can use DateTrans, please see my replies in this thread and other replies you will get a good idea,
Conversion for String to Date?
And in case you are willing to learn about data types and xsd in SAP XI, Did you see this pdf,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/25c78f79-0801-0010-1e8d-c7f911cf25d1
Page 8 onwards.
Regards,
Anirban.

Similar Messages

  • User define function - data type integer

    All,
    I am defining a udf. I can not select integer data type for an argument.
    did anyone facer this issue.
    reg

    in UDF all the parameters are of the type String only. You can not change them. This is becaue, XI interanlly represents them as strings and maintains the Qs for contexts etc. So you have to type cast them manually to integers inside the UDF.
    VJ

  • Element VS attribute in IR when we create data type.

    hi guruz,
    when we make data type in  IR ,and while creating node ,according node we give type(Element ,attribue etc).
    what is diff between element and attribute.
    please help me
    warm regards.

    Hi,
    You create complex data types using elements and attributes in the XSD editor
    Element
    Create structured data types. Elements that have a type cannot contain subelements.
    Example Instance
    <myElem>
      <f1> Value of f1 </f1>
      <f2> Value of f2 </f2>
    </myElem>
    Attribute
    Add attributes to elements. Attributes cannot usually have subnodes.
    Example Instance
    <myElem myAttr="AttributeValue">
      Element Value
    </myElem>
    You can flag an attribute as optional or required in the Occurrence column. These values mean the same for elements with an occurrence of 0..1 or 1. The only difference between elements and attributes is that attributes cannot have subnodes and that the same attribute cannot be used more than once in an element.
    Hope this will clarify you.
    Regards
    Aashish Sinha
    PS : reward points if helpful

  • OWB 10 -  Integer data type

    Hi,
    I am using OWB 10.1.0.2 and using the file module. In the flat file structure i want to pick the data type -
    INTEGER(8) however it has no Integer type but has INTEGER EXTERNAL.
    I want to use INTEGER(8) how can I use it. OWB dows have that type in file mod.
    Thanks
    HB

    No Integer & Integer External are not the SAME.
    INTEGER specifies binary data, while INTEGER EXTERNAL specifies character data that represents a number. I am loading Large Binary data.
    So basically, INTEGER(n) is full-word binary integer, where n is an optionally supplied length of 1, 2, 4, or 8. Other imp thing is by default, INTEGER is treated as a SIGNED quantity
    When using the INTEGER(8) - it instruct SQL*Loader to process the integers as 8-byte quantities, as oppose to the default 4-byte quantities. Integer(8) support was introduced in Oracle 9i.
    So basically I need - INTEGER(8) to process large binary integers I8 and I don't see them in OWB 10.
    Any help is appreciated.
    Thanks
    Harman

  • Data type & length in SAP side!!

    Hi all,
    i am working in a R/3 -legacy scenario.
    In R/3 side there exist one table called YMD_ARTICLE...
    now i have to make data type based on the 7 fields of that table YMD_ARTICLE..
    and I have given the field name + type(vachar,timestamp,smaal int..etc..)+filed length....in the data type template...
    Now my question is...wat should i give in type ...for the field...
    i min can i use "xsd:string" for every field..... irespective of what given in the template....
    Do we need to declare the lenght,type...for fileds of a DATA TYPE in XI...
    if the DATA type is already there in the R/3 side.....
    Can any one explain me......
    thanks....

    hi,
    >>> i min can i use "xsd:string" for every field..... irespective of what given in the template....
    string can be used to handle other datatypes as well...but try using the same data type as in R/3...
    when u know e.g the value can only be integer then use data type integer... this will also not allow values other than integer to pass...
    hope it helps,
    regards,
    latika.

  • Checking data type

    I know there must be an easy way to do this. Say I want to
    have a function
    to which you can pass either an integer or a point, or maybe
    a list, either
    would work. How do I determine what the data type of the data
    I've been
    given is? In other words, I'd like to be able to say:
    if data.type = #integer then <do something>
    else if data.type = #point then <do something else>
    else if data.type = #list then <do yet another thing>
    etc.

    > "ilk" is the keyword you're looking for.
    Ah, I knew it'd be something simple like that. Thanks.

  • JSF 2.0: InputText element of type Integer have become pre-filled with '0'

    Hello to all!
    I have invested a lot of time, but unfortunately without success. I hope intensely that somebody of you can help me!
    I have an inputText element of type Integer, which pre-filled my input field with a '0' when I'm loading/starting my form.
    When I'm loading my form for the first time I would like to have an empty field and not a field, which is pre-filled with a '0'.
    Is this possible?
    I have some code:
    <h:inputText id="field" value="#{customerBean.field}" converter="javax.faces.Integer" validator="#{validatorBean.validateField}" />
    @ManagedBean(name = "customerBean")
    public class Customer
       private int field;
       public int getfield()
          return field;
       public void setfield(int field)
          this.field = field;
    @ManagedBean(name = "validatorBean")
    public class Validator
      public void validateField(FacesContext ctx, UIComponent comp, Object inValue) throws ValidatorException
         int value = (Integer) inValue;
         if (!(value >= 0 && value <= 100) && !(value == -9))
            throw new ValidatorException(new FacesMessage("Illegal entry! Legal values are: '0' to '400', '-9'.", null));
    }Thanks for helping!

    Hello!
    With "private Integer field" it works.
    I did not know that for any primitive data type it exists a corresponding object data type.
    Now I know. :-)
    Thanks for helping.

  • How to create a generic stack (whose elements can be of any data types) ???

    How do you define a "Stack" class that takes the Data type as its constructor argument ,and creates a new instance of that stack type ??? e.g. Stack("double") should create a stack of doubles ,and so on...
         Putting it in another way, how do you go about defining a Stack ,if you are not sure what data types will be pushed into it at runtime ??? Making a Stack of Objects doesn't seem the appropriate choice since, in that case also, you won't be sure of which of the "parseInt(),paresDouble(),Integer(),Double() etc." functions to retrieve the value.

    Write your own stack class which delegates push and pop calls to an internal instance of the java.util.Stack. In addition the class has an attribute of type Class. When the push method is invoked the object in the argument will be tested whether it is an instance of the class stored in the type attribute. If not an IllegalArgumentException should be thrown.
    Here is the minimal code for such a type-save stack (the main method shows its usage):
    import java.util.Stack;
    public class TypeSaveStack {
        private Stack _stack = new Stack();
        private Class _type;
        public TypeSaveStack(Class type) {
            _type = type;
        public void push(Object element) {
            if (_type.isInstance(element)) {
                _stack.push(element);
            } else {
                throw new IllegalArgumentException(element
                                  + " is not an instance of " + _type);
        public Object pop() {
            return _stack.pop();
        public static void main(String[] args) {
            TypeSaveStack doubleStack = new TypeSaveStack(Double.class);
            doubleStack.push(new Double(Math.PI));
            System.out.println(doubleStack.pop());
            try {
                doubleStack.push("foo");
            } catch (Exception e) {
                System.out.println(e);
    }

  • What's the data type when defining a KF to show an integer with a sign?

    We want show some days difference which should be an integer with either a positive or negative sign.  I used to design a KF with type of Number with "DEC - Counter or amount field with comma and sign" as the Data Type, but find it shows 25.000 if the day difference is 25 days.  We want to show it as 25 other than 25.000.  Then what type would we pick when defining the KF?  Use Integer as the type?  But we also want it to show the sign symbol.
    The type field is dimmed as long as the InfoObj. is activated that I have to remove this field.  I've delete all the data loaded in ODS, PSA and etc., and I have successfully remove this KF from InfoSource, but when I try to remove it from the ODS, always get the msg "Can't move/delete locked InfoObjects" even if the InfoObject is not locked (I've tried SM12 to delete all locked entries and also tried relog on, but not helpful).  If someone gives any idea, I would be very appreciated on how to remove this KF from ODS and also let me what type should I use when creating a new KF which only shows integer with a sign!
    Thanks

    hey Siggi,
    Now after I right click the ODS and select "Delete Data", the KF eventually gets removed from the ODS without any error, then I continue to delete this InfoObj. 
    However, when I run the InfoPackage to load data to the ODS, get a msg (see below in between two dashed lines):
    Syntax error in GP_ERR_RSDRO_UPDATE, row 1,210 (-> long text)
    Message no. RG102
    Diagnosis
    The data object "I_S_OLDDATA" does not have a component called "/BIC/Z_field".
    Where Z_field is the InfoObject we deleted.  With this error, that's even worse since that stops any data coming in!  How to get rid of this error that we can continue to load data?
    Thanks

  • Container element in BPM of type integer

    if i make a container element of type integer in my BPM, does it initiallize to some value

    Hi Pankaj,
    Check this out,
    http://help.sap.com/saphelp_nw2004s/helpdata/en/78/62373f58502e48e10000000a114084/content.htm
    Go to Assigning Values
    <i>At runtime, you can assign a value to a container element, for example to increase a counter or to append a message to a list of messages.</i>
    Also refer this
    http://help.sap.com/saphelp_nw2004s/helpdata/en/59/e1283f2bbad036e10000000a114084/frameset.htm
    <i>[Reward if useful]</i>
    Regards,
    Prateek

  • Validation on Integer data type attribute

    Hi,
    Working on jdev 11.1.1.3.0
    I have to do validation on integer data type like, it should not allow 13.20(only single digit numbers.).
    I am doing validation on AMImpl and converting the int into string
    String per=Row.getPer().toString();// here if user enter 13.20, then per containing only 13 so its not going to inside if.
    if(StringUtils.contains(per,"."))
    return false;
    Even i have written regular expression on my field but its working
    can any one help me.

    Hi,
    Why don't you use the af:convertNumber in your tag?
    Something like that:
    <af:inputText>
    <af:convertNumber>
    </af:inputText>
    Doc: http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e12419/tagdoc/af_convertNumber.html
    Regards,

  • Last 6 months of data based on date feild that is an integer data type

    Hi Folks
    I have a date column called 'YYYYMM' that is an Integer data type in YYYYMM format (eg. 201309). I want to return records from the last 6 months. 
    If the column was in a date format I could use something like 
    [YYYYMM] >DATEADD(M, -6, CURRENT_TIMESTAMP)
    Therefore I assume I need to do a CONVERSION of INT into a date format with something like
    CONVERT (DATE, [YYYYMM]
    But I get the message  "Explicit conversion from data type int to date is not allowed"
    Can someone suggested a work around?
    Many thanks Steve

    another way is this
    SELECT *
    FROM Table
    WHERE DATEADD(mm,(dateintfield%100)-1,DATEADD(yy,(dateintfield/100) -1900,0)) >=DATEADD(mm,DATEDIFF(mm,0,GETDATE())-6,0)AND DATEADD(mm,(dateintfield%100)-1,DATEADD(yy,(dateintfield/100) -1900,0)) < DATEADD(mm,DATEDIFF(mm,0,GETDATE()),0)
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Is it possible to get the element data type of a Queue from itself?

    Hi everyone,
    i have a Q that has a cluster as element data type.
    now when i want to enqueue
    i'll use bundle-by-name
    and for that i'd have to have my data-type present
    (long cable from whereever (possibly from where i obtained the Q).
    my question is,
    whether there is a method/property-node/something that allows me to
    wire the Queue Refnum into it and receive the element-data-type,
    so i can then input into the top of bundle-by-name?
    (i really dont want to have that cable all over the place)
    the reason i ask here is that
    the help for the outgoing Queue Refnum from the Obtain Queue method,
    shows the element-data-type and so i hope there might be a solution.
    thx for your time
    and cheers
    j
    Solved!
    Go to Solution.

    If I understand your question correctly, the answer is "Yes, it's very easy ..."
    The answer is "Preview Queue".  Here I create a Queue of some mysterious type (it's a cluster having a Thing and a Center, but you don't know that yet).  I take the Queue reference from whereever I can find it and pass it into Preview Queue Element.  I take the output and use it to define my cluster in Bundle by Name.
    Two caveats.  This copies the first element of the Queue into the cluster, so you probably need to be sure to define all of the elements of your cluster.  But what if the Queue is empty (as mine is, above, as I just Obtained it) -- well, that's why 0 is wired into the TimeOut input, since I do not want to wait "forever" (-1) for the empty Queue to have an element!  Turns out that even in this case, you still get the correct Cluster elements!
    Neat, huh?
    Bob Schor

  • Type of X equals which data elements or data type

    Hi ABAP Experts,
    I declareted variable type of X in my program.
    (Example TYPES: BEGIN OF T_XML_LINE,
             DATA(1024) TYPE X,
           END OF T_XML_LINE.)
    But I want to create structure with SE11 Tcode in my program. But I dont know Type of X equals which data elements or data type and length.
    Thanks for help.

    Hi,
    You can use the below data type in data dictionary
    RAW:   Uninterpreted byte string, maximum length of 255 in tables
    LRAW: Uninterpreted byte string of any length, but has to be declared with a minimum length of 256
    RAWSTRING: Uninterpreted byte string of variable length
    Regards
    Praveen

  • Counter KF with 1 & 0 and difference between data type NUMBER (DEC) and INTEGER (INT4)

    Hi,
    I need to create a counter kf which should populate 1 and 0 to this counter field. Please let me know is there any difference between data type
    NUMBER (DEC) and INTEGER (INT4).
    Please suggest.
    Thanks & Regards,
    Pavan kumar

    Hi Pavan,
    The basic difference between Number(DEC) and INT4 is its internal storage in system.
    For Number (DEC) - Value internally stored as packed number with 3 decimal places whereas INT 4 as 4 byte integer without decimal places.
    For counter KF, you can go for INT 4.
    Hope this helps.
    Thanks

Maybe you are looking for

  • Sdm  error while deploying Wd application

    hi all, I am facing an error while trying to deploy my wd application. Cannot login to the SAP J2EE Engine using user and password as provided in the Filesystem Secure Store. Enter valid login information in the Filesystem Secure Store using the SAP

  • How do I change a PDF with colored pages to all be white?

    I received a PDF that has colored pages.  How do I change them to all be white?  I have tried removing the background, but no background is found.  So, I tried to add a white background but that has not worked either.

  • Has anyone had trouble unlocking an iphone?

    Hi I had an issue with my iPhone 4 and had it replaced. When my contract with Vodafone ended I tried to take my number to Telstra prepaid but it was locked. My iami number was not recognized by Vodafone as Apple had not sent it on to them. What do i

  • Latest vendor name based on item

    hi when i do the following query , i am taking an eg of the item_no 1020101001 select msib.segment1,max(pha.approved_date) from po_headers_all pha, po_lines_all pla, po_vendors pv, mtl_system_items_b msib where pha.po_header_id = pla.po_header_id and

  • How to enter Power Values

    Hi Here is the Requirement, How to enter 10 to the power of -7 in a field.Is it possible, if so please let me know the answer. Thanks & Regards Chakrapani