Queries with custom functions

Hi, Oracle gurus,
I experienced recently an issue with SQL performance when playing with queries using PL/SQL functions.
Let’s look at the following query:
SELECT my_package.my_function(x)
FROM Xvalues
This query returns values calculated by a PL/SQL function “my_function” in “my_package” package. The function performs some CPU intensive computations so that it takes it approx. 1 second to return a value. If the “Xvalues” table contains 100 rows then it takes Oracle 100 seconds to complete the query. OK.
Now I want to filter only non null results so that my query may look as:
SELECT y
FROM (
SELECT my_package.my_function(x) y
FROM Xvalues
WHERE y IS NOT NULL
It was surprising for me that it took Oracle ca. 200 seconds to complete this query, twice as long as the original one. I believe that the optimizer resolves this query to something like this:
SELECT my_package.my_function(x) y
FROM Xvalues
WHERE my_package.my_function(x) IS NOT NULL
When processing such a query Oracle first evaluates the WHERE clause to decide to return output values specified in the SELECT clause or not. That’s logical in most situations, but in this particular case it leads to longer execution time.
What I do to workaround this problem is splitting the query. First I put all values into a temporary table using
INSERT INTO TempTable
(SELECT my_package.my_function(x)
FROM Xvalues)
and then select non null results with another query
SELECT y
FROM TempTable
WHERE y IS NOT NULL
The whole execution time shrinks to original ca. 100 seconds what I wanted to achieve. Nevertheless I am not satisfied with this solution because it introduces some intermediate steps. This is only a simplified example but in fact my query is much more complex, consists of many nested subqueries, etc. and this approach – although effective – would require dozens of temporary tables and make the whole query unclear.
I wonder if there is a simpler solution possible, for example to have one single hierarchical query like above one and force Oracle first to fully process the nested subquery and then the embracing one? The goal is to decrease waiting for filtered results down to original 100 seconds (or a bit longer) …
Any suggestions will be greatly appreciated!
Greg

Maybe Tom Kyte's "trick" of the "select pl_sql_function () from dual" to invoke scalar subquery caching can help you:
select ename
  from emp, dept
where (select dname_lookup(emp.deptno) from dual) = 'SALES'
   and dept.deptno = 30
   and emp.deptno = dept.deptno;http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1547006324238
As Tom says, in 11g you'll be able to cache that function (new 11g feature) which removes the need for the "trick":
Oracle® Database PL/SQL Language Reference 11g Release 1 (11.1)
- 8 Using PL/SQL Subprograms
-- Using the Cross-Session PL/SQL Function Result Cache
http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/subprograms.htm#BABFHACJ
"On the PL/SQL Function Result Cache" by Steven Feuerstein
http://www.oracle.com/technology/oramag/oracle/07-sep/o57plsql.html
Regards,
Zlatko

Similar Messages

  • SE80 problem in ECC with custom function groups

    We are in the process of upgrading from 4.64 to ECC 6 and have encountered an unusual situation.
    When we bring up a custom function group in SE80, we can no longer see the custom includes in the include section.  We can see all other sections.  We can still use SE38 to look at an include.  The automatically-generated includes are there, such as the TOP, F01 and UXX, but see none of the ones that go with the function modules we've created.  When we look at the UXX include, we can see each of the function modules with the include it belongs to.  These are function groups that existed in the 4.64 system; they are not new to the ECC system.
    We've tried rebuilding the object list at the function group and package levels.  We receive no errors and the processes work fine.
    Maybe there is a setting somewhere that needs to be updated?

    See the solution that Srini has suggested in this thread
    OA Framework & JTT Request Parameters
    you need to use jtfcrmchrome.jsp to navigate between JTF and OA pages.
    Thanks
    Tapash

  • Quering with sysdate function

    hi all ,
    there is a strange thing right here ,
    i set the where clause for my database block to , ( test_date = sysdate )
    then , query caused no records to be retrieved , and i am sure that the table has records with sysdate date .
    why does this happen ?
    even if i queried the table in the isqlplus ,
    select test_date from patients ; -- then queries with sysdate date are retrieved , but if i write
    select test_date from patients where test_date = sysdate . -- there is nothing to be retrieved .?
    help ?
    even i created a new table tt with one column(cc) , and inserted the value sysdate in it ,
    when i select sysdate from dual then it works 27-NOV-12 but
    when i select dd from cc where dd = sysdate then no rows selected
    Edited by: semsem on Nov 27, 2012 11:33 AM

    sysdate contains both date and current time elements, down to seconds. You will never find a match on sysdate, unless you hit the query at exactly the right time that matches some record in your table.
    Set your where clause to:
    ( trunc (test_date) = trunc (sysdate) )
    The "trunc" truncates (removes) the time element from your date values before doing the conditional test.
    when i select sysdate from dual then it works 27-NOV-12Do this in SQL Plus:
    alter session set nls_date_format='mm-dd-yyyy hh24:mi:ss';That will enable you to see the true date and time contained in your date datatypes. Here is an example:
    SQL> select sysdate from dual;
    SYSDATE
    27-NOV-12
    SQL> alter session set nls_date_format='mm-dd-yyyy hh24:mi:ss';
    Session altered.
    SQL> select sysdate from dual;
    SYSDATE
    11-27-2012 11:47:37Note in Forms, you can use two datatypes: DATE and DATETIME The both will query a date from the database, but the DATE datatype will remove the time element in the form, so a data change occurs. If you want to see the full date and time from the database column, use DATETIME, and set the Format Mask to something that will display everything.
    Edited by: Steve Cosner on Nov 27, 2012 11:42 AM

  • Queries with date functions using PreparedStatement for multiple DB

    I am developing application that uses DB independant queries. I am using preparedstatement to process the queries. I need to use date functions for query selection criteria.
    for eg.
    selecting the list of employees who had joined in the last 15 days
    selecting list of employees who had joined between two dates etc.
    where Date Joined field is a Timestamp value. To extract date no DB specific function can be used.
    If I use setMonth, setYear etc.. to set params in the pstmt the query becomes complex in the above case. Can any one throw some light on how to do the above in preparedstatement or any other better alternative.
    Tx a lot

    Hi,
    I did not mean that way. I presume that there is a timestamp value (may be a date too) column in the table. Then based upon your requirement (say before 15 days) pass the value as date (or time stamp) in the query as a parameter.
    String qry = "select * from myTable where join_date <= ?";
    stmt.setDate(1,myDate); // this is where you will have to manipulate the value to suit your DB timestamp or date value; you will have compatibility issues with util.Date and sql.Date so use Calendar class to satisfy.Feel free to mail me if you need further clarifications to [email protected]
    Cheers,
    Sekar

  • Sorting table with custom function

    Hi,
    I am using JDev 11.1.1.4.0
    I have a table with records.
    public Record(int id, String desc) {
    this.id = id;
    this.description = desc;
    I want to implement a sorting function, for the description column, based on the length of the String.
    Any ideas how to do it?

    Hi Pedro,
    In that case the class Record should be "comparable" as you said.
    You can replace the current collection by an ordered list/set, and then implement the interface Comparator.
    This is an example:
    public java.util.TreeSet<Record> getRecords() {
      TreeSet<Record> records = new TreeSet<Record>(new RecordComparator());
      // routine to get the records
      return records;
    class RecordComparator implements Comparator<Record> {
      @Override
      public int compare(Record o1, Record o2) {
        // be careful with null records/attributes!
        return o1.getDescription().length() > o2.getDescription().length() ? 1 : o1.getDescription().length() < o2.getDescription().length() ? -1 : 0;
    }After that, try this:
    http://technology.amis.nl/2012/03/01/adf-11g-programmatically-configuring-sort-for-rich-table/
    AP
    Correction:
    Just add a transient attribute to class Record and try this with that new attribute: http://technology.amis.nl/2012/03/01/adf-11g-programmatically-configuring-sort-for-rich-table/
    AP
    Edited by: Alejandro Profet on Nov 12, 2012 3:32 PM

  • Extending dreamweaver with custom ssi functions ?

    Hi
    I read many posts about ssi and virtual function. Il could'nt find answer to my problem.
    i want to use all the capabilities of DW for ssi inclusion using php virtual function :
    absolute path from site root, visual rendering in creation mode, automatic path calculation ...
    but i don't want to use virtual function, because i'll won't be all the time on apache server.
    i don't want to use native require or include php function because my framework need absolute path from site root.
    I would liket to tell dreaweaver to treat myIncludeFunction() exactly as it does with virtual function.
    so i was expecting to extend Dreamweaver with customs tags. I read part of the Frecnh manual, extending dreamweaver
    but i couldn't manage to do this.
    Someone know the issue, or extensions taht could do this ?
    Thanks
    (sorry if my english is not good, my french is better )

    "Joris van Lier" <[email protected]> wrote in message
    news:fghlrc$ka$[email protected]..
    > Hi all, I'm looking for a way to extend the Dreamweaver
    DOM object with
    > custom functions.
    > In this case I need to backport the copyAssets function
    >
    http://livedocs.adobe.com/en_US/Dreamweaver/9.0_API/dwr_pagecontent_cn_088.html
    > for earlier versions of dreamweaver and reroute calls to
    an existing of
    > custom implementation.
    >
    > My idea is to create a Startup Item that uses the dom
    object as prototype
    > and extends or overrides certain functions, but then:
    how should I tell
    > dreamweaver to use that object instead of the normal
    DOM?
    >
    > --
    > Joris van Lier
    I'm still looking for the preferred/recommended way of doing
    this,
    does anyone have a bright idea?
    Joris van Lier

  • Queries with parameters - how do they get migrated?

    We are evaluating this migration to move a client off of access and put them into oracle. We use APEX for other things and like it. So, we tried with 3 tables, one query and one report. The tables moved fine, but the query failed. The log showed:
    Failed to Convert View <name> unexpected end of subtree: Line 0 Column 0.
    I began removing things to determine what was causing it. I finally got it to run when I got rid of the functions like iif, int and val. I think these are causing the issue. But, I still couldn't create the view because of the parameter in the query. Access prompts the user for this value before the query is run, but how would this translate to an Oracle view? And how would the report prompt the user for this value in Apex? Does this convert over automatically?
    If I have to rewrite the queries myself, I will. If I do, will that affect importing reports like this into Apex? Any suggestions?
    Thanks, Chris

    Hi Chris,
    Thanks for the updates.
    Currently the Oracle SQL Developer Migration Workbench translator does not support the parsing of the IIF function. I believe there is a bug already logged against this & a fix will be available in a future release of the Workbench.
    You may find it useful to refer to the following threads discussing alternative handling of queries using the IIF function -
    Access Queries with "IIF" function
    msaccess parser error
    As mentioned in the above postings, one option for you is to use a CASE statement, similar to the following:
    SELECT SUM(case when Table1.Week Between 1 And Ending_Week then Table1.Sales else 0 end) TY_Sales_YTD
    FROM Table1 ;
    If you wished to use such a query to display the resulting value on an Oracle APEX page, this could be implemented as follows:
    Note: Assuming that you have migrated the database schema to Oracle & have associated your APEX workspace with that schema.
    1. Create a new blank page in your APEX application. Add a new HTML region to your page.
    2. Create a "Select List with Submit" item and in its "List of Values Query" field enter syntax similar to the following:
    select week d, week r
    from table1
    order by 1
    and set the item name to P1_END_WK. Place the item on your HTML region. This item will act as the parameter in your query.
    3. Create a "Display as Text" item and set its Source region to be of type "SQL Query". Paste the following syntax into the items' source value field:
    SELECT SUM(case when Table1.Week Between 1 And :P1_END_WK then Table1.Sales else 0 end) TY_Sales_YTD
    FROM Table1
    and set the item name to P1_SUM. Place the item on your HTML region. This query will return the result based upon the user's selection of value in the P1_END_WK select list item.
    4. Add a branch to the page, setting it to branch to itself. Basically when the user selects a value from the P1_END_WK select list, this will submit the page. The branch will redirect the page to itself & in turn update the value held in P1_SUM.
    Would this type of implementation work for your application? It's obviously just one option to consider. I hope this helps. If you have any further issues/questions regarding any of the above information or regarding other queries in your MS Access MDB file, please let me know. If you'd like me to take a look at your MDB file, please post your email address so I can contact you directly.
    Regards,
    Hilary
    Message was edited by:
    hfarrell

  • Customer Function

    Hi Experts,
    My predecessor has developed a customer function in CATS Time sheet. There is a customer function button, when employee clicks that button, it will call a function to calculate the employee’s overtime. Now, the business wants to make some over time calculation change. I do not have experience with customer function. I have following questions:
    (1)     How is the customer function button added into SAP standard screen(for example adding a customer button in CATS Time Sheet Screen)?
    (2)     How do I find the program that will be triggered when the customer button is clicked?
    Regards,
    Jim

    Hi Kiran,
    This is a User Exit. It allows you to insert you own code to enhance the functionality of this program. This looks like a workflow user exit. What it allows you to do is pass into the user exit some approver information and allows you to modify the table of possible approvers.
    If you double click on the '001' it will allow you to create your new INCLUDE program to insert your User Exit code.
    Hope this makes sense. Hit me back if you need any clarification.
    Cheers,
    Pat.

  • How to create a custom function module with the records in SAP R/3?

    Hi All,
    How to create a custom function module with the records in SAP R/3? Using RFC Adapter I have to fetch the custom function module records.
    Regards
    Sara

    Hi
    goto se37...here u need to create a function group... then u need to create a function module. inside assign import/export parameters. assign tables/exceptions. activate the same. now write ur code within the function module
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm
    Look at the below SAP HELP links, These links will show you the way to create a Function Module
    http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm

  • Issue with calling custom function in merge command -10g

    Hi,
    I have ran into issue while calling a custom function in merge command.
    It throws error 'Invalid identifier'. Oracle doesnt understand that it is a function and take the function name as column name.
    Since no such collumn name exists, it throws 'Invalid identifier'.
    Interestingly, merge command works fine when it has a oracle function (replace, decode).
    The oracle version is 10.2.0.3
    It is very urgent.
    Any pointers will be helpful.
    Regards,
    Ravi

    I don't have privileges to create dblink, but this is working for me.
    So, i don't think function can be a issue here.
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Elapsed: 00:00:01.02
    satyaki>
    satyaki>
    satyaki>create table hist_tab
      2     as
      3       select * from emp
      4       where sal between 2000 and 4000;
    Table created.
    Elapsed: 00:00:00.09
    satyaki>
    satyaki>select * from hist_tab;
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO JOB1      DOB
          7844 TURNER     SALESMAN        7698 08-SEP-81       2178          0         30 SALESMAN
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>update hist_tab
      2     set mgr = 7794;
    1 row updated.
    Elapsed: 00:00:00.01
    satyaki>
    satyaki>commit;
    Commit complete.
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>select * from hist_tab;
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO JOB1      DOB
          7844 TURNER     SALESMAN        7794 08-SEP-81       2178          0         30 SALESMAN
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>
    satyaki>
    satyaki>create table tran_tab
      2     as
      3       select * from emp
      4       where sal between 2000 and 7000;
    Table created.
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>select * from tran_tab;
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO JOB1      DOB
          7844 TURNER     SALESMAN        7698 08-SEP-81       2178          0         30 SALESMAN
          7902 FORD       ANALYST         7566 03-DEC-81    5270.76                    20 ANALYST
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>ed
    Wrote file afiedt.buf
      1  create or replace function fun(c_in number)
      2     return number
      3     is
      4       c_out number(4);
      5     begin
      6       if c_in < 7900 then
      7          c_out := 0;
      8       else
      9         c_out := 1;
    10       end if;
    11       return c_out;
    12*    end;
    13  /
    Function created.
    Elapsed: 00:00:01.00
    satyaki>
    satyaki>merge into hist_tab o
      2  using (
      3     select empno,
      4            ename,
      5            job,
      6            mgr,
      7            hiredate,
      8            sal,
      9            comm,
    10            deptno,
    11            job1,
    12            dob
    13     from (
    14              select k.*,
    15                     rank() over(order by fun(k.empno)) rn
    16              from tran_tab k
    17          )
    18     where rn = 1
    19     ) n
    20  on ( o.empno = n.empno)
    21  when matched then
    22    update set o.ename = n.ename,
    23               o.job = n.job,
    24               o.mgr = n.mgr,
    25               o.hiredate = n.hiredate,
    26               o.sal = n.sal,
    27               o.comm = n.comm,
    28               o.deptno = n.deptno,
    29               o.job1 = n.job1,
    30               o.dob = n.dob
    31  when not matched then
    32    insert(
    33            o.empno,
    34            o.ename,
    35            o.job,
    36            o.mgr,
    37            o.hiredate,
    38            o.sal,
    39            o.comm,
    40            o.deptno,
    41            o.job1,
    42            o.dob
    43          )
    44    values(
    45            n.empno,
    46            n.ename,
    47            n.job,
    48            n.mgr,
    49            n.hiredate,
    50            n.sal,
    51            n.comm,
    52            n.deptno,
    53            n.job1,
    54            n.dob
    55          );
    1 row merged.
    Elapsed: 00:00:00.03
    satyaki>
    satyaki>select * from hist_tab;
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO JOB1      DOB
          7844 TURNER     SALESMAN        7698 08-SEP-81       2178          0         30 SALESMAN
    Elapsed: 00:00:00.00
    satyaki>You can check the final output with old output. It is working perfectly - i guess.
    Regards.
    Satyaki De.

  • Custom Functions with SDK

    After some success designing custom visual components using the SDK, I have attempted to create a custom excel function added in SDK SP1 and am a little confused by the minimal documentation.
    The documentation alludes to adding custom functions that will not work in excel design time but will work after compiled to SWF. So, in using the SDK I have created a series of test functions following the samples provided and I still am not able to use the function correctly and receive the this Excel function is not supported.
    I am assuming this SDK feature works like this (please correct me where/if I'm wrong!):
    -create a flex function in top level .mxml using the method mentioned in the docs/samples.
    -refer to function in excel formula
    -preview & the flex function should handle the rest.
    My question is, is this supported? Or does the function have to coincide with an excel function in order to work? I even created an excel function via VBA that works the same so the design time would behave the same, but to no avail.
    My function is as follows, it was simpler but after numerous tries I stole the sample layout and replaced the function name with testFunc and had it add the argument to itself but it still won't work in the visualization:
    public function testFunc(...args):*
         var v:*;
         var a0:Number;
         var range:ITableSDK;
         if (args[0] == undefined)
              a0 = 0;
         }else{
              if (args[0] is ITableSDK)
              xcelsius.spreadsheet.FunctionError(xcelsius.spreadsheet.FunctionError.VALUE);               
              }else{ // a cell     
                   v = getNumberUtil(args[0]);
                   if(v is xcelsius.spreadsheet.FunctionError)
                        return v;
                         a0 = v+v;
         return a0;
    I am using Flex Builder 3 with flex sdk 2.0.1 HF3. Any ideas?
    Thanks,
    Sean

    Hi,
    as far as I know there's no SDK for now, but I found more in the OptiMap product of the "Corda" agency, the original vendor of the default maps. You can contact it by their Internet site: http://www.corda.com/
    Best regards
    Massimo

  • Working with Custom SQL Using Descriptor Query Manager Queries

    Hi All,
    I am Working on Descriptor Query Manager Queries
    Configuring Custom SQL Using Java and Workbench
    Using Java I wrote a static method as in the code given below.
    public static void insertEmployee(ClassDescriptor descriptor){
    descriptor.getQueryManager().setInsertSQLString(
    "insert into EMPLOYEE (EMP_ID, EMP_NAME, EMP_JOB, SAL, DEPTNO) values (#EMP_ID, #EMP_NAME, #EMP_JOB, #SAL, #DEPTNO)"
    I wrote a insert SQL Query in the custom SQL tab of the Toplink workbench .
    Using java and Using Toplink Workbench I had a problem how to call this insert query in the sessionEJBBean .
    Can any one suggest me in this regard.
    Thanks in advance
    regards,
    Satish

    What is the problem you are experiencing?
    Normally you can just execute the query by calling
    'executeQuery(queryName, domainclass) on the session.
    See also
    http://www.oracle.com/technology/products/ias/toplink/
    doc/10131/main/_html/qrybas003.htm#BCFIBGGJ
    Just out of curiosity: why do you need a custom SQL
    to insert something? Can't you use persist()?
    regards,
    LonnekeOr even UnitOfWork ? Why go down the route of using custom inserts to insert objects unless you have some business logic that Toplink's UnitOfWork API cannot provide ?

  • Some issue with the Function Module u0093'SKWF_FIND_BY_QUERY' in a BW ECC6.0

    Hi All,
    Need some urgent help..
    Iam facing some issue with the Function Module “'SKWF_FIND_BY_QUERY' in a BW ECC6.0 system.
    As shown below, in the function module, the Table “IT_PROPERTIES_RESULT” gets populated with some values based on inputs like IT_CLASSES, IT_QUERY, and ‘L’.
    This updation of “IT_PROPERTIES_RESULT” table is happening for some of the services sent through IT_QUERY and is not getting populated for some.
      call function 'SKWF_FIND_BY_QUERY
    exporting
      CONNECTION_SPACE         =
        OBJ_TYPE                 = 'L'
      PTYPE                    =
      X_STRICT                 =
    IMPORTING
      ERROR                    =
         tables
         CLASSES                  = IT_CLASSES
         QUERIES                  = IT_QUERY
         RESULT_OBJECTS           = IT_LOIO
      PROPERTIES_REQUEST       = PROPERTIES_RESULT        = IT_PROPERTIES_RESULT.
    The values are as follows:-
    Values getting populated in IT_CLASSES – BW_LO_TRAN               Values getting populated in IT_QUERY – 1) BW_QUERY, 2) /BIC/ZSERVICE
    I would like to know whether any Standard Customizing BW transaction is present that is maintaining “IT_PROPERTIES_RESULT” table properties  and fetching through this Function Module.
    Also, suggest how this issue can be resolved
    Thanks & Regards,
    Shailesh nagar

    Thanks Suhas. That definitely helped.
    Also the following links helped.
    http://help.sap.com/saphelp_nw70/helpdata/EN/86/1c8c3e94243446e10000000a114084/frameset.htm
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    Cheers,
    Preethi

  • Error in Custom Function Module

    Hi,
    I am working on implementing General Ledger Business content in financial Accounting.
    We had a requirement of creating a Custom Virtual cube similar to 0FIGL_V10. Hence, we had copied the standard function module RS_BCT_FIGL_DATA_GET_VC10 and created a custom function module. Before doing that, we had copied the function group RS_BCT_FIGL and created a custom function group for the custom function module.Both were activated subsequently. Then, we had created a custom virtual cube (ZFIGL_V10) using the custom function module.
    The queries on the Standard virtual cube were migrated to ZFIGL_V10 using the RSZC transaction code. when the queries are executed in RSRT, we get an error message "**An exception with the type CX_SY_DYN_CALL_ILLEGAL_FUNC occurred" and the ABAP debugger is started post that error.
    Has anyone faced this problem before?could any of you provide some pointers to it.
    Regards,
    Sainath

    You cannot use the standard function module which is used for standard cube for another cube.
    You should not change the function module.
    Instead you can make a copy of the function module you are using aand use this copy in ur virtual cube which will work in the same way the actual Fm used to work and it will make you perfrom the changes.
    Follow the below steps:
    1) Goto SE37 and In the top tool bar click on the copy button which is on right side of delete button.
    2) in fr FM give the name of the actual FM and in to Fm give the name of the function module you want to copy.
    3) Then click on copy.
    4) Now open this new function in edit mode and goto the import/export parameters and check. it will have all the same parameters as the actual FM. Here you can make the changes you want.
    5) Now use this FM in your virtual cube and it will be working as per your requirement
    https://forums.sdn.sap.com/click.jspa?searchID=9605118&messageID=4999763
    Hope it Helps
    Chetan
    @CP..

  • Runtime error - FBL1N - vendor balance with customer line item

    Hi gurus,
    One scenario where i have assign vendor as customer & customer as vendor in vendor & customer data. also make tick mark for both clearing with vendor & customer.
    when i see the customer report with vendor item it shows me the customer & vendor dues but when i tried to see the vendor balance with customer line item it gives dump error.
    Runtime Errors         PERFORM_NOT_FOUND
    Exception              CX_SY_DYN_CALL_ILLEGAL_FORM
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_FORM', was
         not caught in
        procedure "%_LDB_CALLBACK" "(FORM)", nor was it propagated by a RAISING clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        The program "RSDBRUNT" is meant to execute an external PERFORM,
        namely the routine "CB_DDF_GET_KNA1 " of the program "RFITEMAP ", but
        this routine does not exist.
        This may be due to any of the following reasons:
        1. One of the programs "RSDBRUNT" or "RFITEMAP " is currently being developed.
        The name "CB_DDF_GET_KNA1 " of the called routine may be incorrect, or
        the routine "CB_DDF_GET_KNA1 " is not yet implemented in the program "RFITEMAP
        2. If the program SAPMSSY1 is involved in the runtime error, one of
        the function modules called via RFC is not flagged as remote-capable.
        (see Transaction SE37  Goto -> Administration -> RFC flag)
        3. There is an inconsistency in the system. The versions of the
        programs "RSDBRUNT" and "RFITEMAP " do not match.
    Warm regards,
    Dhananjay R.

    Hi martin
    still problem was not solved. actually i am working on ECC 6.0 & not required to implement the sap note on development. i had done the configuration in vendor master & customer master for clearing.
    please suggest me.....what to do ?
    Than'x
    Dhananjay R

Maybe you are looking for

  • IPod nano sync problem "Cannot be synced,the required disc cannot be found"

    I keep getting this error message when I try to sync music on my nano. It happened before so I took my nano to a Mac store where they "restored" (erased), it. Then I had to remove all iTunes files from my pc and re-install, which I did. I was able to

  • MEDIA MANAGER NOT HANDLING AFTER EFFECTS 7.0 RENDERS

    Media Manager works on my captured DV footage. However, when using an After Effects QT movie copy of my credits, it failed. I spent several hours on this since it initially was my "test." I gave up then tried my captured footage, canceling before act

  • Connecting HH4 to DD-WRT router

    Hello everyone, I have just got my broadband nice and stable after many months of fighting and now looking to optimise it further by using my own router powered by dd-wrt. I would like to disable everything on the HH4 such as wifi, dhcp, firewall, up

  • Flash cursor into DW

    sry if this is in the wrong category, but i made a custom cursor in flash 8, now i need to import or place it into Dreamweaver for it to work on the website i am creating, i already tried to insert flash and inserted the .swf file, but i just get a w

  • Local interfaces and WLS 7

    Hi *, does anybody know if localinterfaces work in WLS7 SP1? thanx, Yauheni