Error while Appending a  work-area in a table

Hi Experts,
Requirement :- I want to append a row in the the table but the work-area with which i am appendign the values is of different type than the target so i am getting error .
Code :- APPEND WA_SOURCE TO RESULT_PACKAGE
Error :-  A line of RESULT_PACKAGE not mutually convertible in a Unicode program..........
Is there any way to append the one-by one values in the RESULT_PACKAGE fields.
As i cn't change the type of my source work-area.
Don't we have something like :-
Append Result_package
Result_package_field1 = wa-field1
Result_package_field2 = wa_field2.....
PLEASE HELP
Regards,
rg
Edited by: R G on Mar 26, 2009 10:34 AM

Hello,
I can't change the Work-area type....
Can't we appened a line in any table by providing direct values??????
You DONOT have to change the TYPE of your Work Area. You create a new work area.
You can try something like this:
DATA:
WA_RESULT_PACKAGE LIKE LINE OF RESULT_PACKAGE.
MOVE CORRESPONDING WA_SOURCE TO WA_RESULT_PACKAGE.
APPEND WA_RESULT_PACKAGE TO RESULT_PACKAGE.
CLEAR WA_RESULT_PACKAGE.
Or Else,
DATA:
WA_RESULT_PACKAGE LIKE LINE OF RESULT_PACKAGE.
MOVE WA_SOURCE-F1 TO WA_RESULT_PACKAGE-F1.
MOVE WA_SOURCE-F2 TO WA_RESULT_PACKAGE-F2.
MOVE WA_SOURCE-F3 TO WA_RESULT_PACKAGE-F3.
APPEND WA_RESULT_PACKAGE TO RESULT_PACKAGE.
CLEAR WA_RESULT_PACKAGE.
BR,
Suhas
Edited by: Suhas Saha on Mar 26, 2009 10:44 AM

Similar Messages

  • Error while initializing the work area SYST

    Hi Experts,
    we did a kernel upgrade in NW 2004 from Kernel 640 to Kernel 700.
    OS : UNIX DB: Oracle
    At Os Level SAP and Oracle started.
    when we try starting the SAP,
    it shows the following error : error while initializing the work area SYST
    Thanks in Aavance,
    Satish T.

    > Did you get the solution for this? if so, could you please share the same with me. I also got same error after installing the SAP. From OS level everything looks fine but getting the same error while trying to login from SAP GUI as you reported.
    The answer is simple: Use the proper kernel
    If this is a new installed system and you can't logon please post the logfile dev_w0 here.
    Markus

  • Getting an error while activating a planning area "Enter values for planning horizon From and planning horizon To for the storage time profile level"

    Dear S&OP community,
    I am getting following error while creating a planning ares in a newly installed sandbox. "Enter values for planning horizon From and planning horizon To for the storage time profile level".
    This what I did...
    1) Created new attributes and master data objects and activated them successfully.
    2) Time profile created and activated successfully
    3) Trying to create planing area by assigning  time profile in step 2 and assigned master data from step1..Unable to save the data and system returns 
    this error - "Enter values for planning horizon From and planning horizon To for the storage time profile level"
    My understanding is time profile needs to be active  but doesn't have to have values...
    Any help is appreciated.
    Thanks,
    Krishna

    YS,
    Here are my time profile settings
    Level       Name          Display Horizon - Past  Display Horizon - Future
    1             Monthly     -6                                       11         
    2             Quarterly     -2                                       3
    3             Yearly        -1                                       2
    Time profile is active and but time profile data is not loaded
    Thanks,
    Krishna

  • Error while appending to table BAPISDITM

    Hi all,
    While appending a Z field to the  table -BAPISDITM i am getting an error message.
    Error Message "Field name ZZBRIDGE can already exist in a subsequent system"
    Please suggest.
    Regards,
    Neslin.

    how to update data to zfileds of table VBEP through BAPI_salesorder_change
    userexit_move_field_to_vbkd effects when run via BAPI_SALESORD_CHANGE
    Sales order required quantity field in BAPI
    Please give me reward points..

  • The work area (or internal table) "IT_ZLE_LAGERPLANUNG" is not flat,

    ***Data declaration
    TYPES : BEGIN OF t_zle_lagerplanung,
               SEl,                               "stores which row user has selected
               kdauf TYPE zle_lagerplanung-kdauf,
               kdpos TYPE zle_lagerplanung-kdpos,
               etenr TYPE zle_lagerplanung-etenr,
               papiermaschine TYPE zle_lagerplanung-papiermaschine,
               runnr TYPE zle_lagerplanung-runnr,
               prio  TYPE zle_lagerplanung-prio,
               werk TYPE zle_lagerplanung-werk,
               durchmesser TYPE zle_lagerplanung-durchmesser,
               breite TYPE zle_lagerplanung-breite,
               anzle TYPE zle_lagerplanung-anzle,
             occupied TYPE zle_lagerplanung-text30,
             free TYPE zle_lagerplanung-text30,
               lgpla TYPE zle_lagerplanung-lgpla,
               lgtyp  TYPE zle_lagerplanung-lgtyp,
               art TYPE zle_lagerplanung-art,
               anzhoehe TYPE zle_lagerplanung-anzle,
             zindicator TYPE zle_lagerplanung-text30,
               fa TYPE zle_lagerplanung-fa,
               field_style  TYPE lvc_t_styl, "FOR DISABLE
    END OF t_zle_lagerplanung.
    I am getting the data in internal table by using thiis select statement.
      SELECT kdauf kdpos etenr papiermaschine runnr prio werk durchmesser breite
             anzle lgpla lgtyp art anzhoehe fa
        FROM zle_lagerplanung INTO CORRESPONDING FIELDS OF TABLE it_zle_lagerplanung
       WHERE kdauf IN s_kdauf
    "     AND kdpos = p_kdpos
          AND KDPOS IN s_kdpos
         AND werk = p_werks.
    But while updating the particular field in ztable using this statement
          UPDATE zle_lagerplanung from table it_zle_lagerplanung.
    it is giving syntax error
    "The work area (or internal table) "IT_ZLE_LAGERPLANUNG" is not flat, or
    contains reference or internal tables as components. components.
    components. components. components."
    Could any one help me out how to resolve this problem....
    Thanks in advance

    Hi Shyamal,
    lvc_s_styl is a structure so you will get the same error.
    for your select and update statement you dont need field "field_style".
    regards
    rea

  • Difference between work area and internal tables.

    Hi  I wanna know the difference between work area and internal tables.
    what happend if i give with out header line in internal table.
    also how to assosiate work area to internal table in that scenario.

    Hi Balaji..
    The internal table is an ABAP runtime object which has two parts the Body and the header.
    Whereas a work area cannot have a body.. It is mere a field or group of fields which can hold values at runtime..
    In the SAP higher versions mySAP ERP, the use of tables with header line is made obsolete.. But there is absolutely no problem with the same..
    Just think that when you define an internal table with occurs or with header line statement, the system automatically creates a workarea with this table, using which you can access the contents in the bosy of tyhe table.. You can read a record from the table body to this header or add a record in the header to the internal table body..
    When you work with a table ITAB without a header line, you can not use statements like READ TABLE, APPEND, INSERT etc without giving an explicit work area..
    Suppose i have an internal table like:
    DATA : itab TYPE STANDARD TABLE OF t001.
    This table will not have a header with it.
    If you will use APPEND itab. The compilor will give error.
    Here i will create a work area with same structure of the table.
    DATA : e_wa TYPE t001.
    Now i will write:
    APPEND e_wa TO itab.
    READ TABLE itab INTO e_wa WITH KEY xxxxxx
    LOOP AT itab INTO e_wa...           etc..
    In a better approach we use Field symbols with such tables, instead of structures
    FIELD-SYMBOLS: <fs_itab> TYPE t001.
    So,
    LOOP AT itab ASSIGNING <fs_itab>
    READ TABLE itab ASSIGNING <fs_itab> etc.. However we can not use field symbols in few cases..
    I hope this will help you..
    Thanks and Best Regards,
    Vikas Bittera.
    **Points for usefull answers**

  • The type of the database table and work area (or internal table)...

    Hello
    I am trying to use a database and select all records from it and store them into an internal table.
    My code:
    Select * from xixi_dbcurrency into table gt_currency.
    The error:
    "The type of the database table and work area (or internal table) "GT_CURRENCY" are not Unicode-convertible . . . . . . . . . .     "
    Any suggestions?
    Thank you

    Hi Thomas,
    Thank you for your inputs above.
    But as you suggested is we use INTO CORRESPONDING FIELDS OF TABLE then it resolve the error.
    But I have below piece of code:
    DATA:    it_new_source TYPE STANDARD TABLE OF _ty_s_sc_1,
                  wa_source TYPE _ty_s_sc_1,
                  wa_new_source TYPE _ty_s_sc_1,
                  ls_target_key TYPE t_target_key.
    SELECT * INTO CORRESPONDING FIELDS OF TABLE it_new_source
           FROM /bic/afao06pa100
           FOR ALL ENTRIES IN SOURCE_PACKAGE
           where /bic/fcckjobno = SOURCE_PACKAGE-/bic/fcckjobno
           and /bic/fcckjitid = SOURCE_PACKAGE-/bic/fcckjitid.
    But since this is reading into corresponding fields of table the data load from one DSO to other DOS is running for long more that 15 hours and still not getting completed and giving dump.
    So if I switch the search to below:
    SELECT * FROM /bic/afao06pa100
       INTO TABLE it_new_source
           FOR ALL ENTRIES IN SOURCE_PACKAGE
           where /bic/fcckjobno = SOURCE_PACKAGE-/bic/fcckjobno
           and /bic/fcckjitid = SOURCE_PACKAGE-/bic/fcckjitid.
    Then I am getting below error:E:The type of the database table and work area (or internal table) "IT_NEW_SOURCE" are not Unicode convertible.
    Can you please advice on this, as performance need to improve in start routine code.
    Thank You.

  • DAC error while assembling custom subject area as Assembly Persistence Err

    Hi Gurus
    I created a custom task using custom tables. And registered the same in infa and dac as well and then created a custom subject area and then tried assembling the same with a single custom fact got the following err. can anyone help me out of this..
    Custom_Test_Item_test - - error!
    MESSAGE:::Error while persisting sa steps.
    EXCEPTION CLASS::: com.siebel.analytics.etl.execution.ExecutionPlanInitializationException
    ::: CAUSE :::
    MESSAGE:::Error while inserting a record!
    EXCEPTION CLASS::: com.siebel.etl.gui.core.RecordManipulationException
    Any help will be much appreciated

    Hi Gurus
    I created a custom task using custom tables. And registered the same in infa and dac as well and then created a custom subject area and then tried assembling the same with a single custom fact got the following err. can anyone help me out of this..
    Custom_Test_Item_test - - error!
    MESSAGE:::Error while persisting sa steps.
    EXCEPTION CLASS::: com.siebel.analytics.etl.execution.ExecutionPlanInitializationException
    ::: CAUSE :::
    MESSAGE:::Error while inserting a record!
    EXCEPTION CLASS::: com.siebel.etl.gui.core.RecordManipulationException
    Any help will be much appreciated

  • Error while starting disp+work

    Hello Friends,
    I am getting the following error while starting thesystem.Please help me in solving the problem. I have seen this problem has happened for many people but no solution provided. Points rewarded for helpfull answers.
    error from dev_disp:
    kernel runs with dp version 224(ext=109) (@(#) DPLIB-INT-VERSION-224)
    length of sys_adm_ext is 360 bytes
    SWITCH TRC-HIDE on ***
    ***LOG Q00=> DpSapEnvInit, DPStart (00 4072) http://dpxxdisp.c 1239
    shared lib "dw_xml.dll" version 95 successfully loaded
    shared lib "dw_xtc.dll" version 95 successfully loaded
    shared lib "dw_stl.dll" version 95 successfully loaded
    shared lib "dw_gui.dll" version 95 successfully loaded
    shared lib "dw_mdm.dll" version 95 successfully loaded
    rdisp/softcancel_sequence : -> 0,5,-1
    use internal message server connection to port 3900
    Tue Feb 05 16:11:12 2008
    WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 4 seconds
    ***LOG GZZ=> 1 possible network problems detected - check tracefile and adjust the DNS settings http://dpxxtool2.c 5355
    MtxInit: 30000 0 0
    DpSysAdmExtInit: ABAP is active
    DpSysAdmExtInit: VMC (JAVA VM in WP) is not active
    DpIPCInit2: start server >INLD50044432A_NSP_00 <
    DpShMCreate: sizeof(wp_adm) 6328 (904)
    DpShMCreate: sizeof(tm_adm) 3605136 (17936)
    DpShMCreate: sizeof(wp_ca_adm) 1200 (60)
    DpShMCreate: sizeof(appc_ca_adm) 1200 (60)
    DpCommTableSize: max/headSize/ftSize/tableSize=500/8/528040/528048
    DpShMCreate: sizeof(comm_adm) 528048 (1048)
    DpSlockTableSize: max/headSize/ftSize/fiSize/tableSize=0/0/0/0/0
    DpShMCreate: sizeof(slock_adm) 0 (96)
    DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
    DpShMCreate: sizeof(file_adm) 0 (72)
    DpShMCreate: sizeof(vmc_adm) 0 (1280)
    DpShMCreate: sizeof(wall_adm) (22440/34344/56/100)
    DpShMCreate: sizeof(gw_adm) 48
    DpShMCreate: SHM_DP_ADM_KEY (addr: 04E60040, size: 4205552)
    DpShMCreate: allocated sys_adm at 04E60040
    DpShMCreate: allocated wp_adm at 04E61A28
    DpShMCreate: allocated tm_adm_list at 04E632E0
    DpShMCreate: allocated tm_adm at 04E63310
    DpShMCreate: allocated wp_ca_adm at 051D35A0
    DpShMCreate: allocated appc_ca_adm at 051D3A50
    DpShMCreate: allocated comm_adm at 051D3F00
    DpShMCreate: system runs without slock table
    DpShMCreate: system runs without file table
    DpShMCreate: allocated vmc_adm_list at 05254DB0
    DpShMCreate: allocated gw_adm at 05254DF0
    DpShMCreate: system runs without vmc_adm
    DpShMCreate: allocated ca_info at 05254E20
    DpShMCreate: allocated wall_adm at 05254E28
    MBUF state OFF
    DpCommInitTable: init table for 500 entries
    Tue Feb 05 16:11:13 2008
    EmInit: MmSetImplementation( 2 ).
    MM global diagnostic options set: 0
    <ES> client 0 initializing ....
    <ES> InitFreeList
    <ES> block size is 1024 kByte.
    Using implementation view
    <EsNT> Memory Reset disabled as NT default
    <ES> 127 blocks reserved for free list.
    ES initialized.
    rdisp/http_min_wait_dia_wp : 1 -> 1
    ***LOG Q0K=> DpMsAttach, mscon ( INLD50044432A) http://dpxxdisp.c 11663
    Tue Feb 05 16:11:14 2008
    DpStartStopMsg: send start message (myname is >INLD50044432A_NSP_00 <)
    DpStartStopMsg: start msg sent
    CCMS: alert/MONI_SEGM_SIZE = 0 monitoring and alerting switched off.
    DpMsgAdmin: Set release to 7000, patchlevel 0
    MBUF state PREPARED
    MBUF component UP
    DpMBufHwIdSet: set Hardware-ID
    ***LOG Q1C=> DpMBufHwIdSet http://dpxxmbuf.c 1050
    DpMsgAdmin: Set patchno for this platform to 95
    Release check o.K.
    Tue Feb 05 16:11:54 2008
    ERROR => W0 (pid 2280) died http://dpxxdisp.c 14318
    ERROR => W1 (pid 2088) died http://dpxxdisp.c 14318
    ERROR => W2 (pid 1504) died http://dpxxdisp.c 14318
    my types changed after wp death/restart 0x9f --> 0x9e
    ERROR => W3 (pid 3396) died http://dpxxdisp.c 14318
    my types changed after wp death/restart 0x9e --> 0x9c
    ERROR => W4 (pid 2328) died http://dpxxdisp.c 14318
    my types changed after wp death/restart 0x9c --> 0x98
    ERROR => W5 (pid 3316) died http://dpxxdisp.c 14318
    my types changed after wp death/restart 0x98 --> 0x90
    ERROR => W6 (pid 3776) died http://dpxxdisp.c 14318
    my types changed after wp death/restart 0x90 --> 0x80
    DP_FATAL_ERROR => DpWPCheck: no more work processes
    DISPATCHER EMERGENCY SHUTDOWN ***
    increase tracelevel of WPs
    NiWait: sleep (10000ms) ...
    NiISelect: timeout 10000ms
    NiISelect: maximum fd=1677
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    error from dev_w0
    C Try to connect (DEFAULT) on connection 0 ...
    C *** ERROR => Connect to database failed, rc = -10757 (XUSER error (the USERKEY is unknown))
    http://dbsdbsql.cpp 112
    C Try to connect (SQLOPT) on connection 0 ...
    C *** ERROR => Connect to database failed, rc = -10709 (Connection failed (RTE:Database name is missing))
    http://dbsdbsql.cpp 136
    B ***LOG BV3=> severe db error -10709 ; work process is stopped dbsh#2 @ 1199 dbsh 1199
    B ***LOG BY2=> sql error -10709 performing CON dblink#3 @ 431 dblink 0431
    B ***LOG BY0=> Connection failed (RTE:Database name is missing) dblink#3 @ 431 dblink 0431
    M ***LOG R19=> ThInit, db_connect ( DB-Connect 000256) http://thxxhead.c 1426
    M in_ThErrHandle: 1
    M *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) http://thxxhead.c 10240
    M
    M Info for wp 0
    M
    M stat = WP_RUN
    M waiting_for = NO_WAITING
    M reqtype = DP_RQ_DIAWP
    M act_reqtype = NO_REQTYPE
    M rq_info = 0
    M tid = -1
    M mode = 255
    M len = -1
    M rq_id = 65535
    M rq_source =
    M last_tid = 0
    M last_mode = 0
    M semaphore = 0
    M act_cs_count = 0
    M csTrack = 0
    M csTrackRwExcl = 0
    M csTrackRwShrd = 0
    M control_flag = 0
    M int_checked_resource(RFC) = 0
    M ext_checked_resource(RFC) = 0
    M int_checked_resource(HTTP) = 0
    M ext_checked_resource(HTTP) = 0
    M report = > <
    M action = 0
    M tab_name = > <
    M vm = no VM
    M
    M *****************************************************************************
    M *
    M * LOCATION SAP-Server INLD50044432A_NSP_00 on host INLD50044432A (wp 0)
    M * ERROR ThInit: db_connect
    M *
    M * TIME Tue Feb 05 16:11:15 2008
    M * RELEASE 700
    M * COMPONENT Taskhandler
    M * VERSION 1
    M * RC 13
    M * MODULE thxxhead.c
    M * LINE 10439
    M * COUNTER 1
    M *
    M *****************************************************************************
    M
    M PfStatDisconnect: disconnect statistics
    M Entering TH_CALLHOOKS
    M ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M *** ERROR => ThrSaveSPAFields: no valid thr_wpadm http://thxxrun1.c 720
    M *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed http://thxxtool3.c 260
    M Entering ThSetStatError
    M ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0)
    M Entering ThReadDetachMode
    M call ThrShutDown (1)...
    M ***LOG Q02=> wp_halt, WPStop (Workproc 0 2280) http://dpnttool.c 327
    Rgds,
    Dinesh

    Hi Bidwan,
            I tried executing the command for XUSER, Executed successfully. Still i am getting the same error..
    Error logs for dev_w0
    M  calling db_connect ...

    C  DBSDBSLIB : version 700.08, patch 0.095 (Make PL 0.95)
    C  MAXDB shared library (dbsdbslib) patchlevels (last 10)
    C    (0.095) MaxDB DBSL patch collection 1 2007 (note 1014270)
    C    (0.082) MaxDB DBSL patch collection 3 2006 (note 991258)
    C    (0.079) MaxDB DBSL patch collection 2 2006 (note 984406)
    C    (0.068) MaxDB DBSL patch collection 1 2006 (note 962708)
    C    (0.051) DB50 perm block defect (note 934194)
    C    (0.046) ADBC: invalid data when fetching cursor with hold (note 925337)
    C    (0.045) Signal 11 during creation of BIA index (note 920743)
    C    (0.038) MaxDB DBSL patch collection 2 2005 (note 908602)
    C    (0.034) Livecache unicode connect (use SDK 7.6.0 b11) (note 901576)
    C    (0.028) Disable LVC codepage checking (note 882788)


    C  Loading SQLDBC client runtime ...
    C  SQLDBC SDK Version : SQLDBC.H  7.6.0    BUILD 002-121-083-965
    C  SQLDBC Library Version : libSQLDBC 7.6.2    BUILD 014-123-152-175
    C  SQLDBC client runtime is MaxDB 7.6.2.014 CL 152175
    C  SQLDBC supports new DECIMAL interface : 0
    C  SQLDBC supports VARIABLE INPUT data : 1
    C  INFO : SQLOPT= -I 0 -t 0 -S SAPR3
    C  Try to connect (DEFAULT) on connection 0 ...
    C  *** ERROR => Connect to database failed, rc = -10757 (XUSER error (the USERKEY is unknown))
    [dbsdbsql.cpp 112]
    C  Try to connect (SQLOPT) on connection 0 ...
    C  *** ERROR => Connect to database failed, rc = -10709 (Connection failed (RTE:Database name is missing))
    [dbsdbsql.cpp 136]
    B  ***LOG BV3=> severe db error -10709    ; work process is stopped [dbsh#2 @ 1199] [dbsh    1199 ]
    B  ***LOG BY2=> sql error -10709 performing CON [dblink#3 @ 431] [dblink  0431 ]
    B  ***LOG BY0=> Connection failed (RTE:Database name is missing) [dblink#3 @ 431] [dblink  0431 ]
    M  ***LOG R19=> ThInit, db_connect ( DB-Connect 000256) [thxxhead.c   1426]
    M  in_ThErrHandle: 1
    M  *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c   10240]
    I would like to mention that no SIDadm user has been created in windows user account. But installation was successfull
    Rgds,
    Dinesh

  • JBO-25017: Error While Creating a new entity row for Table Name

    Hi,
    I am facing an issue in Jdeveloper when trying to display records on a custom OAF page.
    Exception Details._
    oracle.apps.fnd.framework.OAException: oracle.jbo.RowCreateException: JBO-25017: Error while creating a new entity row for Emp.
    *     at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)*
    *     at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1064)*
    *     at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2651)*
    *     at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2459)*
    *     at OA.jspService(OA.jsp:48)*
    *     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)*
    *     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)*
    *     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)*
    *     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)*
    *     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)*
    *     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)*
    *     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)*
    *     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)*
    *     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)*
    *     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)*
    *     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)*
    *     at java.lang.Thread.run(Thread.java:534)*
    *## Detail 0 ##*
    java.lang.InstantiationException
    *     at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30)*
    *     at java.lang.reflect.Constructor.newInstance(Constructor.java:274)*
    *     at java.lang.Class.newInstance0(Class.java:308)*
    *     at java.lang.Class.newInstance(Class.java:261)*
    *     at oracle.jbo.server.EntityDefImpl.createBlankInstance(EntityDefImpl.java:1048)*
    *     at oracle.jbo.server.ViewRowImpl.createMissingEntities(ViewRowImpl.java:1532)*
    *     at oracle.jbo.server.ViewRowImpl.init(ViewRowImpl.java:236)*
    *     at oracle.jbo.server.ViewDefImpl.createBlankInstance(ViewDefImpl.java:1050)*
    *     at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:1007)*
    *     at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:2643)*
    *     at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:2547)*
    *     at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:1891)*
    *     at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:1745)*
    *     at oracle.jbo.server.QueryCollection.get(QueryCollection.java:1257)*
    *     at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:2850)*
    *     at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2495)*
    *     at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2357)*
    *     at oracle.jbo.server.ViewRowSetIteratorImpl.getRowCountInRange(ViewRowSetIteratorImpl.java:526)*
    *     at oracle.jbo.server.ViewRowSetImpl.getRowCountInRange(ViewRowSetImpl.java:2692)*
    *     at oracle.jbo.server.ViewObjectImpl.getRowCountInRange(ViewObjectImpl.java:6361)*
    *     at oracle.apps.fnd.framework.server.OAViewObjectImpl.getRowCountInRange(OAViewObjectImpl.java:1849)*
    *     at oracle.apps.fnd.framework.webui.OAWebBeanBaseTableHelper.adjustViewRange(OAWebBeanBaseTableHelper.java:206)*
    *     at oracle.apps.fnd.framework.webui.OATableHelper.prepareNavigatorProperties(OATableHelper.java:1493)*
    *     at oracle.apps.fnd.framework.webui.OATableHelper.preRender(OATableHelper.java:2133)*
    *     at oracle.apps.fnd.framework.webui.beans.table.OATableBean.render(OATableBean.java:623)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.laf.oracle.desktop.HeaderRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderIndexedChildren(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)*
    *     at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.oracle.desktop.PageLayoutRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.BodyRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.apps.fnd.framework.webui.beans.OABodyBean.render(OABodyBean.java:375)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.partial.PartialPageUtils.renderPartialPage(Unknown Source)*
    *     at oracle.apps.fnd.framework.webui.OAPageBean.render(OAPageBean.java:2933)*
    *     at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2641)*
    *     at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2459)*
    *     at OA.jspService(OA.jsp:48)*
    *     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)*
    *     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)*
    *     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)*
    *     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)*
    *     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)*
    *     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)*
    *     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)*
    *     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)*
    *     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)*
    *     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)*
    *     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)*
    *     at java.lang.Thread.run(Thread.java:534)*
    java.lang.InstantiationException
    *     at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30)*
    *     at java.lang.reflect.Constructor.newInstance(Constructor.java:274)*
    *     at java.lang.Class.newInstance0(Class.java:308)*
    *     at java.lang.Class.newInstance(Class.java:261)*
    *     at oracle.jbo.server.EntityDefImpl.createBlankInstance(EntityDefImpl.java:1048)*
    *     at oracle.jbo.server.ViewRowImpl.createMissingEntities(ViewRowImpl.java:1532)*
    *     at oracle.jbo.server.ViewRowImpl.init(ViewRowImpl.java:236)*
    *     at oracle.jbo.server.ViewDefImpl.createBlankInstance(ViewDefImpl.java:1050)*
    *     at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:1007)*
    *     at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:2643)*
    *     at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:2547)*
    *     at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:1891)*
    *     at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:1745)*
    *     at oracle.jbo.server.QueryCollection.get(QueryCollection.java:1257)*
    *     at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:2850)*
    *     at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2495)*
    *     at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2357)*
    *     at oracle.jbo.server.ViewRowSetIteratorImpl.getRowCountInRange(ViewRowSetIteratorImpl.java:526)*
    *     at oracle.jbo.server.ViewRowSetImpl.getRowCountInRange(ViewRowSetImpl.java:2692)*
    *     at oracle.jbo.server.ViewObjectImpl.getRowCountInRange(ViewObjectImpl.java:6361)*
    *     at oracle.apps.fnd.framework.server.OAViewObjectImpl.getRowCountInRange(OAViewObjectImpl.java:1849)*
    *     at oracle.apps.fnd.framework.webui.OAWebBeanBaseTableHelper.adjustViewRange(OAWebBeanBaseTableHelper.java:206)*
    *     at oracle.apps.fnd.framework.webui.OATableHelper.prepareNavigatorProperties(OATableHelper.java:1493)*
    *     at oracle.apps.fnd.framework.webui.OATableHelper.preRender(OATableHelper.java:2133)*
    *     at oracle.apps.fnd.framework.webui.beans.table.OATableBean.render(OATableBean.java:623)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.laf.oracle.desktop.HeaderRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderIndexedChildren(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)*
    *     at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.oracle.desktop.PageLayoutRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.BodyRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.apps.fnd.framework.webui.beans.OABodyBean.render(OABodyBean.java:375)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.renderContent(Unknown Source)*
    *     at oracle.cabo.ui.BaseRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.BaseUINode.render(Unknown Source)*
    *     at oracle.cabo.ui.partial.PartialPageUtils.renderPartialPage(Unknown Source)*
    *     at oracle.apps.fnd.framework.webui.OAPageBean.render(OAPageBean.java:2933)*
    *     at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2641)*
    *     at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2459)*
    *     at OA.jspService(OA.jsp:48)*
    *     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)*
    *     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)*
    *     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)*
    *     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)*
    *     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)*
    *     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)*
    *     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)*
    *     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)*
    *     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)*
    *     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)*
    *     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)*
    *     at java.lang.Thread.run(Thread.java:534)*
    Procedure Followed is :_
    1. Created a VO using a select Query on custom table.
    2. Created an AM and attached the above created VO to this.
    3. A custom OAF page is created and above created AM is attached to the main region.
    4. created an Advanced Table in the region and all the columns in table are mapped to their respective ones in the VO query.
    5. Tried both the cases - Generate VOImpl and Generate VORowImpl.
    6. In the controller class , Page Request Object for AM is created and trying to invoke method in AM.
    7. In AM a method is written for creating an object for VO and executeQuery() operation is done.
    As per the Solution given in the other threads.... included also WHO columns in the VO Query.
    Please provide us the solution as soon as possible.
    Thanks in advance.
    Sri Harsha

    Try the [OA Forum|http://forums.oracle.com/forums/forum.jspa?forumID=210] !
    Timo

  • Getting Incorrect data type error while trying to do a CAST in table

    Getting an error while trying to compile the following piece of code
    CREATE OR REPLACE PACKAGE BODY A_pkg AS
    FUNCTION A(O_error_message IN OUT varchar2)
    RETURN BOOLEAN IS
    --Declaring the local variables and CURSORs used in the program unit
    L_attrib_tbl CFA_SQL.TYP_attrib_tbl;
    cursor c1 is
    select list_first1.number_11
    from TABLE (CAST (L_attrib_tbl AS "CFA_SQL.TYP_attrib_tbl")) list_first1;
    BEGIN
    L_group_id = '22'
    IF L_merch_type_value = 'G' OR L_merch_type_value = 'I' THEN
    CFA_SQL.QUERY_ATTRIB(L_attrib_tbl,
    L_group_id) ;
    END IF;
    open C1;
    Fetch C1 into L_number;
    close C1;
    return true;
    END A;
    END;
    Also pasting the Spec for CFA_SQL which contains TYP_attrib_tbl
    TYPE TYP_attrib_rec IS RECORD
    group_id CFA_ATTRIB_GROUP.GROUP_ID%TYPE,
    varchar2_1 VARCHAR2,
    number_11 number(10,0));
    TYPE TYP_attrib_tbl is TABLE of TYP_attrib_rec INDEX BY BINARY_INTEGER;
    The error is coming in the line
    cursor c1 is
    select list_first1.number_11
    from TABLE (CAST (L_attrib_tbl AS "CFA_SQL.TYP_attrib_tbl")) list_first1;
    with the error as Invalid data type pointing to CFA_SQL.TYP_attrib_tbl as invalid, but I have initialized L_attrib_tbl as of that datatype only. Ahy help would be greatly appreciated.
    Regards,
    Joydeep

    Hi Kelly,
    There is no data that is entered in that period.The data will be entered for that period next month.
    POV is also not set to that period,but still the problem persists.
    Thanks

  • Work area and internal table

    hi friends,
    Please let me know when do we use work area and when do we use internal table.
    Thanks in advance
    Tina Wilson

    Work areas are used with internal tables.  For example if you have an internal table defined like this.
    data: itab type table of mara.
    This internal table can hold many rows of data, right?  SO say you need to read this data.  Well you will need to LOOP or READ the internal table, since this internal table has no header line(please to put the read data), you need to have a work area to put the data into.
    <b>data: wa like line of itab.</b>
    Loop at itab <b>into wa</b>.
    endloop.
    Now if you defined the internal table with a header line, there is no reason to have the work area and you can just do the same like this.
    data: itab type table of mara <b>with header line</b>.
    Loop at itab.
    endloop.
    It is now best practice to use work areas instead of header lines because in ABAP OO, header lines are not allowed.
    Regards,
    Rich Heilman

  • Difference between Field symbols and work area for Internal tables

    Hi,
    In ECC versions we all know that we need to declare the internal tables without headerline, and for handling the internal tables we need to use exclusive work areas.
    Currently i have an issue that we have been asked to use field symbols instead of work areas...can any one help me how to use the field symbols and also let me know how it will improve the performance of the program..
    Thanks and Regards,
    Kathir

    Hi
    DATA: WA TYPE ITAB.
    LOOP AT ITAB INTO WA.
    IF WA-FIELD = .....
    ENDIF.
    ENDLOOP.[(code]
    FIELD-SYMBOLS <WA> TYPE ANY.
    LOOP AT ITAB ASSIGNING <WA>.
    ENDLOOP.
    Now the problem is you can't know the name of the fields of the table at runtime, so you can't write:
    IF <WA>-FIELD = .....
    ENDIF.
    Anyway you can create a field-symbols strcturated like the table:
    [code]FIELD-SYMBOLS <WA> TYPE ITAB.
    LOOP AT ITAB ASSIGNING <WA>.
      IF <WA>-FIELD = .....
      ENDIF.
    ENDLOOP.
    I don't know which are the differences for the performance between to use a field-symbol and to use a structure as work-area.
    The differnce between the field-symbols and work-area is the field-symbol is assigned directly to the record, so u don't need to do a MODIFY statament to change something:
    LOOP AT ITAB INTO WA.
      WA-FIELD =
      MODIFY ITAB FROM WA.
    ENDLOOP.
    LOOP AT ITAB ASSIGNING <WA>.
      <WA>-FIELD =
    ENDLOOP.
    These two pieces of abap code do the same action, so probably the field-symbol improve the performance because it do an access directly to the record without to use an external structure as workarea.
    Max

  • Error while creating Frame work Purchase order

    Hi Gurus,
    We are trying to implement Frame work order process with following configurations.
    1)Item cat  B for acc assingment Y
    2)Allow  item catg B with acc *** K and Y.(How to config this in SPRO)
    So when i am creating a PO adopted through Purchase Req (account ***  K and item cat B) i am getting error message "Pricing Error :Mandatory condition NAVS is Missing".So how do i configure this pricing process.
    Also when i am creating a Frame work order do i need to select the document type both in PO and PR as frame work order or NB order type will work with these config of Item cat B and acc *** Y?
    When i am creating a PR or PO with doc type frame work order the order unit is automatically populating as "AU" is this something std or do i have to do anything in configuration?
    When i created a PO with ref to PR aith account *** K into the PO and add the item category B the charging information was not maintained so how to maintian this?
    How to maintain the accounting info from PR?
    Also if there is a complete process link releated to config of frame work order that will be great.
    Thanks in Advance.

    Hi
    We are trying to implement Frame work order process with following configurations.
    Item cat B for acc assingment Y
    Create new acct assignment category in IMG -MM - Purchasing -Account Assignment - Maintain Account Assignment Categories (If you are sure of fields to be used then you can directly create Y, if not then copy existing category say K to new one and choose required fields)
    Allow item catg B with acc *** K and Y.(How to config this in SPRO)
    In Purchasing - account assignment - Define Combination of Item Categories/Account Assignment Categories - set combination for Y and B.
    Hope your documement types (PO & PR) allows item category B.
    So when i am creating a PO adopted through Purchase Req (account *** K and item cat B) i am getting error message "Pricing Error :Mandatory condition NAVS is Missing".So how do i configure this pricing process.
    Check the pricing procedure in IMG - Purchasing - Conditions - Define Price Determination Process - Define Calculation Schema - Check for calculation schema - NAVS has been maintained.
    Also when i am creating a Frame work order do i need to select the document type both in PO and PR as frame work order or NB order type will work with these config of Item cat B and acc *** Y?
    You need to choose document types while creating purchase transactions. If that document type doesnt support item category B- then you will get an error message.
    When i am creating a PR or PO with doc type frame work order the order unit is automatically populating as "AU" is this something std or do i have to do anything in configuration?
    For services (D category) we define AU as default unit (IMG - MM - External Services Management - Source Determination and Default Values - for Client/for Purchasing Organizations)
    When i created a PO with ref to PR aith account *** K into the PO and add the item category B the charging information was not maintained so how to maintian this?
    How to maintain the accounting info from PR?
    create Framework requisition and then copy it to a PO.
    Thanks

  • Error while creating a Message Area

    Hi All,
    When I create a Message Area using the UI element 'MessageArea', I get the following error message at the bottom of the screen:
    "Note: Multiple message areas have been implemented, but only one is supported"
    I just have only one Message Area created, but still I get this error.
    Regards,
    Tom

    > 1) I am getting the error message"Valuation area not defined", while creating a requisition. How to solve this problem?
    Please Go to OMS2 Material types and Select Material Type and set Qty / Value is Checked in all Valuation areas. Also go to Material Master and ensure all the values Maintained in Accounting view.
    > 2) We can put a purchase order on hold. What is the equivalent thing in Purchase requisition?
    The Hold Functionality is for External Documents only.
    > 3) What is the difference between holding a PO and changing the PO by ME22n? What are the fields which change PO does not open up, but hold PO opens up?
    Whenever you are not sure about the Details in PO you can put the Document on Hold and Later you can Save after.
    > 4) The tax code is set as default in PO. We want to make a PO of a material which is usually taxable, but not in this case. But the tax code is set as default. So, how to overcome this?
    You can not set Default Tax code for Purchase order ME21N. Further the Tax codes can be Pulled into Purchase Order thru Purchase info Records.
    Regards,
    Ashok

Maybe you are looking for

  • How do I find a previous windows version. It's telling me to copy files and then delete old version.

    When I got on my laptop today, I saw that there was a message from HP Support Assistant. It says that I have an older versions of windows and that the previous versions of windows was saved in a folder c:\windows.old. it says that the folder is very

  • 2 vs 3 prong charger - advantages vs disadvantages?

    In coffee shops, I notice that certain MBP owners may use 3-prong chargers, while others stay with the 2-prong version. Is there any advantage (aside fromt he added length) between the chargers? Is it a matter of convenience, or safety, or something

  • Read MS Word properties

    Hi every body, i need to read the properties of any MS-WORD document. Author, number of pages, number of words, etc. I really don't have any idea on where to begin. Can somebody help me? Giving me a hint. Waiting your response. Thanks

  • New W7 Computer Sync ?'s

    iPhone 4 on a new Win 7 computer: I've Authorized the Acct, Transferred Store-bought Apps, and made a Backup - That's ALL. NOTE: Apple software is as intuitive to me as the Chinese alphabet. The OS Update pop-up states all Apps, Media, store-bought s

  • Error - PS CS5 can't save for web

    When trying to save for web (ctrl+alt+shift+S or file save for web) I recieve this error What is the fix?