Error in populating data

Hi,
I am taking the data from a file which is available on application server. During reading of file I am storing the data into an internal table. But the problem is,  System is taking the data with '#' while passing the data to internal table. Means it is not treating # as a next column. For example if the table line's (file) contains "3#78#N456#78945#" data system is passing it to internal table in the following format (itab-field1 = '3', itab-field2 = '#78' itab-fld3 = '#N456' and so on..
Pls suggest me how to handle it. I am using the following code for updating the table.
data : begin of t_itab occurs 0,
       fld1(1),
       fld2(3),
       fld3(4),
       fld4(5),
       fld50(5),
       end of t_itab.
OPEN DATASET V_FILE IN TEXT MODE encoding DEFAULT .
  IF SY-SUBRC = 0.
    DO.
      READ DATASET V_FILE INTO t_itab.
      IF SY-SUBRC <> 0.
        EXIT.
      ENDIF.
      APPEND T_ITAB.
      CLEAR  T_ITAB.
    ENDDO.
  ELSE.
    WRITE: / 'Error in open file'.
  ENDIF.
  CLOSE DATASET v_file.
Note : We do't know how many fields are available in the txt file on application server.. so we are assuming that file can contains upto 50 fields that's why I have declared 50 fields in internal table.
pls suggest something.
Thanks,

I believe that the # is the tab in your file.  You will need to split the line at the tab by using the cl_abap_char_utilities=>horizontal_tab.
data: str type string.
READ DATASET V_FILE INTO str.
split str at l_abap_char_utilities=>horizontal_tab into t_tab-fld1
t_tab-fld2
t_tab-fld3
t_tab-fld4
t_tab-fld5
t_tab-fld6
t_tab-fld7
t_tab-fld8
You can also use the <b>SPLIT into table itab</b>And fill in the fields using some creative programming.
Regards,
Rich Heilman

Similar Messages

  • Error while populating data

    hi,
    Here i am giving the DDLs and Inserts of Database .i am getting error while fetching data into outlist.
    and the error is err_msg = ORA-00932: inconsistent datatypes: expected - got -
    I also posted the same one in my previous post but i did not got any satisfactory answer .Please help me out .It's urgent ..
    CREATE TABLE ip_lov_hdr
    (table_id VARCHAR2(50) NOT NULL,
    table_name VARCHAR2(30) NOT NULL,
    col_name VARCHAR2(30) NOT NULL,
    codetype VARCHAR2(2))
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    ALTER TABLE ip_lov_hdr
    ADD CONSTRAINT pk_lov_hdr PRIMARY KEY (table_id)
    USING INDEX
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    CREATE TABLE ip_lov_dtl
    (table_id VARCHAR2(50) NOT NULL,
    col_name VARCHAR2(30) NOT NULL)
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    ALTER TABLE ip_lov_dtl
    ADD CONSTRAINT pk_lov_dtl PRIMARY KEY (table_id, col_name)
    USING INDEX
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    ALTER TABLE ip_lov_dtl
    ADD CONSTRAINT fk_lov_hdr FOREIGN KEY (table_id)
    REFERENCES ip_lov_hdr (table_id) ON DELETE SET NULL
    CREATE TABLE emp
    (ename VARCHAR2(50),
    empno VARCHAR2(9),
    dept VARCHAR2(4))
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    CREATE OR REPLACE
    TYPE out_rec_lov AS OBJECT(ename VARCHAR2(50),empno VARCHAR2(9))
    INSERT INTO emp
    (ENAME,EMPNO,DEPT)
    VALUES
    ('titu','111','10')
    INSERT INTO emp
    (ENAME,EMPNO,DEPT)
    VALUES
    ('naria','222',NULL)
    INSERT INTO emp
    (ENAME,EMPNO,DEPT)
    VALUES
    ('tiks','123','55')
    INSERT INTO emp
    (ENAME,EMPNO,DEPT)
    VALUES
    ('tiki','221',NULL)
    INSERT INTO emp
    (ENAME,EMPNO,DEPT)
    VALUES
    ('narayan',NULL,NULL)
    INSERT INTO ip_lov_hdr
    (TABLE_ID,TABLE_NAME,COL_NAME,CODETYPE)
    VALUES
    ('emp_id','emp','ename',NULL)
    INSERT INTO ip_lov_dtl
    (TABLE_ID,COL_NAME)
    VALUES
    ('emp_id','empno')
    create or replace PACKAGE PKG_LOV_1
    AS
    TYPE listtable IS TABLE OF out_rec_lov INDEX BY BINARY_INTEGER;
    PROCEDURE p_getlov (
    tab_id IN VARCHAR2,
    col_value IN VARCHAR2,
    OUTLIST OUT LISTTABLE,
    err_msg OUT VARCHAR2);
    END;
    create or replace PACKAGE BODY PKG_LOV_1 AS
    PROCEDURE p_getlov( tab_id IN VARCHAR2,
    col_value IN VARCHAR2,
    outlist OUT listtable,
    err_msg OUT VARCHAR2)
    IS
    query_str VARCHAR2(2000);
    col_str VARCHAR2(2000);
    type cur_typ IS ref CURSOR;
    c cur_typ;
    i NUMBER := 0;
    l_table_name ip_lov_hdr.TABLE_NAME %TYPE;
    l_col_name ip_lov_hdr.col_name%TYPE;
    l_codetype ip_lov_hdr.codetype%TYPE;
    BEGIN
    BEGIN
    SELECT TABLE_NAME,
    codetype,
    col_name
    INTO l_table_name,
    l_codetype,
    l_col_name
    FROM ip_lov_hdr
    WHERE UPPER(table_id) = UPPER(tab_id);
    EXCEPTION
    WHEN no_data_found THEN
    NULL;
    END;
    col_str := l_col_name;
    FOR rec IN
    (SELECT col_name
    FROM ip_lov_dtl
    WHERE table_id = tab_id)
    LOOP
    col_str := col_str || ',' || rec.col_name;
    END LOOP;
    DBMS_OUTPUT.PUT_LINE (col_str);
    IF l_codetype IS NULL THEN
    query_str := 'SELECT ' || col_str || ' FROM ' || l_table_name || ' WHERE ' || l_col_name || ' like :col_value';
    ELSE
    query_str := 'SELECT ' || col_str || ' FROM ' || l_table_name || ' WHERE Codetype =' || l_codetype || ' And ' || l_col_name || ' like :col_value';
    END IF;
    DBMS_OUTPUT.PUT_LINE(QUERY_STR);
    BEGIN
    OPEN c FOR query_str USING col_value;
    LOOP
    FETCH c INTO outlist(i);
    i := i + 1;
    EXIT WHEN c % NOTFOUND;
    END LOOP;
    CLOSE c;
    EXCEPTION
    WHEN others THEN
    err_msg := SUBSTR(sqlerrm, 1, 500);
    END;
    EXCEPTION
    WHEN others THEN
    err_msg := SUBSTR(sqlerrm, 1, 500);
    END p_getlov;
    END PKG_LOV_1;
    Regards,
    Dhabas
    Edited by: Dhabas on Dec 29, 2008 12:58 PM
    Edited by: Dhabas on Dec 29, 2008 2:43 PM
    Edited by: Dhabas on Dec 29, 2008 2:54 PM

    I made one more small change. This code
    15             i number := 0;I modified as
    15             i number := 1;And It works fine for me
    SQL> create table ip_lov_hdr
      2  (
      3     table_id varchar2(50) not null,
      4     table_name varchar2(30) not null,
      5     col_name varchar2(30) not null,
      6     codetype varchar2(2)
      7  )
      8  /
    Table created.
    SQL> alter table ip_lov_hdr add constraint pk_lov_hdr primary key (table_id) using index
      2  /
    Table altered.
    SQL> create table ip_lov_dtl
      2  (
      3     table_id varchar2(50) not null,
      4     col_name varchar2(30) not null
      5  )
      6  /
    Table created.
    SQL> alter table ip_lov_dtl add constraint pk_lov_dtl primary key (table_id, col_name) using index
      2  /
    Table altered.
    SQL> alter table ip_lov_dtl add constraint fk_lov_hdr foreign key (table_id) references ip_lov_hdr (table_id) on delete set null
      2  /
    Table altered.
    SQL> create table emp1
      2  (
      3     ename varchar2(50),
      4     emp1no varchar2(9),
      5     dept varchar2(4)
      6  )
      7  /
    Table created.
    SQL> create or replace type out_rec_lov as object(ename varchar2(50),emp1no varchar2(9))
      2  /
    Type created.
    SQL> insert into emp1
      2     (ename,emp1no,dept)
      3  values
      4     ('titu','111','10')
      5  /
    1 row created.
    SQL> insert into emp1
      2     (ename,emp1no,dept)
      3  values
      4     ('naria','222',null)
      5  /
    1 row created.
    SQL> insert into emp1
      2     (ename,emp1no,dept)
      3  values
      4     ('tiks','123','55')
      5  /
    1 row created.
    SQL> insert into emp1
      2     (ename,emp1no,dept)
      3  values
      4     ('tiki','221',null)
      5  /
    1 row created.
    SQL> insert into emp1
      2     (ename,emp1no,dept)
      3  values
      4     ('narayan',null,null)
      5  /
    1 row created.
    SQL> insert into ip_lov_hdr
      2     (table_id,table_name,col_name,codetype)
      3  values
      4     ('emp1_id','emp1','ename',null)
      5  /
    1 row created.
    SQL> insert into ip_lov_dtl
      2     (table_id,col_name)
      3  values
      4     ('emp1_id','emp1no')
      5  /
    1 row created.
    SQL> commit
      2  /
    Commit complete.
    SQL> create or replace package pkg_lov_1
      2  as
      3     type listtable is table of out_rec_lov index by binary_integer;
      4
      5     procedure p_getlov
      6                     (
      7                             tab_id in varchar2,
      8                             col_value in varchar2,
      9                             outlist out listtable,
    10                             err_msg out varchar2
    11                     );
    12  end;
    13  /
    Package created.
    SQL> create or replace package body pkg_lov_1
      2  as
      3     procedure p_getlov
      4                     (
      5                             tab_id in varchar2,
      6                             col_value in varchar2,
      7                             outlist out listtable,
      8                             err_msg out varchar2
      9                     )
    10     is
    11             query_str varchar2(2000);
    12             col_str varchar2(2000);
    13             type cur_typ is ref cursor;
    14             c cur_typ;
    15             i number := 1;
    16             l_table_name ip_lov_hdr.table_name %type;
    17             l_col_name ip_lov_hdr.col_name%type;
    18             l_codetype ip_lov_hdr.codetype%type;
    19     begin
    20             begin
    21                      select table_name,
    22                             codetype,
    23                             col_name
    24                        into l_table_name,
    25                             l_codetype,
    26                             l_col_name
    27                        from ip_lov_hdr
    28                       where upper(table_id) = upper(tab_id);
    29
    30             exception
    31                     when no_data_found then
    32                             null;
    33             end;
    34
    35             col_str := l_col_name;
    36
    37             for rec in (select col_name
    38                           from ip_lov_dtl
    39                          where table_id = tab_id)
    40             loop
    41                     col_str := col_str || ',' || rec.col_name;
    42             end loop;
    43
    44             dbms_output.put_line (col_str);
    45
    46             if l_codetype is null
    47             then
    48                     query_str := 'select out_rec_lov(' || col_str || ') from ' || l_table_name || ' where ' || l_col_name || ' like :col_value';
    49             else
    50                     query_str := 'select out_rec_lov(' || col_str || ') from ' || l_table_name || ' where codetype =' || l_codetype || ' and ' || l_col_name || ' like :col_value';
    51             end if;
    52
    53             dbms_output.put_line(query_str);
    54
    55             begin
    56                     open c for query_str using col_value;
    57
    58                     loop
    59                             fetch c into outlist(i);
    60                             i := i + 1;
    61                             exit when c % notfound;
    62                     end loop;
    63
    64                     close c;
    65             exception
    66                     when others then
    67                             err_msg := substr(sqlerrm, 1, 500);
    68             end;
    69
    70     exception
    71             when others then
    72                     err_msg := substr(sqlerrm, 1, 500);
    73
    74     end p_getlov;
    75  end pkg_lov_1;
    76  /
    Package body created.
    SQL> declare
      2     outlist pkg_lov_1.listtable;
      3     err_msg varchar2(1000);
      4  begin
      5     pkg_lov_1.p_getlov('emp1_id', 'titu', outlist, err_msg);
      6     for i in 1..outlist.count
      7     loop
      8             dbms_output.put_line(outlist(i).ename ||','||outlist(i).emp1no);
      9     end loop;
    10
    11     dbms_output.put_line(err_msg);
    12  end;
    13  /
    ename,emp1no
    select out_rec_lov(ename,emp1no) from emp1 where ename like :col_value
    titu,111
    PL/SQL procedure successfully completed.
    SQL>

  • Urgent--error in populating data in segments of Idoc-DELVRY03

    Hi experts,
    I am populating data in segments of DELVRY03 where I am using process code DELV with Message Type SHPORD.
    For this I am using EXIT_SAPLV56K_002.
    As I have to populate many segments I am giving case statement. But IDOC_DATA-SEGNAM is empty.
    Please help me with this issue as I am running out of time.
    Waiting for replies.
    Thanks

    Hi,
    Loop at IDOC_DATA.
    thanks

  • Error during populating data in combobox

    Hi,
    I am getting the ArrayCollection through RemoteObject call
    and I am trying to populate that into the combobox. But I am
    getting the following error popping up in the browser.
    Error: Unknown Property: '-1'.
    at mx.collections::ListCollectionView/
    http://www.adobe.com/2006/actionscript/flash/proxy::getProperty()
    at SearchReports/getReportCodeAndNameData()
    at SearchReports/populateDocumentList()
    at SearchReports/__ReportsDelegate5_result()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.rpc::AbstractService/dispatchEvent()
    at mx.rpc.remoting.mxml::RemoteObject/dispatchEvent()
    at mx.rpc::AbstractOperation/
    http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::resultHandler()
    at mx.rpc::Responder/result()
    at mx.rpc::AsyncRequest/acknowledge()
    at
    ::NetConnectionMessageResponder/NetConnectionChannel.as$37:NetConnectionMessageResponder: :resultHandler()
    at mx.messaging::MessageResponder/result()
    Can anybody let me know what could be the reason?
    Regards,
    -Sameer

    Fixed the problem. Please ignore.
    -Sameer
    quote:
    Originally posted by:
    sam_the_best
    Hi,
    I am getting the ArrayCollection through RemoteObject call
    and I am trying to populate that into the combobox. But I am
    getting the following error popping up in the browser.
    Error: Unknown Property: '-1'.
    at mx.collections::ListCollectionView/
    http://www.adobe.com/2006/actionscript/flash/proxy::getProperty()
    at SearchReports/getReportCodeAndNameData()
    at SearchReports/populateDocumentList()
    at SearchReports/__ReportsDelegate5_result()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.rpc::AbstractService/dispatchEvent()
    at mx.rpc.remoting.mxml::RemoteObject/dispatchEvent()
    at mx.rpc::AbstractOperation/
    http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::resultHandler()
    at mx.rpc::Responder/result()
    at mx.rpc::AsyncRequest/acknowledge()
    at
    ::NetConnectionMessageResponder/NetConnectionChannel.as$37:NetConnectionMessageResponder: :resultHandler()
    at mx.messaging::MessageResponder/result()
    Can anybody let me know what could be the reason?
    Regards,
    -Sameer

  • Error while retrieving data from an ARRAY resultset

    We hava an Oracle stroed procedure which has a table type as its OUT parameter and where the data is being entered into. This data requries to be returned to the Java client through a JDBC connection. We have used the OracleTypes' ARRAY object for this. We are facing errors when retieving data from the ARRAY resultset
    The Oracle Package
    ----I created a table type called "PlSqlTable":
    CREATE OR REPLACE TYPE PlSqlTable IS TABLE OF VARCHAR2(20);
    ----I defined this as the out parameter for my procedure :
    PROCEDURE testSQL
    arrayOutID OUT PlSqlTable
    Then populated the object :
    arrayOutID := PlSqlTable();
    arrayOutID.extend(4);
    arrayOutID(1):= 'Hello';
    arrayOutID(2) := 'Test';
    arrayOutID(3) := 'Ora';
    ----The procedure executes fine - all debug statements are printed ----right till the end of execution.
    The Java class
    ----Here is how I have defined the parameters :
    OracleCallableStatement stmnt = (OracleCallableStatement)connection.prepareCall("begin testSQL(?);end;");
    stmnt.registerOutParameter(2,OracleTypes.ARRAY,"PLSQLTABLE");
    System.out.println("Executing..");
    stmnt.execute();
    System.out.println("Executed..");
    ARRAY outArray = stmnt.getARRAY(1);
    System.out.println("Got array");
    ResultSet rset = outArray.getResultSet();
    System.out.println("Got Resultset..");
    int i = 1;
    while(rset.next()){
    System.out.println("VALUE : " + rset.getString(i));
    i = i+1;
    ----On execution, the debug messages display :
    Executing..
    Executed..
    Got array
    Got Resultset..
    VALUE : 1
    VALUE : Test
    ERROR : java.sql.SQLException: Invalid column index
    ----But I have populated upto 3 values in th e procedure. Then why this error ?
    PLLLEEEASE help me out on this.
    Thanks, Sathya

    haven't worked with db arrays but I think your problem is here:int i = 1;
    while(rset.next()){
         System.out.println("VALUE : " + rset.getString(i));
         i = i+1;
    }In the first loop you are retrieving the value from column 1(rs.getString(1)), which is OK, but in the second loop, you are trying to retrieve a value from the second column(rs.getString(2)) which doesn't exist. Try this code which only reads from column1:
    while(rset.next()){
         System.out.println("VALUE : " + rset.getString(1));
    }Jamie

  • Error while populating Xref table

    Hi all,
    I have created a project where i will extract job_id from source instance(which i am getting from AIAServiceConfigProperties.xml file) and populate it in the xref table.
    Now i have imported 3 knowledge modules for this project:-
    1. KM_LKM SQL to SQL (Mediator XREF)
    2. KM_IKM SQL Control Append (Mediator XREF)
    have not imported CKM as it cant handle LONG datatypes.
    I have kept xref_table in the target datastore and the the job table in the source datastore panel. i have created a variable which extracts the sourceID from the AIAConfig file. But when it comes to the step of populating data into the xref table this error crops up:-
    com.sunopsis.sql.SnpsMissingParametersException: Missing parameter
         at com.sunopsis.sql.SnpsQuery.completeHostVariable(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.updateExecStatement(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Am i missing something here?
    Regards,
    Sourav

    Hi SH,
    I have created a variable GetSourceColumnName and in the xref table i have mapped #GetSourceColumnName against XREF_COLUMN_NAME in the xref table. When i am executing the package it is showing the required value but it is showing error in loading data into this xref table.
    (in my AIAServiceConfig file my systemID is EBIZ_01 so when i am clicking on the variable after execution i can see this system ID)

  • Error : IDoc XML data record: In segment attribute occurred instead of SEGM

    hi friends
    i am doing the file to idoc scenario. in message mapping i had done the static test. but what ever the fields i mapped in the idoc it was not populated in the idoc. and i am getting the error as
    error :IDoc XML data record: In segment attribute occurred instead of SEGMENT
    can any one solve the problem please
    thanks in advance
    Vasu

    Hi Vasudeva,
    Pls do check the nodes which you have mapped to. Also make sure that your SEGMENT field in the target structure is mapped properly.
    Cheers
    JK

  • Error logging for data rules in owb11gr2

    Hi all,
    I was playing around with error logging for data rules and I realized that when an error gets logged into the error table for failing a particualar data rule for a table, some of the columns in the error table such as ORA_ERR_NUMBER$, ORA_ERR_MESG$, ORR_ERR_OPTYP$ were not filled in. Why is this so? Is there anyway to populate these fields as well when a row gets populated in? This is because the optype field may be useful to identify the operation type of the erronous row.
    ALso, does anyone know whether the error table for dimensions work correctly? I replicate the portion of the mapping flow that goes to my dimension and even though the errornous row gets logged into the error table, the ERR$$$_OPERATOR_NAME for that row did not show the dimension object but instead show another of my table operator in the mapping. Pretty bewildered as to why this is the case.

    The cube operator in 11gR2 also supports DML error logging (as well as orphan management handling). This is enabled by setting the property 'DML Error table name' (in group Error table) on the Cube operator inside the mapping. The error table specified will be created when the mapping is deployed (if you specify an existing one the error is trapped).
    The DML error handling will catch physical errors on the load of the fact.
    Cheers
    David

  • Error: "Depreciation start date required in old assets data (please enter)"

    When , I use transaction AS91 , for an asset , with book depreciation key  = 0000, the system shows this error:"Depreciation start date required in old assets data (please enter)",
    somebody could help me with this please?

    Check if the depreciation start date has got populated in the tab for depreciation areas in AS91.
    Usually this gets populated based on capitalization/creation date.If not then try to enter this manually.
    Thanks and regards
    Kedar

  • Error in gereric data source using FM

    <Moderator Message: Please search the forums, this question has been asked already a lot of times>
    Hi BW Exports,
    i am using a generic datasource to extract data to the bw system.
    That datasource is populated data from a fuction Module.
    when i am trying to load data the request remains yellow and a coresponding background job is running in the ECC system for a long time.Even if i change the status mannually to green the same same background job is running in the BW system.
    could any body guess the reasion i am getting the error.
    Regards
    Debasish
    Edited by: Siegfried Szameitat on Dec 11, 2008 12:39 PM

    Khaja,
    Units field WAERS for field WKGBTR of DataSource xxx
    is hidden
         Units field OWAER for field WOGBTR of DataSource ZBWVIEW is hidden
    This is the msg which i got........

  • Error while insert data using execute immediate in dynamic table in oracle

    Error while insert data using execute immediate in dynamic table created in oracle 11g .
    first the dynamic nested table (op_sample) was created using the executed immediate...
    object is
    CREATE OR REPLACE TYPE ASI.sub_mark AS OBJECT (
    mark1 number,
    mark2 number
    t_sub_mark is a class of type sub_mark
    CREATE OR REPLACE TYPE ASI.t_sub_mark is table of sub_mark;
    create table sam1(id number,name varchar2(30));
    nested table is created below:
    begin
    EXECUTE IMMEDIATE ' create table '||op_sample||'
    (id number,name varchar2(30),subject_obj t_sub_mark) nested table subject_obj store as nest_tab return as value';
    end;
    now data from sam1 table and object (subject_obj) are inserted into the dynamic table
    declare
    subject_obj t_sub_mark;
    begin
    subject_obj:= t_sub_mark();
    EXECUTE IMMEDIATE 'insert into op_sample (select id,name,subject_obj from sam1) ';
    end;
    and got the below error:
    ORA-00904: "SUBJECT_OBJ": invalid identifier
    ORA-06512: at line 7
    then when we tried to insert the data into the dynam_table with the subject_marks object as null,we received the following error..
    execute immediate 'insert into '||dynam_table ||'
    (SELECT

    887684 wrote:
    ORA-00904: "SUBJECT_OBJ": invalid identifier
    ORA-06512: at line 7The problem is that your variable subject_obj is not in scope inside the dynamic SQL you are building. The SQL engine does not know your PL/SQL variable, so it tries to find a column named SUBJECT_OBJ in your SAM1 table.
    If you need to use dynamic SQL for this, then you must bind the variable. Something like this:
    EXECUTE IMMEDIATE 'insert into op_sample (select id,name,:bind_subject_obj from sam1) ' USING subject_obj;Alternatively you might figure out to use static SQL rather than dynamic SQL (if possible for your project.) In static SQL the PL/SQL engine binds the variables for you automatically.

  • Error while updating data from PSA to ODS

    Hi Sap Gurus,
    I am facing the error while updating data from PSA to ODS in BI 7.0
    The exact error message is:
    The argument 'TBD' cannot be interpreted as a number
    The error was triggered at the following point in the program:
    GP44QSI5RV9ZA5X0NX0YMTP1FRJ 5212
    Please suggest how to proceed on this issue.
    Points will be awarded.

    Hi ,
    Try to simulate the process.That can give you exact error location.
    It seems like while updating few records may be no in the format of the field in which it is updated.
    Regards
    Rahul Bindroo

  • 'Error while signing data-Private key or certificate of signer not availabl

    Hello All,
    In my message mapping I need to call a web service to which I need to send a field value consist of SIGNED DATA.
    I am using SAP SSF API to read the certificate stored in NWA and Signing the Data as explained in
    http://help.sap.com/saphelp_nw04/helpdata/en/a4/d0201854fb6a4cb9545892b49d4851/frameset.htm,
    when I have tested using Test tab of message mapping  it is working fine and I am able to access the certificate Keystore of NWA(we have created a keystore view and keystore entry to store the certificate) and generate the signed data ,but when I test end to end scenario from ECC system,it is getting failed in mapping with the error
    ' Error while signing data - Private key or certificate of signer not availableu2019.
    Appreciate your expert help to resolve this issue urgently please.
    Regards,
    Shivkumar

    Hi Shivkuar,
    Could you please let me know how you were trying to achieve the XML signature.
    We have a requirement where we have to sign the XML document and need to generate the target document as following structure.
    <Signature>
         <SignedInfo>
             <CanonicalizationMethod />
             <SignatureMethod />
             <Reference>
                     <Transforms>
                     <DigestMethod>
                     <DigestValue>
             </Reference>
        <Reference /> etc.
      </SignedInfo>
      <SignatureValue />
      <KeyInfo />
      <Object>ACTUAL PAYLOAD</Object>
    </Signature>
    I am analyzing the possibility of using the approach that is given in the help sap link that you have posted above. Any inputs will be apprecited.
    Thanks and Regards,
    Sami.

  • Error while saving date value in Java dictionary

    Hello Everybody,
    I got following error while saving date value in one of the fields of the Java table.
    Internal error occured in submit request: Error in method updateRequestContact : The object of type java.sql.Date with the value '2005-12-04 08:00:00.0' assigned to host variable 9 is not normalized. It must not contain time components in the time zone running the virtual machine.
    I can't find why it is taking time value in the date object.
    This value is coming from the RFC as a date value, and I am saving this value in Java dictionary table.
    Same code for this was working fine earlier. But, now suddenly it gives error like this.
    Even if I provide date on the screen from webdynpro application, this date value can't save in the Java dictionary and gives same error.
    What should be the problem behind this?
    Regards,
    Bhavik

    Hi Satyajit,
    I am getting date value from the screen of the webdynpro application from date picker control and passing this value in Java dictionary.
    More Information:
    I have dat value in the Date object: <b>target_date</b>
    But Now I have made new Date object as following:
    Date target_Date1 = new Date(target_date.getYear(),target_date.getMonth(),target_date.getDate());
    Then I am passing this object to Java dictionary. Still it gives same error.
    Then I have changed code as following:
              int l_year;
              int l_month;
              int l_days;
              l_year = target_Date.getYear();
              l_month = target_Date.getMonth();
              l_days = target_Date.getDate();
         Date target_Date1 = new Date(l_year,l_month,l_days);
    Now it works for me.
    But I guess this is not the perment solution. It looks very strange. I have used so many date objects at various palces. So, this solution is not the final for me.
    I want to findout the main cause of it.
    One more thing: This code was working for a mornth or two. But, now suddenly it is giving this error.
    Please help me if anybody knows.
    Regards,
    Bhavik

  • Error while generating Data provider

    We are facing a weird issue while using Design Studio 1.2. Locally the tool works fine but when we use it from BI-Launchpad or through BI Enterprise it gives intermittent error "Error while generating Data Provider"
    Same setup works fine in our Validation Environment.
    We have tried running repair for Design Studio, redeploy the war files, creating new view but issue still exist.
    We have BI 4.0 SP7 installed on Windows 2008 R2 system.
    4 CMS running in cluster, Design Studio 1.2 is installed on 3 Nodes out of 4.
    For now we are using 1 tomcat to access the system to narrow down the issue.
    Experts please help us to resolve this issue.
    Attach is the error message we are receiving

    I am not clear what your data source is, but I recommend checking the PAM https://websmp102.sap-ag.de/~sapidb/011000358700001013822013E because there are some limitations with Design Studio and BI4.0

Maybe you are looking for

  • No Word or Excel selection in report generation toolkit

    I've uninstalled/repaired the Report Generation Toolkit that I received with 8.2 Toolkit disks. I still don't have the selection of Word or Excel with the New Report.vi.  All I get is Standard Report or HTML. Some magic I'm missing? PaulG. "I enjoy t

  • Display failed on Pavilion dv9730nr

    On Pavilion dv9730nr laptop, running Windows Vista Home Premium, the display does not come up in any readable fashion on boot. The display at first ran OK for several minutes before the screen went blank (or very badly scrambled), but it got progress

  • HT3819 I have a new HP computer and would like to transfer my iTunes library from my old PC

    I have been trying to transfer my iTunes library from my old PC to our new HP PC (Windows 8.1). We did back up our old PC files to an external harddrive but the iTunes files are 'jumbled'when I open them on the new PC and not in any format - only str

  • Solutions for User Decision step- Upon reject, auto-popup text for reason

    Execute user Decision workitem, when user click reject button, open text for rejection reason within the workitem. Ideally, for the auto-pop text , we need a descriptive header and user can enter reject reason. Text must be added before the workitem

  • Why is airplay upload usage so high? (using wireless speaker)

    I have a iHome wireless speaker that I play using iTunes Airplay. It works fine but the upload usage is through the roof compared to the download usage (e.g. upload = 128KB/s, download = 7KB/s) - this seems strange, thought it should be the other way