Error to select data field of same length and same type.

Hi,
I have to select data from VBRK , VBRP and then from table CE4UCA1_ACCT based on the condition
AKTBO   IN SO_AKTBO           AND
PAOBJNR = LT_VBRK_VBRP-POSNR  AND
PASUBNR IN SO_RKBNR           AND
PRCTR   IN SO_PRCTR.
So while coding it gave a syntax error saying that PAOBJNR & POSNR need to be of same length. To solve this I chagned the decalaration of POSNR from "POSNR TYPE POSNR" to "POSNR TYPE RKEOBJNR" and this corrected the error.
Now I have to select data from KONV table based of the condition :-
Get data from KONV table.
  select knumv
         kposn
         stunr
         kwert
     into table lt_konv
     from konv
     for all entries in LT_VBRK_VBRP
     where knumv = LT_VBRK_VBRP-knumv and
           kposn = LT_VBRK_VBRP-posnr and
           stunr = '950'.
Here again it is throwing syntax error that LT_VBRK_VBRP-posnr should be of same type and same length. So please guide me how to solve this type of situation.
Thank You,
SB.

Hi,
select knumv
kposn
stunr
kwert
into table lt_konv
from konv
for all entries in LT_VBRK_VBRP
where knumv = LT_VBRK_VBRP-knumv and
***--- Change to
*kposn = LT_VBRK_VBRP-kopos and*
stunr = '950'. For 4.6c system
OR
Pass VBAK-KNUMV to KONV-KNUMV
VBAP-POSNR to KONV-KPOSN
Edited by: Raj on Jun 17, 2008 2:27 AM

Similar Messages

  • Error while selecting date from external table

    Hello all,
    I am getting the follwing error while selecting data from external table. Any idea why?
    SQL> CREATE TABLE SE2_EXT (SE_REF_NO VARCHAR2(255),
      2        SE_CUST_ID NUMBER(38),
      3        SE_TRAN_AMT_LCY FLOAT(126),
      4        SE_REVERSAL_MARKER VARCHAR2(255))
      5  ORGANIZATION EXTERNAL (
      6    TYPE ORACLE_LOADER
      7    DEFAULT DIRECTORY ext_tables
      8    ACCESS PARAMETERS (
      9      RECORDS DELIMITED BY NEWLINE
    10      FIELDS TERMINATED BY ','
    11      MISSING FIELD VALUES ARE NULL
    12      (
    13        country_code      CHAR(5),
    14        country_name      CHAR(50),
    15        country_language  CHAR(50)
    16      )
    17    )
    18    LOCATION ('SE2.csv')
    19  )
    20  PARALLEL 5
    21  REJECT LIMIT UNLIMITED;
    Table created.
    SQL> select * from se2_ext;
    SQL> select count(*) from se2_ext;
    select count(*) from se2_ext
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04043: table column not found in external source: SE_REF_NO
    ORA-06512: at "SYS.ORACLE_LOADER", line 19

    It would appear that you external table definition and the external data file data do not match up. Post a few input records so someone can duplicate the problem and determine the fix.
    HTH -- Mark D Powell --

  • Multi select date field

    Hi,
    Is there any idea how to combine multi select DATE field in the check-in screen?
    Thanks, eran.

    Dates are stored using a DATE field in the database in a database date format. As such, multiple values can not be stored in the same field, only single values.
    What's the use case?

  • Error while updating Date Field on Process Form.

    Hi,
    I am using java code to pre-pop date on the process form.First I used a java code whic took java.sql.date as input and returned the same java.sql.date.But it gave an error that:java.lang.String cannot be converted to java.sql.date.......
    So I changed the java code and now it takes string as input and returns java.sql.date. This code works fine for Pre-pop adapter and the date is populated on the process form.
    But when i use the same code in a Process Task adapter to update the date, then it gives the following error:
    ERROR [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.ADAPTERS - Class/Method: tcAdpEvent/updateDataSetValuePost encounter some problems: Adapter Execution Error: updateDataObjFieldValuePost: error updating UD_OID_USR_DATE_OF_BIRTH
    ERROR [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.ADAPTERS - Class/Method: tcAdpEvent/updateDataSetValuePost encounter some problems: {1}
    Can anyone suggest any method to update date field on process form?

    Hi Abhi,
    Can you tell me how you have implemented populating an UDF based on Prepopulation of another UDF. I have a similar kind of requirement. It would be great if you share your code or relevant part of it.
    Regards,
    Sunny Ajmera

  • Error  in mapping data fields using BODS Designer

    HI All
    I am trying to map the data from excel sheet to SAP ECC 5.0 using Business Objects data services Designer .
    However after mapping the data Fields when i try to do the Validation It is giving me the error message :
    u201D(Data Flow:New_data Flow) (Query:Query) FROM: The input schemas are not specified for <Query.Queryname >u201D
    If anybody has experienced the same error in the past Please let me know how to resolve this error.
    Thanks in Anticipation

    Hello,
    Please check your "From" tab whether it is having the input table name is there or not. also check the mapping tab it should gives you "Schema.field"  format.
    Kindly revert with your findings.
    thx
    Deep

  • Error in selecting Date

    Hi,
    I am not able to select any date except of this month.If I try to select it will give NAN in the date navigator field.
    Where ever i use Date Navigator in any project I am having the same issue. I am not able to select the date except present month.
    Example. Suppose today's date is 27 July 2009.
    I can select date from July 2009 only.
    If i  click Next or Previous I am getting Nan/Nan/Nan in the date navigator field or input field.
    I am using Java 1.5 and NetWeaver       7.0.1.
    Please provide me the solution.
    Thanks
    Unitarian Aryan

    Hi,
    "NaN" stands for "not a number". "Nan" is produced if a floating point operation has some input parameters that cause the operation to produce some undefined result. For example, 0.0 divided by 0.0 is arithmetically undefined. Taking the square root of a negative number is also undefined
    check the following PDF
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e012e6a2-8d21-2a10-1bb8-d9b606f3474c?overridelayout=true
    Calendar and Date with external representation

  • Error While using date fields in HIbernate Criteraia

    I am trying a sample applciation using Hibernate with JPA. I am using annotations to map database table with Java class.I am using org.hibernate.Criteria to form where clause. My code looks as follows:
    EntityManagerFactory emf = Persistence.createEntityManagerFactory("PERSISTANCE_UNIT");
    EntityManger em = emf.createEntityManager();
    Session session = em.getDelegate();
    Criteria criteria = session.createCriteria(MyDO.class)
    criteria.add(Restrictions.eq("myDO.date",myDO.getDate()));
    List list = criteria.list();
    I am searching the data base based on the date field (myDO is an instance of MyDO.class which contains the mapping to the data base table). While running the application first time after publishing to server, I am getting the following error. For subsequent running of the application I am not getting any error and the appliaction was running with actual results.
    JDBCException W org.hibernate.util.JDBCExceptionReporter logExceptions SQL Error: -181, SQLState: 22007
    JDBCException E org.hibernate.util.JDBCExceptionReporter logExceptions THE STRING REPRESENTATION OF A DATETIME VALUE IS NOT A VALID DATETIME VALUE
    org.hibernate.exception.DataException: could not execute query
         at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:77)
         at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
         at org.hibernate.loader.Loader.doList(Loader.java:2223)
         at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
         at org.hibernate.loader.Loader.list(Loader.java:2099)
         at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:94)
         at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)
         at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
    Can anybody help in fixing the problem.
    Thanks in advance.

    Resolved the issue by setting System date where expected

  • Error while inserting date field data in user nanaged cache group( program)

    Hi,
    I had usermanaged cachegroup, it is working fine as expected when I insert the record on the ttIsql prompt but when I try to insert the record programmatically (using c language ) it gives me the following error for date field
    pthread_kill(??, ??) at 0x90000000217d214
    praise(??) at 0x90000000217cc68
    raise.raise(??) at 0x900000000050c84
    abort() at 0x90000000007ac1c
    getExports.getPtrArrayIf() at 0x9000000030a16c0
    datetime.sbPatCmp() at 0x9000000033033ec
    cacheAgingAPI.hashString() at 0x900000003663eac
    unnamed block in ttBdbOraInputValue(0x7000000476efbb0, 0x73000000000073, 0x70000004866dea8, 0x113d8fdf0, 0xfffffffffffd250, 0x113d8fdf8, 0x113c1def0), line 690 in "bdbConvert.c"
    ttBdbOraInputValue(0x7000000476efbb0, 0x73000000000073, 0x70000004866dea8, 0x113d8fdf0, 0xfffffffffffd250, 0x113d8fdf8, 0x113c1def0), line 690 in "bdbConvert.c"
    bdbBufferStmt(0xf9000000d2845518, 0x834d0, 0x623e8b8, 0x73000000000073, 0x0, 0x0, 0x100000001, 0xfffffffffffd3f0), line 1290 in "bdbTblH.c"
    ttBDbTableHInsert(0xf9000000d2845518, 0x834d0, 0x623e8b8, 0x73000000000073, 0x0, 0x113c1def0), line 991 in "bdbTblH.c"
    sbTblStorLTupInsert(0x7000000415347c8, 0x700000083668090, 0x0, 0x0, 0xfffffffffffd928, 0x113c1def0), line 15648 in "table.c"
    eeDML.sbEeInsertEval(0x70000008385d7c0, 0x7000000833cff98, 0x0, 0x113c1def0), line 5035 in "eeDML.c"
    eeDDL.sbEeStmtEval(0x423ac4c8, 0x7000000833cff98, 0x113c1def0), line 12100 in "eeDDL.c"
    sbSqlCmdExec(0x70000008385d618, 0x0, 0x0, 0xfffffffffffe670, 0x0, 0x0, 0x113c1def0), line 4052 in "cmdExec.c"
    sb_sqlExec(0x113d27f68, 0x0, 0x0, 0xfffffffffffe840, 0x0), line 1470 in "sqlAPI.c"
    cxlSqlExecute(0x113d273d0), line 3436 in "cxlsql.c"
    stmtExecPart2(0x113d273d0), line 1372 in "vsexec.c"
    stmtExecute(0x113d273d0), line 948 in "vsexec.c"
    SQLExecDirect(0x113d273d0, 0xfffffffffffeb20, 0xfffffffdfffffffd), line 172 in "sqlexec.c"
    Can please guide me.
    Regards
    S

    I have tried but still I am not getting, can u check it out weather we have possibilites to work with DB links or shall i remove it.

  • Heterogeneous Connectivity: Error when select data from table

    Hi all,
    I use Heterogeneous Connectivity in Oracle 10g Linux to connect SQL server Database. I use FeeTDS ODBC driver. After configuration, I create database link in Oracle, Database link is active.
    But in SQLplus, I write: select * from all_catalog@DBL; It views all tables and views in sql server database.
    When I write: select * from AA@DBL; It produce error:
    ORA-00942: table or view does not exist
    [Generic Connectivity Using ODBC]Record AA has no fields. Loading failed
    ORA-02063: preceding 2 lines from DBL
    Please help me. Thank you very much!

    I am sorry, i did not go through the entire message of yours
    Does AA exist, does not contain columns, describe the table please.
    Maybe you should not try Select * from ,,,, rather Select specific fields.. Also if in the remote database, the field and tablename are written in lower case you may want to try
    select "field_name" , from "aa" etc
    ammar sajdi

  • Error when selecting date range in query designer

    hi all,
    when iam trying to select date range in query designer like 01.04.2009 to 10.04.2009 it has to select only that dates where as it is selecting all the dates in between those like 010.04.2009,01.03.2009,01.02.2009.why this is happening ,iam unable to understand.plzz help me in this issue.
    Vamshi D Krishna

    hi ,
    i have created a variable as you told but no use.still i have to select the dates manuallyone after the other.for more user friendly can i have a calander where i can select date ranges.is it posible to have calander for selecting date ranges instead selecting dates one by one,if posible i request you to give  the detailed steps.plzz guide me in this issue.thanks in advance.
    Vamshi D Krishna

  • Error while reading data for Virtual Infoprovider 0TCT_VC11 and 0TCT_VC12

    Hi ,
    The standard reports based on 0TCT_VC11 and 0TCT_VC12 are working fine in development system. When we moved the following objects to test system ,
    0TCT_VC11 - 0TCT_IS11 &  0TCT_DS11
    0TCT_VC12 - 0TCT_IS12 &  0TCT_DS12
    We are not able to view data either in the MP nor at the report level.We face the following issue
    There is still no data source assigned to VirtualProvider 0TCT_VC11
    Error reading the data of InfoProvider 0TCT_VC11
    Error while reading data; navigation is possible
    Can anybody help me on this.
    Regards,
    Lavanya.

    Hello Lavanya,
    Please activate the direct access for the virtual providers. Also note that it is only possible  to use the BI admin cockpit in a myself system.
    Please follow the below steps to activate the same:
    TX: RSA1 ->Infoproviders-> Business Information-> BI Statistics->select
    Virtual provider-> Go to context menu of the virtual cubes-> Activate
    Direct Access. ( Eg virtual cube name )
    Please also generate the reports by following the below steps:
    RSRT -> Query name -> Generate Report.
    Regards,
    Arvind

  • Error when extracting data from ETL - Missing messages and missing InfoIdoc

    Hi All,
    We are using BW 3.0 and extracting data from other source systems through Informatica Powercenter (ETL). The system is working fine but when we try to extract data on 31st Dec , we get the following error. Only this load gives the error and all the other load to other data targets are going fine. All the data are one-to-one mapped from ETL to BW.
    Error messages from Monitor -Status tab:-
       "InfoIdocs missing; external system
       Diagnosis :- InfoIDocs are missing. The IDocs are created in BW with non-SAP systems as source    
       systems that transfer the data and metadata to BW using BAPIs. Since the IDocs are missing, a   
       short dump in BW probably occurred.
       System response:  No selection information arrived from the source system"
    Error messages from Monitor -Details tab:-
        Missing message: Number of sent records,   Missing message: Selection completed
    Highly appretiate your suggestions.
    Vinod.CH

    Hi Rathy Moorthy,
    Thank you very much for your reply. The source system connections are OK and we are able to load data to other Data targets from ETL, we have issue only with this this particular load. The load extracts data and I have loaded the data from ETL to PSA and have checked the data content and it is correct. But when I update the same data to the target I get this error. I have also tried to update from PSA to target and also directly from ETL to target.
    Appretiate your suggestions.

  • How to select data from one nested table and into another nested table

    create or replace
    TYPE ctxt_code_rec as object
    ctxt_header varchar2(10),
    header_description varchar2(300),
    status varchar2(30),
    adjacent_code varchar2(300),
    adjacent_desc Varchar2(400),
    adjacent_flag varchar2(4000),
    adjacent_text_href varchar2(4000)
    create or replace
    type ctxt_code_table as table of CTXT_CODE_REC
    d_table ctxt_code_table ;
    v_tab ctxt_code_table ;
    Iam trying to select data from d_table to v_tab
    using and bulk collect into
    select m.*
    bulk collect into p_code_result
    from table(l_loop_diag_code_table1)m
    order by 1;
    Receiving error:
    ora 94007 : not enoughvalues
    Could you please let me know how to solve it?
    Thanks,
    in advance

    >
    create or replace
    TYPE ctxt_code_rec as object
    ctxt_header varchar2(10),
    header_description varchar2(300),
    status varchar2(30),
    adjacent_code varchar2(300),
    adjacent_desc Varchar2(400),
    adjacent_flag varchar2(4000),
    adjacent_text_href varchar2(4000)
    create or replace
    type ctxt_code_table as table of CTXT_CODE_REC
    d_table ctxt_code_table ;
    v_tab ctxt_code_table ;
    Iam trying to select data from d_table to v_tab
    using and bulk collect into
    select m.*
    bulk collect into p_code_result
    from table(l_loop_diag_code_table1)m
    order by 1;
    Receiving error:
    ora 94007 : not enoughvalues
    Could you please let me know how to solve it?
    >
    Not unless you provide the code you are actually using.
    There is no definition of 'p_code_result' in your post and you say you 'trying to select data from d_table' but there is no code that loads 'd_table' in what you posted.
    And the SELECT query you posted actuall selects from an object named 'l_loop_idag_code_table1' which isn't mentioned in your code.
    Post the actual code you are using and all of the structures being used.
    Also explain why you even need to use nested tables and PL/SQL for whatever it is you are really doing.

  • How to add the date field in the dso and info cube

    Hi all.
    I am new to bi 7. in the earlier version v hav to button to add the date field. but in the bi 7 der is no option so can any body tell me how to add the date field in the data targets
    Thanks & Regard
    KK

    my prob is solved
    KK

  • Initializu00EDng select options field with default values and with NO INTERVALS

    Dear All,
    I have used WDR_SELECT_OPTIONS technology within WD Abap.
    I also have added the fields which have to be taken into consideration.
    lt_range_table =
    wd_this->m_handler->create_range_table(
    i_typename = 'PLANT' ).
    wd_this->m_handler->add_selection_field(
    i_id = 'PLANT'
    it_result = lt_range_table
    i_read_only = read_only ).
    Can I assign two values to this field 'PLANT' whereby the user may take only these values.
    I mean kind of pre initializíng of this select options field with default values.
    Due to this handling it should be prevented that the user can give other values
    except this values.
    Additonally it should be fine whether it is possible to disable the second input field
    of this select options field like NO INTERVALS .
    Regard
    sas
    Regard
    sas

    wd_this->m_handler->add_selection_field(
    i_id = 'PLANT'
    it_result = lt_range_table
    I_NO_INTERVALS = 'X'
    i_read_only = read_only ).
    Pls check 'WDR_TEST_SELECT_OPTIONS' web dynpro component

Maybe you are looking for

  • FCE will not capture PAL footage

    Hi, I'm trying to make a video for some English friends with footage they sent to me which is in PAL format. Normally I use HDV, so I changed the setting under "Easy Setup" to DV-PAL, but FCE will not let me capture it. The camera reads it and displa

  • 10.5.2 Update questions

    Hello! I was just wondering if anyone has had any issues with CS2 and/ or FCP Studio after upgrading to 10.5.2. I've been running Leopard since its release and haven't come across any issues that I haven't been able to fix myself. I'm a little nervou

  • How to end a connection

    Hi there, we have a two way webcam + mic connection set up using FMIS. Any idea what code we use to add a function that kills the connection? Thanks!

  • Finding PreDefined Conditions from DesKI Reports using VB BO SDK

    Hi, I need to collect all objects and conditions used in DesKI Report files (.rep) and document them in a excel sheet. I am able to retrieve the Object information but I am facing promblem when i try to fetch the Predefined condtions used in the repo

  • Hal MacLean, can you help me

    I've created a dvd using a random play script which you posted somewhwere on the internet. The problem is that i have two many command lines in the script (48 tracks divided into 3 GPRM's) a lot of my other GPRM's are also used by other scripts i can