Variable to be declared when calculating ratio.

Hi ABAP Experts,
I need to calculate ratio of the following:
Lv_Ratio = lv_var1 / lv_var2.
Note: TYPE of lv_var1 and lv_var2  = Currency, Length 13, Dec 2.
I would like to know, what 'TYPE' should the variable lv_ratio be declared?
Thanks a lot in advance.
Best regards,
TM

Hi,
Declare data like this
data: lv_ratio type p decimals 2
Regards,
Jyothi CH.

Similar Messages

  • SP2-0552: Bind variable "SV_STUDENT_ID" not declared.

    I get this error:
    SP2-0552: Bind variable "SV_STUDENT_ID" not declared.
    DECLARE
    sv_student_id NUMBER;
    v_student_id NUMBER := &sv_student_id;
    v_enrolled VARCHAR2(3) := 'NO';
    BEGIN
    DBMS_OUTPUT.PUT_LINE ('Check if the student is enrolled');
    SELECT 'YES'
    INTO v_enrolled
    FROM enrollment
    WHERE student_id = v_student_id;
    DBMS_OUTPUT.PUT_LINE ('The student is enrolled into one course');
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    DBMS_OUTPUT.PUT_LINE ('The student is not enrolled');
    WHEN TO_MANY_ROWS
    THEN
    DBMS_OUTPUT.PUT_LINE ('The student is enrolled to many courses');
    END;

    Define &sv_student_id;
    DECLARE
      v_student_id NUMBER := &sv_student_id;
      v_enrolled VARCHAR2(3) := 'NO';
    BEGIN
      DBMS_OUTPUT.PUT_LINE ('Check if the student is enrolled');
      SELECT 'YES'
        INTO v_enrolled
        FROM enrollment
       WHERE student_id = v_student_id;
      DBMS_OUTPUT.PUT_LINE ('The student is enrolled into one course');
    EXCEPTION
      WHEN NO_DATA_FOUND THEN
        DBMS_OUTPUT.PUT_LINE ('The student is not enrolled');
      WHEN TO_MANY_ROWS THEN
        DBMS_OUTPUT.PUT_LINE ('The student is enrolled to many courses');
    END;

  • I am using a PC with window 7 and adobe photoshop 12. I have followed Photoshop Elements Help and I still have the same problem. When I try to backup Photoshop 12 it has stop on7% when calculating Total Media size. What can I do?

    I am using a PC with window 7 and adobe photoshop 12. I have followed Photoshop Elements Help and I still have the same problem. When I try to backup Photoshop 12 it has stop on7% when calculating Total Media size. What can I do?

    Hi Prabhuram and falez,
    This issue appears where there are any inconsistencies in your catalog (generally for video files). This issue may be due to offline files, missing files, video scenes. The recommendation here would be to fix these inconsistencies and try again. If that doesn't solve the issue, please follow steps mentioned in email by me.
    ~Surendra

  • Passing Variable to air app when launch using Badger

    Hi all,
    I am going to desperately to develop my application. Hope someone can help me........
    I am using badger for air which I get it here http://www.adobe.com/devnet/air/articles/badger_for_air_apps.html and it launch my app correctly, but I can't pass any variable into my app when launch.
    I have read the instruction and adding some code like this :
    on index.html(show my badge installer):
        var so = new SWFObject("AIRInstallBadge.swf", "", "215", "180", "9.0.115", "#000000");
            so.addVariable("airversion", "1.5");
            so.addVariable("appname", "Secure%205");
            so.addVariable("appurl", "http://localhost/testing/source/secure5.air");
            so.addVariable("appid", "examples.html.HelloWorld");
            so.addVariable("pubid", "B71ED76ECC937067D72BB9A0CDB516D1A8F43A9E.1");
            so.addVariable("arguments", "launch from browser");// this is my code
            so.addVariable("appversion", "0.1");
            so.write("flashcontent");
    on index.html(my initial content) :
    var urlMonitor;
    var urlReq;
    var invokeEvent;
    var applicationID = "myappid";
    var publisherID = "mypubid";
    var applauncarg;
    //var admin="admin";
    function doWindow()
    var options = new air.NativeWindowInitOptions();
    options.transparent = false;
    options.systemChrome = air.NativeWindowSystemChrome.STANDARD;
    options.minimizable = false;
    options.maximizable = false;
    options.resizable=false;
    var windowBounds = new air.Rectangle(0,0,air.Capabilities.screenResolutionX,air.Capabilities.screenResolutionY);
    var urlreq="http://www.example.com";
    var newHTMLLoader = air.HTMLLoader.createRootWindow(true, options, true, windowBounds);
    newHTMLLoader.load(new air.URLRequest(applauncharg));
    newHTMLLoader.stage.nativeWindow.alwaysInFront = true;
    newHTMLLoader.stage.nativeWindow.addEventListener(air.NativeWindowBoundsEvent.MOVE,handlem ove);
    newHTMLLoader.stage.nativeWindow.addEventListener(air.Event.CLOSE,onCloseCommand);
    urlMonitor = new air.URLMonitor(new air.URLRequest("http://www.example.com"));
    urlMonitor.addEventListener(air.StatusEvent.STATUS, onStatusChange);
    urlMonitor.start();
    air.NativeApplication.nativeApplication.addEventListener(air.InvokeEvent.INVOKE, onInvoke);
    //urlReq=new air.URLRequestDefaults.manageCookies = true;
    function handlemove()
    newHTMLLoader.stage.nativeWindow.x=0;
    newHTMLLoader.stage.nativeWindow.y=0;
    function onCloseCommand(exitingEvent) {
    var winClosingEvent;
    for (var i = 0; i < air.NativeApplication.nativeApplication.openedWindows.length; i++) {
    var win = air.NativeApplication.nativeApplication.openedWindows[i];
    winClosingEvent = new air.Event(air.Event.CLOSING,false,true);
    win.dispatchEvent(winClosingEvent);
    if (!winClosingEvent.isDefaultPrevented()) {
    win.close();
    } else {
    exitingEvent.preventDefault();
    if (!exitingEvent.isDefaultPrevented()) {
    //perform cleanup
    function onInvoke(e)
    //apparg=event.applauncharg.toString();
    //alert ('oK'+apparg);
    applauncarg = event.arguments;
    air.trace("onInvoke : " + event.applauncharg);
    //air.Introspector.Console.log( applauncarg );
    alert (applauncarg);

    sory, there is mistake here......
    the question isn't finish yet.
    function onInvoke(e)
    //my code
    applauncarg = event.arguments;
    air.trace("onInvoke : " + event.applauncharg);
    alert (applauncarg);//just to make sure the variable had been sent correctly
    My application running smoothly but there is no alert that show applauncharg variable.
    then I am trying to know if invoke event run correctly or not by adding code
    alert ("OK");
    and it works, so there is no problem with the event listener.
    does any one know if I missing something or any thing wrong with my code?
    sory, there is mistake here......
    the question isn't finish yet.
    function onInvoke(e)
    //my code
    applauncarg = event.arguments;
    air.trace("onInvoke : " + event.applauncharg);
    alert (applauncarg);//just to make sure the variable had been sent correctly
    I have get the answer. If someone need the source code, just Pm me and I'll give you my Source to help you.
    The first is to make sure that your action scipt code can handle the argument that passed by javascript.
    Make attention between invoke event and browser invoke event! it is almost same but they are different.
    If you type browser invoke event, it seems browser invokeevent doesn't recognized, but it works.
    The second is my mistake on source code. onInvokeevent shold be like this :
    function onInvoke(e)
    //my code
    applauncarg = .arguments;
    alert (applauncarg);
    -closed-

  • Bind variable "LOOP" not declared.

    Hi,
    I am very new to Pl/SQL.My job needs me to migrate MySQL database to Oracle(that I did successfully) but the procedures in the MySQL could not be migrated to Oracle,So have to create them manually.
    While creating procedure,Am getting these errors
    Error(4,1): PLS-00103: Encountered the symbol "DECLARE" when expecting one of the following: begin function pragma procedure subtype type <an identifier> <a double-quoted delimited-identifier> current cursor delete exists prior The symbol "begin" was substituted for "DECLARE" to continue.
    Error(5,1): PLS-00103: Encountered the symbol "DECLARE" when expecting one of the following: begin function pragma procedure subtype type <an identifier> <a double-quoted delimited-identifier> current cursor delete exists prior
    CREATE OR REPLACE PROCEDURE PROCEDURE1 AS
    BEGIN
    Declare v_date date;
    Declare v_particulars varchar(50);
    Declare v_quantity float default 0;
    Declare v_item integer default 0;
    Declare v_vendor integer default 0;
    Declare v_flag integer default 1;
    Declare v_supplier_id integer default null;
    Declare v_unit integer default 0;
    Declare v_srno integer default 0;
    Declare op_date date;
    declare op_bal float default 0;
    Declare temp_v_from_date date;
    Declare temp_v_to_date date;
    Declare done integer default 0;
    Declare cur1 cursor for  (select  sibs.opening_balance_date,'Opening Balance',sibs.item_id,
    sum(sibs.opening_balance_qty), '1'from store_item_batch_stock sibs  where sibs.opening_balance_date is not null
    and sibs.department_id = v_depart  and  sibs.item_id = v_item_id group by sibs.item_id);
    Declare cur2 cursor for  (select sgm.grn_date, concat('Receipt',' - (',sgm.grn_no,')'), sgt.item_id,
    sum(NVL((case d.formula when 1   then ((sgt.received_qty + sgt.free_qty) * sgt.mdq_value) / d.conversion_factor1
    else (sgt.received_qty + sgt.free_qty) end),0)), '2',sgm.supplier_id,sgm.unit_id from store_grn_m sgm,
    store_grn_t sgt, mas_store_item c, mas_store_item_conversion d
    where sgm.grn_date between v_from_date and v_to_date and  sgm.department_id = v_depart
    and   sgt.item_id = c.item_id  and   c.item_conversion_id = d.item_conversion_id  and   sgt.grn_master_id = sgm.grn_master_id
    and   sgt.item_id = v_item_id group by sgm.grn_master_id         );
    Declare cur3 cursor for (select sim.issue_date,concat('Issue',concat(' -(',concat(sim.issue_no,')'))), sit.item_issued,
    sum(NVL(sit.qty_issued,0)), '3'  from store_issue_m sim, store_issue_t sit
    where sim.issue_date between v_from_date and v_to_date and   sim.department_id = v_depart
    and   sit.issue_m_id = sim.id  and   sim.issue_type = 'i' and   sit.item_issued = v_item_id
    and   sit.issued = 'y' group by sim.id         );
    Declare cur4 cursor for (select sgrm.return_date, 'Vendor Return', sgrt.item_id,
    sum(NVL(sgrt.return_qty,0)), '3' from store_grn_return_m sgrm,store_grn_return_t sgrt
    where sgrm.return_date between v_from_date and v_to_date      and   sgrm.department_id = v_depart
    and   sgrt.grn_return_id = sgrm.grn_return_id  and   sgrt.item_id = v_item_id  group by  sgrm.grn_return_id         );
    Declare cur5 cursor for (select sadm.adjustment_date, 'Adjustment',sadt.item_id,
    sum(NVL(sadt.adjust_qty,0)), '2'                  from store_adjustment_m  sadm,
    store_adjustment_t  sadt where sadm.adjustment_date between v_from_date and v_to_date
    and   sadm.department_id = v_depart  and   sadt.adjust_id = sadm.id  and   sadt.item_id = v_item_id
    and   sadt.adjust_qty != 0 group by sadm.id                  );
    Declare cur6 cursor for (select sim.issue_date,'Receipt (Internal)', sit.item_issued,
    sum(NVL(sit.qty_issued,0)), '2' from store_issue_m sim, store_issue_t sit
    where sim.issue_date between v_from_date and v_to_date      and   sim.to_store = v_depart
    and   sit.issue_m_id = sim.id   and   sim.issue_type = 'i'   and   sit.item_issued = v_item_id
    and   sit.issued = 'y' group by sim.id         );
    declare cur7 cursor for (select siam.adjustment_date, 'Adjustment',siat.item_id,
    sum(NVL(siat.adjusted_qty,0)), '2'                  from store_item_adjustment_m  siam,
    store_item_adjustment_t  siat where siam.adjustment_date between v_from_date and v_to_date
    and   siam.adjustment_login_dept = v_depart  and   siat.item_adjustment_m_id = siam.item_adjustment_id
    and   siat.item_id = v_item_id and   siat.adjusted_qty != 0 group by siam.item_adjustment_id
    Declare oldcur1 cursor for  (select sgm.grn_date, 'Receipt', sgt.item_id,
    sum(NVL((case when d.formula =1  then ((sgt.received_qty + sgt.free_qty) * sgt.mdq_value) / d.conversion_factor1
    else (sgt.received_qty + sgt.free_qty) end),0)), '2'                  from store_grn_m sgm,
    store_grn_t sgt, mas_store_item c, mas_store_item_conversion d
    where sgm.grn_date between '2009-03-31' and (v_from_date -1)
    and   sgm.department_id = v_depart  and   sgt.item_id = c.item_id  and   c.item_conversion_id = d.item_conversion_id
    and   sgt.grn_master_id = sgm.grn_master_id  and   sgt.item_id = v_item_id  group by sgm.grn_master_id  );
    Declare oldcur2 cursor for (select sim.issue_date,'Issue', sit.item_issued,
    sum(NVL(sit.qty_issued,0)), '3' from store_issue_m sim, store_issue_t sit
    where sim.issue_date between '2009-03-31' and (v_from_date -1)
    and   sim.department_id = v_depart  and   sit.issue_m_id = sim.id  and   sim.issue_type = 'i'
    and   sit.item_issued = v_item_id   and   sit.issued = 'y' group by sim.id         );
    Declare oldcur3 cursor for (select sgrm.return_date, 'Return', sgrt.item_id, sum(NVL(sgrt.return_qty,0)), '2'
    from store_grn_return_m sgrm, store_grn_return_t sgrt
    where sgrm.return_date between '2009-03-31' and (v_from_date -1)
    and   sgrm.department_id = v_depart   and   sgrt.grn_return_id = sgrm.grn_return_id   and   sgrt.item_id = v_item_id group by sgrm.grn_return_id );
    Declare oldcur4 cursor for (select sadm.adjustment_date, 'Adjustment',sadt.item_id,
    sum(NVL(sadt.adjust_qty,0)), '2'  from store_adjustment_m  sadm, store_adjustment_t  sadt
    where sadm.adjustment_date between '2009-03-31' and (v_from_date -1)  and   sadm.department_id = v_depart
    and   sadt.adjust_id = sadm.id   and   sadt.item_id = v_item_id  and   sadt.adjust_qty != 0 group by sadm.id );
    Declare oldcur5 cursor for (select sim.issue_date,'RCPT', sit.item_issued, sum(NVL(sit.qty_issued,0)), '3' from store_issue_m sim,
    store_issue_t sit where sim.issue_date between '2009-03-31' and (v_from_date -1)  and   sim.to_store = v_depart
    and   sit.issue_m_id = sim.id   and   sit.item_issued = v_item_id   and   sit.issued = 'y' group by sim.id );
    declare oldcur7 cursor for (select siam.adjustment_date, 'Adjustment',siat.item_id,
    sum(NVL(siat.adjusted_qty,0)), '2'                  from store_item_adjustment_m  siam,
    store_item_adjustment_t  siat where siam.adjustment_date between '2009-03-31' and (v_from_date -1)
    and   siam.adjustment_login_dept = v_depart  and   siat.item_adjustment_m_id = siam.item_adjustment_id  and   siat.item_id = v_item_id
    and   siat.adjusted_qty != 0 group by siam.item_adjustment_id
    Declare closingStockUpdateCursor cursor for(select sno,date,qty,flag from ledger where dept_id = v_depart  and item_id = v_item_id
    and flag!=0 order by date  );
    Declare continue handler for not found set done =1;
    delete from ledger where item_id = v_item_id and dept_id = v_depart;
    Open cur1;
    item_loop:loop
    Fetch cur1 into v_date, v_particulars, v_item, v_quantity, v_flag;
    If done =1 then
    Leave item_loop;
    End if;
    if not (v_date > v_from_date) then
    set op_bal = v_quantity;
    set op_date = v_date;
    End if;
    End loop item_loop;
    Close cur1;
    set  done = 0;
    Open oldcur1;
    item_loop:loop
    Fetch oldcur1 into v_date, v_particulars, v_item, v_quantity, v_flag;
    If done =1 then
    Leave item_loop;
    End if;
    set op_bal = op_bal + v_quantity;
    End loop item_loop;
    Close oldcur1;
    set  done = 0;
    Open oldcur2;
    item_loop:loop
    Fetch oldcur2 into v_date, v_particulars, v_item, v_quantity, v_flag;
    If done =1 then
    Leave item_loop;
    End if;
    set op_bal = op_bal - v_quantity;
    End loop item_loop;
    Close oldcur2;
    set  done = 0;
    Open oldcur3;
    item_loop:loop
    Fetch oldcur3 into v_date, v_particulars, v_item, v_quantity, v_flag;
    If done =1 then   Leave item_loop;
    End if;   set op_bal = op_bal + v_quantity;
    End loop item_loop;
    Close oldcur3;
    set  done = 0;
    Open oldcur4;
    item_loop:loop
    Fetch oldcur4 into v_date, v_particulars, v_item, v_quantity, v_flag;
    If done =1 then
    Leave item_loop;
    End if;
    if op_date != v_date then
    set op_bal = op_bal + v_quantity;
    End if;
    End loop item_loop;
    Close oldcur4;
    set  done = 0;
    Open oldcur5;
    item_loop:loop
    Fetch oldcur5 into v_date, v_particulars, v_item, v_quantity, v_flag;
    If done =1 then   Leave item_loop;
    End if;
    set op_bal = op_bal + v_quantity;
    End loop item_loop;
    Close oldcur5;
    set  done = 0;
    Open oldcur7;
    item_loop:loop
    Fetch oldcur7 into v_date, v_particulars, v_item, v_quantity, v_flag;
    If done =1 then   Leave item_loop;
    End if;
    set op_bal = op_bal + v_quantity;
    End loop item_loop;
    Close oldcur7;
    set  done = 0;
    insert into ledger(date, particulars,qty,item_id,dept_id,flag,closing_stock)   values(v_from_date,'Opening Balance', op_bal, v_item_id,v_depart,'0',op_bal);
    Open cur2;
    item_loop:loop
    Fetch cur2 into v_date, v_particulars, v_item, v_quantity, v_flag, v_supplier_id, v_unit;
    If done =1 then
    Leave item_loop;
    End if;
    insert into ledger(date, particulars,qty,item_id,flag,dept_id,vendor_id,closing_stock,unit_id)   values(v_date,v_particulars, v_quantity, v_item,v_flag,v_depart,v_supplier_id,0,v_unit);
    End loop item_loop;
    Close cur2;
    set  done = 0;
    Open cur3;
    item_loop:loop
    Fetch cur3 into v_date, v_particulars, v_item, v_quantity, v_flag;
    If done =1 then
    Leave item_loop;
    End if;
    insert into ledger(date, particulars,qty,item_id,flag,dept_id,closing_stock)   values(v_date,v_particulars,v_quantity, v_item,v_flag,v_depart,0);
    End loop item_loop;
    Close cur3;
    set  done = 0;
    Open cur4;
    item_loop:loop
    Fetch cur4 into v_date, v_particulars, v_item, v_quantity, v_flag;
    If done =1 then
    Leave item_loop;
    End if;
    insert into ledger(date, particulars,qty,item_id,flag,dept_id,closing_stock)   values(v_date,v_particulars,v_quantity, v_item,v_flag,v_depart,0);
    End loop item_loop;
    Close cur4;
    set  done = 0;
    Open cur5;
    item_loop:loop
    Fetch cur5 into v_date, v_particulars, v_item, v_quantity, v_flag;
    If done =1 then   Leave item_loop;
    End if;
    insert into ledger(date, particulars,qty,item_id,flag,dept_id,closing_stock)   values(v_date,v_particulars, v_quantity, v_item,v_flag,v_depart,0);
    End loop item_loop;
    Close cur5;
    set  done = 0;
    Open cur6;
    item_loop:loop
    Fetch cur6 into v_date, v_particulars, v_item, v_quantity, v_flag;
    If done =1 then
    Leave item_loop;
    End if;
    insert into ledger(date, particulars,qty,item_id,flag,dept_id,closing_stock)   values(v_date,v_particulars, v_quantity, v_item,v_flag,v_depart,0);
    End loop item_loop;
    Close cur6;
    set  done = 0;
    Open cur7;
    item_loop:loop
    Fetch cur7 into v_date, v_particulars, v_item, v_quantity, v_flag;
    If done =1 then
    Leave item_loop;
    End if;
    insert into ledger(date, particulars,qty,item_id,flag,dept_id,closing_stock)   values(v_date,v_particulars, v_quantity, v_item,v_flag,v_depart,0);
    End loop item_loop;
    Close cur7;
    set  done = 0;
    Open closingStockUpdateCursor;
    item_loop:loop
    Fetch closingStockUpdateCursor into v_srno,v_date, v_quantity, v_flag;
    If done =1 then
    Leave item_loop;
    End if;
    if v_flag = 2 then
    set op_bal = op_bal + v_quantity;
    else
    set op_bal = op_bal - v_quantity;
    end if;
    update ledger set closing_stock = op_bal where sno = v_srno;
    End loop item_loop;
    Close closingStockUpdateCursor;
    set  done = 0;
    END
      NULL;
    END PROCEDURE1;
    /Please help where I am getting wrong

    Another comment.
    If two products are identical in features, there is nothing much to differentiate one from the other. And this is important as the differences between products are what drives the buyer's decision as to which one is the best.
    There are major differences between Oracle and mySQL. Some of them core and fundamental differences. And this is what makes one product "better" than the other - and drives the decision on whether to use Oracle or mySQL.
    Oracle makes a poor mySQL. It does the Oracle thing very well. So it does not make sense to take a design and code that works for mySQL, plonk it down on Oracle, and think that Oracle's differences will now make this design and code work and perform "better".
    Everything but. As Oracle does a poor mySQL imitation, the end result of that will be a system that performs worse than what it did on mySQL.
    To make use of that which makes Oracle "better" than mySQL, requires the application to be redesigned and code refactored.
    So IMO, what you/your company are doing, is bound for failure. You will pay more money for a more sophisticated and very able RDBMS product - that is unable to reach its potential as you are asking it to pretend to be mySQL and to do that, better than mySQL. That is an epic fail.

  • How to consider only values 0 when calculating Averages

    Hi,
    Currently, I am using Avg (table.column) function to caluclate averages. However, one of our user wants to only consider records that are >0 when calculating averages. For example if a result set as 10 records, and only 2 of them has values >0 then typically Avg function would caculate based on (sum of 10 records/10). But per our user's requirement, he wants to consider (sum of 2 records/2) and ignore the remaining 8.
    Can you please tell me how to do achieve this?

    I found the solution after much deliberatiion myself :-). I used the following formula instead of the AVG function and it worked.
    Note that "Fact - +fact name+".column is a numeric column and can have null values.
    SUM(IFNULL("Fact - +fact name+".column, 0)) / COUNT("Fact - +fact name+".column)

  • "PLS-00201: identifier 'JAVA_XA.XA_START_NEW' must be declared" when deploying with XA connection pools

    I get the error message "PLS-00201: identifier 'JAVA_XA.XA_START_NEW' must
              be declared" when I try to deploy a J2EE application which uses XA pools and
              TX datasources.
              I am not sure how to setup my system for running with XA. I have tried to
              see what other people have done in this new group and copied from them.
              My connection pools looks like this:
              <JDBCConnectionPool
              DriverName="oracle.jdbc.xa.client.OracleXADataSource"
              MaxCapacity="5" Name="alba"
              Properties="user=<user>;url=jdbc:oracle:thin:@haux01:1526:UTV8;password=<pas
              sword>;dataSourceName=alba"
              RefreshMinutes="60" Targets="myserver"
              URL="jdbc:oracle:thin:@haux01:1526:UTV8"/>
              My data sources look like this:
              <JDBCTxDataSource JNDIName="alba_ora817_localsl"
              Name="alba_ora817_localsl" PoolName="alba" Targets="myserver"/>
              The database is oracle 8.1.7.2.0
              The reason I started trying to use XA in the first place was when I tried to
              connect to two databases in the same transaction. I then got an error
              message saying: java.sql.SQLException: Connection has already been created
              in this tx context for pool named <first pool name>. Illegal attempt to
              create connection from another pool: <second pool name>. As I have
              understood, XA pools should fix this problem.
              /Eirik
              

    Hi Eirik
              Is your Oracle database Server setup for XA? Check Oracle Docs on how to do
              that.
              you need to make sure this script is run on the server, initjvm.sql (It
              should be in your oracle installation rdbms scripts) and then grant select
              permission on dba_pending_transactions.
              hth
              sree
              "newsgroups.bea.com" <[email protected]> wrote in message
              news:[email protected]...
              > I get the error message "PLS-00201: identifier 'JAVA_XA.XA_START_NEW' must
              > be declared" when I try to deploy a J2EE application which uses XA pools
              and
              > TX datasources.
              > I am not sure how to setup my system for running with XA. I have tried to
              > see what other people have done in this new group and copied from them.
              > My connection pools looks like this:
              > <JDBCConnectionPool
              > DriverName="oracle.jdbc.xa.client.OracleXADataSource"
              > MaxCapacity="5" Name="alba"
              >
              >
              Properties="user=<user>;url=jdbc:oracle:thin:@haux01:1526:UTV8;password=<pas
              > sword>;dataSourceName=alba"
              > RefreshMinutes="60" Targets="myserver"
              > URL="jdbc:oracle:thin:@haux01:1526:UTV8"/>
              >
              > My data sources look like this:
              > <JDBCTxDataSource JNDIName="alba_ora817_localsl"
              > Name="alba_ora817_localsl" PoolName="alba" Targets="myserver"/>
              >
              > The database is oracle 8.1.7.2.0
              >
              > The reason I started trying to use XA in the first place was when I tried
              to
              > connect to two databases in the same transaction. I then got an error
              > message saying: java.sql.SQLException: Connection has already been created
              > in this tx context for pool named <first pool name>. Illegal attempt to
              > create connection from another pool: <second pool name>. As I have
              > understood, XA pools should fix this problem.
              >
              >
              > /Eirik
              >
              >
              

  • Omit the XML declaration when using the PHP MM_XSLTransform class

    Hi
    Is there any way to omit the XML declaration when using the
    PHP MM_XSLTransform class?
    When using the PHP MM_XSLTransform to transform some XML into
    HTML, the XML declaration is faithfully delivered, which is
    expected. In my case though this ends up in the body of the
    document and is not desired. I wish to choose that the XML
    declaration is not shown.
    I have tried to use the <xsl:output method="xml"
    encoding="utf-8" omit-xml-declaration="yes"/> in the XSL
    stylesheet but the declaration still appears.
    Any help?
    all the best
    Dave

    Jim20005 wrote:
    > I'm using XLS transfomation in DW for reading XML files.
    Now (I'm just back
    > form holiday), my webspace provider has updated to php
    5.1.5. I'm getting this
    > error:
    Comment out line 301 and add two new lines immediately after
    it like this:
    // $xml = DOMDocument::loadXML($content);
    $doc = new DOMDocument();
    $err = $doc->loadXML($content);
    This is part of a PHP 8.0.2 hotfix that can be obtained
    directly from
    Adobe support.
    David Powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • PSE 11 freezes when calculating total media size during a full backup

    Like many other users on these boards, I am unable to complete a full backup of a particular catalog on my machine using PSE 11 (or PSE 10 for that matter). I have four catalogs on this machine and three of the four complete the full backup process without any problems. That last, non-cooperating, catalog is much larger (7,389 photographs) than the others, but I do not think that this would pose a problem.
    Following other advice and guidance, I have removed all videos, audios, projects, PDFs, and audio captions (in other words, all media types other than photographs) from the catalog. The only files remaining are photographs (that is, JPG files). I attempt to complete a full backup and, when calculating the total media size, the PSE 11 application freezes at five to six percent. I have attempted this in PSE 10 as well, but with the same results. (I was hoping that the new release would fix the problem. No luck.)
    The only other item of note is this, when I search for the various media types, I see the message "no media to be displayed" in the middle of the organizer window. However, when I search for video, I do not see the message--the organizer window is blank (no text message as seen for the other media types).
    Lastly, I have reconnected all missing files. (None.) Optimized the catalog. Fixed errors in the catalog anyway. (None.)
    Does anyone have any other ideas on how I can complete a full backup of this catalog? A large cash reward awaits... (kidding). Please advise. Thank you!

    I found that backing up with other software does not maintain the stacks, versions and albums. These are lost, even if I write the metadata to the files...that only keeps the tags, in my experience. PSE 12 doesn't fix the problem so no need to upgrade unless you want to for other reasons.
    I do have a solution that worked for me. There are quite a few steps but worth the effort if it also solves your problem.
    The main culpret in my case were "Locked / Read Only" files. Since I did several things simultaneously, I may have had video file issues as well.
    Here is what worked for me:
    A. First: Save your "Meta Data to Files".
    1. On the Organizer Main Screen click "File" -- "Save Metadata To Files"
    B. You can have Adobe find files that it doesn't like by having it search your "Pictures" directory.
    1. On the Organizer Main Screen click "File" -- "Get Photos and Videos" -- "By Searching".
    2. Find your "Pictures" directory in the "Look in" drop down box & click on it.
    3. Click "Search"
    4. When the "Search results" are complete, click "Select All" -- "Import Folders".
    5. A "Getting Media" dialog box shows the results.
    6. Click the "Reason" header to sort the results.
    7. Scroll down to display any errors that Adobe finds.
    8. Make note of the "path" and "file name" under the "File" header.
    9. Use Windows Explorer to find and fix the issue(s). Look for "Read Only", "Locked", "Archived" or "Hidden" files and change the attribute. I believe that these are part of the problem.
    10. Check for non-picture or video files that Adobe can't handle and move or delete the offending files.
    Note: I have files with these extentions and they work: AVI, BMP, CR2, GIF, JPG, MTS, MOV, PDF, PNG & TIF.
    Note: I had: ZIP, TGA, SHS & PPT files that I moved or deleted. Adobe shouldn't import files it can't handle, but I removed them just to be sure.
    11. Try your backup again.
    C. If the above doesn't work you can narrow down the issue by trying to back up the database selectively by Photos, Video, Audio, Projects or PDF.
    Note: Many people believe that "Video" is the culpret, so I suggest that you rule that out first by removing your Video files from your catalog. This does not delete them from the hard drive. They can be added back into the catalog but there may be some loss of information for Stacks, Versions or Albums so remove Photos from the catalog as a last resort .
    1. On the Organizer Main Screen click "File" -- "Manage Catalogs".
    2. Click "Current Catalog".
    3. Click "Repair" in "Catalog Manager"
    4. Click the check box "Reindex Visual Similarity Data".
    5. Click "Repair Anyway".
    6. When complete, click "Optimize" in "Catalog Manager".
    7. Click "Cancel" in "Catalog Manager".
    8. On the Organizer Main Screen click "View" -- "Media Types".
    9. Uncheck all but the "Video" option.
    Note: "Photos", "Audio", "Projects" & "PDF" will be unchecked and you will only see "Video" files displayed.
    10. Click "Edit" -- "Select All"
    Note: Be cautious during the next few steps.
    11. Click "Edit" -- "Delete from Catalog".
    12. Caution! - DO NOT click the "Also Delete The Selected Items From The Hard Disk" check box.
    Note: You don't want to delete the video files from the hard disk you only want to remove them from the catalog.
    13. Click "File" -- "Backup Catalog" and complete the backup to the desired location.
    Note: You may have to resolve some missing file(s) issues
    Note: Hopefully you now have a backup of all your photos.
    14. Assuming that this was successful, you then know that video files are the culprets and have to go digging. You can selectively add them back by type.
    15. If not successful, you will have to selectively add (rescan) or remove (as above) the media types until you find the one(s) that created the issue. Remove "Photos" last to avoid information loss.
    Good Luck!
    Ed 
    Message was edited by: 205EdMLewis

  • Are pixels when aspect ratioed out (1.5 or 16;9) square or rectanglar?

    are pixels when aspect ratioed out e.g. (1.5 or 16;9) square or rectanglar?
    is the image resized or is it stretched?

    DVCPRO HD is 1280x1080 for NTSC formats. I believe 23.976p is recorded as 59.94i.
    I don't remember if Final Cut ships with any built-in SQ easy setups. But you can create one trivially enough, or maybe look in the Additional Easy Setups folder if you're married to using a pre-made one.

  • AddChild / removeChild variables declaration (when is best?)

    I am putting together my file right now which is now using visual elements purely added and removed via AS3 (addChild / removeChild) methods. My question is just about the proper time / place to declare their variables.
    Can I declare them all at the start of the movie (frame 1) and just call them when I need them, or is it better to declare them on the frames that they are introduced on? I guess the question is really, will I ever lose those variables throughout the movie once they are declared?
    thanks.

    you won't lose variable declarations.  the only thing that could cause a problem was if you referenced an object in a frame where the object doesn't exist.   but you can declare variables to have an object types and do not need to point the variables to objects (until later in your code).

  • How do I Send in a value to the SQL Query Expression's variable created using Declare in Power Query

    I have gone through the other posts where in a parameter is sent to query created by power query but my ask is a bit different. 
    I am using a sql query to retrieve data using Power query which has 2 variables declared in the DECLARE section in the query. 
    Ex: 
    declare @Name varchar(1000)
    SET @Name= 'Alpha'
    declare @location nvarchar(1000)
    SET @location= 'Bravo'
    Select * from Infotable where Name = @Name and location = @location. 
    Now in the following query I would want to send in the values for  the declared variables using a table in my worksheet. I have followed the stuff present in the following post 
    http://blog.oraylis.de/2013/05/using-dynamic-parameter-values-in-power-query-queries/
    but when using the value name (let Name_parameter = Excel.Currentworkbook(), Name_Value = Name_Parameter [0][value]) in the Advance Editor as mentioned in the above post I am being thrown an error stating  Name_Value column doesn't exist.
    I am having a tough time figuring out what the problem could be..

    I have gone through the other posts where in a parameter is sent to query created by power query but my ask is a bit different. 
    I am using a sql query to retrieve data using Power query which has 2 variables declared in the DECLARE section in the query. 
    Ex: 
    declare @Name varchar(1000)
    SET @Name= 'Alpha'
    declare @location nvarchar(1000)
    SET @location= 'Bravo'
    Select * from Infotable where Name = @Name and location = @location. 
    Now in the following query I would want to send in the values for  the declared variables using a table in my worksheet. I have followed the stuff present in the following post 
    http://blog.oraylis.de/2013/05/using-dynamic-parameter-values-in-power-query-queries/
    but when using the value name (let Name_parameter = Excel.Currentworkbook(), Name_Value = Name_Parameter [0][value]) in the Advance Editor as mentioned in the above post I am being thrown an error stating  Name_Value column doesn't exist.
    I am having a tough time figuring out what the problem could be..

  • Variable issue, not declaring

    Hi,
    i've an issue on Production Environment. When i use a variable (both declaring or setting) i retrieve an error.
    "com.sunopsis.core.SnpsInexistantObjectException: SnpSessTaskLog.getObjectByIdent : SnpSessTaskLog does not exist"
    I've checked agent and connection to repo. Any idea?
    Thanks in adavance

    Hi,
    For the record, I just had the same issue and in my case and purging the logs in the Operator was enough to solve the problem.
    Regards,
    Jerome Fr

  • Problem inText Variable cannot replace 0calmonth in calculated keyfigure

    Hi ALL,
    I am facing a problem while creating text variable for calculated keyfigure saying canot find the replacement for 0calmonth, I have 5 restricted keyfigures individually created a text variable for it. and now i have created  a calculated keyfigure for displaying text using same text variable .
    Could you please tell me what might be the problem.How to rectify .do response urgent plz.
    Thanks much.

    Hi,
    Please find below the code.
    WHEN 'ZMON_TEXT_CE'.   ---Text Variable
           DATA:text2(60),
                 c_calmonth(6),
                 l_month  TYPE /bi0/oicalmonth,
                  t_year(4),
                 zktx TYPE fcktx.
            CLEAR :text2,c_calmonth,t_year.
            LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = '0CALMYL'.  ------user input variable
              c_calmonth  = loc_var_range-low.
            ENDLOOP.
            l_month = c_calmonth+4(2).
            t_year = c_calmonth+0(4).
            SELECT ktx FROM t247 INTO zktx WHERE spras = 'EN' AND mnr = l_month.
            ENDSELECT.
            CONCATENATE zktx '-' t_year INTO text2.
            IF text2 <> ' '.
              l_t_range-sign = 'I'.
              l_t_range-opt = 'EQ'.
              l_t_range-low = text2.
              APPEND l_t_range TO e_t_range.
            ENDIF.
    Hope it helps.
    Regards,
    AL

  • Receiving error when calculating two fields with different date format

    I am more familiar with SQL Server than Oracle, so after searching online without success, I am asking here.
    I'm using PL/SQL Developer with Oracle DB 11g Enterprise Release 11.2.0.2.0 64 Bit
    MyTable:
    ID_Number     VarChar2
    Date_Received     Date
    Select ID_Number,
         Date_Received,
         To_Date(substr(ID_Number, 1,6), 'YYMMDD') SentDate,    
         Date_Received - To_Date(substr(ID_Number, 1,6), 'YYMMDD') NumDays
    From MyTable
    Where substr(ID_Number, 7,3) in ('ABC', 'ABD')
    and Length(Trim(Translate((substr(ID_Number, 1,6)), '0123456789', ' ' ))) is null
    ID_Number                    Date_Received          SentDate          NumDays
    131002ABC1654106     10/16/2013               10/2/2013          14
    131004ABD8813899     4/12/2013                 4/8/2013            4
    131014ABD1844832     10/16/2013               10/14/2013          2
    Sometimes the first 6 characters in the ID_Number are not numbers, and the Length(Trim(Translate removes those records
    I just want records where NumDays > 2
    I've tried putting the query in a subquery and using Where NumDays > 2 outside.  I've also tried using the computation directly in the Where clause.  Without this in the Where clause it runs fine, with it in either spot I get the following error:
    ORA-01931: Date format picture ends before converting entire input string
    I'm not sure how to put both dates in the same format.  I've tried declaring the format to no avail.  I do not understand how I can calculate within the select but not use the same calculation within the Where clause.
    Thank you for your help.

    Hi,
    SQL is a language for describing the results you want.  How the system gets those results is up to it; you don't have much say regarding which conditions will be applied when.
    One place where you can control the order of things is in a CASE expression.  When you say
    CASE
        WHEN  condition_1
        THEN  expression_1
    END
    you can be sure that expression_1 will only be evaluated when cond_1 is TRUE.
    Try something like this:
    WITH  got_sent_date AS
        SELECT  id_number, date_received
        ,       CASE
                    WHEN  TRANSLATE ( SUBSTR (id_number, 1, 6)
                                    , 'x 0123456789'
                                    , 'x'
                                    )  IS NULL
                    THEN  TO_DATE ( SUBSTR (id_number, 1 6)
                                  , 'YYMMDD'
                END     AS sent_date
        FROM    MyTable
        WHERE   SUBSTR (id_number, 7, 3) IN ('ABC', 'ABD')
    SELECT  id_number
    ,       date_received
    ,       sent_date
    ,       date_received - sent_date    AS num_days
    FROM    got_sent_date
    WHERE   date_received  > sent_date + 2
    If you'd care to post some sample data (CREATE TABLE and INSERT statements) and the results you want from that data, then I could test this.
    Of course, you'll still have run-time errors if id_number starts with 6 digits, but they don't happen to be valid, e.g. '131100' or '130229'.  That's one of the many reasons why storing date information in VARCHAR2 columns is such a bad idea.  To get around that problem, see
    https://forums.oracle.com/message/4255051

Maybe you are looking for