After customization in CUSTOM.pll is raising popup erro in other module

Hi All,
i did customization of CUSTOM.pll and working fine for the QA module, while it raising the error for other module.
i did customization as below:
procedure event(event_name varchar2) is
form_name varchar2(30) := name_in('system.current_form');
block_name varchar2(30) := name_in('system.cursor_block');
item_name varchar2(30) := name_in('system.cursor_item');
item_value VARCHAR2(100);
v_plan_id NUMBER;
begin
if (form_name = 'QLTRSINF' AND block_name ='Q_RES') then
item_value := name_in('Q_RES_HEAD.NAME');
IF (event_name='WHEN-NEW-BLOCK-INSTANCE') THEN
IF item_value='INVOICE REMOVAL PROCESS' THEN
set_block_property('Q_RES',DEFAULT_WHERE,'PLAN_ID= :Q_RES_HEAD.PLAN_ID and CHARACTER2=''No'' AND (status IS NULL OR status = 2) ');
DO_KEY('EXECUTE_QUERY');
end if;
end if;
end if;
end event;
The above code is working fine in QA module for UPDATE QUALITY RESULTS, while it is raising erro for other module.
ORA-01403: no data found
FRM-40735: WHEN-NEW-FORM-INSTANCE trigger raised unhandled exception ORA-06502
ORA-01403: no data found
FRM-40735: WHEN-NEW-BLOCK-INSTANCE trigger raised unhandled exception ORA-06502.
ORA-01403: no data found
FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger raised unhandled exception ORA-06502.
ORA-01403: no data found
FRM-40735: WHEN-NEW-ITEM-INSTANCE trigger raised unhandled exception ORA-06502.
please help me out .
Thanks & Regards,
Krrish

Hello,
Please, don't use the standalone Forms forum to ask questions about personalization. Ask them on the dedicated E-Business Suite forum.
Francois

Similar Messages

  • Commit/save the data after copy in custom.pll

    Hi All,
    In custom.pll added code to populate data based on other fields. Its copying successfully, but not able to save the record to database.
    when user goes to field, form is asking for update, correction.
    Can some one please tell me how to commit data to database once it is copied?.
    what built in should be use to commit data after copying?.
    Thanks to all in advance...

    Hi Asif,
    Thanks for the reply, that didn't help me.
    fields which populated are into key flexfield segments, how to save the key flexfield, this is a TAB.
    I am not able to find any where on this. In form I have a block1 based on data in fields in this block1, key flexfield in a tab should be populated, here we are successful by copy built in function.
    Next is how to save keyflex data in TAB after populating.
    can someone help me please...

  • Standard LOV Customization through CUSTOM.pll HELP

    Hello,
    I am currently trying to override the LOV dropdown of an Oracle 11.5.10 form using the custom.pll. The example I am using is as follows:
    procedure event(event_name varchar2) is
    form_name      varchar2(30) := name_in('system.current_form');           --added by Nazir
    block_name      varchar2(30) := name_in('system.cursor_block');      --added by Nazir
    item_name     varchar2(100) := name_in('system.current_item');
    v_sql          varchar2(5000);
    result           Number;
    rec_id           RecordGroup;
    v_login_company     VARCHAR2(50);
    begin
    if(event_name = 'WHEN-NEW-ITEM-INSTANCE') then
    if (form_name = 'ARXTWMAI' and block_name = 'TGW_HEADER') then
    if( item_name = 'CTT_TYPE_NAME_MIR') then
    v_login_company     :=     fnd_profile.value('LN_LOGIN_COMPANY');
    if (v_login_company = '0000') then
         fnd_message.set_string('Please enter description');     Testing fnd message. This works fine. Message displayed.
         --fnd_message.show;
    v_sql := 'select ctt.cust_trx_type_id cust_trx_type_id, ctt.name name, ctt.description description, ctt.type class, arl_class.meaning class_meaning, ctt.accounting_affect_flag open_receivables_flag, ctt.post_to_gl post_to_gl_flag, ctt.allow_freight_flag allow_freight_flag' ||
    ',ctt.creation_sign creation_sign, ctt.allow_overapplication_flag allow_overapplication_flag, ctt.natural_application_only_flag natural_application_only_flag, ctt.tax_calculation_flag tax_calculation_flag, arl_status.meaning default_status' ||
    ',arl_print.meaning default_printing_option, rat.name default_term from      ar_lookups arl_print, ar_lookups arl_status, ar_lookups arl_class, ra_terms rat, ra_cust_trx_types ctt ' ||
    'where '||''''||'INVOICE_PRINT_OPTIONS'||'''' || '= arl_print.lookup_type ' ||
    ' and      ctt.default_printing_option = arl_print.lookup_code' ||
    ' and' || ''''||'INVOICE_TRX_STATUS'||'''' ||'= arl_status.lookup_type' ||
    ' and      ctt.default_status = arl_status.lookup_code and      ctt.default_term = rat.term_id(+) ' ||
    ' and' || ''''||'INV/CM'||'''' || '= arl_class.lookup_type ' ||
    ' and      ctt.type = arl_class.lookup_code' ||
    ' and      ctt.type in ( ' || '''' || 'DEP' || '''' || ',' || '''' || 'GUAR' || '''' || ',' || '''' || 'INV' || '''' || ',' || '''' || 'CM' || '''' || ',' || '''' || 'DM' || '''' || ')' ||
    ' and      ( ctt.type not in (' || '''' || 'DEP' || '''' || ',' || '''' || 'GUAR' || '''' || ') or ctt.accounting_affect_flag =' || '''' || 'Y' || '''' || ')' ||
    ' order      by ctt.name' ;
                   rec_id := CREATE_GROUP_FROM_QUERY( 'TRANS_TYPE_LNCUSTOM', v_sql );
                   result := POPULATE_GROUP(FIND_GROUP( 'TRANS_TYPE_LNCUSTOM'));
                   SET_LOV_PROPERTY('ARXTWTGW_TRANSACTION_TYPE', GROUP_NAME, 'TRANS_TYPE_LNCUSTOM' );
    end if;
    end if;
    end if;
    end if;
    end event;
    I am getting following errors:
    FRM-41072: Cannot create group TRANS_TYPE_LNCUSTOM
    I checked my query with DBMS outputs and then copy that output and ran it as a query in toad and it worked fine.
    Has anyone done this before that could help me resolve the problem??
    Thanks,
    Nazir.

    Hello,
    I figured out the problem and it works perfectly fine. Basically, it does create a record group but once I move out of the item and come back to the item, it was trying to create a record group with the same name again. So I had add an extra check in my statement:
    if id_null('record group')
    then only create the group;
    Thanks Guys,
    Nazir.

  • Query regarding customization thru custom.pll

    Hi all,
    Can I use WHEN-BUTTON-PRESSED trigger in CUSTOM.PLL trigger.
    Which are the different triggers use in CUSTOM.PLL .
    request to share your know with me.
    Thanks in advance.
    regards
    sanjay

    Hi;
    Please check below links
    http://www.orafaq.com/forum/t/148221/2/
    Re: how to make a conditional mandatory field by custom.pll
    http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/handling-whenbuttonpressed-trigger-in-custompll-1874966
    Also see:
    http://download.oracle.com/docs/cd/B25516_11/current/acrobat/115devg.pdf
    Regard
    Helios

  • Personalizations disappeared after compiling custom.pll

    Hi,
    Personalizations done on Sales Order form in order management are disappeared after a developer add some code to custom.pll, and compile the same custom.pll.
    and many of personalizations from other forms also disappeared.
    Please suggest what are the reasons for personalizations to be disappeared..
    Rgds,
    Alig

    Simple compilation of custom.pll cannot make the personalization disappear.
    The personalization are stored as records in the database. A compile command on the command prompt cannot delete records in the database.
    Something else must have happened.
    If you open the form and go to help > diagnostics > c> personalize, do you see those personalization?
    Is it possible that someone disabled personalization for your responsibility or userid?
    Sandeep Gandhi

  • Custom.pll pre-delete event

    i am looking for an event to handle a delete action.
    will put this customization inside custom.pll, basically it will prevent a delete action if a certain condition met.
    tia
    djon

    This is a OAF specific forum. Please raise ur query in appropriate forum.
    --Mukul                                                                                                                                                                                                       

  • How to open custom.pll in forms 10g

    dear all
    can you send steps to open custom.pll in forms10g

    Hi
    1. Open Oracle Form Builder
    2.Select PL/SQL Libraries from Form Builder
    3.Open the CUSTOM.PLL from your local machine using navigation path : MENU > FILE > OPEN > SELECT CUTOM.PLL FROM LOCAL M/C
    4.After opening the CUSTOM.PLL you can change the CUSTOM package body as per your requirement.
    HTH
    sd

  • :parameter.doc_type value in CUSTOM.pll

    Hi,
    I am currently doing customizations through CUSTOM.pll.
    In the code i need the value of :parameter.doc_type(related to a form in inventory module) .
    Any clues as to how can i get this value.
    Any help will be appreciated,thanking in advance
    Kaps.

    use name_in() built-in to refer that in your custom.pll , will solve u'r problem

  • CUSTOM.pll missing after applying patch 6167056

    HI ALL,
    i have applied patch 6167056 successfully, to carry on the post install step to Copy the CUSTOM.pll to $AU_TOP/resource and re-generate the CUSTOM.plx
    i cannot find the CUSTOM.pll at 6167056/backup/resource
    bash-3.00$ pwd
    /XXXX/XXXX/6167056/backup/resource
    bash-3.00$ ls -l
    total 184
    -rw-r--r-- 1 oradev dba 94208 Oct 15 19:33 JAINTAX.pll
    bash-3.00$
    CUSTOM.pll is missing. Could any suggest why it was not generated?
    Thanks,
    SK

    hi,
    i had stopped the apps services before applying the patch. Before apply the patch i has check the location /6167056/resources
    bash-3.00$ ls -l
    total 976
    -rw-r--r-- 1 oradev dba 98304 Apr 12 2007 CUSTOM.pll
    -rw-r--r-- 1 oradev dba 20480 Apr 11 2007 JAINHELP.pll
    -rw-r--r-- 1 oradev dba 196608 Apr 11 2007 JAINSTFM.pll
    -rw-r--r-- 1 oradev dba 94208 Aug 31 2007 JAINTAX.pll
    -rw-r--r-- 1 oradev dba 90112 Apr 11 2007 JAINTAX1.pll
    bash-3.00$ pwd
    /xxxxx/xxxxxx/6167056/resource
    bash-3.00$
    i had not taken the backup of the above CUSTOM.pll at /6167056/resources
    i need to perform the post-install step of Copy the CUSTOM.pll to $AU_TOP/resource and re-generate the CUSTOM.plx
    should copy the CUSTOM.pll to regenerate using f60gen module=CUSTOM userid=apps/<appspwd> module_type=LIBRARY
    OR can i skip the post install step because there were no customization applied?
    Please suggest
    Regards,
    SK

  • Using Custom.pll on AP Invoices form goes into error in 11.5.10.1

    Hi All,
    I am trying to do some customization on APXINWKB (Invoices form) using CUSTOM.pll. But whenever i am trying to open the form after adding the code in CUSTOM.pll i am getting the following error:
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "APPS.GL_EURO_USER_RATE_API", line 173
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "APPS.GL_CURRENCY_API", line 327
    ORA-01403: no data found
    FRM-40735: WHEN-NEW-ITEM-INSTANCE trigger raised unhandled exception ORA-06502.
    I am trying to display a a small message in the new form instance of the above form thru CUSTOM.pll, nothing more than that!!. If i remove the coding, the form is working perfectly. My oracle apps version is 11.5.10.1
    Can any body help me??
    Raj

    Hi Helios,
    Thank you for the update, actually the problem is solved.
    The issue is : Whenever i am trying to show a message in that form using either form personalization or CUSTOM.pll, it is giving the error, if i do any thing else like 'changing the default where clause etc', it is not giving any error. The problem is only with message. Actually my requirement is changing the where clause, which is happening with out any problem. I dropped the idea of showing the message any way.
    This problem is strange. Any ways, i am raising an SR with Oracle.
    Raj

  • How to close a custom form from CUSTOM.pll

    Dear Friends,
    We need your help on the following issue related to Oracle Apps Forms.
    We have a requirement to show a popup message (message should remain open and user should be able to continue working in the order entry form. User use this message as a reference while entering order details) when user enters a customer name or number in the order entry form . This is similar to the Stock Availability form which gets opened automatically when control enters into Order Entry Lines form, where the stock availability form remains open while entering line details.
    To fullfil the requirement, we have designed a custom form with a single text field in which the message text (some customer information) will be shown.
    We are using custom.pll to call this custom form (thru FND_FUNCTION.EXECUTE) when the control leaves customer number field. User could leave this custom form open and continue with entering order details. Till this point we could achieve what we want. i.e. we could show the popup message in the custom form after user enters a customer number.
    The problem is, after the custom form is opened, when we enter a new order for different customer, we need to close the custom form (which is opened for the previous customer) if the customer is not qualified.
    we could not achieve this. We tried using CLOSE_FORM, CLOSE_WINDOW, but did not help.
    Any body have any suggestions on achieving this... Basically, we need your help to know how we can close the custom form from CUSTOM.pll.
    Thanks,
    Uma

    I thing you haven't any (supported) option to close a form via custom.pll.
    For a long time, we have search a solution for the same problem without any result.

  • Unable to find the custom code in custom.pll

    Hi,
    I have an issue in forms.
    When we are trying to change any fields in the financial options form in payables, it is gving the following error:
    'FRM-40735 ON-ERROR trigger raised unhandled exception ORA-06508.'
    So this is because of customization. When we are switching off the custom code, the error doesnot occur.
    But there is no code written for this form in the custom.pll and there is no personalisation done on the form.
    Please help.

    Hi Srini,
    The issue has been resolved.
    The cause for this issue was the size of the assignment variables used to store the form name, block name, item name.
    Even though there is no code written for this form, every time any form is opened, the Custom.pll is scanned to check if there is any cirresponding code.
    While doing this the form name or block or item name is stored in a variable which is then used for further processing. So our code was throwing exception because the variable couldnot hold the item value.
    Thanks for all your help.

  • Compiling CUSTOM.pll

    Hi Everybody,
    I need some integrated solutions between ORACLE imaging solutions server and EBS server.So that it is advisory to pick AXF_CUSTOM.pld file (present in Imaging solutions server) to EBS server,convert it to an AXF_CUSTOM.pll file, make modifications, and then compile it to an AXF_CUSTOM.plx file.
    But I have some doubt here.
    My Imaging solution server:Windows Machine.
    My EBS server(12.1.1):Linux machine
    And i m transferring AXF_CUSTOM.pld file from windows machine to Linux machine.So should there some dos2unix command be needed before converting it???
    With Regards
    Jyoti

    Hi Hussein,
    First I have run the below scripts successfully :
    @AXF_CREATE_TABLES_SYNONYM.sql
    @AXF_EBS_PROPERTIES_DATA.sql
    @AXF_APPS_INIT.sql
    @AXF_ADD_EBS_ATTACHMENT_PROC_R12.sql
    @AXF_ADD_EBS_ATTACHMENT_PROC_R11.sql
    @AXF_MANAGED_ATTACH_AVAIL.sql
    @AXF_MANAGED_ATTACH_VALUES.sql
    @AXF_MANAGED_ATTACHMENT_DATA.sql
    @AXF_SOAP_CALL_PROC.sql
    Then complination procees done as follows:
    copy the AXF_CUSTOM.pld file to the
    E-Business Server (to FORMS_PATH for Oracle E-Business Suite 12 from
    Oracle E-Business Suite 12: MW_HOME/ECM_HOME/axf/adapters/ebs/R12/AXF_CUSTOM.pld
    If you are using a Linux/UNIX system and copied the .PLD
    from a Windows system, issue the dos2unix command before
    converting it below.(Not done)
    And at first I m not able to compile AXF_CUSTOM.PLL successfully.
    Below are the steps I followed:-
    _1. Copied AXF_CUSTOM.pld to FORMS_PATH._
    _2. Open AXF_CUSTOM.pld file in forms builder connecting with APPS Database User._
    _3. Converted AXF_CUSTOM.pld to AXF_CUSTOM.pll.while converting I got the error_
    PDE-PLI038 - Cannot open file as a PL/SQL Library as expected.
    _4. Compiled AXF_CUSTOM.pll to AXF_CUSTOM.plx while compiling I got many errors_
    e.g. 'APPSPECIAL.ENABLE' must be declared. Since the library files were missing_
    so I attached the library files and the files compiled successfully.
    _5. Downloaded CUSTOM.pll from the Server from $AU_TOP Resource Directory._
    6. Open the CUSTOM.pll and modified it as follows.
    _6. a function zoom_available return boolean is_
    begin
    -- Required for ALL integrations
    return AXFCUSTOM.zoom_available();_
    end zoomavailable;_
    _6. b procedure event(event_name varchar2) is_
    begin
    -- Required for AXF integrations
    AXFCUSTOM.event (event_name);_
    null;
    end event;
    _7. Attached AXF_CUSTOM.pll to the CUSTOM.pll._
    7. Compiled CUSTOM.pll at local machine.
    _8. Deployed CUSTOM.pll to $AU_TOP Resource Directory._
    9. Compiled CUSTOM.pll to CUSTOM.plx at the server using Command
    frmcmpbatch module=CUSTOM.pll userid=apps/a07r12 output_file=CUSTOM.plx_
    moduletype=library batch= yes compile_all=special._
    After performing these steps when we try to open the forms from the instance we are getting the error as follows:-
    Then get the error as APP-FND-01926:The custom event WHEN-LOGON-CHANGED raised unhandled exception:ORA-06508:PL/SQL:couldnot find program unit being called
    ORA-01403:no data found
    Then I compiled AXF_CUSTOM.PLD in another machine and transfer it to mine.After that I performed all the steps every library files are compiled and generated now.I don’t know why the Zoom button is not enabled. It should have been enabled for all the forms I guess.
    With Regards
    Jyoti

  • Error FRM-30312 while compiling a custom pll library on forms 11g weblogic

    hi,
    this is my case:
    Im trying to upgrade a forms 10g application to 11g, using FORMS 11g v11.1.1.3 and WEBLOGIC server v10.3.3.
    Forms files compiled correctly, also webutil.pll was correctly compiled.
    but if I try to compile my custom pll I can see the error...
    when I run application, this erros msg appears:
    FRM-40735: ON-ERROR trig raised unhandled exception ORA-06508
    I have this script to compile .pll files (libraries):
    +#SCRIPT TO COMPILE LIBRARIES+
    export ORACLE_INSTANCE=/opt/oracle/Middleware/asinst_1
    export ORACLE_HOME=/opt/oracle/Middleware/as_1
    export ORACLE_PATH=/opt/legadmi/pll:/opt/legadmi/formas
    export FORMS_PATH=/opt/legadmi/pll:/opt/legadmi/formas
    export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
    export FORMS_DEFAULTFONT="Lucida.9"
    for i in `ls *.pll`
    do
    echo Compiling: $i ....
    file=$i
    +$ORACLE_INSTANCE/bin/frmcmp.sh Module=$i Userid=user/pwd@db Module_Type=LIBRARY Batch=YES+
    done
    But this error is shown:
    Compilation errors on RP2RRO:
    PL/SQL ERROR 201 at line 106, column 8
    identifier 'RUN_PRODUCT' must be declared
    PL/SQL ERROR 0 at line 106, column 8
    Statement ignored
    PL/SQL ERROR 201 at line 123, column 8
    identifier 'RUN_PRODUCT' must be declared
    PL/SQL ERROR 0 at line 123, column 8
    Statement ignored
    PL/SQL ERROR 201 at line 153, column 8
    identifier 'RUN_PRODUCT' must be declared
    PL/SQL ERROR 0 at line 153, column 8
    Statement ignored
    PL/SQL ERROR 201 at line 169, column 8
    identifier 'RUN_PRODUCT' must be declared
    PL/SQL ERROR 0 at line 169, column 8
    Statement ignored
    Failed to generate library.
    FRM-30312: Failed to compile the library.
    I tried finding the string on the source code and delete or replace, but the only strings remainding are for example "RP2RRO_RUN_PRODUCT()", It looks like compiler finds the string within the entire word.
    I need help.

    InoL, Thank you very much.
    I know rp2rro.pll was there, and I compiled it successfully, and place it to the correct folder.
    but I did not know that my custom pll had the rp2rro as a program unit.
    I solve this problem replacing the code inside my custom library with the rp2rro.pll code that comes with forms 11g
    THANKS again.

  • India Localization+custom.pll

    Hi,
    We are applying India Localization to Oracle application is already running in global instance.
    What kind of back up we must take for custom.pll. There are many customizations done in global instance.
    Thanks
    Naveen,Sankuratri

    India localization ships a CUSTOM.pll, which has code for some of the functionality to work. You have to merge the code in your CUSTOM.pll with the CUSTOM.pll shipped by localization patches/ patchsets.
    Note: 335113.1 - Oracle India Localization Service Tax FAQ
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=335113.1

Maybe you are looking for

  • WebAuth - Can one username/pwd be used by multiple users simultaneously?

    Is it possible to setup web authentication so that many users can share the same username/password? (Now before you tell me why this is bad and all that - I already know!) This is specifically for an application where the customer has hundreds of gue

  • I messed up my iTunes folder! How do I transfer it to another hard drive?

    Hi, my "C" hard drive is almost full, so I decided I would transfer my "My Music" folder to another internal hard drive I have installed in my computer (the "G" drive). This folder takes up 4.59 GB of space. I use Windows XP Home, SP3, along with iTu

  • Problem with Pro K5400

    All of a sudden about half of my sentences are being cut in half (horizontal blank streaks). But only in black.  The other colors work perfectly fine. I've aligned the print heads, cleaned the print heads and replaced the black cartridge (which was o

  • C++ Stack Trace API

    Does anyone know of a **C++** API for Solaris (9 or 10) that would produce a stack trace? I'm writing an exception handling framework and there is a lot of information that is lost at the time that an exception is thrown, specifically, the stack info

  • 1604 error with 2.0.2 update

    Hi, Yesterday I tried to upgrade my iPhone 3G to firmware 2.0.2, after a while it gave an 1604 error. Now my iPhone only can get in recovery mode. When i try to upgrade, it stucks in "Preparing iPhone for restore", the iPhone only shows the Apple log