How to override to_number function?!

Hi,
I already tried to find an answer by searching this forum but without success...
My problem is, that I have a lot of mappings using the to_number() function to convert char into number. Now it turns out, that in some cases - due to the bad data qualtity - fields contain special chars e.g. 1234" Don't ask why ;) Of course the reguIar tu_number() function fails on that. Now I wrote a to_number function that handles the issue by removing all the special chars and then convert. I now want to override oracle's built-in to_number function with my own function.
Do you have any ideas how that works? As a requirement the solution should be simple... It would be an imense work to edit every mapping. I global solution is preferred. Something like a priority option, to take self written functions first or sth...
Thanks for any help!
Cheers Steffen

Hi,
you could use OMB to change all occurance of that functino in your project.
Unfortunately I know OWB allmost only from theory :-( but I remember, that you can set a context to a project or a mapping and all subsequent operations will happen within that horizont.
As far as I saw, OMB isn't to hard to use, even without days of learning, just by looking for fitting operation, but I know documentation about OMB is pretty poor, almost only syntax reference is available.
really overriding the pre_build to_number-function might be possible as sys, but I would avoid that or only do in a relly play-instance. I suppose you tried allready simply to run 'create or replace ...' ?
Thanks for your tip about number checking, but I tried allready many variations functions like that. I never can get it validated:
I have a function is_number_num, returning 1 for ok, 0 for false, which si working fine on SQL*PLUS, but when I use it splitter-condition, in this variations:
"IS_NUMBER_NUM"( GRP_IN.ANZAHL,'NLS_NUMERIC_CHARACTERS='',.''') = 1
I get: PLS-00801 internal error [phdxcsql_canonicalize_sql:state]
with .... == 1
I get:
Line 0, Col 0:
The expression is not properly formed.
I have no bloody idea, what that means and what might be wrong in here ? Even google does not return 1 singel page for the error-parameter !
I tried several versions:
"IS_NUMBER_NUM"( GRP_IN.ANZAHL,'NLS_NUMERIC_CHARACTERS='',.''') = 1
also this: "IS_NUMBER_NUM"( GRP_IN.ANZAHL) = 1
but nothing is accepted !
Also I made a more easy function for checking for date-format, which works fine in SQL*PLUS, but can't be validated in OWB-splitter.
Oracle support is playing for time since days !
thsi function brings same error, depending if I use 1 or 2 "=" !???
any idea ?
somehow I have the feeling, I missed 1 easy rule on how to use a splitter-condition correctly ?
But I can't see anything wrong in my constructions, especially because they are working fine in SQL*PLUS !???
thanks for any hint, LaoDe

Similar Messages

  • How to override the functionality of a method which is embedded in an swf

    Hi,
    I have an swf for my application for which i do not have the source code. Now i want to override the functionality of a method (say doIt()) in a class (say MyClass.as).
    Is there any way to achieve the classloader functionality that similar to the tomcat classloading functionality for java files.
    i.e Tomcat's classloader searches the WEB-INF/classes directory before the WEB-INF/lib/*.jar. That means my original code is in lib folder, and the orerriden code is in the classes folder. In this case, tomcat will see the classes folder first, if my class does not exist in this folder, then it looks for the lib folder.
    Can we achieve the same class loading functionality in Flex. The overall idea is to change the functionlity of a feature without touching the original swf and by creating an external swf and by calling it.
    Regards,
    Sangeeta Kalyani

    Sangeetha Kalyani,
    Use SWF de-compiler.. and get the source of your SWF.. i think this will simplyfy your JOB...!
    Thanks,
    Pradeep

  • Help me, How can override a function of intelface?

    I want to overide a function of a interface .
    for example:
    There is a kFrameListBoss; it has Aggregated IObserver interface.
    Ioveserver interface has eight function:
    now ,I want to overide a function of IObserver,and overide only one function, the other seven function neet not overide.
    how can I do?

    If you want to change the behavior of an interface on a boss, you have to install your own interface, that fully replace all actions to original interface and when necessary propagate calls. Have a look at the section "InDesign Object Model Implementation" in the programing guide. The paneltreeview example is good to study to learn the technique.

  • How to override functions

    Hi,
    I want to create a Menu  that opens when clicked on a button, and that closes ONLY when clicked  on that button. I suppose I need to override the mouse down handler of  the menu class, but I don't know how to do this . Can someone please  help.
    I tried to create a class that extends menu and inside it I  created the menu instance like this:
        public class FileMenu extends  Menu
            private var  menuItems:Array = new Array();
            private var menu:Menu = new  Menu();
    And then I tried to override the mouse down  and click handlers, but it doesn't work.
         override protected function  mouseClickHandler(event:MouseEvent):void
                 trace("Mouse Click");
            override  protected function mouseDownHandler(event:MouseEvent):void
                 trace("Mouse Down");
    Can someone please help .

    I'm guessing it's because those handler functions don't actually exist with the names you provided in the Menu class.
    You may have an easier time triggering a pop-up window with a button similar to what is discussed here:
    http://forums.adobe.com/message/2934500

  • Loss style when overriding the function 'set data' for a TileList

    Hi!
    In a TileList, I set the itemRenderer for a components from
    where I override the function set data like in this example:
    but, by doing this, I'm loosing all the built-in CSS
    behavior. The onMouseOver effect the change the backgroundColor and
    the hand pointer. I try to set it programmatically but without
    success.
    An idea?
    Thank you

    "FlexBin" <[email protected]> wrote in
    message
    news:gdaj4r$noj$[email protected]..
    > Hi!
    >
    > In a TileList, I set the itemRenderer for a components
    from where I
    > override
    > the function set data like in this example:
    >
    > but, by doing this, I'm loosing all the built-in CSS
    behavior. The
    > onMouseOver
    > effect the change the backgroundColor and the hand
    pointer. I try to set
    > it
    > programmatically but without success.
    >
    > An idea?
    >
    > Thank you
    >
    > public override function set data(value:Object):void
    > {
    > var xml:XML = new XML(value);
    >
    > if(this.backgroundIconName != null &&
    > this.ico != null &&
    > this.labelText != null) {
    >
    > if(xml.backgroundIconName != "") {
    >
    > this.backgroundIconName.source = "assets/" +
    xml.backgroundIconName;
    > }
    >
    > this.backgroundIconName.visible =
    (xml.backgroundIconName != "");
    >
    > this.ico.source = "assets/" + xml.iconName;
    > this.ico.width = Number(xml.width);
    > this.ico.height = Number(xml.height);
    >
    > this.labelText.text =
    resourceManager.getString('myResources',
    > xml.label);
    > }
    >
    > if(xml.@available == 'false')
    > {
    > this.enabled = false;
    > }
    > }
    There are examples of how to properly implement this kind of
    functionality
    in the itemRenderers here:
    http://flexdiary.blogspot.com/2008/09/groupingcollection-example-featuring.html
    http://flexdiary.blogspot.com/2008/09/extended-datagrid-with-stylefunction.html

  • Can we override the functionality of F4 key?

    I want to override the functionality of F4 key. How will i do this?

    Hi,
    If its a dialogue program, use...
    PROCESS ON VALUE-REQUEST.
      FIELD <field_name>          MODULE <module_for_f4_help>.
    in PAI & write your code to get the values in that module (module_for_f4_help).
    If its a report, use....
    at selection-screen on value-request for <field_name>.

  • TO_Number Function showing wrong values

    Hi All,
              I am passing a Char value from oracle forms to oracle reports as parameter.
    In Report Query I'm converting the char value into number for comparison using TO_NUMBER() function. As the char value is large value like '001002004006004' it is converting to something like 1.2e+12 and my query results goes wrong. I want value, something like 1002004006004( as initial 00 will be removed).
    I'm using Oracle forms 10g and Reports 10g
    Can anyone please help me.
    Thanks
    Sandeep
    ----Don't think outside the box, Think as if there is no Box at all.

    Hi, Sandeep,
    Whenever you have a problem, post a little sample data (CREATE TABLE and INSERT statements) that shows what the problem is, and the correct results you want from that sample data.  Explain how you get those results from that data.
    See the forum FAQ: https://forums.oracle.com/message/9362002#9362002
    Don't confuse how a number is displayed with what that number is.  SQL*Plus (and other front ends), by default, allows only 10 character spaces for displaying NUMBERs.  If you have a NUMBER that doesn't fit into 10 spaces, then SQL*Plus will round the digits after the decimal point.  If it still doesn't fit (which is the case with 1002004006004) then SQL*Plus will use scientific notation, rounding the decimal places.  The actual value (at least 38 significant digits) will be used in all computations, regardless of how the NUMBER is displayed.  I doubt if what you posted has anything to do with the real problem.

  • How to override Approve button for list item?

    Hello,
    Is there a way how to override the method that runs after list item is approved / rejected? I know there is a way for the Save button but I can't find how to do it for the Approve button.
    I have a list with approval and workflow. Then I have a page that displays the items from the list in my webpart in a calendar/grid way. The items in the webopart have links leading to the display form with the item ID and Source parameters. Source parameter
    leads back to this page. The background color of the item in the webpart is decided by the approval state of the item.
    When user approves the item and the item form closes user is then sent to the page with the webpart (via the Source parameter) but the workflow takes couple of seconds more to process the aproval so the color is not changed when the webpart renders but if
    the page is refreshed it shows the correct color because the workflow has finished.
    I want to override the Approval method, let it update the item so the workflow can fire and process the approval, delay the form a bit and then continue as usual so when the user is redirected to the webpart page it would render with the correct state.
    I can make a delay page that redirects to the webpart page and change the Source parameter in the items link to go there but it doesn't look that great.
    Or maybe there is a way how to do it in Javascript? I am using it in the new item form using the SP.UI.ModalDialog.showModalDialog(options) function where the dialogReturnValueCallback refreshes the windows after 3 seconds.
    dialogReturnValueCallback: function(dialogResult) {
            if (dialogResult == SP.UI.DialogResult.OK) {
             setTimeout(function(){window.location = "MyPageUrl"}, 3000)
    Thanks for any tips and ideas!

    you can try to achieve this via separate responsibility by personalizing the form by display false on the particular control button..

  • How to keep multiple function modules under one Web service

    Hi Experts,
    I have Three RFC function modules and i need to create one web service for these three RFC function modules. I know How to crearte a web service for one function module.
    please suggest me How to keep multiple function modules under one Web service.
    Thanks in advance
    Lakshminarayana

    Hi Lakshmi,
    The best way to do it is to assign all the three RFC Enabled FM's to one function group. Later on the top menu in Utilities you get an option to Create a Webservice from a Function Group.
    You can create one single Webservice using all the the 3 FM's.
    I hope this helps.
    Thanks,
    Manu

  • To_number function doesn't work with apex_collections in where clause

    One of my applications I have been using apex_collections and to_number function
    in the where clause. Since we upgraded apex to version 3.0.1 , it gives the invalid number error.
    Is this a bug in the new Version.
    I had to re-write the logic to fix the application.

    Can you show us that code? An example on apex.oracle.com where we can see the error would be great.
    Scott
    P.S. Please tell us your first name and put it into your handle and/or profile to help us.

  • How to use read_text function module

    Hi how to use read_text function module to read purchase order header text .what are all tht things to pass in ID,Name and Object
    thanks,
    Mahe

    Dear,
    Use below code.
    DATA:IT_LINE LIKE TLINE OCCURS 0 WITH HEADER LINE,
    V_TDNAME LIKE THEAD-TDNAME.
    V_TDNAME = PO_NUMBER.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
    *   CLIENT                        = SY-MANDT
        ID                            = 'F01'
        LANGUAGE                      = 'EN'
        NAME                          = V_TDNAME
        OBJECT                        = 'EKKO'
      TABLES
        LINES                         = IT_LINE.
    Thanks and Regards,

  • How to Create a Functiona Query

    Dear all,
    Could any body detail me how to create a functional query. Please give me step by step procedure to create a query.
    I would appreciate if you can give me a material with screen shots. Your help will be highly appreciated.
    Thank you
    Raghu Ram

    Hi Raghu,
               Go through this document it may help you,
    SAP Query
    Step 1: Create User Group – SQ03
    Follow the menu path – SAP Menu > Tools > ABAP Workbench > Utilities > SAP Query > User Groups
    a) In the User Group: Initial Screen -
    Enter User Group Code (self named)
    Click on “Create”
    b) In the User Group (Code): Create or Change pop-up window -
    Enter the User Group Description
    Click on “Save”
    c) In the Create Object Directory Entry pop-up window -
    Ö Click on “Local Object” button
    Ö The User Group Created is saved
    Step 2: Create User Group – SQ02
    Follow the menu path – SAP Menu > Tools > ABAP Workbench > Utilities > SAP Query > Infosets
    a) In the Infoset: Initial screen -
    Ö Enter Infoset Code (self named)
    Ö Click on “Create” button
    b) In the Infoset: Title & Database Screen -
    Ö Enter Description of Infoset in the “Name” field
    Ö In the Data Source selection: Select appropriate Data Source by clicking
    the radio button
    · Source the data can either be multiple tables OR single table. There are 4
    options for the user to select from
    Ö Click on “Continue” (Enter)
    Ö Selected Table gets displayed in the Infoset : Initial Screen
    c) In the Infoset: Initial Screen -
    Ö Click on “Insert Table” button
    d) In the Add Table Screen -
    Ö Enter the Table Name that is to be inserted
    Ö Click “Continue” (Enter)
    e) In the Infoset: Initial Screen -
    Ö Click on “Back” button
    f) In the Field Group Defaults pop-up Screen -
    Ö Select Appropriate Field Group Option by clicking on the radio button
    · there are 3 options to select from. User can select Empty Field Group
    option and then select the data fields in the steps explained further.
    Alternatively, User can select an option which clubs all the data fields
    From all the tables selected
    Ö Click “Continue” (Enter)
    g) In the Change Infoset Screen -
    · the left side lists the Tables that the user has selected in step b, c & d
    · In the right side, system creates field groups, one for each table listed in the
    left part. Initially, the Field Groups are empty
    Ö In the Left Side, Click on the arror next to the table name and expand and
    display all the data fields in the table
    Ö Select a Data Field from the expanded Table view, which is to be added to
    the Field Group on the right.
    Ö Select a Field Group on the right side, in which Data Field selected above
    has to be added
    Ö Right click on the Data Field selected and click on “Add Field to Field Group”
    Ö The selected Data Field gets added to the selected Field Group, which is
    indicated by an arrow next to the Field Group.
    Ö Carry out the steps above to add the required Data Fields to the respective
    Field Groups
    Ö After transferring Data Fields to Field Groups click on “Generate” button
    h) In the Create Object Directory Entry Screen -
    Ö Click on “Logical Object” button to generate the infoset
    i) In the Change Infoset Screen -
    Ö Click on the “Back” button
    j) User is taken back to the “Infoset: Initial Screen” which displays the
    created Infoset record.
    Step 3: Assigning User Group to Infoset – SQ03
    Follow the menu path – SAP Menu > Tools > ABAP Workbench > Utilities > SAP Query > User Groups
    a) In the User Groups: Initial screen -
    Ö Enter the User Group for which Infoset is to be assigned
    Ö Click on “Assign Users & Infosets” button
    b) In the User Group: Assign Users Screen -
    Ö Click on “Assign Infosets” button
    c) In the next screen, select the Infoset, which needs to be attached to the
    User Group selected
    d) Click on the “Back” button
    Step 4: Creating Query – SQ00 & SQ01
    Follow the menu path – SAP Menu > Tools > ABAP Workbench > Utilities > SAP Query > Queries
    a) In the “Query from User Group: Initial Screen -
    Ö Click on “Other User Groups” button
    Ö In the pop-up screen, User Groups, select the User Group for which the
    Query has to created. The pop-up screen closes.
    Ö Enter the Query Code in the “Query” field
    Ö Click on “Create” button
    b) A pop-up screen “Restrict Value Range” shows the list of Infosets assigned to
    the User Group
    Ö Select the Infoset for which Query has to be created
    c) In the new screen Create Query: Title, Format -
    Ö Enter the Description of the Query in the “Title” field
    Ö Click on the “Next Screen” button
    d) In the Select Field Group” screen
    Ö Select the Field Groups from which Data Fields have to be selected for the
    Output
    Ö Click on the “Next Screen” button
    e) In the “Select Field” screen -
    Ö Select the Data Fields, which should appear in the output
    Ö Click on the “Next Screen” button
    f) In the Screen “Selection” -
    Ö Select the Data Fields for the selection criteria
    Ö Enter the sequence in which the selected fields would appear in the input
    screen of the query.
    Ö Define if the selection criteria should be Single Value or Multiple Value Range
    by clicking in the appropriate check boxes
    Ö Click on the “Basic List’ button
    g) In the screen “Query Layout Design” -
    Ö Select the Output Fields from the Data Fields section by clicking the
    appropriate check box
    Ö Change the sequence of Data Field columns if required
    Ö Click on the “Test” button to test the query created
    h) On the “Test Query” screen click “Continue”
    i) In the “Query” screen -
    Ö Enter the selection criteria
    Ö Click on “Execute” button
    j) Save the Query created
    Step 5: Running the Query – SQ00
    a) In the Query From User Group: Initial screen –
    b) Click on “Other User Groups” button to select the User Group
    c) In the pop-up screen “User Groups” select the User Group
    d) System lists all the queries created for the User Group
    e) Select the appropriate Query
    f) Click on “Execute” button
    g) User is taken to the Selection screen
    h) Enter the selection criteria and click on “Execute” button
    i) System runs the query and gives the output
    Regards,
    Murali.

  • How to write Boolean function (If Then Else)?

    Hi all,
    I have a logic to write in the query. It is:
    If (A = 0 and B = 0)
    Then 0
    Else
            If (A = 0 and B > 0)
            Then 100
            Else
                   A/B  (we want to show %)
    How to use boolean function to write this Netted If Else statement? Thank you in advance!

    Hi
    If (A = 0 and B = 0)
    Then 0
    Else
    If (A = 0 and B > 0)
    Then 100
    Else
    A/B (we want to show %)
    1. create a formula in the query designer. and use this formula for if - else
    ( ( (A==0) AND (B==0) ) * 0) +  ( ( a==0 ) AND (B >0 ) * 100 + (A/B*100) )
    : denotes THEN
    + : denotes ELSE
    See if this works.
    Assign points if helpfull
    From
    ManesH

  • How to override the create method invoked by a create form?

    Hello everyone, I'm using ADF Faces and have the next question:
    How can I override the create method which is invoked by a create form to preset an attribute in the new row (the preset value is not fixed, I have to send it to the method as a parameter as it is obtained using an EL expression)?
    In the ADF guide I read how to override a declarative method (Section 17.5.1 How to override a declarative method), but this explains how to do it with a method that is called by a button. I don't know how to do the same with a method which is called automatically when the page is loaded.
    I also tried overriding the view object's createRow() method to receive a parameter with the preset values but it didn't work, I believe that was because the declarative create method is not the same as the view object's createRow. This caused the form to display another row from the viewobject and not the newly created one (I also set the new row into STATUS_INITIALIZED after setting the attribute).
    Well, I hope my problem is clear enough for somebody to help me.
    Thank you!

    Hello,
    I'm not sure you can do it with standard generated Create Form.
    In your view object you'll need to create your own create method with parameters, publish it to client interface and invoke instead of standard generated create action in page definition.
    Rado

  • How to setup a function is cannot print out if didn't fill up all the required field on PDF form?

    how to setup a function is cannot print out if didn't fill up all the required field on PDF form?

    No way with just the free Reader. It may be done with Adobe Acrobat.

Maybe you are looking for

  • File not found: index.cfm

    Hi, I have a new ColdFusion 9 install on a CentOS server with Apache 2.2 I applied the 9.0.1 update. The install is Standard, not Enterprise. I can access the admin at /CFIDE/... perfectly. The problem is when I try to access the first domain I have

  • In search of a new camera

    I am in search of a new digital camera. I currently have a sony cybershot and i do like it i'm just wondering if there is anything better. i am trying to stay under $200.

  • Not enough space to install Mavericks-how do I free up space and continue the install? Help!

    I tried to install Mavericks but shortly after the installation initialized I got a message saying that I didn't have enough space to complete the install.  It asked to free up just under 1 MB of space...but I cannot get access to my hard drive.  Whe

  • Magazine in news stand don't open in iOS 8

    I upgraded to iOS 8 last night and when I tried to read a magazine in news stand, I received the message that "Cannot install item, please sesart the app and download your purchase again" I have done this three times, deleted the magazine dl it again

  • CRXI - Adding SQL subtables to already existing tables in a report

    Crystal Reports XI SQL 2005 I have a SQL 2005 set of tables and subtables with their respective fields.  In one of a pre-existing CRXI report there's an Opportunity table which now has a new "Opportunity_Details" subtable related to the original Oppo