Problem In Calling API  fa_addition_pub.do_addition

Hello friends,
I am workin on the addition Of asset program
In which i called API fa_addition_pub.do_addition
but when i am executing it it gives me error
Error(157,1): PLS-00306: wrong number or types of arguments in call to 'DO_ADDITION'
Error(196,1): PLS-00201: identifier 'UPDATE_ERROR_MSG' must be declared
THE CODE WHICH I USED IS GIVEN BELOW
PLZ HELP ME TO SOLVE THIS PROBLEM.
CREATE OR REPLACE PROCEDURE APPS.FA_ADDITION_API (p_row_number NUMBER) AS
l_trans_rec fa_api_types.trans_rec_type;
l_dist_trans_rec fa_api_types.trans_rec_type;
l_asset_hdr_rec fa_api_types.asset_hdr_rec_type;
l_asset_fin_rec_old fa_api_types.asset_fin_rec_type;
l_asset_fin_rec fa_api_types.asset_fin_rec_type;
l_asset_fin_rec_new fa_api_types.asset_fin_rec_type;
l_asset_fin_mrc_tbl_new fa_api_types.asset_fin_tbl_type;
l_asset_deprn_rec fa_api_types.asset_deprn_rec_type;
l_asset_deprn_rec_new fa_api_types.asset_deprn_rec_type;
l_asset_deprn_mrc_tbl fa_api_types.asset_deprn_tbl_type;
l_asset_desc_rec fa_api_types.asset_desc_rec_type;
l_asset_type_rec fa_api_types.asset_type_rec_type;
l_asset_cat_rec fa_api_types.asset_cat_rec_type;
l_asset_dist_rec fa_api_types.asset_dist_rec_type;
l_asset_hierarchy_rec fa_api_types.asset_hierarchy_rec_type;
l_inv_rec fa_api_types.inv_rec_type;
l_inv_trans_rec fa_api_types.inv_trans_rec_type;
l_period_rec fa_api_types.period_rec_type;
l_who_rec fa_api_types.standard_who_rec_type;
l_inv_tbl fa_api_types.inv_tbl_type;
l_inv_rate_tbl fa_api_types.inv_rate_tbl_type;
l_asset_dist_tbl fa_api_types.asset_dist_tbl_type;
l_tax_book_tbl fa_cache_pkg.fazctbk_tbl_type;
l_initial_book boolean := TRUE;
CURSOR xx_addition_cur (p_row_number NUMBER)
IS
SELECT *
FROM xx_reg_book_load_interface
WHERE ROW_NUMBER = p_row_number;
-- Get the inventory details for Asset Addition API
CURSOR xx_dist_info_cur (p_asset_id NUMBER)
IS
SELECT fdh.*
FROM fa_distribution_history fdh
WHERE fdh.transaction_header_id_in = (SELECT MIN(transaction_header_id)
FROM fa_transaction_headers fth
WHERE fth.asset_id = p_asset_id
AND fth.transaction_type_code in ('TRANSFER IN', 'TRANSFER IN/VOID') );
-- AND transaction_header_id_in = p_transaction_id
-- AND NVL (transaction_units, 1) > 0;
-- Get the inventory details for Asset Adjustment API
CURSOR xx_inv_rec_type_adj_cur (p_row_number NUMBER)
IS
SELECT fai.invoice_transaction_id_in, fai.deleted_flag,
fai.invoice_number, fai.po_number, fai.unrevalued_cost,
fai.project_id, fai.task_id, fai.payables_code_combination_id,
fai.fixed_assets_cost, fai.source_line_id, fai.payables_cost,
xrbli.transaction_type_code, fai.ap_distribution_line_number,
fai.description, fai.po_vendor_id,
fai.payables_units,
fai.invoice_id,
fai.invoice_date
FROM fa_asset_invoices fai, xx_reg_book_load_interface xrbli
WHERE fai.invoice_transaction_id_in = xrbli.invoice_transaction_id
AND xrbli.ROW_NUMBER = p_row_number;
-- Out parameter for Addition API
l_return_status VARCHAR2 (1);
-- Out parameter for Addition API
l_mesg_count NUMBER := 0;
-- Out parameter for Addition API and used for error tracking
l_mesg VARCHAR2 (4000);
-- Index for inventory record table
l_dist_rec_count NUMBER := 0;
l_inv_rec_count NUMBER := 0;
l_stat_class VARCHAR2(50) ;
BEGIN
-- Open XX_ADDITION_CUR cursor by passing the period
FOR p_asset_addition IN xx_addition_cur (p_row_number)
LOOP
-- ASSET_FIN_REC_TYPE Asset Structure
l_asset_fin_rec.date_placed_in_service :=p_asset_addition.date_placed_in_service;
l_asset_fin_rec.COST := p_asset_addition.COST;
l_asset_fin_rec.depreciate_flag := 'YES'; -- YES for all the records
-- Transaction Info
/* BEGIN
SELECT segment4
INTO l_stat_class
FROM fa_categories_b fcb
WHERE fcb.category_id = p_asset_addition.asset_category_id ;
EXCEPTION WHEN OTHERS THEN
l_stat_class := NULL ;
END ;
IF ( NVL(l_stat_class,'*') = 'I' ) THEN
l_trans_rec.transaction_subtype := 'AMORTIZED' ;
END IF ;
l_trans_rec.who_info := l_who_rec;
-- ASSET_HDR_REC_TYPE Asset Structure (Asset ID should not be there for Addition API)
l_asset_hdr_rec.book_type_code := p_asset_addition.book_type_code;
-- ASSET_DESC_REC_TYPE Asset Structure
l_asset_desc_rec.asset_number := p_asset_addition.asset_number;
l_asset_desc_rec.description := p_asset_addition.description; ----modify by anand
l_asset_desc_rec.current_units := p_asset_addition.current_units;
l_asset_desc_rec.asset_key_ccid := p_asset_addition.asset_key_ccid;
-- ASSET_TYPE_REC_TYPE Asset Structure
l_asset_type_rec.asset_type := p_asset_addition.asset_type;
-- ASSET_CAT_REC_TYPE Asset Structure
l_asset_cat_rec.category_id := p_asset_addition.asset_category_id;
-- Initialize the count
l_inv_rec_count := 0;
-- INV_REC_TYPE Invoice Structure
FOR i IN xx_inv_rec_type_adj_cur (p_row_number)
LOOP
--IF l_asset_id_count p_asset_adjustment.asset_id THEN
l_inv_rec_count := l_inv_rec_count + 1;
l_inv_trans_rec.transaction_type := i.transaction_type_code;
--l_inv_rec.source_line_id := i.source_line_id;
l_inv_rec.fixed_assets_cost := i.fixed_assets_cost;
l_inv_rec.payables_cost := i.payables_cost;
l_inv_rec.payables_code_combination_id :=i.payables_code_combination_id;
l_inv_rec.invoice_number := i.invoice_number;
l_inv_rec.po_number := i.po_number;
l_inv_rec.unrevalued_cost := i.unrevalued_cost;
l_inv_rec.project_id := i.project_id;
l_inv_rec.task_id := i.task_id;
l_inv_rec.deleted_flag := i.deleted_flag;
l_inv_rec.description := i.description;
l_inv_rec.po_vendor_id := i.po_vendor_id;
l_inv_rec.ap_distribution_line_number :=i.ap_distribution_line_number;
l_inv_rec.payables_units := i.payables_units;
l_inv_rec.invoice_id := i.invoice_id;
l_inv_rec.invoice_date := i.invoice_date;
l_inv_tbl (l_inv_rec_count) := l_inv_rec;
--l_asset_id_count := p_asset_adjustment.asset_id;
--END IF;
END LOOP;
-- ASSET_DIST_REC_TYPE and ASSET_DIST_TBL_TYPE Asset Structure
FOR i IN xx_dist_info_cur (p_asset_addition.asset_id
-- , p_asset_addition.transaction_header_id
LOOP
l_dist_rec_count := l_dist_rec_count + 1;
-- l_asset_dist_rec.assigned_to := i.assigned_to;
l_asset_dist_rec.units_assigned := i.units_assigned;
l_asset_dist_rec.expense_ccid := i.code_combination_id;
l_asset_dist_rec.location_ccid := i.location_id;
l_asset_dist_tbl (l_dist_rec_count) := l_asset_dist_rec;
END LOOP;
-- Update to 0 for further use
l_dist_rec_count := 0;
--fnd_file.put_line(fnd_file.log, 'Calling the Addition API') ;
-- Call Addition api
fa_addition_pub.do_addition
(p_api_version => 1.0,
p_init_msg_list => fnd_api.g_false,
p_commit => fnd_api.g_false,
p_validation_level => fnd_api.g_valid_level_full,
x_return_status => l_return_status,
x_msg_count => l_mesg_count,
x_msg_data => l_mesg,
p_calling_fn => 'FA_ADDITION_API', ---modify by anand
px_trans_rec => l_trans_rec,
px_dist_trans_rec => l_dist_trans_rec,
px_asset_hdr_rec => l_asset_hdr_rec,
px_asset_desc_rec => l_asset_desc_rec,
px_asset_type_rec => l_asset_type_rec,
px_asset_cat_rec => l_asset_cat_rec,
px_asset_hierarchy_rec => l_asset_hierarchy_rec,
px_asset_fin_rec => l_asset_fin_rec,
px_asset_deprn_rec => l_asset_deprn_rec,
px_asset_dist_tbl => l_asset_dist_tbl,
px_inv_tbl => l_inv_tbl,
px_inv_rate_tbl => l_inv_rate_tbl
--fnd_file.put_line(fnd_file.log, 'Addition API returned status as : '|| l_return_status) ;
IF (l_return_status = fnd_api.g_ret_sts_success)
THEN
l_mesg_count := fnd_msg_pub.count_msg;
IF l_mesg_count > 0
THEN
l_mesg :=CHR (10)|| SUBSTR (fnd_msg_pub.get (fnd_msg_pub.g_first,fnd_api.g_false),1,512);
FOR i IN 1 .. (l_mesg_count - 1)
LOOP
l_mesg :=l_mesg|| CHR (10)|| SUBSTR (fnd_msg_pub.get (fnd_msg_pub.g_next,fnd_api.g_false),1,512);
END LOOP;
fnd_msg_pub.delete_msg ();
END IF;
l_mesg := 'FAILED (' || SQLERRM || '): ' || l_mesg;
-- Procedure to update XX_REG_BOOK_LOAD_INTERFACE table with rejection reason
update_error_msg ('Addition', l_mesg, p_asset_addition.ROW_NUMBER);
ELSE
-- Display the successful record
fnd_file.put_line (fnd_file.output,p_asset_addition.asset_number|| ' -> '|| p_asset_addition.description|| ' for asset Addition Success.'); --- modify by anand
END IF;
-- Delete PLSQL table and record type variables data
--empty_rec;
END LOOP;
END fa_addition_api;
tahnk you

You call do_addition with a wrong set of parameters or you use the wrong datatypes from your parameters.
Check what parameters ( and their datatypes ) that procedure expects.
Also check if you have the right privileges for using UPDATE_ERROR_MSG and that a synonym exists for it.
fa_addition_pub.do_addition
(p_api_version => 1.0,
p_init_msg_list => fnd_api.g_false,
p_commit => fnd_api.g_false,
p_validation_level => fnd_api.g_valid_level_full,
x_return_status => l_return_status,
x_msg_count => l_mesg_count,
x_msg_data => l_mesg,
p_calling_fn => 'FA_ADDITION_API', ---modify by anand
px_trans_rec => l_trans_rec,
px_dist_trans_rec => l_dist_trans_rec,
px_asset_hdr_rec => l_asset_hdr_rec,
px_asset_desc_rec => l_asset_desc_rec,
px_asset_type_rec => l_asset_type_rec,
px_asset_cat_rec => l_asset_cat_rec,
px_asset_hierarchy_rec => l_asset_hierarchy_rec,
px_asset_fin_rec => l_asset_fin_rec,
px_asset_deprn_rec => l_asset_deprn_rec,
px_asset_dist_tbl => l_asset_dist_tbl,
px_inv_tbl => l_inv_tbl,
px_inv_rate_tbl => l_inv_rate_tbl
);

Similar Messages

  • Diff betw FA Mass addition interaface and FA_ADDITION_PUB.DO_ADDITION API

    Hi
    Can anyone tell me the major difference between FA MASS ADDITION INTERFCAE and FA_ADDITION_PUB.DO_ADDITION API and which one would you recomend to uses for loading assets from legacy system and why?

    Hi
    Can anyone tell me the major difference between FA MASS ADDITION INTERFCAE and FA_ADDITION_PUB.DO_ADDITION API and which one would you recomend to uses for loading assets from legacy system and why?

  • Problem in calling method with object in another class

    Hi All,
    Please tell me the solution, I have problem in calling a method I am posting the code also
    First Program:-
    import java.io.*;
    public class One
    public One()
    System.out.println("One:Object created");
    public void display()
    System.out.println("One:executing the display method");
    static
    System.out.println("One:executing the static block");
    Second Program:-
    import java.io.*;
    public class Two
    public Two()
    System.out.println("Two:Object created");
    public static void main(String arg[])throws Exception
    System.out.println("Two:executing the main method");
    System.out.println("Two:loading the class and creating the object::One");
    Object o=Class.forName("One").newInstance();
    System.out.println(o);
    o.display(); //displaying error here in compile time.
    static
    System.out.println("Two:executing the static block");
    waiting for your answer,
    thanks in advance,bye.

    Hi All,
    Please tell me the solution, I have problem in
    calling a method I am posting the code also
    First Program:-
    import java.io.*;
    public class One
    public One()
    System.out.println("One:Object created");
    public void display()
    System.out.println("One:executing the display
    method");
    static
    System.out.println("One:executing the static
    block");
    Second Program:-
    import java.io.*;
    public class Two
    public Two()
    System.out.println("Two:Object created");
    public static void main(String arg[])throws
    Exception
    System.out.println("Two:executing the main
    method");
    System.out.println("Two:loading the class and
    creating the object::One");
    Object o=Class.forName("One").newInstance();
    System.out.println(o);
    o.display(); //displaying error here in compile
    time.
    static
    System.out.println("Two:executing the static
    block");
    waiting for your answer,
    hanks in advance,bye.the line
    o.display()
    could be written as
    ((One)o).display();

  • Problem with calling on some numbers

    Hi my mum has problem with calling on my number. She is in the USA and has a lof of money on her Skype account. When she was in Poland (country when I am now) she could without any troubles calling on my number. What is wird now in the USA she can call on some other polish numbers (I think that Skype doesn't support connection with my mobile operator).
    I fell deceived because I created Skype account and transfered some money on it for my mum to give her possibility to call to me. Is possible to fix it? Is somewhere table with can help me check which one numbers (mobile operators) Skype supports in the USA?
    My mom used Skype from Android smartphone.

    Hi my mum has problem with calling on my number. She is in the USA and has a lof of money on her Skype account. When she was in Poland (country when I am now) she could without any troubles calling on my number. What is wird now in the USA she can call on some other polish numbers (I think that Skype doesn't support connection with my mobile operator).
    I fell deceived because I created Skype account and transfered some money on it for my mum to give her possibility to call to me. Is possible to fix it? Is somewhere table with can help me check which one numbers (mobile operators) Skype supports in the USA?
    My mom used Skype from Android smartphone.

  • Character conversion problems when calling FM via RFC from Unicode ECC 6.0?

    Hi all,
    I faced a Cyrillic character convertion problem while calling an RFC function from R/3 ECC 6.0 (initialized as Unicode system - c.p. 4103). My target system is R/3 4.6C with default c.p. 1500.
    The parameter I used in my FM interface in target system is of type CHAR10 (single-byte, obviously).
    I have defined rfc-connection (SM59) as an ABAP connection and further client/logon language/user/password are supplied.
    The problem I faced is, that Cyrillic symbols are transferred as '#' in the target system ('#' is set as default symbol in RFC-destination definition in case character convertion error is met).
    Checking convertions between c.p. 4103  and target c.p. 1500 in my source system using tools of transaction i18n shows no errors - means conversion passed O.K. It seems default character conversion executed by source system whithin the scope of RFC-destination definition is doing something wrong.
    Further, I played with MDMP & Unicode settings whithin the RFC-destination definition with no successful result - perhaps due to lack of documentation for how to set and manage these parameters.
    The question is: have someone any experience with any conversion between Unicode and non-Unicide systems via RFC-call (non-English target obligatory !!!), or can anyone share valuable information regarding this issue - what should be managed in the RFC-destination in order to get character conversion working? Is it acceptable to use any character parameter in the target function module interface at all?
    Many thanks in advance.
    Regards,
    Ivaylo Mutafchiev
    Senior SAP ABAP Consultant

    hey,
    I had a similar experience. I was interfacing between 4.6 (RFC), PI and ECC 6.0 (ABAP Proxy). When data was passed from ECC to 4.6, RFC received them incorrectly. So i had to send trimmed strings from ECC and receive them as strings in RFC (esp for CURR and QUAN fields). Also the receiver communication channel in PI (between PI and  RFC) had to be set as Non unicode. This helped a bit. But still I am getting 2 issues, truncation of values and some additional digits !! But the above changes resolved unwanted characters problem like "<" and "#". You can find a related post in my id. Hope this info helps..

  • Hello apple I have the problem with my iPhone and my friends have this problem too. My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it bu

    Hello apple
    I have the problem with my iPhone and my friends have this problem too.
    My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it but when answer both of us can't hear anything and when I put my iPhone to my face the screen is still on and when I quit the phone application and open it again it will automatic call my recent call. And when my friends call me my iPhone didn't show anything even the missed call I'm only know that I missed the call from messages from carrier. Please check these problem I restored my iPhone for 4 time now in this week. I lived in Hatyai, Songkhla,Thailand and many people in my city have this problem.
    Who have this problem??

    Apple isnt here. this is a user based forum for technical questions. The solution is to restart, reset, and restore as new which is in the manual after that get it replaced for hard ware failure. if your within your one year warranty its replaced if it is out of the warranty then it is 199$

  • Since i update my iPhone 5 with IOS 7.0.2, I start to have serious problems to call or receive calls from other telephones: is not possible to open the call at the first try. Somebody have the same problem?

    Since i update my iPhone 5 with IOS 7.0.2, I start to have serious problems to call or receive calls from other telephones: is not possible to open the call at the first try. Somebody have the same problem?

    Try
    Reset: Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Note: You will not lose any data

  • Problem in calling BRI from PRI

    Hi,
    I am having problem in calling BRI from PRI. I am getting below message while debugging. Also note that calling from BRI to PRI is successful.
    Mar 2 23:38:22: ISDN BR0/0 Q931: RX <- SETUP pd = 8 callref = 0x04
    Sending Complete
    Bearer Capability i = 0x8890
    Standard = CCITT
    Transer Capability = Unrestricted Digital
    Transfer Mode = Circuit
    Transfer Rate = 64 kbit/s
    Channel ID i = 0x89
    Progress Ind i = 0x8281 - Call not end-to-end ISDN, may have in-band info
    Calling Party Number i = 0x2183, '1726601501'
    Plan:ISDN, Type:National
    *Mar 2 23:38:22: ISDN BR0/0:1: Incoming call rejected, unbindable
    *Mar 2 23:38:22: ISDN BR0/0 **ERROR**: host_incoming_call: DIALER ERROR 0x1: b channel 0, call id 0x15E
    *Mar 2 23:38:22: ISDN BR0/0 Q931: TX -> RELEASE_COMP pd = 8 callref = 0x84
    Cause i = 0x8095 - Call rejected
    Pls help me.
    Anis
    9229109694

    Dear Dharmesh,
    Can u pls explain where to enable PPP Multilink.
    Dear p.bevilacqua ,
    I did what u told (configure "ppp chap username" under dialer interface), but the problem is same.
    Anis

  • Problem with CALL TRANSFORMATION xml - abap

    Hello!
    I got the following problems using call transformation to read a xml-file to local abap datatype!
    Simple xml file for testing:
    <BMECAT>
    <HEADER>
    asdf
    </HEADER>
    </BMECAT>
    XSLT file:
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" version="1.0">
      <xsl:template match="/">
        <xsl:value-of select="./BMECAT/HEADER"/>
      </xsl:template>
    </xsl:transform>
    The xslt transformation works with xslt-tester!
    My Source:
    DATA: xmlupl TYPE string,
    outputx TYPE XSTRING,
    lv_string TYPE string.
    * in xmlupl my xml import is stored
    CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
    EXPORTING
    text = xmlupl " variable type string
    IMPORTING
    buffer = outputx. " variable type xstring
    TRY .
         CALL TRANSFORMATION path_to_xslt_file
           SOURCE XML outputx
         RESULT HEADER = lv_string.
    CATCH cx_xslt_exception INTO xslt_error.
         data: xslt_message type string .
         xslt_message = xslt_error->get_text( ).
    ENDTRY.
    After debugging in xslt_message is stored the following text:
    "The element abap was expected for the XML-ABAP transformation"
    Can anyone help me with this problem?
    Regards,
    Daniel

    hi
    good
    try this code
    Just look at this piece of code, I think it should help you.
      DATA : ITAB   TYPE TABLE OF SPFLI,
             L_XML  TYPE REF TO CL_XML_DOCUMENT.
      SELECT * FROM SPFLI INTO TABLE ITAB.
    CREATE THE XML OBJECT
      CREATE OBJECT L_XML.
    CONVERT THE DATA TO XML
      CALL METHOD L_XML->CREATE_WITH_DATA( DATAOBJECT = ITAB[] ).
    DATA IS CONVERTED TO XML; DISPLAY THE XML-DOCUMENT
      CALL METHOD L_XML->DISPLAY.
    thanks
    mrutyun^

  • Problem with call forwarding. Calls can not be forwarded for incoming external calls

    Hi Everybody, how are you?
    I have a problem with call forwarding. Everything was fine but now is not working.
    In the reception of an office, the receptionist activate the call forward option to an internal extension. If somebody, internal in the office, call to the reception, the call is forwarding to the extension configured. But if I call from the outside (in example, from my cellphone) the call is not forwarded to the extension configured and continue ringing in the reception phone. Why this behavior? Any idea?
    If you know something please tell me.
    Thanks. Best regards.
    Andres Collazos.

    I encounter a similar problem with 9.1.1.
    My problem is link to this bug ID : CSCtq10477.
    Mathieu

  • Problem with Call Transaction opt-RACOMMIT = 'X'.

    Hello Experts
    I am having a problem with call transction. I am calling a Z transaction in function module. Within the Z transaction I am furhter calling some function modules and doing commit work and then some more processing  after the comit work inside  So to make sure the code after comit work is fired I am using opt-RACOMMIT = 'X' in call transaction. Whenever I set this parameter opt-RACOMMIT = 'X' call transaction fails and gives error saying No batch Input data for screen XXXX. However the Z tcode processed succesfully.
    By changing the Mode to E i found that it remians at the last screen of call transction after executing the Z transaction and never comes back 
    But if I donot use RACOMMIT = 'X'  everything is fine. Please let me know if anyone came across such problem. Any help will be apreciated.
    Thanks,
    kamal

    Hello,
    as you said, if there is more than commit statement in your ztransaction, then you should put RACOMMIT to 'X'.
    I think the problem is in your bdcdata: change it to be sure to get back to the 1st screen of your ztransaction. Then, at this point (1st screen) hit "back" button.
    Cordialement,
    Chaouki

  • Problem with call of function F4UT_RESULTS_MAP in search help exit

    Hi everybody,
    i have a problem concerning call of function F4UT_RESULTS_MAP.
    I call this function in this way:
    CALL FUNCTION 'F4UT_RESULTS_MAP'
           TABLES
                shlp_tab          = p_shlp_tab
                record_tab        = p_record_tab
                source_tab        = lt_zv055[]
           CHANGING
                shlp              = p_shlp
                callcontrol       = p_callcontrol
           EXCEPTIONS
                illegal_structure = 1
                OTHERS            = 2.
    in lt_zv055[] there are results from previous select, but i want to select only values,
    that match select options that are specified in p_shlp.
    But it always shows all the values that are in lt_zv055.
    What am i doing wrong?
    Thanks in advance.

    Read the "Notes" part in FM documentation and you will find the reason .

  • Problem with calling onApplicationStart() method

    Hi all,
         I have a problem with calling application.cfc's methods from coldfusion template. The problem is like when i am calling "onapplicationstart" method inside a cfml template i getting the error shown below
    The onApplicationStart method was not found.
    Either there are no methods with the specified method name and argument types or the onApplicationStart method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 0 methods that match the provided arguments. If this is a Java object and you verified that the method exists, use the javacast function to reduce ambiguity.
    My code is like below.
    Application.cfc
    <cfcomponent hint="control application" output="false">
    <cfscript>
    this.name="startest";
    this.applicationtimeout = createtimespan(0,2,0,0);
    this.sessionmanagement = True;
    this.sessionTimeout = createtimespan(0,0,5,0);
    </cfscript>
    <cffunction name="onApplicationStart" returnType="boolean">
        <cfset application.myvar = "saurav">
    <cfset application.newvar ="saurav2">
        <cfreturn true>
    </cffunction>
    </cfcomponent>
    testpage.cfm
    <cfset variables.onApplicationStart()>
    I have tried to call the above method in different way also like
    1--- <cfset onApplicationStart()>
    i got error like this
    Variable ONAPPLICATIONSTART is undefined.
    2---<cfset Application.onApplicationStart()>
    The onApplicationStart method was not found.
    Either there are no methods with the specified method name and argument types or the onApplicationStart method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 0 methods that match the provided arguments. If this is a Java object and you verified that the method exists, use the javacast function to reduce ambiguity
    Please help me out.
    Thanks
    Saurav

    You can't just call methods in a CFC without a reference to that CFC. This includes methods in Application.cfc.
    What are you trying to do, exactly, anyway? You'd probably be better served by placing a call to onApplicationStart within onRequestStart in Application.cfc, if your goal is to refresh the application based on some condition:
    <cffunction name="onRequestStart">
         <cfif someCondition>
              <cfset onApplicationStart()>
         </cfif>
    </cffunction>
    Dave Watts, CTO, Fig Leaf Software
    http://www.figleaf.com/
    http://training.figleaf.com/

  • Problem in Calling a report from form 6i using parameters

    Hello Oracle experts,
    I am facing a problem while calling a report using form 6i and passing parameters,
    Actually the problem is I want to use the parameters passed to reports in a
    query group in my report. I am not able to use the parameters passed by form to report in one of my query groups in report. Could anybody guide my how to use it.
    Thanks

    Hello Oracle experts,
    The parameters are getting passed successfully in my report.
    But I want to know hous to use it in my query group.
    I just want the syntax.
    Thanks

  • My sister had a problem with call volume being too low on the iPhone 5S.  Is the iPhone 6 louder?  Is anyone else feeling that call volume on iPhone 5S isn't loud enough?

    My sister had a problem with call volume being too low on the iPhone 5S.  Is the iPhone 6 louder?  Is anyone else feeling that call volume on iPhone 5S isn't loud enough?

    I personally haven't experienced much of the "reverberation/feedback" when using a headset on the i4S...
    Yes, I have near-perfect hearing too (for scope, squeaky brakes hurt my ears) I come from many conversations on many phones and types and first off, CDMA technology is great for coverage, terrible for voice quality. HD Voice in Europe made for some of the best phone conversations I've ever had.
    Back on track, feedback is most noticable (similar to the landline phone) when using the iPhone without a headset, but for me it's not an absolute criticality mainly because I use VoIP apps alot, so maybe it has desensitized me some over the past year.
    But whenever I'm on a call, and the other person has me on speakerphone, I have alot of trouble talking because of the feedback loop caused. So the less of my voice I hear the better I can talk.
    Have you tried a bluetooth headset yet?

Maybe you are looking for