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.

Similar Messages

  • TIPS(63) : LONG DATA TYPE의 LENGTH 구하기

    제품 : PL/SQL
    작성날짜 : 1999-04-15
    TIPS(63) : LONG DATA TYPE의 LENGTH 구하기
    =========================================
    PURPOSE
    다음은 function 을 적용할 수 없는 long data type 의 length 를
    구하는 방법을 소개한다.
    Explanation
    Long DataType 에 대해 Length 를 구하려 하는 경우 다음과 같은 Error 가 발생한다.
    SQL> create table TOY
    2 (Toy_ID NUMBER, Description LONG);
    Table created.
    SQL> select LENGTH(Description) from TOY;
    select LENGTH(Description) from TOY
    ERROR at line 1:
    ORA-00932: inconsistent datatypes
    "Inconsistent DataTypes" Error 는 LONG DataType 으로 정의된 Column 에
    Function 을 적용하였기 때문에 발생한다.
    VARCHAR2 Type 을 사용하면 정상 처리할 수 있으나, Oracle7 에서는 VARCHAR2 는
    2,000 Characters 만 저장할 수 있으며, Oracle8 에서는 4,000 Characters 이다.
    Oracle8 에서는 Long Data 를 저장하기 위해 LOB DataType 을 사용할 수 있으며,
    LONG Data Type 은 Oracle7/Oracle8 모두 Support 되므로 LONG Type 에 대해
    Length 를 확인하는 방법을 알아본다.
    Example
    다음은 anonymous PL/SQL Block 을 통해 TOY Table 에서 LONG Column 의
    Length 를 구하는 Script 이다.
    1. Single Record 에 대한 예
    $ vi len_long.sql
    declare
    length_var NUMBER;
    cursor TOY_CURSOR is
    select * from TO;
    toy_val TOY_CURSOR%ROWTYPE;
    begin
    open TOY_CURSOR;
    fetch TOY_CURSOR into toy_val;
    length_var := LENGTH(toy_val.Description);
    DBMS_OUTPUT.PUT_LINE('Length of Description: '||length_var);
    close TOY_CURSOR;
    end;
    SQL> set serveroutput on
    SQL> @len_long
    Length of description : 21
    PL/SQL procedure successfully completed.
    2. Multiple Record 에 대해서는 cursor FOR Loop 를 사용한다.
    $ vi len_long.sql
    declare
    length_var NUMBER;
    cursor TOY_CURSOR is
    select * from TOY;
    toy_val TOY_CURSOR%ROWTYPE;
    begin
    for toy_val in TOY_CURSOR loop
    length_var := LENGTH(toy_val.Description);
    DBMS_OUTPUT.PUT_LINE('ID: '||toy_val.Toy_ID);
    DBMS_OUTPUT.PUT_LINE('Length of Description: '||length_var);
    end loop;
    end;
    SQL> set serveroutput on
    SQL> @len_long
    ID: 1
    Length of Description: 21
    ID: 2
    Length of Description: 27
    PL/SQL procedure successfully completed.
    Reference Document
    ------------------

    Hi Frank,
    I have the exact same scenario where I have huge data coming from DB and its a must that I provide pagination.
    I tried implementing as per the document but the pagination is not working for me too.
    Details of the scenario:
    1. I have a session facade method which takes a searchCriteria (custom criteria) as the input parameter and returns a list of entities.
    a)This is the first method that I call as a default method activity in my taskflow.
    b)The result of this method is dragged and dropped as table in the jsff. (*which created a methodIterator in pageDef unlike the documentation which has accessorIterator*).
    2. I declared 2 class level variables
    a) List<Entity> result: which is set once the method in the (1) above is executed.
    b) long size: which is also set from the method (1) above.
    3. I defined getEntityAll(int index,int range) method which returns List<Entity> as per the index and range using the result (class level variable populated by method in 1)
    4. I defined getEntityAllSize() method which returns the size (class level variable populated by method in 1).
    5. I created the datacontrol on top of the session facade bean.
    6. I made sure to change the DataControlHandler = "oracle.adf.model.adapter.bean.DataFilterHandler"
    7. I've set the rangeSize = 25 in my pagedef.
    Now when I run my page, my default method activity calls the method in (1) above and populates the table, with a scroll bar.
    Once I start scrolling, it calls my method in (1) but it does not call either of the methods (getEntityAll(int index,int range) & getEntityAllSize()) which adds the pagination behavior.
    After this, my table has just 25 rows and further scrolling does not invoke any of the methods from the session bean.
    I'm using jdev : JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923 (11.1.1.4.0).
    Please let me know if I am missing anything.
    Thanks in advance!
    Swapna

  • Change characterestic data type Length

    Hi All,
    Can anyone tell me, how i can change the caracterestic data type length. My characterestic got saved and activated. i can delete and recreate, but i would like to check whether there is any other way.
    Regards,
    Suresh Patipati.

    Hi,
    Unfortunately, a characteristic can be created with a maximum length of 18 characters. The only workaround would be to create an user-defined characteristic of length CHAR18, and then fill it with the first 18 positions of the source field by derivation.
    regards
    Waman

  • Data Type Length --- Urgent

    Hi,
    Can anyone tell me how bits/bytes is one character... Is there any function module to find out the length of a character / string / any other data types in terms of bits/bytes???
    Regards
    Jiku

    Hi Jiku,
    length of a character depends on your system settings, if the system is running on UniCode (2 Byte) or Non UniCode (1 Byte).
    Length of a string: http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb33d9358411d1829f0000e829fbfe/frameset.htm
    Length of other data type look into DESCRIBE syntax.
    Best regards,
      ok
    Message was edited by:
            Oliver Kohl

  • Key Figure data type/length differs in BI and source system

    Hi all.
    It is a strange question, but we need an explanation to our "strange" client. Why many fields which are DEC 13 in source system became CURR 09 in BI? DEC->CURR type switch seems reasonable, but not the length. I guess the shorter numeric field is the less precise it can keep...
    Does SAP give any explanation for that?

    Hi,
         If you are expecting the data to be aggregated in the cube and if the data is loaded by different requests, then in that case the data wouldnot be aggregated.
    EX:  CHAR1   CHAR2    CHAR3   CHAR4     CHAR5    CHAR6    CHAR7    KF1   KF2   KF3
             A               B              C            D        E              F             G          10     20    30
              A               B              C            D        E              F             G          10     20    30
    sUPPOSE IF THE ABOVE 2 ROWS OF DATA ARE GETTING LOADED IN THE SAME REQUEST, then you can expect the data to be aggregated and the o/p of the KFs will be 20, 40 and 60 respectively.
    In case the loading is done with separate requests, then your data will not be aggregated.
    This is becuse in the cube, Request ID (under the Data Package Dimension)    is one of the dimension and this differs when the requests are different.
    Regards
    Sunil

  • Data-type length

    Hi guys,
    While I creating the characteristic infoobject in datatype lengh.Maximum how much length I can give .

    Hi Mahendra,
    Check out this blog showing the screen shots of how to increase the infoobject length from 60 to about 240 chars wherever you hav longer descriptions,
    /people/sap.user72/blog/2006/05/27/long-texts-in-sap-bw-modeling
    Regards,
    Mani
    Message was edited by:
            Manikandan  A

  • Data type length mismatch -urgent pls

    In the following query i have done a comparision in where clause as follows
    OBJECTID         =   itab2-kdauf
    (char length = 90)  (char length =10)
    it says the error that required same same length.
    how to solve this problem, help me pls, very urgent.
    select OBJECTCLAS
           OBJECTID
           CHANGENR
           TABNAME
           TABKEY
           FNAME
           CHNGIND
           VALUE_NEW
           VALUE_OLD
           from cdpos into corresponding fields of table ipos
           for all entries in itab2
           where tabname = 'VBAP' and
                 fname = 'ABGRU' and
                 OBJECTID = itab2-kdauf.
    Regards
    Rajaram

    Hi Rajaram.
    If the KDAUF has to match with the First 10 characters of OBJECTID then do like this..
    select OBJECTCLAS
    <b>OBJECTID(10)</b>
    CHANGENR
    TABNAME
    TABKEY
    FNAME
    CHNGIND
    VALUE_NEW
    VALUE_OLD
    from cdpos into corresponding fields of table ipos
    for all entries in itab2
    where tabname = 'VBAP' and
    fname = 'ABGRU' and
    <b>OBJECTID(10) = itab2-kdauf.</b>
    <b>Reward if helpful</b>

  • How to save blob data (variable length string) in a customized table?

    Dear Friends
    I have written a very simple program to update table with 2 fields which
    looks as follows.
    ========================================================
    Table name ZTESTBLOBDATA
    Field         Key          Init    Data Element   Data Type  Length  
    ID          Checked                 ZID                 NUMC        2
    BLOB                                   ZBLOB           STRING       0
    =========================================================
    FOllowing is the sample program that I have written (Transaction SE38).
    =========================================================
    REPORT ZTESTBLOBPROG
    TABLES: ZTESTBLOBDATA
    data :  itab like ZTESTBLOPDATA occurs 1 with header line.
    select * from ztestblobdata into table itab.
    ztestblobdata-id  =   sy-dbcnt +1.
    ztestblobdata -blob = 'abcdefghijklmnopqrstuvwxyz.'.
    insert ztestblobdata.
    =========================================================
    When I try to save and activate the program, I get the following
    error message
    'ztestblopdata' must be a flat structure. You cannot use internal
    tables, strings, references, or structures as components.
    ==========================================================
    Using the data type STRING is a must since it is a variable length
    data which varies from few characters to few gig.
    How can go around this problem.
    Any feedback will be highly appreciated.
    PS. I have checked old postings on SDN, spoken to my ABAP contacts and also couple of instructors from SAP when I took XI courses but didn't get a satisfactory answers.
    Edited by: Ram Prasad on Oct 15, 2008 12:28 PM

    Thanks a lot for the response.
    The string that we are getting is from another application via netweaver XI integration and is being sent as a string which has to be saved in an SAP table. I am not sure if IDOC option will suit our needs, but will definitely read more about it.
    If there is any other suggestion of feedback I would appreciate it a lot.;
    Tks
    Ram

  • Help in Data types behavior

    HI All
    I have some data types that i dont know what are the behavior of them
    I need to know that for all the following data types
    Data types such as
    byte -  Unsigned 8-bit integer value
    guid - a 16-byte (128-bit) unique identifier value
    SByte -  a signed 8-bit integer value
    Int16     a  - signed 16-bit integer value
    Int32     a -  signed 32-bit integer value
    Int64     a -  signed 64-bit integer value
    Single - a floating point number with 7 digits precision
    I want to know if user want to create such of data types
    does he need to specify a length and decimal for example .
    for instance to string data type user dont need to specify anything
    but for char ne need to specify a length ,etc .
    I search for this data type in the help
    and i found this following links but it's help for this data types  .
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2fd9358411d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_crm/helpdata/en/fc/eb3138358411d1829f0000e829fbfe/content.htm
    Thanks
    Alex
    Edited by: Alex Dean on Oct 13, 2010 3:14 PM

    [These predefined types|http://help.sap.com/abapdocu_70/en/ABENBUILT_IN_TYPES_DICTIONARY.htm] are only ones available and can only be used when typing data element in DDIC , but not directly in ABAP program.
    Moreover what do you need such huge memory allocation for (i.e int64) ? I can't even imagine what max value would that be.
    If you want to create dynamically certain data type (local to program) use cl_abap_elemdescr=>get_YYY where YYY stands for data type you want the data object be typed with.
    Regards
    Marcin

  • ABAP Data type to XI data type mapping

    Hi,
    I am creating a message type in XI corresponding to a ABAP structure. There are couple of data types on the ABAP side (for example: RAW, QUAN, CURR CUKY, UNIT, NUMC etc) which i have no idea on what it should be mapped to on the XI side(xsd:string, xsd:token, xsd:int etc).
    Is there is any document on mapping from ABAP data type to XML data type ? if yes please send it across.([email protected])
    if no doc available, if some body could let me know what these ABAP data type would map on the XI side it would great.
    Best Regards,
    Kiran

    Hi Kiran,
    just some more background information to the data types CURR, CUKY, QUAN, UNIT:
    1) Each field of data type CURR must be assigned to a field of data type CUKY (the financial amount must be assigned to a currency) and each field of data type QUAN must be assigned to a field of data type UNIT (each quantity must have a dimension). If you want to know this assignment for your specific ABAP structure, you can find it using transaction SE11 with your ABAP structure and go to the tab <i>Currency/Quantity fields</i>. Here you find the information under <i>Reference table</i> and <i>Ref. field</i>.
    2) The default number of decimals for a field of data type CURR is 2, but this can be overwritten by the assigned CUKY field. You can check the actual number of decimals for a specific currency with transaction OY04. Here are all currency list that do <b>not</b> have 2 decimals.
    3) The default number of decimals for a field of data type QUAN is 3, but this can be overwritten by the assigned UNIT field. You can check the actual number of decimals for a specific unit with transaction CUNI. Click on <i>Units of measurement</i> (pick the correct dimension first), double click on your unit and you find the info in the field <i>Decimal places</i>.
    4) Depending on the data you receive your conversions can get quite tricky. Lets take as an example a field of type CURR. If you find the value 1000 in there, this would convert to 10.00 USD if the assigned CUKY field contains the value USD (US dollar). But the same value ca represent 1000 JPY (Japanese Yen) if the assigned CUKY field contains the value JPY. What i try to say is that the value in the field of type CURR alone does not give you the actual amount, you have to know the value of the CUKY field as well. Similar for QUAN and UNIT.
    Regards,
    Claus

  • Need to know data type which could take the result of - data TYPE RAW.

    Hello,
    I have the following Req:
    I need to make a RFC call from one SAP system to SAP Banking Services system to retrieve Contract ID.
    But the field contract id happens to be of TYPE RAW. (16 characters)
    So my problem is - I need to know the data type could take the result (contract id) of that RFC call.
    As the declration -> data: v_con_id Type RAW --> isn't a valid syntax.
    Please help in this regard.
    Thanks
    Anoop

    Hi  
    Check this link for RAW data type
    http://help.sap.com/saphelp_46c/helpdata/en/9d/ab1b0f055b11d2806500c04fadbaa1/content.htm
    As you have mentioned about the declration ->
    data: v_con_id Type RAW --> isn't a valid syntax.
    lets try another one assign a variable to RAW data TYPE and inturn assign v_con_id to that variable.
    var_raw(16)  type RAW,
    v_con_id type var_raw(16).
    I am though not sure just try out
    Revert for clarification
    Thanks and Regards
    Srikanth.P

  • What is the table to config Data Types in BI modeling

    Hi Friends
    I got a problem while assigning data types to info objects, It has't got all data types in their fields, i have to assign NUMC data type  to assign EE ID
    and assign different Data Types to different IO, will you please explain me how to config data types?
    Thanks & Regards
    Srinivas

    Hi,
    If the data types provide by SAP doesn't meet your requirement then you need to create a custom domain by copying the existing one and assign it to the key figure.
    Go through the below document for step by step procedure:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/209b2916-1cca-2d10-b39e-90df259764ef?QuickLink=index&overridelayout=true
    Regards,
    Vijay

  • Data types in pi 7.1

    Hi,
    when do you use core, free and aggregated data types?
    Thanks in advance
    regards,
    Ramya Shenoy

    This may help you,
    Introduction
    SAP delivers descriptions of Global Data Types (GDTs) as Enterprise Services Repository (ESR) content to customers. Customers can create their own data types in the ES Repository and use SAP GDTs.
    u2022
    Two ways of modeling data types are supported: Classical XSD style and new CCTS (Core Component Technical Specification) style.
    u2022
    Data types are classified as free-style (classical), core (atoms of CCTS modeling), or aggregate (complex CCTS)
    u2022
    Standard fault data types are no longer created automatically for every namespace (only when fault message type is created).
    u2022
    Additional functions in data type editor provide better support for structural changes (e.g., moving subtrees).
    More Information:
    SAP Help Portal: Global Data Types
    According to this, we distinguish between SAP Core Data Type and SAP Global Data Type. The SAP Core Data Type as well as the W3C Type (XSD type) does not have any business semantics. The SAP GDT has business semantics, it actually can be based on either a core or an aggregated DT.
    Free-style data types are directly based on the primitive data types, e.g., xsd:decimal. They do not need any further parameters to define themselves.
    More Information:
    u2022
    SAP Help Portal: Core Data Types and Aggregated Data Types Recommendation
    When to use free, core and aggregated data types
    Core data types are based on CCTS specification. Aggregated data types have business semantics, are based on CDTs, and are the basis for application-specific data types SAP-wide.
    Customers who adhere to the CCTS specification or have business scenarios dealing with SAP backend systems, should try and reuse the existing core and aggregated data types delivered by SAP. However, customers who wish to use their own schema for defining the data types, free-style data type is the preferred approach.
    While transferring the business scenarios from XI 3.0/PI 7.0 to PI 7.1, all the data types in the design objects will be transferred as free-style data types by default.
    While creating new objects in PI 7.1x, it is recommended to reuse the core and aggregated global data types provided by SAP.
    The detailed list of SAP delivered data types is available on SAP Developer Network (SDN) at ES Workplace.
    https://www.sdn.sap.com/irj/sdn/esworkplace
    Core data types
    Core data types are based on representation terms which are ISO 15000 5 (ebCCTS) compliant.
    SAP delivers core data types with the same name as representation terms. Applying the standard methodology simplifies the implementation of cross-company processes.
    CDTs are intermediate data types, and are a level above primitive data types like decimal, string, etc. They are defined by representation terms such as Amount, Identifier, etc. They are themselves not yet application-specific and are therefore referred to as context-free.
    While creating core data type based on any given representation term, we get an option to either use a default XSD type or reuse an existing core data types.
    For using the standard XSD types we select Type as u2018XSD Typeu2019
    For reusing already existing core data type we select Type as u2018Data Typeu2019 Prerequisite
    Define a dependency on the SWC SAP Global to reuse any of the standard core data types shipped by SAP.
    xample

  • Data type could be same base on source table for blank column

    We have an employee table as mentioned structure.
    EMPNO NUMBER(4),
    ENAME VARCHAR2(10),
    JOB VARCHAR2(9),
    MGR NUMBER(4),
    HIREDATE DATE,
    SAL NUMBER(7,2),
    COMM NUMBER(7,2),
    DEPTNO NUMBER(2)
    I want to create a view base on the same/exact structure data type-length. So is there any way we can define Data type while creating view.
    Actually, I need to create a view base on above structure but only want to get deptno and sum of salary column from emp table and rest of column will remain blank.
    Thanks

    Something like this???
    CREATE OR REPLACE VIEW v_tmp AS
         SELECT NULL empno,
                NULL ename,
                NULL job,
                NULL mgr,
                NULL hiredate,
                sal sal,
                dept_no
           FROM employees
       GROUP BY dept_no;
       Cheers,
    Manik.

  • Data Type change.

    Hi Expert.
    Please help me,   I have create Z table here create one Field like Below.
    APPROVED_STATUS
    CHAR
    1
    0
    Source
    then i was change pre-define data type length CHAR 1 to 10. as below
    APPROVED_STATUS
    CHAR
    10
    0
    Source
    Now When We save data through program 10 char is saved properly.
    Problem : When I Use SE16N t-code for changes related field data. At that time only 1 char inserted.
    Also Use SE14 for Regenerate Table Structure. but Result is none.
    Thanks & Regards.
    Pradip Patel.

    Hi Sachin Dandekar.
    I have already do this and also check Z table is Active.
    but result none.
    Thanks.
    Pradip Patel.

Maybe you are looking for

  • Apple HD 23" Screen

    I have a 23" Apple HD Screen connected to my Mac Mini (G4) and for unknown reasons and randomly the screen powers down and back up again. Any ideas why this might happen? Anyone else have this issue?

  • Convert from String to boolean ??

    hi everyone.. is there any way to convert from String (as a class) to boolean (as a primitive type) ? thunx

  • Do clients have to purchase contribute in order to update site?

    I am confused about Contribute. Do clients have to purchase it in order to update a Dreamweaver-based site, or does the web designer upload it to the server each time for every CMS-based site created? I am considering purchasing as an alternative to

  • PLD Purchase order 2

    Hi All, I'm trying to get the page number on the page header. Its workin fine for the current age but for the total pages, its showing xxx below the total pages. Fr ex. the number of pages are displayed as page 1/2 xxxxx How do I correct tis? Thanks,

  • Spoke with APPLE SUPPORT about iWeb1.1

    I contacted Apple support about the problem with iweb 1.1. Basically, I informed them of the discussion board and specifically to all the posts with the error messages. Seems like this was news to them. However, the support staffer was going to get i