error in calculation PLSQL function

Hi friends,

I have the plsql function below that throw error.

The function below is written in Apex, if kindly let me know how to solve this error

The following query checks the existing value and null assigns a value to the select statement. otherwise will assign it to the variable. I don't get how to set dynamically using the select statement

Function:

BEGIN
IF
: P1_VARIABLE_NAME IS NULL THEN: P1_VARIABLE_NAME: = select... from... (which returns a string)
ON THE OTHER
: P1_VARIABLE_NAME
END
END

Error:

Met the "SELECT" symbol when awaits one of the following numbers: (- + case mod new avg not null current County exists prior min max sql stddev sum variance execute forall time timestamp interval date fusion pipe)

Hi Pradeep,

Have you used the suggestion in the post above?
(Do not use the PL/SQL only the suggested above query block)
Did you put a semicolon after the query?
And you always use the PL/SQL code?

Could you post details of calculation?

Kind regards
Kiran

Tags: Database

Similar Questions

  • Error in code - PLSQL function

    Hi all

    I get an error for the following code.

    create or replace function get_emp_row

    (

    Number of p_empid

    ) RETURN % rowtype as employees

    employees x % rowtype;

    Start

    Select * x to employees where employee_id = p_empid;

    end;

    Return x;

    end get_emp_row;

    Here is my error

    Error (9): PLS-00103: encountered the symbol "end-of-file" when awaits one of the following numbers: (begin case declare exit end exception for goto rise back loop mod null pragma select update while < ID > < a between double quote delimited identifiers of > < a variable binding > < < continue the current closing delete fetch locking insert opening rollback to savepoint sql set run commit forall fusion pipe purge)

    Below is my table structure

    100AA(null)(null)(null)22 JUNE 14
    200Queen254000(null)MAY 22, 14
    300Raja266000(null)22 APRIL 14
    400PM278000(null)18 MARCH 14
    500cm2810000(null)(null)
    600Bishop231000(null)(null)
    700pilot21500(null)(null)
    800Dembélé2015000(null)(null)
    900Adkins1915500(null)(null)
    950Roshan1818000ANALYST(null)
    850NAV1719000MANAGER(null)
    750NAV1616500MANAGER(null)

    Could you good people check you and let me know where I'm missing. Thanks in advance

    Remove the end after the select statement, and you should be fine.

  • ERR-9131 error in the body of PLSQL function for default code point, the point =

    Hi all


    I am filling a field element of text in two different ways, but on the same page:

    1 - the page is called to change the values inside-> value of the element comes from field of database

    2 - the page is called to insert new values-> value of the element comes from a calculated function that returns a default value

    Point features:

    Source->

    always replace any existing value in session state

    database column

    -> Default

    -----------------------------------------------------------------------------------------------------------------------------
    default value
    ------------------------------------------------------------------------------------------------------------------------------
    DECLARE
    NUMBER OF THE LINHA;
    gene number;
    i_emp varchar2 (32000);
    v_sql2 varchar2 (32000);
    BEGIN
    i_emp: =: P62_EMP_COD;

    IF: P62_RDD_LIN IS NULL THEN
    LINHA: = 1;
    ON THE OTHER
    LINHA: =: P62_RDD_LIN;
    END IF;

    v_sql2: =' select '. i_emp |'. Grh_1_utils. GRHFU_RUB_DEFAULT ('|: P62_ENT_COD |', 'R' ' |: P62_REM_COD |', 1, 1000000, to_date null, "D", ("' |: P62_DAT_INI |")) (', "DD/MM/YYYY"),' | LINHA |') the double ';

    EXECUTE IMMEDIATE v_sql2 INTO gene;
    COMMIT;

    return deciphered;
    end;
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    default value - body of the PL/SQL function




    The error I get is:



    ORA-00936: lack of expression

    ERR-9131 error in PLSQL function for default code point body, item = ITEM_TO_POPULATE



    Something is wrong with my function or is a different, better way to do this?


    Cordially Pedro.

    Hello

    You can do some tests?
    (1) try to make this code first (to make sure that the P62_EMP_COD is not null when running):

    DECLARE
    LINHA NUMBER;
    defeito number;
    i_emp varchar2(32000);
    v_sql2 varchar2(32000);
    BEGIN
    i_emp := :P62_EMP_COD;
    
    IF :P62_RDD_LIN IS NULL THEN
    LINHA:=1;
    ELSE
    LINHA := :P62_RDD_LIN;
    END IF;
    
    v_sql2:='select '||i_emp||'.Grh_1_utils.GRHFU_RUB_DEFAULT('||:P62_ENT_COD||',''R'','||:P62_REM_COD||', 1 , 1000000,''D'',null,to_date('''||:P62_DAT_INI||''',''DD/MM/YYYY''),'||LINHA||') from dual';
    
    EXECUTE IMMEDIATE v_sql2 INTO defeito;
    COMMIT;
    
    return defeito;
    end;
    

    (2) then you can try to change your source, by changing 'replacement always of value that exists in the session state' "only when null.

    (3) enter your variable dynamic SQL code and check it out:

    DECLARE
    LINHA NUMBER;
    defeito number;
    i_emp varchar2(32000);
    v_sql2 varchar2(32000);
    BEGIN
    i_emp := :P62_EMP_COD;
    
    IF :P62_RDD_LIN IS NULL THEN
    LINHA:=1;
    ELSE
    LINHA := :P62_RDD_LIN;
    END IF;
    
    v_sql2:='select '||i_emp||'.Grh_1_utils.GRHFU_RUB_DEFAULT('||:P62_ENT_COD||',''R'','||:P62_REM_COD||', 1 , 1000000,''D'',null,to_date('''||:P62_DAT_INI||''',''DD/MM/YYYY''),'||LINHA||') from dual';
    return v_sql2;
    EXECUTE IMMEDIATE v_sql2 INTO defeito;
    COMMIT;
    
    return defeito;
    end;
    

    (4) prevent your run immediate code of SQL Injections using the link:

    DECLARE
    LINHA NUMBER;
    defeito number;
    i_emp varchar2(32000);
    v_sql2 varchar2(32000);
    BEGIN
    i_emp := :P62_EMP_COD;
    
    IF :P62_RDD_LIN IS NULL THEN
    LINHA:=1;
    ELSE
    LINHA := :P62_RDD_LIN;
    END IF;
    
    v_sql2:='select '||i_emp||'.Grh_1_utils.GRHFU_RUB_DEFAULT(:1,''R'',:2, 1 , 1000000,''D'',null,to_date(:3,''DD/MM/YYYY''),:4) from dual';
    
    EXECUTE IMMEDIATE v_sql2 INTO defeito USING :P62_ENT_COD, :P62_REM_COD, :P62_DAT_INI, LINHA;
    COMMIT;
    
    return defeito;
    end;
    

    Best regards, Kostya Proskudin

  • receive the following error code when searching for a piece of music I did several times without a music problem but have recently updated Firefax: Fatal error: Call to undefined function AmazonData() in/home/boss/public_html/mc on line 13

    I am in the page web http://www.songarea.com/ and after searching a piece of music, I get the following error message:
    "Fatal error: Call to undefined function AmazonData() in/home/boss/public_html/mc on line 13.
    I did this several times before without a problem, but have recently updated Firefox with the Skype add-on and wonder if the two things are related.

    URL of affected sites

    http://www.songarea.com/

    Hi John,.

    It is an error message from the web server providing this site. Specifically, it is something wrong with their PHP code.

    It is not browser specific and would go into another browser besides Firefox.

    You will need to contact the webmaster of this site to report this problem. A quick test does not show this problem, but you do not specify what search query, you tried:

    http://www.songarea.com/music-codes/test.html

  • error: implicit declaration of function 'GetActiveProcessorCount' is not valid in C99. Make sure that you include the prototype for the function.

    I get the following error:

    error: implicit declaration of function 'GetActiveProcessorCount' is not valid in C99. Make sure that you include the prototype for the function.

    I've included windows.h

    which includes winbase.h

    Winbase.h contains the prototype for the function in the above error message.

    If I disable 'Require the function prototypes' and 'Building with the C99 extensions', I get the following error:

    error: Undefined symbol "_GetActiveProcessorCount" referenced in "c:\Users\Public\Documents\National Instruments\CVI\HDLC\cvibuild. HDLC_RandD\Debug\HDLC_RandD.obj ".

    I work in the ICB 2013 SP2.

    Why I get this error.

    This function is only valid in Windows 7 and later versions. Because the ICB 2013 still supports Windows XP, this feature is excluded by default from Windows headers that are provided with CVI. If you do not need to worry about the versions of Windows prior to Windows 7, however, you can include it yourself, by adding the following macro in the dialog box options generation CVI (be sure to include for all configurations):

  • Fatal error: Call to undefined function get_header() in /home/rascal98/public_html/index.php on line 1.

    I received this message: Fatal error: Call to undefined function get_header() in /home/rascal98/public_html/index.php on line 1.  This has happened after that I tried to load a model of Web site using FTP Filezilla.  I asked advice of HostGator support, but offered only man I should have a backup.  Not much help at the moment.  I may be in the last two days charged that more than just a Web site template to the same file or directory public_html, it is called. I tried to reverse all this leaving the Site Manager to erase all files.  That did not help.  I'm stuck because I can't establish a few areas I need.  The terminology "fatal error" was quite worried.

    Hi rascal98,

     

    Welcome to Microsoft Answers Forums.

    The question you have posted is related to the area and would be better suited to the TechNet community. Please visit the link below to find a community that will provide the best support.

    http://social.msdn.Microsoft.com/forums/en-us/category/iedevelopment/

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • iTunes problem. Error: R6025 - pure virtual function call

    Original title:

    iTunes problem.

    Trying to open iTunes, I get this error: R6025 - pure virtual function call. Can someone tell me what is the problem?

    Hi Dave,.

    The error indicates iTunes has not been correctly updated.

    Users facing this issue have managed to solve this problem by following the steps below.

    Try to remove all associated iTunes and then rebuild it which is often a good starting point, unless the symptoms indicate a more specific approach.

    Remove and then reinstall iTunes and other components of software for Windows Vista, Windows 7 or Windows 8

    Please return to the State of the question.

  • JavaScript exception: error calling the selection function: TypeError: $(...). museMenu is not a function

    Since the update, one of my sites is weird. When you open the Web, that's what he said, "JavaScript exception: error calling the selection function: TypeError: $(...).» museMenu is not a function ". The site is www.hibiscuscuisine.com. If someone could help me understand this point, I would really appreciate it. Thank you

    Hello

    Please follow the complete instructions mentioned in this post - MuseJSAssert: error calling the function switch: TypeError: .museMenu $(elem) is not a function by Zak.

    Let me know if it works

    Thank you

    Ankush

  • PLSQL function to return the result of the query

    Dear all,

    Oracle Database SE1 11.2.0.1

    I need to create a plsql function which should accept SQL as a parameter, execute it and return the result set.

    Is this possible?

    Madhu.149 wrote:

    I need to create a plsql function which should accept SQL as a parameter, execute it and return the result set.

    Be careful - results games indicate a set of data stored in memory. This is not what are sliders. This isn't how Oracle should be used.

    Imagine that you implement such a result set function - which, on average, requires 1 MB of memory (private server) to store the results of the SQL query. A 100 users mean a 100 MB of memory required server. This is not suitable. Not at all. Never.

    The correct back 'thing' is a handle to SQL cursor (called a ref cursor in this case). A SQL cursor is a "program" - that the appellant runs via the fetch command and generates one or more lines accordingly. Appellant repeatedly runs this slider through calls to fetch until this slider found and returns all rows affected (using consistent readings).

    If you want an abstraction interface that the client can call via PL/SQL code in the database, so this crafting optimal SQL interface, creates the SQL cursor and returns the handle of the cursor (via the ref cursor data type) to the client.

  • This plsql function is considered ok?

    This plsql function is considered ok?  The reason that I ask is that the results are different when called within a packet vs appeal during a procedure.  I don't know if this is a bug or if it is illegal.

    CREATE OR REPLACE package body test as
    
    function test return varchar2 is
    begin
    htp.prn('ABCDEF');
    return 'xyz';
    end;
    
    
    end;
    
    
    

    When this function is called inside a package, the string 'ABCDEF' will appear out of sequence.   I think it's because of the in-Lining, 11 g the function at compile time.

    Whereas, when the function is called during a procedure the string 'ABCDEF' appears in the browser html properly.

    The service is technically do stuff how to output data from htp.prn, then Oracle can judged illegal.  I have a very good reason for wanting this feature, so before you take a different approach, I wanted to ask around.

    The question is how the statements are executed by the PL/SQL engine.

    Consider the statement:

    HTP.p (' test1 ' |)  FuncTest() ' | 'test2');

    To run it, all nested 'objects' must be resolved and executed first. Think of the execution path inside-to-outside.

    If FuncTest() is executed first. He puts a string into the buffer of HTP. The result of the function is concatenated and created a unique string literal. This literal is now the parameter in the call to htp.p (). Who then adds, after FuncTest(), a string to the buffer of HTP.

    I disagree with your statement that it behaves differently in the procedures as packages. I created 3 test cases for the foregoing. Anonymous block (run immediately the text code execution). Individual objects (separate procedure and function). Single object (procedure and function wrapped in a box).

    Each product, as expected, the same result.* how the engine of PL/SQL treats the path of execution of instructions, does not change because the statement is in a packed and not a stand-alone procedure.

    * 11.2.0.2 using SST 11 g Server (Apache v2 and v2 mod_plsql).

  • Captivate 8 - error R6025 - Pure virtual function call

    My teammates and I have 8 installed Captivate recently and while working on a large project for a client, some of our files has been corrupted. We couldn't open them and we would get a Runtime Error R6025 - Pure virtual function call. Some members of the team can still open these files CP8, but eventually, everyone is the error and we could not open the files, even if they were followed by several times.

    Someone at - it the same problem? We have suddenly regrets buying all these Captivate 8 licenses. Captivate 6 never gave us this problem, and it's really had to happen with a great project for a client.

    Just answered this in another thread (note we used 7 Captivate so it might be a different error).

    We found that when we created files with embedded in swf files that existed above widgets in the timeline panel, when someone else has tried to open the files he broke / we got the runtime error. The original person could still open for awhile, but hides would be clearly and that they could not.

    However, if we ensured that swf files are below widgets in the source files, it didn't break. Indeed, if we found one that broke and got the author to move the SWF in the timeline, he would start working for others.

    STRANGE! I would like to know if it works for you!

  • How to get the error thrown in plsql block

    Hello


    I remember there is a table that keeps track of the error raised in plsql block. and if we want to see what the error thrown in our block, we can query this table. but unfortunately I forgot the name of the table.

    can someone help me with the name of the table.

    Thank you

    Well maybe I am not aware of such a table, but I believe there are no table of this type

    SELECT *
    FROM   ALL_ERRORS;
    

    * 009 *.

  • Call the function C external plsql - function of mapping error ORA-06521

    Dear all,

    I have the following C code:
    class Factorial {
      public:
      int getVal (int a);
    };
    
    #include "Factorial.h"
    int Factorial::getVal (int a){
      if(a!=1){
        return(a * getVal(a-1));
        }
      else return 1;
    }
    I created the library (.so) shared, created the library in Oracle DB, set up the extproc earphone and etc.
    Also, I created the following plsql code:
    CREATE OR REPLACE PACKAGE c_pack AS
      function factorial_func(x in pls_integer) return pls_integer;
    END;
    /
    CREATE OR REPLACE PACKAGE BODY c_pack AS
    
       function factorial_func(x in pls_integer)
         return  pls_integer
       as language c
       library sys.c_factorial
       name "getVal";
       
    END;
    /
    When I am trying to run this function always get ORA-06521. I changed the types of data - but nothing has changed.

    Help, please.

    Just in case, listener.ora
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = db)(PORT = 1521))
                       (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) 
        )
      )
    
    ADR_BASE_LISTENER = /u01/app/oracle
    
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
         (SID_NAME = PLSExtProc)
         (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
         (PROGRAM = extproc)
         (ENVS = "EXTPROC_DLLS=/u01/app/oracle/product/c_lib/factorial.so, LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/dbhome_1/lib")
        )
      )
    [oracle@db admin]$ lsnrctl status listener
    
    LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 04-FEB-2013 21:24:36
    
    Copyright (c) 1991, 2011, Oracle.  All rights reserved.
    
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=db)(PORT=1521)))
    STATUS of the LISTENER
    ------------------------
    Alias                     listener
    Version                   TNSLSNR for Linux: Version 11.2.0.3.0 - Production
    Start Date                04-FEB-2013 21:23:37
    Uptime                    0 days 0 hr. 0 min. 58 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/db/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=db)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@db admin]$

    Hi 952942,

    The following code works fine:

    int getVal (int a){
      if(a!=1){
        return(a * getVal(a-1));
        }
      else return 1;
    }
    

    Compile and create the shared library:

    gcc -fPIC -c factorial.c
    gcc -shared -o factorial.so factorial.o
    

    Package:

    CREATE OR REPLACE PACKAGE c_pack AS
      function factorial_func(x in binary_integer) return binary_integer;
    END;
    /
    CREATE OR REPLACE PACKAGE BODY c_pack AS
       function factorial_func(x in binary_integer)
         return  binary_integer
       as language c
       library sys.c_factorial
       name "getVal";
    END;
    / 
    

    It works:

    begin
      dbms_output.put_line(c_pack.factorial_func(5));
    end;
    120
    

    Best regards
    Gena

  • ORA 28817 PLSQL function returned an error. When the apex 4 2 instance access

    Hello

    I just upgraded from apex to apex 4.2 4.1. All is well except for this error I get when I try to access the parameter Instance on the App Admin (localhost/apex/apex_admin)
    ORA-28817: PL/SQL function has returned an error
    What could be the problem? How we solve this problem...

    I'm working on the 2012 Win server machine... apex 4.2 with earphone 2 deployed on Glassfish 3.1.2 apex.

    Best regards
    Fateh

    Hello Faye,

    We are already aware of this problem, even if it is not yet present on our Web page of problems known. The reason for this error is that the new facility replaces an instance to the scale encryption key. In the preferences of the instance which have been encrypted with the old value (the SMTP password and the password for the portfolio), the values are not valid after the upgrade and decryption causes this error. As a work around, you can use the apex_instance_admin package to replace the invalid passwords.

    The following code shows how the decryption throws ORA-28817:

    SYS@a411> select apex_instance_admin.get_parameter('SMTP_PASSWORD') from dual;
    select apex_instance_admin.get_parameter('SMTP_PASSWORD') from dual
           *
    ERROR at line 1:
    ORA-28817: PL/SQL function returned an error.
    ORA-06512: at "SYS.DBMS_CRYPTO_FFI", line 67
    ORA-06512: at "SYS.DBMS_CRYPTO", line 44
    ORA-06512: at "APEX_040200.WWV_FLOW_CRYPTO", line 89
    ORA-06512: at "APEX_040200.WWV_FLOW_INSTANCE_ADMIN", line 239
    

    You can fix this by entering new password:

    SYS@a411> exec apex_instance_admin.set_parameter('SMTP_PASSWORD','my smtp password');
    PL/SQL procedure successfully completed.
    
    SYS@a411> exec apex_instance_admin.set_parameter('WALLET_PWD','my wallet password');
    PL/SQL procedure successfully completed.
    
    SYS@a411> select apex_instance_admin.get_parameter('SMTP_PASSWORD') from dual;
    APEX_INSTANCE_ADMIN.GET_PARAMETER('SMTP_PASSWORD')
    ----------------------------------------------------------------------------------------------
    my smtp password
    
    1 row selected.
    

    Kind regards
    Christian

  • Validation error in calculation Manager business rule (@_AT)?

    I've migrated a 11.1.1.3 business rule and both macros (models) in the calculation Manager 11.1.2.2. When I validate the script I get the following error. Everyone has seen this before or have any advice? Script syntax checks ok.

    "An error occurred in: rule: FCO_3YrBud_DGAlloc error: formula [statement of DIFFICULTY] (line 24) parse error: expected [()] found [@_AT]" after the function name rule FCO_3YrBud_DGAlloc ".

    Line 24 is the first declaration of FIX in the script below show:

    UPDATECALC OFF SET; AGGMISSG OFF SET;

    Model of % (name: = "FCOm_TargetSection", ask: = 'FCO', plantype: = 'FCO', PDT: = ("parm1": = ([["three year Budget"]]), "parm2": = ([["DGAllocation"]]), "parm3":=([[{FCOrtpYears}]]),"parm4":=([[Mar]])))))

    Model of % (name: = "FCOm_TargetAgg", ask: = 'FCO', plantype: = 'FCO', PDT: = ("parm1": = ([["three year Budget"]]), "parm2": = ([["DGAllocation"]]), "parm3":=([[{FCOrtpYears}]]),"parm4":=([[Mar]])))))

    First model:

    UPDATECALC OFF SET; AGGMISSG OFF SET;

    /****************************************************************************************************************

    FCOm_TargetSection

    parm1 = scenario

    PARM2 = version

    parm3 = years

    parm4 = periods

    The purpose of this macro is to translate GBP target and copy in the Curr entry and aggreggated. Step 1: Copy the total Section entry to I / P Total Section and no step 1 project: copy converted into money - no need to translate entries all entries are in GBP step 2: copy entry GBP to Curr NA values

    *****************************************************************************************************************/

    DIFFICULTY (([["trois ans Budget"]]), ([["DGAllocation"]]), ([["FY15"]]), ([[Sun]]), @IDESCENDANTS ("BH - T"), "Curr NA", "basic", 'Entry in the currency', ' one - 6111 "," A - 6112 ',' A - 6113 ', ' a - 65 ',' A - 66 ',' A - 620905 ')

    DATACOPY 'Total Section' to 'Input_Total Section;

    DATACOPY 'Total Section' to 'no project ';

    ENDFIX

    DIFFICULTY (([["trois ans Budget"]]), ([["DGAllocation"]]), ([["FY15"]]), ([[Sun]]), @IDESCENDANTS ("BH - T"), 'Curr NA', 'Total Section', Section 'Input_Total', 'No project', ' base', ' a - 6111 "," A - 6112 ',' A - 6113 ',' A - 65 ',' A - 66 ',' A - 620905 ')

    DATACOPY 'entered currency' to 'convert currency (GBP);

    ENDFIX

    DIFFICULTY (([["trois ans Budget"]]), ([["DGAllocation"]]), ([["FY15"]]), ([[Sun]]), @IDESCENDANTS ("BH - T"), "Total area", 'Input_Total', 'No project' Section, "basic", 'Entered in the currency ", converted into currency (GBP)', ' a - 6111", "A - 6112 ',' A - 6113 ',' a - 65 ',' A - 66 ',' A - 620905 ')

    DATACOPY "Curr NA ' to 'entry GBP;

    ENDFIX

    Second model:

    /****************************************************************************************************************

    FCOm_TargetAgg

    parm1 = scenario

    PARM2 = version

    parm3 = years

    parm4 = periods

    The purpose of this macro is to target data aggreggate Step2: aggregate data

    *****************************************************************************************************************/

    DIFFICULTY (([["trois ans Budget"]]), ([["DGAllocation"]]), ([["FY15"]]), ([[Sun]]), "basic", "Entered in the currency ',' converted to currency (GBP)")

    CALC DIM ("account", "BudgetHolder", "Admission tickets", "SectionProjects");

    ENDFIX

    In fact

    I just re thinking about your message. My comments above is not correct for your situation. The syntax above is correct if you are talking about the code 'in' the model itself (so if you open the template and look at the code). But if the code you have posted in your messages made from the window of script of the rule (in script view) then your problem is something different potentially.

    So the first thing is to make sure that in the model itself (open model), the PDT is defined in the global range or range of Member as [Parm1], [Parm2] etc. (or difficulty, depends on the way the model is shown) as I said in my first reply above, the model only defines the DTP, not members and must be placed between square brackets , as [Parm1}. Who will make that the DTP as defined in your model correctly. Then we need to look at how you define these PDT in the rule itself. Normally, it is much easier if your rule is in the chart view, as you just click on the model and you can enter the values. As you have your rule in Script mode, you must be very careful about how you set the values of the PAO. Every DTP 'type' has a different syntax in script mode.

    Looking at your script again I see another problem potentially. When you set the values in the DTP, the value must locking with double brackets, so [['three year Budget"]]. In your script, you must also in brackets. That is not always correct. There are moments between brackets and double square brackets is correct, but it is only when your DTP is of type 'Members', and by default, according to me, old macros of business rule translates into templates with the "Script" DTP types

    So, if you also change your business section where the models are defined as below; (as you can see, without parentheses around the DTP values).

    UPDATECALC OFF SET; AGGMISSG OFF SET;

    Model % (name: = "FCOm_TargetSection", application: = 'FCO', plantype: = 'FCO', dtps:=("parm1":=[["Three_Year_Budget"]],"parm2":=[["DGAllocation"]],"parm3":=[[{FCOrtpYears}]],"parm4":=[[Mar]]))))

    Model % (name: = "FCOm_TargetAgg", application: = 'FCO', plantype: = 'FCO', dtps:=("parm1":=[["Three_Year_Budget"]],"parm2":=[["DGAllocation"]],"parm3":=[[{FCOrtpYears}]],"parm4":=[[Mar]]))))

    The end of the game should be that when you open your rule and the view script and script tab then select low bottom your models should look as below, as you can see, everything that needs to be included in the script are the values substituted for the definition of the model, the key point is that there are no brackets or parentheses. The script should show script "pure". (I have highlighted and underlined how these 4 PDT should result in script mode)

    First model:

    UPDATECALC OFF SET; AGGMISSG OFF SET;

    /****************************************************************************************************************

    FCOm_TargetSection

    parm1 = scenario

    PARM2 = version

    parm3 = years

    parm4 = periods

    The purpose of this macro is to translate the target entry to GBP and copy of Curr NA and associate. Step 1: Copy the total Section entry to I / P Total Section and no step 1 project: copy converted into money - no need to translate entries all entries are in GBP step 2: copy entry GBP to Curr NA values

    *****************************************************************************************************************/

    DIFFICULTY ('Three-year Budget', 'DGAlocation', FY15, Mar, @IDESCENDANTS ("BH - T"), "Curr NA", "basic", 'Seized currency', '-6111 ", '-6112", "has - 6113", "A - 65", "A - 66", "-620905")

    DATACOPY 'Total Section' to 'Input_Total Section;

    DATACOPY 'Total Section' to 'no project ';

    ENDFIX

    DIFFICULTY ('Three-year Budget', 'DGAlocation', FY15, Mar, @IDESCENDANTS ("BH - T"), "Curr NA', 'Total Section', Section 'Input_Total', 'No project', 'basic', '-6111", '-6112 "," has - 6113 "," A - 65 "," A - 66 ","-620905 ")

    DATACOPY 'entered currency' to 'convert currency (GBP);

    ENDFIX

    DIFFICULTY (FY15, Mar, 'DGAlocation' and 'Three-year Budget', @IDESCENDANTS("BH-T"), 'Total Section', Section 'Input_Total', 'No project', 'basic', 'Entered in the currency "," converted into currency (GBP)', '-6111 ", '-6112", "-6113", "A - 65", "A - 66", "-620905")

    DATACOPY "Curr NA ' to 'entry GBP;

    ENDFIX

    Thank you

    Anthony

Maybe you are looking for

  • Apple Watch alongside CarPlay

    Hello I recently installed a CarPlay radio in my car. When I plug in my iPhone and start navigation with maps of Apple, my watch continues to send me vibrations and notifications of the road that I take. Is there a way to disable the watch sending st

  • Is AT200 - possible to connect USB devices?

    Hi all I bought last week a Tablet AT200-100 (in Spain), and a few days ago I also bought an adapter for USB cable for it. I've seen (at least that is what I understood) that it is possible to connect devices to the Tablet (as a host). Well, I tried

  • I tried for AN HOUR to find a way to put the two different fonts on the same line

    Pages is crap. I tried for AN HOUR to find a way to put the two fonts on the same line, even if I highlight 1 WORD, the whole line changes (if you know how to do that please tell me, I'll me CRAZY!). Wouldn't recommend, that Word is 100 x better and

  • X 230 to screen problem - cable LCD or cnonnector

    Hello Like others with the x 230 found, I have a problem with the screen fading / greying out then develops vertical lines on the screen. By pressing the screen bottom screen edge he decided for a fraction of a second, then it will happen again, alth

  • Signatory to the code to disable the e-mail confirmation

    Does anyone know how to disable the email that is sent when you request a signature for your package? I noticed that the question has been asked in 2008 see link below, so I was wondering if there is a way to disable these notification emails now. ht