Custom.pll key-delrec

i am trying to prevent a task from deletion if the org id condition is met.
manage to use key-delrec event in custom.pll
now my question is, how i actually cancel the delete action inside the procedure?
tia
djon

this is what i have in mind
     PROCEDURE key_delrec IS
          l_org_id NUMBER:=FND_PROFILE.VALUE('ORG_ID');
     BEGIN
          IF (l_org_id = 103) THEN
               MESSAGE('Task deletion is not allowed');
               Raise Form_Trigger_Failure;
          END IF;
     END;

Similar Messages

  • Loosing focus on exit_form in custom.pll zoom

    This forms question involves the use of the CUSTOM.pll in Oracle Applications 11.03 (forms 4.5) to ZOOM from RCVRCERC (Receipts in PO) to INVIDITM (Organization Items). For those not familiar custom.pll is shared across the apps forms and invoked at new_form, new_block, new_item_instance trigger points. It is the only “approved” method for customizing application forms.
    I’m NOT a hardcore forms coder. More of an apps admin with some forms experience in my (distant) past.
    The zoom is functioning OK (with auto query) and I’m able to open the flexfield structure (another apps specific) via a go_item. I’m trying to reduce key strokes by having the “zoomed to” form exit when the flexfield structure is exited. The end user is only zooming to reference a flexfield value.
    To accomplish this I’m using the when_new_item_instance in custom.pll, checking for the item name (e.g. where cursor is positioned after the flexfield structure) and performing an exit_form.
    At this point the user is returned to the invoking form RCVRCERC. But, the exited form remains visible. When I mouse to this form and establish focus the exit_form takes effect and the form window closes and I’m returned to the correct form, etc.
    I put some debugging messages in the code leading up to the exit_form. I’m using fnd_message.show for this which produces a modal window that requires acknowledgement. With these debugging messages in place the form exits as expected (e.g. form exists after acknowledging the last message). Its almost as if the modal windows are forcing the focus on the form until it actually exits.
    Any ideas on how to get the “zoomed to” form to exist cleanly.
    Sorry if this isn’t clear. Not an easy thing to explain.
    Note: You’ll see this cross posted in a couple places.
    Thanks in Advance
    Ken

    Sorry about the weird chars. Wrote this in MS word and cut and paseted. They're mostly " marks, etc.
    Ken

  • 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...

  • How to use the bind variable in custom.pll

    Hi,
    How to use the bind variable in custom.pll.Its through error.
    any one gem me.
    very urgent.
    M.Soundrapandian.

    Hello,
    Please, ask this kind of questions in the e-business forum.
    Francois

  • Is there a way to create a custom shortcut key to paste my email address?  I would like to be able to press a key combination that will paste whatever I set it to, i.e. my email address.

    Is there a way to create a custom shortcut key to paste my email address?  I would like to be able to press a key combination that will paste whatever I set it to, i.e. my email address.

    There are multiple ways to do similar things. One, built into the system, is to use text replacement. See:
    http://www.tuaw.com/2009/12/31/mac-101-making-text-replacement-work/
    There are other programs you can buy that can do the job in different ways, such as TextExpander. You could also just create a clipping file by dragging your e-mail address to somewhere like the desktop, and then you can simply drag that file to wherever you like to insert your e-mail address there.

  • Error while compiling CUSTOM.PLL with frmcmp_batch

    We have a strange issue here. One of the users is unable to compile custom.pll . He is getting the issue
    PDE-PLI038 Cannot open file for use as a PL/SQL Library
    This is the below file permission for the custom.pll
    -rwxrwxrwx 1 applmgr oaa 20480 Apr 29 02:57 CUSTOM.pll
    This is the one with custom developments in it.
    This is user id
    uid=114(ccankim) gid=1026(oaa)*
    But when I as a applmgr user is able to compile the CUSTOM.pll successfully.
    applmgr>frmcmp_batch module=CUSTOM.pll userid=apps/***** module_type=library
    Forms 10.1 (Form Compiler) Version 10.1.2.3.0 (Production)
    Forms 10.1 (Form Compiler): Release  - Production
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    PL/SQL Version 10.1.0.5.0 (Production)
    Oracle Procedure Builder V10.1.2.3.0 - Production
    Oracle Virtual Graphics System Version 10.1.2.0.0 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle Tools Integration Version 10.1.2.0.2 (Production)
    Oracle Tools Common Area Version 10.1.2.0.2
    Oracle CORE     10.1.0.5.0      Production
    Compiling library CUSTOM...
    Compiling Package Spec CUSTOM......
    Compiling Package Body CUSTOM......
    Done.
    Any idea Gurus...
    EBS 12.1.3
    UNIX HP-UX B.11.31 U ia64 4294967040 unlimited-user license
    DB 11.2.0.2

    $ which frmcmp_batch
    /p01/app/applmgr/oappsp1/apps/tech_st/10.1.2/bin/frmcmp_batch
    $ ll -ltr /p01/app/applmgr/oappsp1/apps/tech_st/10.1.2/bin/frmcmp_batch
    -rwxr-xr-x 1 applmgr oaa 22544380 Dec 21 12:17 /p01/app/applmgr/oappsp1/apps/tech_st/10.1.2/bin/frmcmp_batch
    The user has execute permission.( because his user id belongs to group oaa which has execute permission)
    Full 777 permission on the directory where this CUSTOM.pll exists.
    The confusing part is, if the file would have been corrupted, it would not have been compiled successfully under applmgr user. So the doc id 1082077.1 as of now doesn't help a lot.
    :(

  • 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.

  • Setting Default values for field using custom.pll

    Hi All,
    I have an rquirement to set the default values on Meterial Tranasction screen for some condition
    I tried it in both ways via Form Personalization and using custom.pll
    i m using the following code in custom.pll
    form_name      varchar2(30):= name_in('system.current_form');
    block_name varchar2(30):= name_in('system.cursor_block');
    trx_type           varchar2(30);
    subinv                varchar2(30);
    begin
    if form_name='WIPTXMAT' and block_name ='MTL_TRX_LINE' then
    if event_name ='WHEN-VALIDATE-RECORD' then
         trx_type:=name_in('WIPTXMAT.TRANSACTION_TYPE');
    if trx_type ='WIP Return' THEN
         copy(10,'MTL_TRX_LINE.TRANSACTION_QUANTITY');
              copy(10,'MTL_TRX_LINE.NUMBER_OF_LOTS_ENTERED');
              sinv:=trim(name_in('MTL_TRX_LINE.SUBINVENTORY_CODE'));
              if sinv is null then
                   copy(subinv,'MTL_TRX_LINE.SUBINVENTORY_CODE');
                   copy(fr_locator,'MTL_TRX_LINE.LOCATOR');
                   FND_MESSAGE.SET_STRING(sinv);
                   FND_MESSAGE.SHOW;
              end if;
         end if;
    end if;
    end if;
    end event;
    Problem is that default values are getting set but not for all rows . if there are 4 records then values are set for only first 2 rows and if there are 2 rows then defaults are set for 1st row only.
    Same behaviour happens when i do it via form personalization
    i couldn't understand the behaviour of WHILE-VALIDATE-RECORD event..
    Please provide some suggestion on it. its really urgent.
    Thanks in Advance
    Renu

    Works Now...

  • CCT_GUID (customer Contact Key) of Business Partner

    Hi everyone,
    Can anyone tell me how to extract CCT_GUID (i.e Customer Contact Key) of business partner using only customer and also its significance.
    Thanks in advance.
    Rgds,
    Abhi

    Hi everyone,
    Can anyone tell me how to extract CCT_GUID (i.e Customer Contact Key) of business partner using only customer and also its significance.
    Thanks in advance.
    Rgds,
    Abhi

  • R12's Custom.PLL

    Hi,
    To all users of R12, is it true that custom.pll is gone and cannot be modified in R12 anymore???

    Hi,
    CUSTOM.PLL is still available in R12 (just like 11) -- Note: 579318.1 - How To Bring Up 10G Forms Builder In R12 Environment?
    Oracle E-Business Suite Developer's Guide
    http://download.oracle.com/docs/cd/B53825_06/current/acrobat/121devg.pdf
    Thanks,
    Hussein

  • 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

  • Customer-Specific Key Figure and MCI3 analysis report

    Hi,
    We have created a "Customer-Specific Key Figures" in customizing and mapped the key with value category. But this new defined key figure is not available in the report MCI3.
    How to get this figure in the analysis report MCI3 etc , i.e. how to update the information structure S115.
    Regards

    Hello,
    You have to develope the new programme using that info structure and update that new value field in your customising logic programe .
    Regards,
    Rakesh

  • How to use two dimensional array in custom.pll

    HI
    How to use two dimensional arrays in custom.pll
    I tried by the following way .
    type ship_array is table of number index by binary_integer;
    type vc_array is table of ship_array index by binary_integer;
    But I am getting the error as that
    A plsql table may not contain a table or a record with composite fields.
    Please tell me the way how to use them

    which forms version are you using? two dimensional arrays are available in >= 9i if memory serves.
    regards

  • Messaging using CUSTOM.pll

    Hello,
    I have registered a message named 'HAC_ASN_PO_ALERT' with the message type 'Note'. I have generated the message and am using the CUSTOM.pll to show the message when a specific event occurs. I am using the code below to call the message.
    FND_MESSAGE.SET_NAME('HAC','HAC_ASN_PO_ALERT');
    FND_MESSAGE.SET_TOKEN('ASN_STRING',x_asn_string);
    FND_MESSAGE.ERROR;
    This works just fine, the message displays when I want it to, but it shows with the error bell as an error message. I wanted to display the message as a note with the note icon. I have looked at the FND_MESSAGE package and there is not a procedure called NOTE. I tried SHOW, but I got an error. Can anyone please help me to get this message to display correctly?
    Thank you,
    Mike

    I am facing the same issues in R12.. Any solution for this.
    Thanks in Advance.
    Chetan

  • Error while compiling a custom pll with forms 11g and weblogic

    Hi there,
    I just posted a thread here:
    Error FRM-30312 while compiling a custom pll library on forms 11g weblogic
    please, I need help

    Why wouldn't you post in the proper forum, i.e the Forms forum

Maybe you are looking for