A problem about data type

Hi, all.
I tried to create a data object with string type in my process.
When I tried to choose type string, I found there were two types of string.
One was "string - http://schemas.xmlsoap.org/soap/encoding/" and the other was "string - http://www.w3.org/2001/XMLSchema".
My questin is that is there any difference between these two types of string?
If yes, what is the effect for each one?
Thanks a lot.

Hi Louis,
To put it the abstract way: These are two different types and you'd need to use the one which fits best to your project. Both are named 'string' and follow the same purpose, but as together with their namespace they are as different as boolean and integer.
"http://schemas.xmlsoap.org/soap/encoding/" is the type string that is coming from SOAP while "http://www.w3.org/2001/XMLSchema" is one of the atomic types XMLSchema knows. NetWeaver BPM needs to support both as both may occur in a customer implementation.
Nevertheless I would propose using the atomic XMLSchme type ("http://www.w3.org/2001/XMLSchema") as this would be the 'standard' one when someone asks for using a string in some XML document.
Hope that helps,
Martin

Similar Messages

  • Problem About Date Format in Dashboard

    Hi All:
    I still have problem about date format in dashboard and dashboard prompt. When I use cast(dealdate as date) in dashboard prompt(coloumn formula of deal_date) and filter view(In edit view of filter coloumn formula) Then It converts the date format from mm/dd/yyyy to yyyy-mm-dd But I want format in dd-mm-yyyy.
    ANd also one problem more that is when I use cast function in filter coloumn formula then how I give alias to it. Because it shows same like that cast(deal_date as date) on dashboard filter view.
    Pluzz help me to solve this problem
    Haroon

    Changing the ini files should change the date format. Have you amended the correct instances of the date format? In dbFeatures there is one for every ODBC connection.
    For example in my DBFeatures.INI
    [ DATA_SOURCE_FEATURE = ODBC_300 ]
    DATE_FORMAT = 'dd-mm-yyyy' ;
         TIME_FORMAT = 'hh:mi:ss' ;
         DATE_TIME_FORMAT = 'dd-mm-yyyy hh:mi:ss' ;
         IDENTIFIER_QUOTE_CHAR = '"';Also a file on the presentation side in OracleBI \web\Config called localedefinitions.xml.
    Inside that there appears to be defaults for localisations - maybe it is possible to amend your locale in the Administration settings of the dashboard.
    However, I haven't tried this sorry.

  • Explain about Data Types INT1, INT2, INT3, INT4 & NUMC

    could anyone explain about the data types and give examples.

    INT1: 1-byte integer between 0 and 255. The length is set to 3 places for this data type.
    INT2: 2-byte integer between -32767 and 32767. Fields of this type should only be used for length fields. These long fields are positioned immediately in front of a long field (type LCHR, LRAW). With INSERT or UPDATE on the long field, the database interface enters the length which was actually used in the length field. The length is set to 5 places for this data type.
    INT4: 4-byte integer between -2147483647 bis 2147483647. The length is set to 10 places for this data type.
    NUMC: Long character field in which only numbers can be entered. The length of this field is limited to a maximum of 255 places.
    Check this:
    http://help.sap.com/saphelp_nw70/helpdata/EN/cf/21f2e5446011d189700000e8322d00/frameset.htm
    Thanks...
    Shambhu

  • Problems with date types

    Hi guys,
    i have a question regarding oracle and java dates. In my database i have a column defined as oracle Date type.
    In my java application i need to compare these dates with the date took from the system.
    In order to do this i use the SQL function to_char which converts the oracle data type to the type string.After this, i use the java class DateFormat to convert the strings to the java date type.When i have java dates i can do operations on them easly. My question is how i can realize the opposite process.For example, when i have updated a date with java, what i can do is converting it to a string, but then how the date could be converted in Oracle date type? (The attribute in my entity object is defined as oracle date )
    Thank you

    ADF use oracle.jbo.domain.Date, so you need to convert from java.util.Date and vice versa.
    from oracle Date to java Date:
    new java.util.Date(((oracle.jbo.domain.Date) oDate).dateValue().getTime());
    from Java Date to oracle Date
    new oracle.jbo.domain.Date(new Timestamp(date.getTime()));
    If you are using JClient, this is a big problem. We have simmilar challenges in the lack of DatePicker until we implemented it ourselves:
    http://www.inpowersoft.com/inpowerforms/demo/viewlets/datePicker.htm
    -Don

  • Problem with data type 'STRING'

    Hi All,
    I have created a table named as zproject_mat and there is a field 'LONG_D' for long description and its size is not limited, so i used 'STRING' data type for this field. But the problem is: when i use this field in where condition with 'SELECT QUERY'  in my abap program , it throws me an error..'The field long_d is a long string , so it cannot be used in WHERE, ON, or having conditions'.
    Can anyone help me regarding this. I dont know which data type will be suitable in both conditions, LONG DESC AND SELECT QUERY.
    Regards
    Rahul

    Hi Rahul,
    As mentioned your Table name is 'zproject_mat' and there is a field 'LONG_D'.
    The field 'LONG_D' will have a Data Element associated with it. Create a new input Data Element & Domain 'ZLONG' of Type CHAR with Length = 1100. This will used in the code.
    For the Table 'zproject_mat', you need to need to break up your field as 'LONG_D1', 'LONG_D2', ........, 'LONG_D5' with Data Element as 'BAPI_MSG'.
    To INSERT data in table:
    In your code, you need to write your logic where the field 'LONG_D' is SPLIT into 5 words and saved in your table against the 5 fields.
    To SELECT data from table:
    In your code, again you need to write your logic where the field 'LONG_D' is SPLIT into 5 words as abaove and pass them to your SELECT query...
    SELECT SINGLE *
    FROM zproject_mat
    INTO wa_zproject_mat
    WHERE long_d1 = v_split1
          AND long_d2 = v_split2........
         AND long_d3 = v_split3.
    The limitation of a table length is 4096 whereas of a field is 255 to make it RFC compatible. Table/Structure fields that are passed via RFC for integration have this limitation and to maintain database standards, these limitations exist.
    Hope this helps.
    Regards,
    Pranav.

  • Problem with Data Type

    Hi,
    I am performing SAP Production Order Confirmations (CO11N transaction) using an xMII BLT. In the CO11N screen, SAP doesn't let you type character values in the field 'Yield'. It is the same thing in xMII BLT where I have defined 'Yield' as the Data Type 'Double'. However, when I pass a character value for the input field 'Yield' from an Xacute query, I get the message 'Confirmation of order XXXXXXXX saved'. This is not correct because you can't have character values for the field 'Yield'. When I display the respective confirmation in SAP, the 'Yield' quantity is being shown as '0'. This is a discrepancy. To sum up, when you do a confirmation in the SAP screen CO11N it doesn't let you type a character value in the filed 'Yield' however, when you pass a character value from an Xacute query it accepts it as '0'. Can somebody tell me how I can fix this problem? Thanks.
    Regards,
    V M.

    V_M,
    The message 'Confirmation of order XXXXXXXX saved' is created within SAP, not from xMII.  So the input filtering and error handling in the BAPI itself is not designed correctly.  This is not all that unusual with BAPIs.  Rather than simply testing performance in CO11N, I usually start with BAPI Explorer and use the single test functionality. 
    This is not a bug in xMII, but rather the normal (albeit, invalid) performance of the BAPI.  It doesn't cause real problems within SAP since it records 0 (zero) as the quantity confirmed (Yield).  The corrective action would be a custom BAPI and/or enter a CSS ticket for the BAPI.  Remember that the BAPIs rarely (more likely, never) fully reproduce the internal functionality of the SAP screens.
    SAP has error handling built into their transactions such as CO11N which prevent invalid entries.  You may have to do the same in your transaction, web page, etc.
    Hope this helps,
    Mike

  • Problem with data types

    Hello gurus!!
    We're having problems starting our WF because a requirement asked that all the prices must have decimals, so we changed the data types from number to dec, and the following error then appeared:
    Excepcion CREa20:Error al ejecutar el metodo Inicia WorkFlow del proxy WorkFlowHPProxy / java.rmi.RemoteException: Service call exception; nested exception is:      java.lang.Exception: Call to returned http code 500 (Internal Server Error) with unacceptable content type (text/html; charset=utf-8).<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode> soap:Server </faultcode><faultstring xml:lang="en"> RABAX occurred on server side </faultstring><detail><sap:Rabax xmlns:sap="http://www.sap.com/webas/710/soap/runtime/abap/fault/generic"><MESSAGE>The current statement requires a character-type data object.</MESSAGE><SYMSGID></SYMSGID><SYMSGTY></SYMSGTY><SYMSGNO></SYMSGNO><SYMSGV1></SYMSGV1><SYMSGV2></SYMSGV2><SYMSGV3></SYMSGV3><SYMSGV4></SYMSGV4><SYREPID>CL_SWF_CNT_SERVICE============CP</SYREPID><SYTCODE>                    </SYTCODE><SYDYNNR>0010</SYDYNNR><SYUNAME>UG_CREA20HP</SYUNAME><SYMANDT>135</SYMANDT><SYLANGU>E</SYLANGU><SYECODE>558</SYECODE><SYHOST>sapnwd01</SYHOST><SYSYSID>NWD</SYSYSID><SYOPSYS>SunOS</SYOPSYS><SYDBSYS>ORACLE</SYDBSYS><SYSAPRL>700</SYSAPRL><SYXPROG>SAPLTX_HANDLER</SYXPROG><SYXFORM>                              </SYXFORM><SYDATUM>20090805</SYDATUM><SYUZEIT>114750</SYUZEIT><SYETEXT>RABAX_STATE</SYETEXT><ERRORCODE>OBJECTS_NOT_CHARLIKE</ERRORCODE><PATHTRANS>/sap/bc/srt/rfc/sap/ZWAPI_CREA20_HP</PATHTRANS><MESSAGE>The current statement requires a character-type data object.</MESSAGE><ERRORCODE>OBJECTS_NOT_CHARLIKE</ERRORCODE></sap:Rabax></detail></soap:Fault></soap:Body></soap:Envelope>
    Any ideas would be appreciated.
    Regards IA

    Looks like you have a custom function that is returning this error. Why don't you try using a character type element instead of numerical or decimal.
    Derrick
    Banks & Company, LLC

  • Plugout paramter problem with data types

    Hello everyone,
    i have a problem passing parameters between webdynpro components. i am trying to pass paramters with type which is not a generic data type but an rfc data type.
    i am getting an error does someone has an idea hot to do it or how to pass a record and not just one veriable
    thanks
    asher

    Hi,
    This can be done using external context mapping. Refer the tutorials section.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/tutorial%20on%20server-side%20eventing%20-%2014.htm">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/tutorial%20on%20server-side%20eventing%20-%2014.htm</a>
    Regards,
    Mahesh K.

  • Problem about number types

    hi,
    we are having problem on number types on odp.net.
    we add a number(6) type column to a table by alter command without a default value and there is no problem.
    when we query the table we get a short type (in c#) in datatable for the column .
    but if we add the column by giving a default value then odp.net returns a decimal for the column.
    to avoid to make anybody confused i can say it is independent from the scale,,
    whether you define a number(6) or number(1) , there is a decimal type in datatable.
    i think it's a bug, is there any suggestions/comments for this scenario??
    ** we can overcome it by following these steps , but it is not a suitable way for every case.
         - first define the column without default value,
         - then assign the appropriate value to the column for each row
         - then define the default value for column
    thanks in advance
    [email protected]

    Hi,
    I dont reproduce your complaint. I dont have 2.102.2.20 handy, I'm testing 2.102.4.0, and .net 3.5.
    Here's exactly what I'm running, and the resutls.
    Greg
    CODE
    ========
    using System;
    using System.Data;
    using Oracle.DataAccess.Client;
    class Program
        static void Main(string[] args)
            Console.WriteLine("drop table num_tab;");
            Console.WriteLine("create table num_tab (col1 number(1) default 0 not null );");
            Console.WriteLine("hit enter");
            Console.ReadKey();
            getDS();
            Console.WriteLine("alter table num_tab add (columnX number(1) default 0 not null );");
            Console.WriteLine("hit enter");
            Console.ReadKey();
            getDS();
        private static void getDS()
            using (OracleConnection con = new OracleConnection("data source=orcl;user id=scott;password=tiger;metadata pooling=false"))
                con.Open();
                using (OracleDataAdapter da = new OracleDataAdapter("select * from num_tab",con))
                   DataSet ds = new DataSet();
                   da.Fill(ds);
                   foreach (DataColumn dc in ds.Tables[0].Columns)
                       Console.WriteLine(dc.ColumnName + ": "+ dc.DataType);
    }RESULTS
    ==========
    drop table num_tab;
    create table num_tab (col1 number(1) default 0 not null );
    hit enter
    COL1: System.Int16
    alter table num_tab add (columnX number(1) default 0 not null );
    hit enter
    COL1: System.Int16
    COLUMNX: System.Int16
    Press any key to continue . . .

  • About data type and cur/unit

    Hello Gurus,
         (1) in flat file data source,  all the data type are char originally.  should I change them to corresponding data type ?
        (2) for cur/unit, how to set ?
    Many thanks,
    Frank Zhang

    Hi...
    (1) in flat file data source, all the data type are char originally. should I change them to corresponding data type ?
    It depends on ur requirement...........Specify the data types according to the fields that you want to upload from the flat file.........If the data for your flat file was staged from an SAP system..... there are no problems when transferring data types into BI...........Please note that you might not be able to load the data types DEC and QUAN for flat files with external data............ Specify type CHAR for these data types in the transfer structure........... When you load...... these are then converted into the data type...... which you specified in the maintenance of the relevant InfoObject in BW.........
    2) for cur/unit, how to set ?
    U can define the unit/currency in the key figure............ Either the key figure has a fixed unit/currency  or the unit/currency  comes from a characteristic....... If the key figure does not have a fixed unit you can determine this........
    Suppose u r creating a keyfigure Amount.........In the Type/unit Tab........in Type/Data Type choose Amount..........Then in the Data Type ...........Choose Currency..........If u hav any Fixed Currency.....eg : EUR............put it in the firld.......Fixed currency.........otherwise if variable..........then put 0CURRENCY in the field Unit / currency..................same setting can be done for Quantity also.......
    Hope this helps.......
    Regards,
    Debjani........

  • What is it about data types of local variables?

    Hey there!
    I'm trying hard to access the booleans, whose refnums got stored into an array. As the example show, everything's fine unless I start using local variables: I can access the data in the topmost FOR loop. As soon as variables come into play, it seems as if I have to explicitly typecast the data. Is it just me? There has to be a less complicated way... can anybody give me a hint?
    Kind regards,
    Severin
    Attachments:
    data types of local variables.jpg ‏96 KB
    data types of local variables_7.11.vi ‏39 KB

    Hi Severin,
    The output from that property node is of variant data type. You can convert it to boolean by using the Variant to Data VI. See attached example
    Sarah
    Applications Engineer | National Instruments | UK & Ireland
    Attachments:
    data types of local variables_7.11.vi ‏41 KB

  • Problem about Valuation Type For MRP

    Dear all,
    I am managing our materials by valuation type.
    But, when I run MRP for these materials, I do not know which specific about valuation type.
    Can you help me?
    Thanks all
    TINDT

    As per my best knowledge in standard system you cannot force MRP to manage (plan) your goods based on valuation type.
    In case of configurable materials you can do separate planning:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/75/504853a39a11d191930000e8a5f6e6/frameset.htm
    Edited by: Csaba Szommer on Aug 5, 2010 10:06 AM
    (If you are saying that the valuation type is not defaulted, please reade OSS note 15297)
    Edited by: Csaba Szommer on Aug 5, 2010 10:10 AM

  • Problems with Date Type in Table View

    Hello.
    Following problem:
    I have to make a Table View with some data. One Colum is Type of Date!
    Now I used Table View Iterators to change the backgroundcolor of some cells.
    Sample:
    WHEN 4.
         DATA: col4_text TYPE REF TO CL_HTMLB_TEXTVIEW.
        CREATE OBJECT col4_text.
        col4_text->text = M_ROWREF->DATE1.
           If  mod_vari = 1.
            p_style = 'cellDesign:POSITIVE'.
         ENDIF.
    But now I have the problem that this columm´s date is not formated: 20050112 but I want it this way: 01.12.2005.
    How can I handle this problem? newbie

    This one throw me for a loop as well coming from a non SAP background but here's a nice little code sample that you will find to be quite useful all the world over
    data: lt_date type string,
          lt_tmp type string,
          lt_sep type string.
    lt_sep = '.'
    * You already have your date but for the example not
    * so this is why I use the lt_date
    lt_date = '20050112'.
    CONCATENATE
      lt_date+4(2)
      lt_date+6(2)
      lt_date+0(4)
    INTO lt_tmp SEPARATED BY lt_sep.
    * Now you can give lt_tmp to your output of your cell
    For the cell output you can double check the various weblogs on the subject "Iterator".
    You can play around with the lines after CONCATENATE to put the date in the format you want.

  • Problem  about date

    hello ,
    i write a sp which having input parameter as date
    i passed following date format
    '01/06/2007'
    but it gives
    ora-01843 : not a valid month error
    i want to provide date in this format so how can i solve this error
    help me ?
    Thanks in advance
    pankaj

    > i want to provide date in this format
    Why not use:
    my_proc( TO_DATE('01/06/2007','DD/MM/YYYY') );(or 'MM/DD/YYYY' if you mean the US format). I would personally prefer
    my_proc( DATE '2007-06-01' );Why does the format matter?

  • A problem about nvarchar type

    Hello all,
    I have a field which type is nvarchar (100). When I insert English characters to this column, it works whell. But when I insert Chinese, the limitation is more less than 100. Who can tell me why?
    Thanks a lot!

    The limitation value of 100 actually means 100 bytes. With 'normal' characters, such as ASCII english, this translates into 100 characters.
    However, chinese characters usually take up more than a single byte each (unicode), so your character limit value will probably be half (50), perhaps even less...

Maybe you are looking for