Problem in Procedure for using sequence...

Hi,
I created a procedure for generating sequence in target using below query
SELECT EMP.EMP_SEQ.NEXTVAL FROM DUAL
but its working on one system in other system its giving below error...
ODI-1228: Task EMP_LOAD_EMP_SEQ_PROC (Procedure) fails on the target ORACLE connection EMP_LOAD.
Caused By: java.sql.SQLException: SQL string is not a DML Statement at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1393)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3752)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3887)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1508)
at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java:665)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.executeUpdate(SnpSessTaskSql.java:3218)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java:1785)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2805)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:534)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1818)
at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$2.doAction(StartScenRequestProcessor.java:559)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor.doProcessStartScenTask(StartScenRequestProcessor.java:481)
at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$StartScenTask.doExecute(StartScenRequestProcessor.java:1040)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114)
at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
at java.lang.Thread.run(Thread.java:619)
Please help me regarding this issue..
Thanks in Advance...

Odi Procedures are mainly meant for DML execution..A SELECT query there holds little or no value in my opinion..
Select queries are only usable in Command on Source and there the general application of that is to use those values returned by the SELECT query on Command Source as a input to the Command/Query/Statement/Java or Jython block at the Command on Target Tab in a one by one iterative manner.
Lets say your command on source returns 5 rows..So your command on target is executed 5 times and you can use the attributes of these rows as inputs to your command on target in each iteration .. It works like an Internal Cursor

Similar Messages

  • I am trying to understand the licensing procedures for using tabKiller for 3.5.7 firefox. Who should I contact for this? I do not see any customer service phone number for Firefox

    I am trying to understand the licensing procedures for using tabKiller for 3.5.7 firefox. Who should I contact for this? I do not have the customer service phone number for Firefox

    Tab Killer is not created by Mozilla, it is created by a private individual who has made it available at no cost for other people to use.

  • Problems Installing FFMpegX for use with QuickTime and other software

    Okay I don't know whether I should be posting this here or under the board for Using Mac OS X Panther and earlier operating systems but I used to have the FFMpegX video and audio conversion software installed on my Mac an Apple 12' PowerBook G4 but recently had a system OS reinstall when my hard disk became defective and I was unable to make repairs.
    I backed up all my files but of course I couldn't back up the software I had downloaded. Was fortunately able to redownload some of my apps but this is a case where an app of mine I want back won't come back.
    I download the installer and it fails to mount the disk image even on my desktop. I am running Mac OS 10.3.9 Panther -- I tried searching for an older version of ffmpegX I could download but that didn't work either. Since when is ffmpegX shareware? When I used it the software was freeware.
    Anyways, it is such an essential program foir me that I would pay the fee just to get it back but I can't even download the trial software to begin with. I have tried downloading from the main website www.ffmpegX.com and a few other links I found on Google but to no alas none have seemed to work.
    I have plenty of videos I like to encode and re-encode from time to time using my Mac from VOB 2 .DAT 2 AVI 2 MPEG 2 M4V (iPod format) 2 WMV 2 MOV etc and vice versa using Divx and XviD codecs I NEED FFMPEGX what can I do?
    I have Mac OS 10.3.9 Panther with QuickTime 7.1.2, iTunes 6.0.5 the Apple Security Update 2006-003, Virex 7.2 virus protection software and Microsoft Office X with the latest patches for that software product and VLC Media Player. I need FFmpegX and/or (in either case actually drop the or) software for Mac OS X that allows users to convert video .DAT files from VCD to AVI.
    I have Divx codec for Mac and 3ivx software with Divx Doctor II -- an AVI 2 MOV video conversion software + D Vision 3 also installed. I currently have installed Safari 1.3.2 also.
    Any suggestions! Please help any way possible. I just have to get FFmegX working again.

    http://www.squared5.com/svideo/mpeg-streamclip-mac.html (free).
    http://apple.com/quicktime/mpeg2 ($20). Needed for MPEG-2 conversions.
    http://flip4mac.com for the WMP conversions (prices vary based on features).

  • Forms 6i problem in procedures for make update

    dear sirs,
    i had procedure to make update for tree of accounts, but make update to some levels and other level no, and here is the procedure if inside it any problem pls advice me
    CREATE OR REPLACE PROCEDURE updup_acc_trbal2(
    wyear IN NUMBER ,
    wperiod IN NUMBER ,
    wcost_center IN VARCHAR2 ,
    wacc_no IN VARCHAR2,
    wcurr_code IN VARCHAR2 ,
    lval_db IN NUMBER ,
    lval_cr IN NUMBER ,
    val_db IN NUMBER ,
    val_cr IN NUMBER )
    IS
    BEGIN
    declare
    ------------acc----
    acc_a varchar2(15);
    acc_b varchar2(15);
    cost_a varchar2(15);
    cost_m varchar2(15);
    cursor c0 is
    select a1,a2,a3,a4,a5,a6,a7,a8 from acc_master_file
    where acc_no = wacc_no;
    type acc_arr0 is table of varchar2(15)
    index by binary_integer;
    arr_acc acc_arr0;
    i binary_integer:= 0;
    -------------cost----
    cursor c is
    select c1,c2,c3,c4,c5,c6,c7,c8,c9 from cost_tables
    where cost_center = wcost_center;
    type acc_arr is table of varchar2(15)
    index by binary_integer;
    cost_acc acc_arr;
    i_cost binary_integer:= 0;
    begin
    open c0;
    fetch c0 into arr_acc(1),arr_acc(2),arr_acc(3),
    arr_acc(4),arr_acc(5),arr_acc(6),
    arr_acc(7),arr_acc(8);
    close c0;
    open c;
    fetch c into cost_acc(1),cost_acc(2),cost_acc(3),
    cost_acc(4),cost_acc(5),cost_acc(6),
    cost_acc(7),cost_acc(8),cost_acc(9);
    close c;
    i := 0;
    i_cost := 0;
    loop
    i_cost := i_cost + 1;
    exit when (i_cost > 9);
    loop
    i := i + 1;
    exit when (i > 8);
    acc_a := arr_acc(i);
    cost_a := wcost_center;--cost_acc(i_cost);
    cost_m := cost_acc(i_cost);
    acc_b := wacc_no;
    if cost_m is not null then
    if acc_a is not null then
    if acc_a <> wacc_no then --v then
    if cost_m <> wcost_center then
    update cost_bal
    set tr_deb = nvl(tr_deb,0) + nvl(lval_db,0),
    tr_cr = nvl(tr_cr,0) + nvl(lval_cr,0),
    c_tr_deb = nvl(c_tr_deb,0)+ nvl(val_db,0),
    c_tr_cr = nvl(c_tr_cr,0) + nvl(val_cr,0)
    where year = wyear
    and period_no = wperiod
    and acc_no = acc_a
    and cost_center = cost_m wcost_centercost_a
    and ((curr_code = wcurr_code
    and wcurr_code is not null)
    or(curr_code is null
    and wcurr_code is null));
    if sql%notfound then
    insert into cost_bal
    (year,period_no,cost_center,acc_no,curr_code,
    op_deb,op_cr,c_op_deb,c_op_cr,
    tr_deb,tr_cr,c_tr_deb,c_tr_cr,
    created_by,created_date,
    changed_by,changed_date)
    values
    (wyear,wperiod,cost_m,acc_a,wcurr_code,
    0,0,0,0,
    nvl(lval_db,0),nvl(lval_cr,0),nvl(val_db,0),
    nvl(val_cr,0),user,sysdate,null,null);
    end if;
    end if;
    end if;
    end if;
    end if;
    end loop;
    end loop;
    end;
    END updup_acc_trbal2;

    Please use below one:
    BEGIN
    if filename is null then
    filename := 'E:\STUDY\experiences\forms\tour\countries.txt';
    end if;
    MYFILE := TEXT_IO.FOPEN(FILENAME, 'R');
    SYNCHRONIZE;
    LOOP
    TEXT_IO.GET_LINE(MYFILE, LINEBUF);
    temp := temp + (length (LINEBUF));
    go_block('COUNTRIES');
    last_record; ---------------------------------
    next_record; ----------------------------------
    :country_code := LINEBUF || CHR(10);
    create_record;
    END LOOP;
    EXCEPTION
    when no_file then
    message('you can not access here. ' );
    END;

  • Procedure for using Webserices and XML data button

    I am developing a report in xcelsius and I have huge data like 10000 records in my excel sheet  for one report because of which the report performance is very bad as I am increasing the max. no of rows from 512 to 10000 .Is their any way I can make those records come dynamically to the excel sheet by using XML Data Button, or Web Services etc if yes how can I use this or is their any other way to accomplish this
    As of now I am using the trial versron of XCELSIUS 2008 so can I use the option of webservices and XML in the trial version if so what I need to enter in WEbservice URL for trial versions
    Can any body send me the step by step process of using webservices & XML  when loading the data from excel to xcelsius
    if I use these options when I select the source data do I need to select the entire 10000 records , if so then again my performance will be bad , so can any one help me out please
    Thanks in advance
    Regards,
    Sany

    Dynamic datasources for Xcelsius
    http://resources.businessobjects.com/support/cx/samples/learning/downloads/ttv4-xml_data_button.pdf
    unable to use web services
    hope this helps you
    good luck
    Amr

  • Problem with HP-UX extended procedures that use C++ Standard library

    I am experiencing a problem with using the C++ standard library on HP-UX inside my extended procedures.
    Here is the definition for the library and procedures:
    -bash-3.2$ more nuhash2.sql
    CREATE OR REPLACE LIBRARY xp_nuencryption_l
    AS
    '/home/jchamber/datasecure/lib/libxp_nuencryption.sl';
    CREATE OR REPLACE PACKAGE xp_nuencryption
    AS
    PROCEDURE xp_nuhash2;
    END xp_nuencryption;
    CREATE OR REPLACE PACKAGE BODY xp_nuencryption
    IS
    PROCEDURE xp_nuhash2
    IS EXTERNAL
    LIBRARY xp_nuencryption_l
    NAME "xp_nuhash2"
    LANGUAGE C;
    END xp_nuencryption;
    Here is the PL/SQL test program:
    -bash-3.2$ more testnuhash2.sql
    SET SERVEROUTPUT ON SIZE 1000000
    DECLARE
    BEGIN
    xp_nuencryption.xp_nuhash2 ();
    END;
    Here is the implementation of the extended procudure - notice how we are using the C++ Standard library:
    -bash-3.2$ more xp_nuhash2.cpp
    #include <string.h>
    #include <iostream>
    #include <fstream>
    class MyException {
    public:
    MyException() {}
    int func(std::ofstream& fout )
    fout << "func: About to throw exception in func()" << std::endl;
    throw MyException();
    extern "C"
    void xp_nuhash2 ()
    std::ofstream fout("/home/jchamber/xp_nuhash2.txt");
    try {
    fout << "xp_nuhash2: About to call func()" << std::endl;
    func(fout);
    catch (MyException& ex) {
    fout << "xp_nuhash2: caught MyException" << std::endl;
    fout << std::flush;
    fout.close();
    Here is how we build the library on HP-UX:
    # compile
    aCC -g -AA DA2.0W DS2.0 +z -c xp_nuhash2.cpp -o xp_nuhash.o
    #link using aCC
    aCC -g -AA DA2.0W DS2.0 +z -b -o /home/jchamber/datasecure/lib/libxp_nuencryption.sl xp_nuhash.o \
    /usr/lib/pa20_64/libstd_v2.a \
    /usr/lib/pa20_64/libCsup_v2.a
    chatr +dbg enable /home/jchamber/datasecure/lib/libxp_nuencryption.sl
    Here is how we test:
    SQL> @nuhash2
    Library created.
    Package created.
    Package body created.
    SQL> @testnuhash2
    DECLARE
    ERROR at line 1:
    ORA-28576: lost RPC connection to external procedure agent
    ORA-06512: at "JCHAMBER.XP_NUENCRYPTION", line 0
    ORA-06512: at line 3
    Now, if i use classic C++ (aCC -AP) it works. The trouble is, we have a lot of code that uses the Standard C++ library and we don't have the time to port it back to classic C++.
    The problem seems to be with an incompatibility with the standard C++ library. What is the magic potion of linker and/or compiler switches that would enable my extended procedures to use the standard C++ library?
    Here is the environment we are using:
    Oracle 9i (64-bit)
    HP UX 11.11
    Regards

    I am experiencing a problem with using the C++ standard library on HP-UX inside my extended procedures.
    Here is the definition for the library and procedures:
    -bash-3.2$ more nuhash2.sql
    CREATE OR REPLACE LIBRARY xp_nuencryption_l
    AS
    '/home/jchamber/datasecure/lib/libxp_nuencryption.sl';
    CREATE OR REPLACE PACKAGE xp_nuencryption
    AS
    PROCEDURE xp_nuhash2;
    END xp_nuencryption;
    CREATE OR REPLACE PACKAGE BODY xp_nuencryption
    IS
    PROCEDURE xp_nuhash2
    IS EXTERNAL
    LIBRARY xp_nuencryption_l
    NAME "xp_nuhash2"
    LANGUAGE C;
    END xp_nuencryption;
    Here is the PL/SQL test program:
    -bash-3.2$ more testnuhash2.sql
    SET SERVEROUTPUT ON SIZE 1000000
    DECLARE
    BEGIN
    xp_nuencryption.xp_nuhash2 ();
    END;
    Here is the implementation of the extended procudure - notice how we are using the C++ Standard library:
    -bash-3.2$ more xp_nuhash2.cpp
    #include <string.h>
    #include <iostream>
    #include <fstream>
    class MyException {
    public:
    MyException() {}
    int func(std::ofstream& fout )
    fout << "func: About to throw exception in func()" << std::endl;
    throw MyException();
    extern "C"
    void xp_nuhash2 ()
    std::ofstream fout("/home/jchamber/xp_nuhash2.txt");
    try {
    fout << "xp_nuhash2: About to call func()" << std::endl;
    func(fout);
    catch (MyException& ex) {
    fout << "xp_nuhash2: caught MyException" << std::endl;
    fout << std::flush;
    fout.close();
    Here is how we build the library on HP-UX:
    # compile
    aCC -g -AA DA2.0W DS2.0 +z -c xp_nuhash2.cpp -o xp_nuhash.o
    #link using aCC
    aCC -g -AA DA2.0W DS2.0 +z -b -o /home/jchamber/datasecure/lib/libxp_nuencryption.sl xp_nuhash.o \
    /usr/lib/pa20_64/libstd_v2.a \
    /usr/lib/pa20_64/libCsup_v2.a
    chatr +dbg enable /home/jchamber/datasecure/lib/libxp_nuencryption.sl
    Here is how we test:
    SQL> @nuhash2
    Library created.
    Package created.
    Package body created.
    SQL> @testnuhash2
    DECLARE
    ERROR at line 1:
    ORA-28576: lost RPC connection to external procedure agent
    ORA-06512: at "JCHAMBER.XP_NUENCRYPTION", line 0
    ORA-06512: at line 3
    Now, if i use classic C++ (aCC -AP) it works. The trouble is, we have a lot of code that uses the Standard C++ library and we don't have the time to port it back to classic C++.
    The problem seems to be with an incompatibility with the standard C++ library. What is the magic potion of linker and/or compiler switches that would enable my extended procedures to use the standard C++ library?
    Here is the environment we are using:
    Oracle 9i (64-bit)
    HP UX 11.11
    Regards

  • Multiple record insert problem in Oracle Procedure that uses a cursor

    Dear X-pert guies,
    I have a oracle procedure that use a cursor, I repeatedly make query on 1st table using cursor value and insert that queried value(of 1st table) to 2nd table
    y_summary. y_summary has composite  primary key :PK_Y_SUM (BILL_DATE, TRUNK_MGR, IDD_FLAG, PK_FLAG, PREFIX).*
    when i run the procedure explicit2('201001'); the it gives me the error:::: begin explicit2('201001'); end;_
    ORA-00001: unique constraint (PRM.PK_Y_SUM) violated_
    ORA-06512: at "PRM.EXPLICIT2", line 413_
    ORA-06512: at line 1_
    but when i remove the composite primary key from y_summary table then, the procedure runs ok and make so many duplicate entries in y_summary.
    but i want the single record  to be inserted for single time in y_summary ,so You guies are honorly requested to make the required help .
    the structure of y_summary Table and Procdure code is given below.
    Table:
    -- Create table
    create table Y_SUMMARY
    BILL_DATE VARCHAR2(10) not null,
    TRUNK_MGR VARCHAR2(20) not null,
    IDD_FLAG VARCHAR2(10) not null,
    PK_FLAG NUMBER(2) not null,
    OUTCALLS NUMBER(20,2),
    OUTDUR NUMBER(20,2),
    PREFIX VARCHAR2(10) not null
    tablespace TBS_PRM_D01
    pctfree 10
    pctused 40
    initrans 1
    maxtrans 255
    storage
    initial 64K
    minextents 1
    maxextents unlimited
    -- Create/Recreate primary, unique and foreign key constraints
    alter table Y_SUMMARY
    add constraint PK_Y_SUM primary key (BILL_DATE, TRUNK_MGR, IDD_FLAG, PK_FLAG, PREFIX)
    using index
    tablespace TBS_PRM_D01
    pctfree 10
    initrans 2
    maxtrans 255
    storage
    initial 64K
    minextents 1
    maxextents unlimited
    Procedure:
    create or replace procedure explicit2( month_val in varchar2) is
    cursor explicit_cur is select dest_code from y_table where dest_code like '44%' order by dest_code desc;
    dummy varchar2(100);
    lv_length Number(9);
    sqlstr varchar2(2500);
    rec_count1 number;
    rec_count2 number;
    rec_count3 number;
    begin
    open explicit_cur;
    LOOP
    fetch explicit_cur into dummy;
    EXIT WHEN explicit_cur%NOTFOUND;
    rec_count1 :=0;
    rec_count2 :=0;
    rec_count3 :=0;
    lv_length := length(dummy);
    sqlstr := 'select count(*) from y_table_data1 t where t.fee_dur_1_1 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''00'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||'''';
    execute immediate sqlstr into rec_count1;
    sqlstr := 'select count(*) from y_table_data1 t where t.fee_dur_1_2 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'',
    ''ITAX1B'',''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''00'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||'''';
    execute immediate sqlstr into rec_count2;
    sqlstr := 'select count(*) from y_table_data1 t where t.fee_dur_1_1 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'',
    ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''012'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||'''';
    execute immediate sqlstr into rec_count3;
    if(rec_count1>0) then
    sqlstr := 'insert into y_summary(BILL_DATE ,PREFIX, TRUNK_MGR,OUTCALLS , OUTDUR , IDD_FLAG , PK_FLAG )
    select '|| month_val||' ,substr(t.orig_called_num,1,'||lv_length||'),t.trunkout_operator ,count(*) , round(sum(ceil(t.duration / 15) * 15) / 60, 0),''00'',''1'' from y_table_data1 t where t.fee_dur_1_1 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''00'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||''''|| ' group by t.trunkout_operator,substr(t.orig_called_num,1,'||lv_length||')';
    execute immediate sqlstr;
    commit;
    sqlstr :='DELETE from y_table_data1 t where t.fee_dur_1_1 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''00'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||'''';
    execute immediate sqlstr;
    commit;
    end if ;
    if(rec_count2>0) then
    sqlstr :='insert into y_summary(BILL_DATE ,PREFIX, TRUNK_MGR,OUTCALLS , OUTDUR , IDD_FLAG , PK_FLAG )
    select '|| month_val||' ,substr(t.orig_called_num,1,'||lv_length||'),t.trunkout_operator ,count(*) , round(sum(ceil(t.duration / 15) * 15) / 60, 0),''00'',''0'' from y_table_data1 t where t.fee_dur_1_2 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''00'' group by t.trunkout_operator,substr(t.orig_called_num,1,'||lv_length||')';
    execute immediate sqlstr;
    commit;
    sqlstr :='DELETE from y_table_data1 t where t.fee_dur_1_2 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''00'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||'''';
    execute immediate sqlstr;
    commit;
    end if;
    if(rec_count3>0) then
    sqlstr :='insert into y_summary(BILL_DATE ,PREFIX, TRUNK_MGR,OUTCALLS , OUTDUR , IDD_FLAG , PK_FLAG )
    select '|| month_val||',substr(t.orig_called_num,1,'||lv_length||'),t.trunkout_operator ,count(*) , round(sum(ceil(t.duration / 15) * 15) / 60, 0),''012'',''0'' from y_table_data1 t where t.fee_dur_1_1 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''012'' group by t.trunkout_operator,substr(t.orig_called_num,1,'||lv_length||')';
    execute immediate sqlstr;
    commit;
    sqlstr :='DELETE from y_table_data1 t where t.fee_dur_1_1 <> 0
    and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
    and t.service_code = ''012'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||'''';
    execute immediate sqlstr;
    commit;
    end if;
    end loop;
    close explicit_cur;
    end explicit2;
    Edited by: user10951541 on 25.4.2010 12.08

    Dear concern
    Really sorry not to make format listing because i am amature to this blog.
    my anwser to your way .
    1. I have Tested my SQL statements manually in SQL*Plus. this runs ok
    2. "Cursor loops, such as the one you have coded here, have been obsolete in Oracle since version 8i 12+ years ago.
    Look up BULK COLLECT and FORALL in the docs and use them instead."
    I am trying to make use of the BULK COLLECT and FORALL statement in proper location.
    3. "Your procedure never performs a commit so no work actually takes place" i need to get the anwser why........................?
    4. "On what basis was the decision made to use the default PCTFREE and PCTUSED values of 10 and 40?"
    is there any problem if default is used..? if any suggestion........pls
    5." You did not format your listing using the CODE tags as explained in the FAQ making your listing unreadable ... so I've not read it.
    Please read the FAQ and use the proper way to post code so we can understand it. Then perhaps we can help you further. " really sorry not to make understandable to you..? but i will try from next post..
    I really will try to be synced..
    My aim is to make query to Table A using the cursor value like( '4422','442','4411','441','44') and get some data in accordance of these values.Then i put the data into another Table B. same time i need to delete the record from Table A containing the prefix value in accordance for example- i compute value for '4422' from Table A and put the computed value to Table B .Then i delete the record from Table A where prefix is '4422' .so that computed value for the next prefix '442' should contain the computed value for 442[0-1] and 442[3-9] .Same way it will be happened for ('4411','441','44'....bla...bla).
    Thanks in advance..

  • BEx Analyzer: Use Of Variable Values For Planning Sequence

    Hi experts,
    I want to start a planning sequence using a button item in a BEx Analyzer workbook. The planning sequence itself is defined with several variables, that are input ready. The same variables are used in BEx Queries that are bound to DataProviders in the workbook. Therefore the variables are filled by the user, if the workbook has been started. If the user wants to start the planning sequence, that is defined on the button item, the same variable values (which the user has already set in the beginning) should be used. But I didn't find a way to fill planning sequence variable from variables (like it is possible in the web interface using the DataBinding function). It seems, that it is only possible to set the variable with static values, that are defined in the button item. Am I erring in this point?
    Anyone here who can help me regarding this issue?

    Eitan Ohayon wrote:
    Why did you raise this question?,did you face any problem?
    Hi Eitan,
    The problem was, that the planning sequence worked fine in web but not in analyzer. The system told me in web, that several records had been read, created, changed and deleted. System messages in BEx Analyzer always indicated zero reads, creations, reads and deletions.
    Using your idea to set breakpoint in the INIT_EXECUTION method gave me the information, that all variables are not set or set with initial values (like '0000' for fiscal year). This seems to be the reason for my problem. Now I've reduced the planning sequence definition on the button only to that variables, that are really needed. Furthermore I defined the Command Range to get dynamic values for the variables from the excel sheet grid. So it seems to work.
    Thank you for your help!

  • Fixed procedure for Costing. (Sequence)

    Dear All
    Pls explain the Fixed procedure for Costing. (Sequence)
    Regards
    Avijit

    Odi Procedures are mainly meant for DML execution..A SELECT query there holds little or no value in my opinion..
    Select queries are only usable in Command on Source and there the general application of that is to use those values returned by the SELECT query on Command Source as a input to the Command/Query/Statement/Java or Jython block at the Command on Target Tab in a one by one iterative manner.
    Lets say your command on source returns 5 rows..So your command on target is executed 5 times and you can use the attributes of these rows as inputs to your command on target in each iteration .. It works like an Internal Cursor

  • Create a procedure for SAE function by using trigger.

    how to create a procedure by using triggers.
    we Have a job constant for the SAE function to trigger psuedo code SAE_ENG_DOC description: Engineering Documentation requirement. This should only trigger 1 time per job regardless of how many up issues recosting there may be.
    and we have to add 2 hrs for Engineering Documentation .
    Please give me response as soon as possible.
    Thx & Regards
    Sridevi

    The response as soon say that shine light on document reflects wording on manual into retina for purpose of consumption by cerebral cortex for the understanding the problem to formulate solution.
    Or else you can try plain and simply English saying WHAT the problem is, without making assumptions that we understand your tables, your software, your database, your environment and your requirements.
    And drop the "give me response as soon as possible" as no one here owes you a damn thing in terms of how quick to respond to your problem.

  • How to start approval procedure for a Document/Draft using DI API

    Hi!
    My code imports purchase orders from one non-B1 system to SAP B1 using DI API. The problem is that in B1 system there is an approval process configured and I need the newly created purchase order to enter this approval process.
    Currently this is not done because approval procedure isn't triggered when creating documents using DI API.
    I had an idea to create a draft of PO instead of the PO and then push this draft into approval process somehow. But I can't find a way how to tell DI API to start approval procedure for my draft/document.
    Thank you for your replies!
    Jan

    Unfortunately there is no way to trigger the approval process for any object added through the DI API.
    Your workaround of adding the documents as drafts is as close as you can really come but maybe you could extend it slightly - it will involve a UI API addon:
    Make the addon mandatory, and add a UDF to the user table, for example "U_Approver" and a UDF to PO document, like "U_Approval"
    - Set this U_Approval to yes when adding through DI and add as draft
    - When user opens draft document in the application, check are they an approver (U_Approver = "Y")
    - If they are not, and try to view/add a draft which is flagged as needing approval, block them from adding.
    You could further expand your DI project to send a mail to the approver whenever a draft PO is added.

  • I have problem with fonts for my site, i have used "Lucida sans unicode " family for certain texts. it shows perfect in mozilla 3.5 and mozilla 4. But the font not supporting in mozilla 5.0? please help me

    i have problem with fonts for my site, i have used "Lucida sans unicode " family for certain texts. it shows perfect in mozilla 3.5 and mozilla 4. But the font not supporting in mozilla 5.0? please help me

    i have problem with fonts for my site, i have used "Lucida sans unicode " family for certain texts. it shows perfect in mozilla 3.5 and mozilla 4. But the font not supporting in mozilla 5.0? please help me

  • DVD Burn problem. "Device error - the target device isn't suitable for use"

    Hello everyone,
    I initially had a lot of problems with PE8. However the nVidia driver update solved most of them.
    Just thought it was important to report success as well as failure!
    However one problem remains. I get the following error at the 96% mark while burning. "Device error - the target device isn't suitable for use". It is always at the 96% mark and the program is "compiling [something]" when this happens.
    Having searched this site I notice that user rgferg posted a similar problem 13 days ago but was redirected to repost in a different place, but never did.
    I have tried to burn a 1hr clip 4 times and every time I have selected the slower burn speed (8MB/s) as has been suggested. It seems that inferior media is a culprit, so I have bought some [quality] Verbatim DVD-R media to try in my Phillips SATA optical drive. I am sceptical this will work, but open minded nonetheless. I will give it a whirl when my computer has stopped capturing the VHS I am working on.
    Each time the burn failed the disk was automatically ejected and the burn process had actually started and progressed perhaps ~40% or so.
    This indicates to me that it is a drive sharing issue, rather than a media issue. Somewhere on this forum it suggests that I go through a 20+ step process and delete/disable every piece of software that can compete with Premiere among other things. IF I do this what do I burn with outside of Adobe? Do I have to get imgburn or whatever it was called? What if I like Nero? Nero 6 has worked great for me for 3 years.
    So given I am willing to uninstall my old optical drive burning software, who out there can recommened commercial software that for them creates a painless Adobe burning experience with no errors or conflicts? Perhaps there is another solution that I did not see on this forum?
    I am running Windows XP SP3. I have the latest nVidia drivers for my SLI GeForce 7600 GS cards. I have 3 monitors. RAID 0 SATA, 2GB RAM, Athlon X2 5400.
    Justin.

    OK been working through the list of 20 things Adobe recommends to fix DVD burn error. No luck yet:
    system meets minimum requirements
    Project size does not exceed disk capacity
    successfully burned project to DVD folder -thus skip to step 8.
      8.   Using new blank media for burning
      9.   Try different media and DVD burners. Bought Verbatim DVD-R. Don't have another DVD burner. Adobe's supported burner list is VERY short, so of course mine is not on it.
      10.  Uninstalled Nero 6. Did NOT uninstall Acronis True Image workstation or Lightscribe. These do not access the drive unless I say so!
      11.  Have not yet disabled startup items and services. This will take a lot of work and will leave to last. Deactivated Spybot thus far.....
      12.  Disabled IMAPI CD burning COM
      13.  DMA if available already set. Haven't set this in BIOS yet. I already think it is, but will check next boot.
      14.  Updated DVD firmware
      15.  Already updated nVidia drivers
      16.  Don't have any other DVD drives to disconnect.
      17.  MPEG workaround. Will resort to if required.
      18.  Disable Autoplay? XP only has "prompt me each time to choose an action". I have set this for ALL file types.
      19.  Have NOT refreshed the DVD drivers in the registry. This step involves uninstalling PE8. Will leave this as last resort.
      20.  Visit forums to see if other have the same problem. Hi guys
    So still working through some of the items above.
    Can anyone direct me to advice on how to write the encoded files sent to the hard drive, or the VOB files that PE8 failed to burn to a disk? Will the former work with DVD menus?
    What a process.
    Stay tuned.
    Justin.

  • Exporting the Browse Sequence XML file for Use in Another Project

    When I generate a browse sequence based on the TOC using zero for the book level, instead of getting A, A1, A2, B, B1, B2, I get A, B, A1, A2, B1, B2.  The TOC runs through all 1st level items first, cycles back through all 2nd level item, then 3rd level, etc.
    My workaround was to auto-create the browse sequence at a 0 level and then manually manipulate it to output according to how my readers would actually read my online book (ie A Aa A1 A1a A1b A2 A2a A2b B B1 etc etc).
    Now that I have my browse sequence in the correct order for this project, I do not want to repeat these steps every time I create a new version of my OLH for the same guide after some minor updates have been made to the FM source.
    There is a file named whbrs.xml inside the output folder and it contains the browse sequence order I specified during my workaround steps.
    Is it possible to export this file to another location for use in another project referencing the same guide?
    This methodology is much preferred as I am working at an enterprise level with multiple documents (some numbering in the hundreds of pages) and do not want to have to manually use my workaround for each project I update over the next few years.

    Hi Kristopher
    You probably wouldn't want to use that particular file as it's an output file. You would likely have better luck using the ProjectName.BRS file as that one should be a source file.
    However, keep in mind that whether (or how well) this will work will entirely depend on having the recipient project using the same identical structure and identical file names.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • I am having problems with the Preview application.  When I try to use it to open a pdf document it gets hung-up and I have to select force quit to close it.   Any ideas on how to resolve this problem?  Thanks for any help

    I am having problems with the Preview application.  When I try to use it to open a pdf document it gets hung-up and I have to select force quit to close it.   Any ideas on how to resolve this problem?  Thanks for any help

    Can you open the Preview program without loading a file, like by itself?
    If it doesn't load then I suspect a corrupt Preview preference file.
    Deleting the System Preference or other .plist file
    Can you open other files with Preview, like jpg's and images?
    How about other PDFs? or is it just that one you have downloaded?
    Run through this list of fixes
    Step by Step to fix your Mac

Maybe you are looking for