Error using "sdo_topo_map.add_polygon_geometry" method

Hi to all,
I have some problems using sdo_topo_map methods "add_polygon_geometry" and "create_feature". The errors occur when I try to load topological data_set (sdo_topo_geometry) from simple_feature data (sdo_geometry).
I have already posted a msg on these problems in reply to "Migrating SDO_GEOMETRY to 10g TOPOLOGY" thread.
Now, I would to submit a case test related to the error "oracle.spatial.topo.InvalidTopoOperationException: Attempt to add an edge that ends in different faces".
In this case, there are 4 polygons formally correct. When the procedure tries to load the 4th polygon the error occurs (try to run the script below).
The dataset is not topologically correct, but the result of the procedure that I would expect, instead of an error, is a creation of a set of faces, edges and nodes with some micro-faces and micro-holes, in respect to the value of tolerance parameter assigned to the topology ....
My questions are:
1) Is the error caused by the data and/or by a bug of my source code?
2) If no, why not the method creates more faces or only one face depending on whether or not, respectively, polygon 4 intersects (at the 0.01 tolerance) other faces?
3) I have a look at the visualization of the four polygons, and polygon 4 has a vertice that is very near to the polygon 3 (less then 0.0005 meters). If I call the method only for this polygon, obtain one only face with one only edge related to one only node that corrispond to the previous vertice. Is this node the one that generates the error?
Note:
1) In the SDO_ORDINATES array of the four polygons there are only numbers with 2 decimal digits and the topology is created with 0.01 for "tolerance" and 2 for "digits_right_of_decimal".
2) The procedure ends OK if the 4th polygon is loaded at the beginning (!).
Thanks for any comments and suggestions !!
CarlT
set serveroutput on size 1000000
-- Create topology
EXECUTE SDO_TOPO.CREATE_TOPOLOGY('MY_TOPO', 0.01, 82087, null, null, null, null, 2);
INSERT INTO MY_TOPO_FACE$ values (-1, NULL, SDO_LIST_TYPE(), SDO_LIST_TYPE(), NULL);
COMMIT;
-- Runs test on SDO_TOPO_MAP.ADD_POLYGON_GEOMETRY
DECLARE
res_number_array SDO_NUMBER_ARRAY;
--face_count NUMBER;
--face_ctr NUMBER;
--this_face NUMBER;
BEGIN
SDO_TOPO_MAP.CREATE_TOPO_MAP('MY_TOPO', 'MY_TOPO_TOPOMAP');
SDO_TOPO_MAP.LOAD_TOPO_MAP('MY_TOPO_TOPOMAP', 'TRUE');
-- Polygon 1
res_number_array := SDO_TOPO_MAP.ADD_POLYGON_GEOMETRY(NULL,
MDSYS.SDO_GEOMETRY(2003, 82087, NULL,
MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 1),
MDSYS.SDO_ORDINATE_ARRAY(1680296.50,
4815386.25, 1680295.32, 4815383.09, 1680301.84,
4815384.24, 1680307.35, 4815382.16, 1680388.73,
4815333.51, 1680470.65, 4815471.02, 1680470.28,
4815473.33, 1680466.28, 4815478.33, 1680429.15,
4815501.20, 1680419.78, 4815513.33, 1680392.15,
4815514.20, 1680384.40, 4815512.45, 1680370.65,
4815517.70, 1680353.90, 4815513.95, 1680346.90,
4815516.45, 1680339.28, 4815517.58, 1680337.28,
4815515.58, 1680331.40, 4815505.45, 1680330.40,
4815490.45, 1680327.65, 4815478.70, 1680326.03,
4815464.83, 1680317.32, 4815457.62, 1680296.50,
4815386.25)));
dbms_output.put_line ('Record 1, face added = '|| res_number_array.count);
-- Polygon 2
res_number_array := SDO_TOPO_MAP.ADD_POLYGON_GEOMETRY(NULL,
MDSYS.SDO_GEOMETRY(2003, 82087, NULL,
MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 1),
MDSYS.SDO_ORDINATE_ARRAY(1680479.69,
4815486.19, 1680388.73, 4815333.51, 1680457.40,
4815292.94, 1680462.14, 4815291.94, 1680465.89,
4815292.44, 1680475.02, 4815296.32, 1680480.02,
4815298.82, 1680480.77, 4815300.07, 1680486.02,
4815312.82, 1680491.02, 4815319.82, 1680492.39,
4815322.94, 1680495.27, 4815348.57, 1680508.27,
4815355.07, 1680509.39, 4815357.44, 1680508.02,
4815362.07, 1680502.39, 4815368.44, 1680505.27,
4815378.57, 1680514.27, 4815381.57, 1680515.52,
4815382.82, 1680516.39, 4815385.94, 1680517.14,
4815399.22, 1680512.93, 4815409.03, 1680486.77,
4815457.30, 1680480.00, 4815466.22, 1680477.98,
4815475.68, 1680477.92, 4815481.29, 1680479.69,
4815486.19)));
dbms_output.put_line ('Record 2, face added = '|| res_number_array.count);
-- Polygon 3
res_number_array := SDO_TOPO_MAP.ADD_POLYGON_GEOMETRY(NULL,
MDSYS.SDO_GEOMETRY(2003, 82087, NULL,
MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 1),
MDSYS.SDO_ORDINATE_ARRAY(1680293.01,
4815379.94, 1680276.87, 4815332.34, 1680273.73,
4815330.36, 1680271.05, 4815329.99, 1680253.61,
4815332.69, 1680244.31, 4815336.76, 1680203.63,
4815347.10, 1680196.77, 4815351.00, 1680185.18,
4815345.03, 1680182.16, 4815346.74, 1680183.00,
4815355.66, 1680158.36, 4815366.78, 1680148.21,
4815373.51, 1680122.15, 4815323.99, 1680118.02,
4815322.13, 1680117.38, 4815313.43, 1680093.37,
4815276.52, 1680225.27, 4815248.83, 1680255.88,
4815229.73, 1680278.48, 4815238.89, 1680291.37,
4815240.61, 1680295.28, 4815240.14, 1680306.35,
4815235.96, 1680320.02, 4815235.63, 1680344.65,
4815239.04, 1680379.95, 4815248.08, 1680388.38,
4815253.99, 1680401.97, 4815273.28, 1680405.77,
4815275.02, 1680404.52, 4815281.91, 1680409.02,
4815286.91, 1680439.04, 4815275.40, 1680452.04,
4815277.90, 1680452.54, 4815280.41, 1680474.80,
4815275.19, 1680475.71, 4815282.12, 1680307.35,
4815382.16, 1680301.84, 4815384.24, 1680295.32,
4815383.09, 1680293.01, 4815379.94)));
dbms_output.put_line ('Record 3, face added = '|| res_number_array.count);
-- Polygon 4
res_number_array := SDO_TOPO_MAP.ADD_POLYGON_GEOMETRY(NULL,
MDSYS.SDO_GEOMETRY(2003, 82087, NULL,
MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 1),
MDSYS.SDO_ORDINATE_ARRAY(1680296.10,
4815385.18, 1680289.78, 4815392.21, 1680285.70,
4815401.54, 1680304.92, 4815460.45, 1680304.46,
4815470.94, 1680155.20, 4815477.76, 1680108.77,
4815425.55, 1680141.25, 4815426.04, 1680155.81,
4815411.46, 1680221.05, 4815386.38, 1680223.02,
4815382.03, 1680223.98, 4815381.69, 1680223.52,
4815380.93, 1680226.87, 4815373.55, 1680253.08,
4815351.97, 1680252.49, 4815345.21, 1680255.40,
4815342.32, 1680252.52, 4815333.22, 1680253.61,
4815332.69, 1680271.05, 4815329.99, 1680273.73,
4815330.36, 1680276.87, 4815332.34, 1680293.01,
4815379.94, 1680296.10, 4815385.18)));
dbms_output.put_line ('Record 4, face added = '|| res_number_array.count);
dbms_output.put_line('Procedure OK');
SDO_TOPO_MAP.DROP_TOPO_MAP('MY_TOPO_TOPOMAP');
exception when others then
dbms_output.put_line('Procedure KO: '||sqlerrm);
SDO_TOPO_MAP.DROP_TOPO_MAP('MY_TOPO_TOPOMAP');
END;
-- Drop topology
EXECUTE SDO_TOPO.DROP_TOPOLOGY('MY_TOPO');

Thanks Siva,
I tried in the way you suggest.
It seems to work .... but unfortunately it is only a fortuitous event !!
I suppose, in fact, that it run because the micro-interactions (intersections or holes) are changed and then, probably, the topo_map algorithms have run differently.
If you look at the output edges, you notice that still exist micro interactions (or micro "not obtained" interaction ...).
Meantime, I have analyzed in detail any single steps of the topological objects loading procedure (from sdo_geom to node$, edge$ and _face$).
So, I believe that I have understood the cause of the error.
If you try to execute the script (included in my first message) excluding the 4th polygon and commit TOPO_MAP, you can find in the FACE$ table a record (faceid 4) that is clearly an error (or better, a not wished record).
Its MBR includes all the three polygons !!
Therefore, I think that one of the edges coming out from polygon 4 interacts with this strange face, and therefore it triggers the error
This face don't come out if I carry out at least one of the two following modifications:
1) Create a little interaction between Polygon 1 and Polygon 2 (changing the vertice n° 6 of Polygon 1 from 1680470.65, 4815471.02 to 1680470.66, 4815471.01)
2) Remove interaction between Polygon 3 and Polygon 2 (changing the vertice n° 36 of Polygon 3 from 1680475.71, 4815282.12 to 1680474.35, 4815280.94)
In all this cases the proces runs OK.
The problem is that the polygon 4 is not "the problem", and therefore also if I remove it from the input data, the "strange face 4" is still present in topology !!!
I don't know if this behavior depends on a bug (therefore probably patchable !!) or depends on the input data ...
What do you think about it?
best regards,
CarlT

Similar Messages

  • Checkout process error using 2 payment methods

    Hello,
    I would like to use COD and Paypal as my two methods of payment.
    However, I keep receiving the same error message during the checkout process.
    ERROR: Could not retrieve order [ERROR: 1]. Please go back and correct this.
    I have checked BC's Payment Gateway and Paypal Standard's settings, and both are set up correctly according to several tutorials.
    My Online Shop Purchase Form is set up with the following E-Commerce fields:
    - Payment Method Options
    - Billing Address
    - Shipping Address
    - Shipping Details
    I have removed the "Title" field and unnecessary "Payment Method" radio buttons.
    Any help would be greatly appreciated.
    Thank you.

    You removed all the Payment method radio buttons?

  • Error with quantity field:Datasource Creation Using Function Module method

    Problem with DATASOURCE Creation using Function Module method :
    I have created a datasource ZSTANDARD_COST_PRICE using Function Module method . The datasource creation is successfull when I remove the quantity field from the Z table . If I dont remove the quantity field from my Z table it gives an error as "Units Field WAERS for field STPRS of datasource ZSTANDARD_COST_PRICE is hidden". I am not able to remove this error . Please someone guide.
    Let me know if my explanation is not clear enough.
    Thanks in advance,
    Neha.
    Z table definition is as below :
    MATNR MATNR CHAR 18 0 Material Number
    BWKEY BWKEY CHAR 4 0 Valuation area
    LFGJA LFGJA NUMC 4 0 Fiscal Year of Current Period
    STPRS STPRS CURR 11 2 Standard Price   " Here the currency field is WAERS and table T001
    PEINH PEINH DEC 5 0 Price Unit
    VJSTP VJSTP CURR 11 2 Standard price in previous year
    VJPEI VJPEI DEC 5 0 Price unit of previous year.
    Edited by: Neha Rathi on Jan 30, 2009 3:03 PM

    Hi,
    You should add it as one of the main fields as you have added other fields and not as the currency fields...that is..it should be part of the data source and you should be able to see it in RSO2...
    Also if added as i said then it will come as new field in the data source...you can either let it be there...or hide it..
    also if you want to populate it then you will have to write the code for this fields as well.
    Thanks
    Ajeet

  • Using Runtime exec() method to run java files and return runtime errors

    Hi
    I'm writing a java editor and I use
    Runtime.getRuntime().exec(command)
    to compile the java files. That works fine and I deal with the returned errors using the getErrorStream().
    My questions are:
    1. Can I use the same technique for returning runtime errors. In any posts I've read the process runs from begining to end, returning the errors after completion. How do I return the errors of the app as they happen interactively?
    2. If i cant use the exec and getErrorStream() methods then does anyone know how it is done?
    Thanks in advance for any help!

    Read this:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    MOD

  • Error using a method call in the starting conditions of a Workflow

    Hi,
    In SRM 4, I have a doubt about a start condition with WFWS14000109 I need to trigger the WF depending on organizational unit of the requester (not purchase group or purchase organization).
    I have seen in the editor, in SWB_COND in the part of requisitionerUser the Method ReadOrgUnit.
    I change to traditional mode of the editor and when I select the method I get in Express1. field
    &_EVT_OBJECT.REQUISITIONERUSER.READORGUNIT(_RESULT='OBEG';ACTORGUNIT= )&
    If I use = and the organizational unit in express2 field I get error
    Partial expression expected (expression '&_EVT_OBJECT_REQUISITIONERUSER.READORGUNIT(_RESULT',position       76)
    Can anybody say me where is the error? how I should express the condition.
    Thanks
    Best Regards

    I don't think you can use a BOR method in a condition. At least not as far as I know. I think it would be better to create a virtual attribute in your delegated subtype of BUS2121 and use that in the condition.
    Regards,
    Martin

  • Getting "Method 'sign_in' does not exist" Error (using Charles)

    This may be a bit off the FLEX field, and have to do with Zend Framework's ZEND_AMF class. Unfortunately I haven't been able to dig anything up, and comments posted on Wade Arnolds site have not received any responses, so I thought I'd give it a go here.
    My ServiceController Class:
    public function loginAction()
         $this->_helper->viewRenderer->setNoRender();
         $server = new Zend_Amf_Server();
         $server->setClass('LoginAmfService', 'LoginService');
         $server->setClassMap('CurrentUserVO', 'CurrentUserVO');
         $server->setProduction(false);
         print($server->handle());
    My LoginAmfService class:
    class LoginAmfService
          * Main login function.
          * @param  string        $name
          * @param  string        $password
          * @return CurrentUserVO
         public function sign_in($name, $password)
              $authAdapter     = new Zend_Auth_Adapter_DbTable(Zend_Registry::get('db'), 'users', 'user_name', 'password', 'PASSWORD(?) AND active = 1');
              $returnValue     = new CurrentUserVO();
              $authAdapter->setIdentity(htmlspecialchars($name))
                   ->setCredential(htmlspecialchars($password));
              $authResult = $authAdapter->authenticate();
              if ($authResult->isValid())
                   $userArray                          = $authAdapter->getResultRowObject(array('id', 'first_name', 'last_name', 'title', 'photo'));
                   $returnValue->first_name     = $userArray->first_name;
                   $returnValue->last_name          = $userArray->last_name;
                   $returnValue->title               = $userArray->title;
                   $returnValue->photo               = $userArray->photo;
                   $returnValue->token               = $userArray->id;
              return $returnValue;
          * Function used to log people off.
         public function sign_out()
              $authAdapter = Zend_Auth::getInstance();
              $authAdapter->clearIdentity();
    My SignIn FLEX module (the relevant portions):
         <mx:RemoteObject
              id="LoginRemote"
              destination="login"
              source="SignIn"
              showBusyCursor="true"
              fault="parentDocument.handleFault(event)"
         >
               <mx:method name="sign_in" result="signin_handle(event)" />
               <mx:method name="sign_out" result="signout_handle(event)" />
         </mx:RemoteObject>
         <mx:Script>
              <![CDATA[
                   import mx.rpc.events.FaultEvent;
                   import mx.utils.ArrayUtil;
                   import mx.rpc.events.ResultEvent;
                   import mx.controls.Alert;
                   import com.brassworks.ValueObjects.CurrentUserVO;
                   import mx.events.VideoEvent;
                   [Bindable]
                   private var this_user:CurrentUserVO = new CurrentUserVO();
                   private function mdl_init():void
                        focusManager.setFocus(txt_username);
                   private function signin_handle(event:ResultEvent):void
                             this_user = event.result as CurrentUserVO;
                             if (this_user.token == null) {Alert.show("Supplied login credentials are not valid. Please try again.");}
                             else
                                  this.parentApplication.setUser(this.this_user);
                   private function signout_handle(event:ResultEvent):void
                   private function sign_in(event:Event):void
                        try
                             //Alert.show(txt_name.text + "|" + txt_password.text);
                             LoginRemote.sign_in(txt_username.text, txt_password.text);
                        catch (error:Error)
                             this.parentDocument.handleFault(error);
                   private function sign_out(event:Event):void
                   private function show_error(error:Error, s_function:String):void
                        Alert.show("Method:" + s_function + "\nName: " + error.name + "\nID: " + error.errorID + "\nMessage: " + error.message + "\nStack Trace: " + error.getStackTrace() + "\nError: " + error.toString());
                   private function handleFault(event:FaultEvent):void
                        Alert.show(event.fault.faultDetail, event.fault.faultString);
              ]]>
         </mx:Script>
    Now, all this is great and good, as it works with Zend Framework 1.7.6. However, when I try to upgrade to 1.7.8 (to take advantage of session management and other bug-fixes), I get the following error (using Charles):
    #1 /var/web/htdocs/core/library/Zend/Amf/Server.php(390): Zend_Amf_Server->_handle(Object(Zend_Amf_Request_Http))
    #2 /var/web/htdocs/core/application/default/controllers/ServicesController.php(73): Zend_Amf_Server->handle()
    #3 /var/web/htdocs/core/library/Zend/Controller/Action.php(503): ServicesController->loginAction()
    #4 /var/web/htdocs/core/library/Zend/Controller/Dispatcher/Standard.php(285): Zend_Controller_Action->dispatch('loginAction')
    #5 /var/web/htdocs/core/library/Zend/Controller/Front.php(934): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
    #6 /var/web/htdocs/core/application/bootstrap.php(39): Zend_Controller_Front->dispatch()
    #7 /var/web/htdocs/core/public/index.php(5): Bootstrap->runApp()
    #8 {main} ?Method "sign_in" does not exist
    I have no idea why this would not work anymore. My assumption is that I am not correctly setting up Zend_Amf (but then again, my counter-argument is that it worked before, so ..... ????)
    Thanks for any help!
    -Mike

    For those that are also fighting this issue:
    The problem appears to be that the RemoteObject needs to specify the class containing the methods as a source parameter. According to this bug report (http://framework.zend.com/issues/browse/ZF-5168) it is supposed to have been addressed, but apparently has re-emerged in Zend_Amf since version 1.7.7.
    Using my example above, I would have to specify the RO as:
    <mx:RemoteObject
              id="LoginRemote"
              destination="login"
              source="LoginAmfService"
              showBusyCursor="true"
              fault="parentDocument.handleFault(event)"
         >
               <mx:method name="sign_in" result="signin_handle(event)" />
               <mx:method name="sign_out" result="signout_handle(event)" />
         </mx:RemoteObjecct>

  • OLE objects and OO methods - Error using OLE automation

    Hi,
    I'm developing an class to read/write excel sheets and i'm getting an error on the OLE method that is:
    on this instruction
    call method of l_obj_excel 'WORKBOOKS' = l_workb_col.
    i got a dump that give me the following error UC_OBJECTS_NOT_CONVERTIBLE
    The strange is that i've got the same code running on reports and it works fine only when passing it to a oo method i get that dump.
    Thzs in advanced to all
    Best regards
    Jaime

    hi check this..
    Report ZMULTICOLOR_TEST no standard page heading.
    this report demonstrates how to send some ABAP data to an
    EXCEL sheet using OLE automation.
    include ole2incl.
    handles for OLE objects
    data: h_excel type ole2_object,        " Excel object
          h_mapl type ole2_object,         " list of workbooks
          h_map type ole2_object,          " workbook
          h_zl type ole2_object,           " cell
          h_f type ole2_object,            " font
          h_c type ole2_object.            " color
    DATA: FILENAME LIKE RLGRAP-FILENAME.
    tables: spfli.
    data  h type i.
    table of flights
    data: it_spfli like spfli occurs 10 with header line.
    *&   Event START-OF-SELECTION
    start-of-selection.
    read flights
      select * from spfli into table it_spfli.
    display header
      uline (61).
      write: /     sy-vline no-gap,
              (3)  'Flg'(001) color col_heading no-gap, sy-vline no-gap,
              (4)  'Nr'(002) color col_heading no-gap, sy-vline no-gap,
              (20) 'Von'(003) color col_heading no-gap, sy-vline no-gap,
              (20) 'Nach'(004) color col_heading no-gap, sy-vline no-gap,
              (8)  'Zeit'(005) color col_heading no-gap, sy-vline no-gap.
      uline /(61).
    display flights
      loop at it_spfli.
        write: / sy-vline no-gap,
                 it_spfli-carrid color col_key no-gap, sy-vline no-gap,
                 it_spfli-connid color col_normal no-gap, sy-vline no-gap,
                 it_spfli-cityfrom color col_normal no-gap, sy-vline no-gap,
                 it_spfli-cityto color col_normal no-gap, sy-vline no-gap,
                 it_spfli-deptime color col_normal no-gap, sy-vline no-gap.
      endloop.
      uline /(61).
    tell user what is going on
      call function 'SAPGUI_PROGRESS_INDICATOR'
         exporting
              PERCENTAGE = 0
               text       = text-007
           exceptions
                others     = 1.
    start Excel
      create object h_excel 'EXCEL.APPLICATION'.
    PERFORM ERR_HDL.
      set property of h_excel  'Visible' = 1.
    CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'c:\kis_excel.xls'  .
    PERFORM ERR_HDL.
    tell user what is going on
      call function 'SAPGUI_PROGRESS_INDICATOR'
         exporting
              PERCENTAGE = 0
               text       = text-008
           exceptions
                others     = 1.
    get list of workbooks, initially empty
      call method of h_excel 'Workbooks' = h_mapl.
      perform err_hdl.
    add a new workbook
      call method of h_mapl 'Add' = h_map.
      perform err_hdl.
    tell user what is going on
      call function 'SAPGUI_PROGRESS_INDICATOR'
         exporting
              PERCENTAGE = 0
               text       = text-009
           exceptions
                others     = 1.
    output column headings to active Excel sheet
      perform fill_cell using 1 1 1 200 'Carrier id'(001).
      perform fill_cell using 1 2 1 200 'Connection id'(002).
      perform fill_cell using 1 3 1 200 'City from'(003).
      perform fill_cell using 1 4 1 200 'City to'(004).
      perform fill_cell using 1 5 1 200 'Dep. Time'(005).
      loop at it_spfli.
    copy flights to active EXCEL sheet
        h = sy-tabix + 1.
        if it_spfli-carrid cs 'AA'.
          perform fill_cell using h 1 0 000255000 it_spfli-carrid.
        elseif it_spfli-carrid cs 'AZ'.
          perform fill_cell using h 1 0 168000000 it_spfli-carrid.
        elseif it_spfli-carrid cs 'JL'.
          perform fill_cell using h 1 0 168168000 it_spfli-carrid.
        elseif it_spfli-carrid cs 'LH'.
          perform fill_cell using h 1 0 111111111 it_spfli-carrid.
        elseif it_spfli-carrid cs 'SQ'.
          perform fill_cell using h 1 0 100100100 it_spfli-carrid.
        else.
          perform fill_cell using h 1 0 000145000 it_spfli-carrid.
        endif.
        if it_spfli-connid lt 400.
          perform fill_cell using h 2 0 255000255 it_spfli-connid.
        elseif it_spfli-connid lt 800.
          perform fill_cell using h 2 0 077099088 it_spfli-connid.
        else.
          perform fill_cell using h 2 0 246156138 it_spfli-connid.
        endif.
        if it_spfli-cityfrom cp 'S*'.
          perform fill_cell using h 3 0 155155155 it_spfli-cityfrom.
        elseif it_spfli-cityfrom cp 'N*'.
          perform fill_cell using h 3 0 189111222 it_spfli-cityfrom.
        else.
          perform fill_cell using h 3 0 111230222 it_spfli-cityfrom.
        endif.
        if it_spfli-cityto cp 'S*'.
          perform fill_cell using h 4 0 200200200 it_spfli-cityto.
        elseif it_spfli-cityto cp 'N*'.
          perform fill_cell using h 4 0 000111222 it_spfli-cityto.
        else.
          perform fill_cell using h 4 0 130230230 it_spfli-cityto.
        endif.
        if it_spfli-deptime lt '020000'.
          perform fill_cell using h 5 0 145145145 it_spfli-deptime.
        elseif it_spfli-deptime lt '120000' .
          perform fill_cell using h 5 0 015215205 it_spfli-deptime.
        elseif it_spfli-deptime lt '180000' .
          perform fill_cell using h 5 0 000215205 it_spfli-deptime.
        else.
          perform fill_cell using h 5 0 115115105 it_spfli-deptime.
        endif.
      endloop.
    EXCEL FILENAME
      CONCATENATE SY-REPID '_' SY-DATUM6(2) '_' SY-DATUM4(2) '_'
                  SY-DATUM(4) '_' SY-UZEIT '.XLS' INTO FILENAME.
      CALL METHOD OF H_MAP 'SAVEAS' EXPORTING #1 = FILENAME.
      free object h_excel.
      perform err_hdl.
          FORM FILL_CELL                                                *
          sets cell at coordinates i,j to value val boldtype bold       *
    form fill_cell using i j bold col val.
      call method of h_excel 'Cells' = h_zl
        exporting
          #1 = i
          #2 = j.
      perform err_hdl.
      set property of h_zl 'Value' = val .
      perform err_hdl.
      get property of h_zl 'Font' = h_f.
      perform err_hdl.
      set property of h_f 'Bold' = bold .
      perform err_hdl.
      set property of h_f 'Color' = col.
      perform err_hdl.
    endform.                    "FILL_CELL
    *&      Form  ERR_HDL
          outputs OLE error if any                                       *
    -->  p1        text
    <--  p2        text
    form err_hdl.
      if sy-subrc <> 0.
        write: / 'OLE-Automation Error:'(010), sy-subrc.
        stop.
      endif.
    endform.                    " ERR_HDL
    regards,
    venkat

  • Getting Security Error when trying to use bitmapdata.draw method on youtube videos

    Hi All ,
    I am playing youtube videos in UIComponet of flex, but when I trying to capture the image using bitmapdata.draw() method it gives me an secutity error on server  , It works well locally in flex editor.
    Is any one knows how to resolve this bug??
    Thanks in advance
    sujit Rai

    Try nesting the clips and then adding the warp stabiliser to the nest.

  • Error occurs when using DBDataSource.SetValue method in sales order

    Is it possiable to use the DBDataSource.SetValue method to update a cell in the Sales Order document
    My code , but I am getting an error
    Dim oDBDataSource As SAPbouiCOM.DBDataSource
    oDBDataSource = oform.DataSources.DBDataSources.Item("RDR1")
    oDBDataSource.SetValue("Price", 1, "111.22")
    The following code works, but I do not want to use it because the cursor need to move to  the cell before changing the value.
    oMatrix.Columns.Item("14").Cells.Item(RowNum).Specific.value = 111.22
    Sincerely yours
    Riade Asleh

    Well , I do not want to do it this way
    I want to change the value using the setvalue method of the DBDatasource Object
    I want to avoid the cursor from going to the cell for update or read.
    Refer to orignal question (first question)
    Sincerely yours
    Riade Asleh

  • Error while installing Agent using Agent Push Method

    Hi All,
    I have installed Oracle EM Grid 10.2.0.1 on Linux 4 (Enterprise). I have moved my repository database to another host. Grid(oms,repo db,agent) is working fine. But i am trying to install one agent in remote host using Agent push method. I am getting the error
    Manual Fixes (1)
    The following corrective actions need to be taken before proceeding. For your convinience check mark each item when you have fixed that issue.
    There are some targets that cannot be monitered by the Agent.Hostname IP Address Details
    *<host> <ip-addr> PROBLEM : There are some targets on the host which agent can not monitor since they are installed by different group.*
    ERROR : Check complete. The overall result of this check is: Failed <<<<
    RECOMMENDATION : Your Oracle Home is incompatible.
    I verified SSH connectivity,TZ...
    In remote host, 2 oracle application instances are running and repository DB. I have created one directory in repository db location and installing in that directory. This error is coming in Install Stage. I checked the oracle inventory permission and other 2 instance installed directory permission. Inventory owner is oracle. Oracle EBS mount point owner is root. But it is having read, write permission.
    Is this a bug? Will this resolve after applying 10.2.0.5 patch.
    Please let me know a solution for this.
    Thanks,
    Manikandan

    Hi Rob/Nazim,
    Thanks for the Replay.... I will try to update to patch 10.2.0.5
    Regards,
    Manikandan.

  • Error: Sorry! We could not complete the transaction using this payment method. Please contact support.

    I am everytime getting the following error
    Sorry! We could not complete the transaction using this payment method. Please contact support.
    I have put my 2 credit card information with Microsoft. I tried calling 2 times the customer support but it was a pathetic response. In a single call I talked to 4 customer support officers and everybody passed on the call to the next without resolving the
    problem, and without telling the next officer what is my issue!! they just passed on the phone call to avoid me!!
    It is really frustrating that neither Microsoft is provide a good support (it was hard for them to understand my issue, in fact one of the support guy did not even know spelling of Azure.. he/she was saying it assure!!! and One of the guy told me that I
    cannot use credit card outside US and Canada. then why you call yourself global???
    So Microsoft you have a few things to do as your homework.
    1. Your support is pathetic, frustrating and requires better people out there who know about your products, so train them first!
    2. You got my 2 credit cards information which I see at subscriptions for Windows Azure, please remove both of them if you cannot provide a good support and subscription.
    3. Learn from other cloud providers, AWS will otherwise kill your business.
    Regards
    Kajal
    Kajal Sinha

    Hi Kajal,
    Sincerely apologize for this inconvenience, for billing & account issue, usually we need to contact the support team by creating a support ticket at
    http://www.windowsazure.com/en-us/support/contact/. Or if that doesn't work because you don't have an active subscription you will need to contact general customer support to have them create
    a support ticket for you 
    http://support.microsoft.com/gp/customer-service-phone-numbers?wa=wsignin1.0).
    If above support channels don't work, at your convenient, could you please send an email to me: dxu at microsoft.com with kindly providing your:
    Name
    Email address
    Phone number 
    We will provide help via emails. Thank you.
    Best Regards,
    Ming Xu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Run Time error using create_popup_to_confirm in Post_Exit Method

    Hi,
    I am trying to use the create_popup_to_confirm method to display a popup box in order to create a simple confirmation popup box. The transaction is failing with an exception. Following is the Error analysis from ST22
    An exception occurred which is explained in detail below.                      
    The exception, which is assigned to class 'CX_WDR_RT_EXCEPTION', was not caught
    and therefore caused a runtime error.
    The reason for the exception is:
    Component ID_0001000300140017 Not Found
    Nothing I tried seem to work. I even copied the following code directly from SAP Help in order to try to get the popup box working:
    DATA: l_cmp_api TYPE REF TO if_wd_component,
          l_window_manager TYPE REF TO if_wd_window_manager,
          l_popup TYPE REF TO if_wd_window,
          l_text TYPE string_table.
    l_cmp_api = wd_this->wd_get_api( ).
    l_window_manager = l_cmp_api->get_window_manager( ).
    INSERT `Data where changed`   INTO TABLE l_text.        "#EC *
    INSERT `Do you want to save?` INTO TABLE l_text.        "#EC *
    l_popup = l_window_manager->create_popup_to_confirm(
              text            = l_text
              button_kind     = if_wd_window=>co_buttons_yesnocancel
              message_type    = if_wd_window=>co_msg_type_question
              window_title    = 'Test: Popup to confirm'
              window_position = if_wd_window=>co_center ).
    l_popup->open( ).
    Now there is one thing that I am wondering that might be causing this, but I don't know for sure. I am executing this code from a Post_Exit method of a method in the COMPONENTCONTROLLER. Since enhancements are in their own container, I don't know if this may be confusing the Web Dynpro App. However the purpose of this enhancement is to show the end user a simple confirmation popup box so that they are informed that they did a particular action. Please let me know if you any ideas. Point will be awarded for helpful answers.

    hi,
    use following code.
    DATA: lt_text type string_table.
      DATA: mr_popup_window TYPE REF TO if_wd_window.
    pop a confirmation window for display purpose
    DATA: l_window_manager TYPE REF TO if_wd_window_manager,
    l_cmp_api        TYPE REF TO if_wd_component,
    l_window         TYPE REF TO if_wd_window.
    l_cmp_api        = wd_comp_controller->wd_get_api( ).
    l_window_manager = l_cmp_api->get_window_manager( ).
    append 'DO YOU WANNA SAVE DATA' to lt_text.
    CALL METHOD l_window_manager->create_popup_to_confirm
       EXPORTING
        text                 = lt_text
        button_kind          = if_wd_window=>CO_BUTTONS_YESNO
        CLOSE_BUTTON        = ' '
        WINDOW_TITLE        = 'POPUP WINDOW'
        WINDOW_WIDTH        = '25'
        WINDOW_HEIGHT       = '50'
        WINDOW_LEFT_POSITION = 10
        WINDOW_TOP_POSITION  = 10
        WINDOW_POSITION      = '25'
    RECEIVING
        result               =    mr_popup_window      .
    associated the action handling methods with the window
    DATA: view_controller TYPE REF TO if_wd_view_controller.
    view_controller = wd_this->wd_get_api( ).
    CALL METHOD mr_popup_window->SET_WINDOW_SIZE
    EXPORTING
      WIDTH   = '150'
      HEIGHT  = '150'.
    CALL METHOD mr_popup_window->subscribe_to_button_event
       EXPORTING
         button            = if_wd_window=>co_button_yes
         action_name       =   'ON_DELETE_POPUP_YES'
         action_view       =  view_controller      .
    CALL METHOD mr_popup_window->subscribe_to_button_event
    EXPORTING
      button            = if_wd_window=>co_button_no
      action_name       = 'ON_DELETE_POPUP_NO'
      action_view       =  view_controller
      is_default_button = abap_true    .
    mr_popup_window->open( ).

  • Using the ContactInsertOrUpdate method from the ContactWS but error msg rcv

    [This thread was migrated from the On Demand Developer Forum in the old Siebel Community]
    Corsa
    Contributor
    I am getting the following error I do not know why or how to work around
    it.
    Method 'SetFieldValue' of business component 'Contact' (integration
    component 'Contact') for record with search specification '[External <br/>
          System Id] = "123456"' returned the following error:"Access <br/>
    denied.(SBL-DAT-00542)"(SBL-EAI-04375)
    Does any out there have any ideas?
    Previously when I tried to do the same action I got the following message:
    Multiple matches found for instance of integration component 'Contact'
    using search specification '[External System Id] = "123456"' in the
    business component 'Contact', based on user key 'Contact User
    Key:3'.(SBL-EAI-04390)
    Both messages are baffling me. Please, please help
    Product: CRM OnDemand
    06-16-2006 04:35 AM
    Re: Using the ContactInsertOrUpdate method from the ContactWS but error
    msg rcvd
    BigSlick
    Valued Contributor
    Hi Corsa,
    Can you access the record in the online application. Perhaps someone has
    changed the access rights for this Contact on the Contact Team ?
    -BigSlick
    06-20-2006 12:33 PM
    Re: Using the ContactInsertOrUpdate method from the ContactWS but error
    msg rcvd
    Corsa
    Contributor
    I realise now that the field AccountID is readonly and cannot be assigned.
    I was attempting to assign contactsList[count].AccountId to a value . I
    believe, this is the reason I was getting the access denied error.
    06-23-2006 11:10 AM
    ==============================================================================
    Click on the board or message subject at the top to return.

    Ok, so I hit a bump in the road. Just when I think I understand something It doesn't work correctly.
    I implemented it I thought correctly. I looked up something on the sun website (core java) I used advice from here, and my professor finaly responded to me with almost identical instructions. So I did it
    my RationalNumber.java no looks like this.
    public class RationalNumber implements Comparable
    //.....Break to new section
      public  float compute ()
           float value = getNumerator() / getDenominator();
         return value;
       public int compareTo(RationalNumber op2)
           if (Math.abs(compute() - op2.compute()) < .0001)
              return 0; //Equal
          if (compute() > op2.compute())
            return + 1; //Rational Number bigger
          if (compute() < op2.compute())
               return - 1; //Rational Number Smaller
         }I thought that would work fine, but it gives me an error when I compile it:
    RationalNumber.java:8: RationalNumber is not abstract and does not override abstract method compareTo(java.lang.Object) in java.lang.Comparable
    public class RationalNumber implements Comparable
           ^So now what, making it abstract only creates more errors....
    Also, thanks ChuckBing, I'm glad you like the screen name, I've been using it for years.

  • Error while calling a method on Bean (EJB 3.0)

    I am getting an error while calling a method on EJB. I am using EJB3.0 and my bean is getting properly deployed(i am sure b'cos i can see the successfullly deployed message). Can any body help me
    Error is -->
    Error while destroying resource :An I/O error has occured while flushing the output - Exception: java.io.IOException: An established connection was aborted by the software in your host machine
    Stack Trace:
    java.io.IOException: An established connection was aborted by the software in your host machine
    at sun.nio.ch.SocketDispatcher.write0(Native Method)
    at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:33)
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
    at sun.nio.ch.IOUtil.write(IOUtil.java:75)
    at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:302)
    at com.sun.enterprise.server.ss.provider.ASOutputStream.write(ASOutputStream.java:138)
    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
    at org.postgresql.PG_Stream.flush(PG_Stream.java:352)
    at org.postgresql.core.QueryExecutor.sendQuery(QueryExecutor.java:159)
    at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:70)
    at org.postgresql.jdbc1.AbstractJdbc1Connection.ExecSQL(AbstractJdbc1Connection.java:482)
    at org.postgresql.jdbc1.AbstractJdbc1Connection.ExecSQL(AbstractJdbc1Connection.java:461)
    at org.postgresql.jdbc1.AbstractJdbc1Connection.rollback(AbstractJdbc1Connection.java:1031)
    at org.postgresql.jdbc2.optional.PooledConnectionImpl$ConnectionHandler.invoke(PooledConnectionImpl.java:223)
    at $Proxy34.close(Unknown Source)
    at com.sun.gjc.spi.ManagedConnection.destroy(ManagedConnection.java:274)
    at com.sun.enterprise.resource.LocalTxConnectorAllocator.destroyResource(LocalTxConnectorAllocator.java:103)
    at com.sun.enterprise.resource.AbstractResourcePool.destroyResource(AbstractResourcePool.java:603)
    at com.sun.enterprise.resource.AbstractResourcePool.resourceErrorOccurred(AbstractResourcePool.java:713)
    at com.sun.enterprise.resource.PoolManagerImpl.putbackResourceToPool(PoolManagerImpl.java:424)
    at com.sun.enterprise.resource.PoolManagerImpl.resourceClosed(PoolManagerImpl.java:393)
    at com.sun.enterprise.resource.LocalTxConnectionEventListener.connectionClosed(LocalTxConnectionEventListener.java:69)
    at com.sun.gjc.spi.ManagedConnection.connectionClosed(ManagedConnection.java:618)
    at com.sun.gjc.spi.ConnectionHolder.close(ConnectionHolder.java:163)
    at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.closeDatasourceConnection(DatabaseAccessor.java:379)
    at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.closeConnection(DatasourceAccessor.java:367)
    at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.closeConnection(DatabaseAccessor.java:402)
    at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.afterJTSTransaction(DatasourceAccessor.java:100)
    at oracle.toplink.essentials.threetier.ClientSession.afterTransaction(ClientSession.java:104)
    at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.afterTransaction(UnitOfWorkImpl.java:1816)
    at oracle.toplink.essentials.transaction.AbstractSynchronizationListener.afterCompletion(AbstractSynchronizationListener.java:161)
    at oracle.toplink.essentials.transaction.JTASynchronizationListener.afterCompletion(JTASynchronizationListener.java:87)
    at com.sun.ejb.containers.ContainerSynchronization.afterCompletion(ContainerSynchronization.java:174)
    at com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:467)
    at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:357)
    at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3653)
    at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3431)
    at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1247)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:197)
    at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:110)
    at $Proxy84.addDepartment(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:121)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:650)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:193)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1705)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1565)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:947)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:178)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:717)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:473)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1270)
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:479)
    End of Stack Trace
    |#]
    RAR5035:Unexpected exception while destroying resource. To get exception stack, please change log level to FINE.
    EJB5018: An exception was thrown during an ejb invocation on [DepartmentSessionBean]
    javax.ejb.EJBException: Unable to complete container-managed transaction.; nested exception is: javax.transaction.SystemException
    javax.transaction.SystemException
    at com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:452)
    at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:357)
    at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3653)
    at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3431)
    at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1247)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:197)
    at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:110)
    at $Proxy84.addDepartment(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    Means theres an error in XML/ABAP conversion probably due a syntax error...
    Regards
    Juan

  • Stand alone exe errors using report generation vi's

    I have a stand alone application that uses some report generation vi's. I have added the _wordsub.llb as a support file. In the main program I have told the report generations vi's where to find the _wordsub.llb so it can load the dynamic vi's as needed. The problem is when I run the stand-alone executable I get an open refernce error for one of the dynamic vi's that says that vi is not executable. But when I reconfigure the executable and include that vi as a dymaically loaded vi in addition to the _wordsub.llb, the stand alone works error free. Any suggestions?

    It really depends on what version of office you are using. Some methods have different set of parameters or even different names, labview does not adjust them accordingly, even though the code might execute but it will fail during build process. You must reselect the methods manually in order to build the executable. Most time you need to build different executables for each office version.
    -Joe

Maybe you are looking for

  • Message stuck on outbound side of PE ( BPM)

    Hi All, I am facing a peculiar issue in Prod environment for one of my Interfaces.Around 1100 IDOCs were triggered from R/3 system and they were successfully sent out of R/3(status 03) but in XI where we are using a BPM for collecting the IDOCs , onl

  • How to go back to previous page

    I have two JSP pages first.jsp and second.jsp the user starts at first.jsp and clicks the submit button which then takes the user to second.jsp where the users information is saved in a database. I want to know how to go back to first.jsp from second

  • Need Help With An Application Which Produces Live Images Within Tilelists

    At the moment I have an application which is meant to produce live thumbnail images of websites. Currently how it does this is a html component (myhtml) loads websites via it's location property changing from website to website and upon fully loading

  • Missing Event key photos and photo count

    This is a question regarding the Library Events folder with the list of all events. I have approximately 560 events and 24,000 photos. The problem is with only 32 events within a date rangeof  four months from Feb thru June of this year that containe

  • Can ims5.2p1 do sieve filter searches with non-ASCII chars?

    Particularly, is it possible with the Subject header line, which is =?xxx?Q?xxxxx?= or =?xxx?B?xxxxx?= encoded Resolved the fileinto foldername part, but now found that seems like ims's sieve filter cannot do non-ASCII matches... Thanks.