Replacement cost of assets based on Index value

Hi All,
We make one Index series but when we assigned the asset master in Insurance Tab system give the error massage.
Indexing already performed in depreciation area 01 (Correct)
Massage No,-AA283
Thanks & Regards,
Juhi
Edited by: juhis022 on Mar 2, 2012 7:35 AM

FWIW, here's the implementation recommended by Mozilla (which has more robust error checking) :
if (!Array.prototype.indexOf) {
    Array.prototype.indexOf = function (searchElement /*, fromIndex */ ) { 
        "use strict";
        if (this == null) {
            throw new TypeError();
        var t = Object(this);
        var len = t.length >>> 0;
        if (len === 0) {
            return -1;
        var n = 0;
        if (arguments.length > 0) {
            n = Number(arguments[1]);
            if (n != n) { // shortcut for verifying if it's NaN
                n = 0;
            } else if (n != 0 && n != Infinity && n != -Infinity) {
                n = (n > 0 || -1) * Math.floor(Math.abs(n));
        if (n >= len) {
            return -1;
        var k = n >= 0 ? n : Math.max(len - Math.abs(n), 0);
        for (; k < len; k++) {
            if (k in t && t[k] === searchElement) {
                return k;
        return -1;

Similar Messages

  • How to find bpel instance in 11g based on the index values using Java APIs

    Hi ,
    In SOA10G we had option to find the instances based on the index value using Java APIs like below.
    WhereCondition criteria= new WhereCondition(SQLDefs.CX_index_1 + " = ?");
    criteria.setString(1, "indexValue");
    Locator mLoc = getLocator();
    IInstanceHandle[] foundInstances = mLoc.listInstancesByIndex(criteria);
    Please tell me how to achieve the same functionality in SOA 11G using Java APIs
    Regards,
    Saba

    I have multiple bpel in my composite. I checked in ci_indexes table and it shows the instance number of the bpel process. But the em console is showing only the composite instance number. when I opened composite instance, I could see all the bpel process with instance number in the audit trail. How can I find the the actual composite instance number that I should search for in the em console ???

  • How to find bpel instance in 11g based on the index values

    We have 10g BPEL process where we define 4 index values for all the instances. Whenever support request comes, we ask index values and based on that we search the process instance.
    We have migrated this 10g bpel process to 11g now. How to find bpel instance in 11g based on the index values ???

    I have multiple bpel in my composite. I checked in ci_indexes table and it shows the instance number of the bpel process. But the em console is showing only the composite instance number. when I opened composite instance, I could see all the bpel process with instance number in the audit trail. How can I find the the actual composite instance number that I should search for in the em console ???

  • FA Insurance config set up(FA replacement cost)

    Hi SAP Gurus,
       I am in process up setting up the config for insurance or FA repalcement cost in ECC 6.0 version. We are basing our calculation on APC value.
    1. Define Insurance Type. e.g fire or casulty insurance type and assign to a depreciation area for insurance.
    2. Define index series (OAV5)
    3.Modify asset class which allow to default insurance type and insurance type (Ao41)
    4.Before year end close load the index figures for prior years(S_ALR_87009182)
    5. In asset master in insurance asset tab populate insurance type, index series, Base value(which will be prior year replacement cost) before we run AAVN, Man. insur.val which will be original APC.
    6. Finially after the year end close run AAVN for prior year which will calculate the correct base value.
    7. Run report S_ALR_8701203 which will show the replacement cost for prior year.
    Please suggest if i have missed any major step in the process. You help will be really helpful.
    Thanks and Regards,
    babu

    The inputs on the back of the Edirol unit are LINE LEVEL inputs, meaning they are require a high level of voltage to give a level. A microphone plugged directly into this input will not give you the required voltage, if you were to plug either the outputs of a mixing desk or something like a CD player into it you would get a level.
    First of all you must use a microphone preamplifier, like the ones on the front panel. There are thousands of companies producing these and it shouldn't be hard to find them. You could also use any mixing desk which has multiple outputs, so as to split the channels out to the relevant channels in logic.
    Hope this helps.

  • Unable to create function based spatial index

    Maybe someone can help me. I can't seem to find the answer for what I'm doing here.
    I'm trying to create a function based spatial index - so that I can utilize coordinates in tables when I have no SDO_GEOMETRY column.
    Is there a fundamental problem with trying to do this or is it something syntactical?
    Executing the following sql is giving me this error, while I'm trying to create the spatial index:
    --create some table
    CREATE TABLE "ZZ_ACTIVITIES"
    ( "DESCRIPTION" VARCHAR2(50 BYTE),
    "CREW" VARCHAR2(50 BYTE),
    "LATITUDE" NUMBER DEFAULT 0.0,
    "LONGITUDE" NUMBER DEFAULT 0.0
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS NOLOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "MAP_NA_Q406" ;
    --create the function that takes an srid, and x/y and returns an SDO_GEOMETRY
    create or replace function get_geometry(p_srid in number,
    p_x in number,
    p_y in number)
    return mdsys.sdo_geometry deterministic;
    Is
    Begin
    Return MDSYS.SDO_GEOMETRY(2001,p_srid,mdsys.sdo_point_type(p_x,p_y,NULL),NULL,NULL);
    End observation;
    --insert sdo metadata
    INSERT INTO USER_SDO_GEOM_METADATA(
    TABLE_NAME,
    COLUMN_NAME,
    DIMINFO,
    SRID
    ) VALUES (
    'ZZ_ACTIVITIES',
    'GET_GEOMETRY(8307,LATITUDE,LONGITUDE)',
    MDSYS.SDO_DIM_ARRAY(
    SDO_DIM_ELEMENT
    'LONGITUDE',
    -180,
    180,
    0.5
    SDO_DIM_ELEMENT
    'LATITUDE',
    -90,
    90,
    0.5
    8307
    --create the index. (THIS IS WHERE THE ERROR IS THROWN)
    CREATE INDEX zz_activities_location_sidx ON ZZ_ACTIVITIES(GET_GEOMETRY(8307,LATITUDE,LONGITUDE)) INDEXTYPE IS MDSYS.SPATIAL_INDEX parameters('layer_gtype=POINT');
    The error returned is;
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13203: failed to read USER_SDO_GEOM_METADATA view
    ORA-13203: failed to read USER_SDO_GEOM_METADATA view
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 10

    Hi,
    To follow up, the below code resolved the issue:
    create index EQX_OKC_K_LINES_B_N4 on okc_k_lines_b(apps.eqx_oklb_term_date_nvl(date_terminated))
    logging
    tablespace eqixdata
    noparallel;
    -- qualifying the custom function name with schema name resolved the issue.
    Thanks,
    Rahul

  • Function-based spatial indexes

    hello,
    I'm using a function-based spatial index, which I've set up in a way similar to Oracle's examples in the Spatial documentation. Here's the basic idea:
    create table places (
    place_id not null
    primary key,
    latitude number,
    longitude number
    -- This function is used to create an MDSYS.SDO_GEOMETRY object
    -- as part of the Oracle Spatial indexing of the latitude and
    -- longitude.
    create or replace function get_long_lat_pt(
    longitude in number,
    latitude in number)
    return MDSYS.SDO_GEOMETRY deterministic
    is
    begin
    if latitude is null or longitude is null
    then
    return null;
    else
    return mdsys.sdo_geometry(2001, 8307,
    mdsys.sdo_point_type(longitude, latitude, NULL), NULL, NULL);
    end if;
    end;
    show errors
    INSERT INTO USER_SDO_GEOM_METADATA
    VALUES ('PLACES', 'schema_name.GET_LONG_LAT_PT(LONGITUDE,LATITUDE)',
    MDSYS.SDO_DIM_ARRAY(
    MDSYS.SDO_DIM_ELEMENT('Longitude', -180, 180, 0.00000005),
    MDSYS.SDO_DIM_ELEMENT('Latitude', -90, 90, 0.00000005)),
    8307
    -- Create Oracle Spatial function-based index
    CREATE INDEX places_long_lat_idx ON places(get_long_lat_pt(longitude, latitude))
    INDEXTYPE IS mdsys.spatial_index PARAMETERS('layer_gtype="POINT"');
    All of this works just fine. But then I try to do a nearest neighbor calculation:
    select /*+ INDEX(places places_long_lat_idx) */ place_id
    FROM places WHERE
    SDO_NN(
    get_long_lat_pt(longitude,latitude), -- table values
    get_long_lat_pt(-71.1482, 42.3367), -- an arbitrary point
    'sdo_num_res=2') = 'TRUE'
    and I get this:
    ERROR at line 1:
    ORA-13249: SDO_NN cannot be evaluated without using index
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 17
    ORA-06512: at "MDSYS.PRVT_IDX", line 27
    It's as though Oracle isn't using the function-based index inside my SDO_NN call, even with a INDEX hint. I am stumped.
    Just for kicks I tried to do a query using SDO_FILTER instead. I get:
    ERROR at line 1:
    ORA-13268: error obtaining dimension from USER_SDO_GEOM_METADATA
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 8
    ORA-06512: at "MDSYS.SDO_3GL", line 365
    I am using Oracle 9.0.1.0.0, and I set QUERY_REWRITE_ENABLED=TRUE and QUERY_REWRITE_INTEGRITY=TRUSTED as noted in the Spatial documentation.
    Any clues?
    Thanks,
    Greg

    Greg,
    The only times I have seen this error is when the
    two parameters you mention are not set properly for the session.
    I have a feeling that the parameters (QUERY_REWRITE_ENABLED,
    and QUERY_REWRITE_INTEGRITY) are not getting the right values.
    Can you verify this by doing a
    show parameter QUERY_REWRITE_INTEGRITY
    and
    show parameter QUERY_REWRITE_ENABLED
    from the session from where you are trying to execute
    the Spatial operator.
    Or you can try setting them for the session by
    alter session set parameter=value
    to see if it makes a difference.
    thanks
    siva

  • How to use cfloop index value as part of another variable

    Hello,
    I have a RATE form that first asks "how many rates will you
    be adding?" that answer generates a series of form elements based
    on the answer. You then have a form grid to populate, 3 values for
    each rate (price, code, name).
    This part works fine. The issue is now I need to INSERT the
    values into the table, so I need to use the INDEX value of the
    cfloop to recreate the amount (and names) of the fields in the
    INSERT statement. How do I escape, or re-create the evaluated form
    elements ( in which their count is #i# as the loop goes) when I
    need to evaluate for #i# AND evaluate for #form.sku_i_name# at the
    same pass?
    I am passing, for example, #form.sku_2_Name# where that might
    equal "Half Page". The number 2 in that variable was assigned
    during the form creation by the current index of a cfloop. Since my
    action (insert) page does not know how many (out of 50 possible)
    sku's are coming, how do I use the skuCount (another hidden value
    passed as well) to create a proper INSERT SQL command when I need
    to eval the form element and the index at the same time?
    Obviously #sku_#i#_Name# does not work, and #sku_i_Name# does
    not either... I know this can be done, and that I am just doing it
    wrong.
    Thanks for any help!

    bigbrain28 wrote:
    > Thank You, cfsearching! I don't quite understand 100%
    how it works
    As all three of us indicated you use array notation for this
    type of
    requirement. In ColdFusion you can use array notation or dot
    notation
    to access structure data. Almost all data in ColdFusion is
    now some
    type of structure.
    I.E. #Form['myField']# is the same as #Form.myField#.
    The advantage is that with array notation you can do things
    you can not
    do with dot notation. You can reference elements that have
    keys that
    are illegal variable names such as one with a space.
    I.E. #url['my field'] is allowed, #url.my field# would fail
    or course.
    And you can concatenate the key string as we did with your
    example.
    I.E. #Form['aString' & aVariable]#
    There are many powerful things one can do with this
    knowledge. One can
    access record sets with array notations. This can allow for
    very
    sophisticated parsing of a record set.
    I.E. #myQuery['column'][row]#
    You can dynamical call a variable. Thus creating dynamic code
    that does
    not even need to know what variables exist until run time.
    I.E. #variables[anyName]#
    This just scratches the surface.

  • How to capture the entries based on filter values in oo alv..

    Hi all,
    I have a scenario in my oo alv report, when the user select the any column on report and selects the filter option. In that the user can enters required values. Based on filter values the output will be displayed. Now how can i capture currently displaying entries on report.
    Thanks,
    Ashok

    Hi Jozef,
    Is that GET_FILTERED_ENTRIES( ) reads the indexes or values from the entries..?
    Thanks,
    Ashok

  • Capitalize borrowing costs to asset under construction u2013 IAS23

    Dear experts,
    According to IAS 23 we are required to calculate interest on capital invested in an asset under construction.
    Borrowing costs that are directly attributable to the acquisition, construction or production of a qualifying asset form part of the cost of that asset. Where funds are borrowed specifically, costs eligible for capitalization are the actual costs incurred less any income earned on the temporary investment of such borrowings. Where funds are part of a general pool, the eligible amount is determined by applying a capitalization rate to the expenditure on that asset. The capitalization rate will be the weighted average of the borrowing costs applicable to the general pool. The amount of borrowing costs that an entity capitalizes during a period shall not exceed the amount of borrowing costs it incurred during that period.
    Detail scenario
    The construction of a qualifying asset is controlled by an investment measures that are managed as projects - WBS elements and settled to an asset under construction periodically.  The calculated interest shall update only the determine depreciation area set on the interest profile (OPIB).
    The borrowing operations are managed by money market transaction on TRM (Prod. Category  550  Interest rate instrument).
    Using the interest calculation function (CJZ2 - Individual Processing or CJZ1 - Collective Processing) we encountered several problems/ restrictions.
    1 u2013 When funds are borrowed specifically to a qualifying asset for example, an interest rate instrument as a money market transaction on TRM should be capitalized according to the actual incurred borrowing cost and not by a capitalization rate. How to assign the value to the WBS element?
    2 u2013 When funds are part of a general  pool, although we can calculate and update the effective interest rate for each borrowing transaction (TMEZ) how to determine the weighted average capitalization rate by company code and define it on the Reference Interest Rates (OBAC) to be used in the interest calculation?
    3 u2013 Even if the capitalization rate is defined and updated manually in the reference interest rate for the interest calculation, how to limit the amount of borrowing costs that will be capitalized during the period? The calculated interest in period shall not exceed the amount of borrowing costs it incurred during that period.
    Is there any other functionality to support interest calculation and capitalization of borrowing costs to asset under construction according to IAS23 requirements?
    Please advice.

    Hi,
    The interest rates for capitalization and for appropriation can be collected in separate cost centers and apportioned to WBS . If you incur interests at the group level,then using accrual apportion the relevant portion to the respective C/Codes.
    For arriving the weighted average i assume you take the planned interest.For restricting the planned to the actual ones use the " Budget Manager" functionality,give the actual value,set zero tolerance.This will help restricting  to the actuals.
    Hope this helps.
    Regards
    Ramesh

  • COPA Costed and Account based

    Hi Experts,
    I have running In BW, PA Costed based, and now I need activate PA accounted based extractor.
    a) does somebody have any doc or  how-to papers, specific about COPA Accounted?
    b) can will appear any issue or problem  about my current PA costed based loads?
    c) how can I see with pa model (costed or account based)  is running in the R/3 instalation?
    Thank you in adavance!

    Hi,
    Costing-based Profitability Analysis is the form of profitability analysis that groups costs and revenues according to value fields and costing-based valuation approaches, both of which you can define yourself. It guarantees you access at all times to a complete, short-term profitability report.
    Account-based Profitability Analysis is a form of profitability analysis organized in accounts and using an account-based valuation approach. The distinguishing characteristic of this form is its use of cost and revenue elements. It provides you with a profitability report that is permanently reconciled with financial accounting
    Hope this helps
    Regards,
    Aparna

  • Gather all cost for asset under construction

    Hi everybody
    Please tell me the way to gather all cost for asset under construction. You can detail as good as possible.
    Thanks so much
    Ngocpt

    Dear Ngocpt,
    Internal order is functionality from CO. U can use it for the purpose of collating all the cost. U can also do cost planning in internal orders. This helps u to analyse bet planned & actual cost.
    Create IO thru KO01. Once created use it in ur transactions. In your case u can use it in posting any document to AUC.
    Also as I mentioned in my previous post that IO can posted with real values and statis tical values. If you want to post statistical vales only then check the box statis tical order in control data.
    Whenever passing an entry put ur IO number in "order" field.
    Hope this is of use to u.
    Regards,
    Ajay

  • Costing component allocation to CO-PA value field via SD invoicing

    Hi experts,
    Somewhere a setting must be made that allocates costing component amount to CO-PA value fields.
    I.e. this takes place when the CO-PA document is created belonging to the order/invoice created in SD.
    Will appreciate to learn a transaction code where this setting is made.
    BR,
    Niclas

    Hi,
    costing-based CO-PA:
    all values from billing documents flow to CO-PA based on KE4I T-code, quantities based on KE4M. If its necessary to reset some of the transferred values this can be done depending on the billing type using KE4W.
    All other values that are posted with a PAOBJNR as cost object (=direct postings) are processed by mapping the cost element number to a value field in T-code KEI2.
    Other values are settled to CO-PA by different settlement transactions (KEU5, KO88,...)
    Best regards, Christian

  • How to dynamic select based on runtime value ?

    how to dynamic select based on runtime value ?
    I want to write a select function, which do selecting based on parameters. eg,
    CREATE OR REPLACE FUNCTION myfunction
    (tableName VARCHAR2, pkName VARCHAR2, pkValue VARCHAR2, requestString VARCHAR2)
    RETURN VARCHAR2 AS
    BEGIN
    select requestString from tableName where pkName=pkValue;
    RETURN NULL;
    END;
    myfunction('users', 'user_id', '100', 'user_name'); it will select 'user_name' from table 'users' where 'user_id' = '100'.
    This way could save lots of coding. but it can't pass compiler. how to work out ?
    Thanks.

    While this may save code, if used frequently it will be ineffecient as all [explicative deleted]. The danger is that it would be used even for repeatable statements.
    This mode of operation ensures that every statement [calling the funciton] needs to be reparsed, which is extremely expensive in Oracle (in CPU cycles, recursive SQL and shared pool memory).
    Such reparsing is rarely a good thing for the environment ... it could easily lead to buying more CPU (bigger box) and therefore adding more Oracle license ... which could quickly exceed the typical developer's salary.
    However - if you really, really want to do this, look up 'execute immendiate' in the PL/SQL manuals.

  • Sub Query selection based on parameter value selected

    I have a parameter, and based on the value selected, I want to run one of two queries. I thought I could do either an IF THEN ELSE, or a CASE, but neither seem to be working.
    What I'm trying to do is this:
    IF parameter_value = 338 THEN
    (RUN THIS SELECT QUERY)
    ELSE
    (RUN THIS SELECT QUERY)
    END IF
    or
    SELECT CASE WHEN parameter_value = 338 THEN (RUN THIS SELECT QUERY)
    ELSE (RUN THIS SELECT QUERY)
    END X
    I'm getting errors with both. For the CASE statement, it says "too many values". For the IF statement, it just says "invalid SQL statement".
    Any suggestions would be appreciated.
    Thanks.

    Looks like this is what you want
    SQL> WITH T
      2       AS (SELECT LEVEL col
      3             FROM DUAL
      4           CONNECT BY LEVEL <= 5)
      5  SELECT *
      6    FROM T;
           COL
             1
             2
             3
             4
             5
    SQL>
    SQL> VARIABLE parameter_value    NUMBER
    SQL> EXEC    :parameter_value := 338;
    PL/SQL procedure successfully completed.
    SQL>
    SQL> WITH T
      2       AS (SELECT LEVEL col
      3             FROM DUAL
      4           CONNECT BY LEVEL <= 5)
      5  SELECT col
      6    FROM T
      7   WHERE col = DECODE (:parameter_value, 338, col, :parameter_value);  --- If 338 then select all if not 338 select only the one with parameter_value.
           COL
             1
             2
             3
             4
             5
    SQL>
    SQL> EXEC :parameter_value := 2;
    PL/SQL procedure successfully completed.
    SQL>
    SQL> WITH T
      2       AS (SELECT LEVEL col
      3             FROM DUAL
      4           CONNECT BY LEVEL <= 5)
      5  SELECT col
      6    FROM T
      7   WHERE col = DECODE (:parameter_value, 338, col, :parameter_value);
           COL
             2
    SQL>
    SQL> EXEC :parameter_value := 3;
    PL/SQL procedure successfully completed.
    SQL>
    SQL> WITH T
      2       AS (SELECT LEVEL col
      3             FROM DUAL
      4           CONNECT BY LEVEL <= 5)
      5  SELECT col
      6    FROM T
      7   WHERE col = DECODE (:parameter_value, 338, col, :parameter_value);
           COL
             3
    SQL> You need to use following where clause in your query
    WHERE column_name = DECODE (parameter_value, 338, col, parameter_value); -- replace the column_name with name of the column you are comparing against.G.
    Edited by: G. on Mar 8, 2011 3:36 PM
    formatted and added comments

  • Replacing chars in a string by index and not sequence??

    Hi,
    I wish to replace the first character of a string, the only functions I see are replace and translate but they only replace based on char value, I have a work around do but concat strings and chars but I was wondering if there is a more graceful approach to doing this,
    Cheers.

    concat strings and chars but I was wondering if there is a more graceful approach to doing thissubstr & concatenation are graceful enough.

Maybe you are looking for

  • IPhone 4S to iPad 2 - Settings won't transfer.

    I used my iPhone 4S backup from iCloud to set up my new iPad, but none of the settings, contents, or game data transferred over. How do I get EVERYTHING to transfer? All my apps are set up individually I stead of grouped in folders. And none of my co

  • HT204266 My App Store has changed to the us store how do I get back to the uk store?

    As question my App Store has changed to the us site and I don't know how to get back to the uk one

  • C8180 On Off error msg and Photo Tray Error msg

    I have a C8180 AIO printer with the two problems above. Upon turning the printer on the LCD announces that I should always use the on off button and not unplug it even tho It's always been plugged in.  After I press OK the photo paper tray msg states

  • Error U1077 Installing Perl

    Hi, I have: Essbase 9.3.1 Perl 5.8.3 Visual C++ 2008 System Variable "Path" = c:\Perl\bin;C:\visualc\VC\bin;C:\Hyperion\AnalyticServices\bin;C:\oracle\ODI\oracledq\tsq11r5s\Software;C:\Hyperion\AnalyticServices\bin;C:\oracle\product\10.2.0\db_1\bin;%

  • User Exits BALE for inbound and DE_EIOUT without function

    Hello, we have implemented patches in our R3-system and now the data-exchange of the fields 'parh1 - 5' of the cp is not yet done. We have implemented note620399 for processing additional fields from R3 to crm and backward. I've checked tables TBE24/