Custom Trigger on MTL_SYSTEM_ITEMS_B firing twice from Item form

Hi ,
I wrote a custom trigger on MTL_SYSTEM_ITEMS_B for after update. When ever an item is update from the seeded Items Form, it is firing twice. When I do it from back end it is working fine. Any insights or fixes into issue will be much appreciated.
Thanks.

Obtain FRD log file to find out why the trigger is fired twice.
R12: Forms Runtime Diagnostics (FRD), Tracing And Logging For Forms In Oracle Applications (Doc ID 438652.1)
Steps To Take FRD Trace in 11.5.10 & R12 (Doc ID 867943.1)
R12: How To Create An FRD (Forms Runtime Diagnostic) Log Using Forms 10g (Doc ID 445166.1)
How To Collect And Use Forms Trace (FRD) in Oracle Applications Release 12 (Doc ID 373548.1)
Thanks,
Hussein

Similar Messages

  • Query for Billable item form MTL_SYSTEM_ITEMS_B for BOM billing item

    Hi All,
    I want to write query to get billing item from mtl_system_items_b for BOM ...Can anyone give me the idea for accessing the billing item..
    In BOM
    Routings - Resources(form) - Billing Item (Field) and Outside Processing Item (Field)LOV...i Want to know query to access these items..
    Thanks
    Raman Sharma
    Edited by: 929841 on Apr 24, 2012 6:06 AM

    Obtain FRD log file to find out why the trigger is fired twice.
    R12: Forms Runtime Diagnostics (FRD), Tracing And Logging For Forms In Oracle Applications (Doc ID 438652.1)
    Steps To Take FRD Trace in 11.5.10 & R12 (Doc ID 867943.1)
    R12: How To Create An FRD (Forms Runtime Diagnostic) Log Using Forms 10g (Doc ID 445166.1)
    How To Collect And Use Forms Trace (FRD) in Oracle Applications Release 12 (Doc ID 373548.1)
    Thanks,
    Hussein

  • Passing parameters to report from current form

    Hi all!
    I have a problem with parameter passing from form to report. I want to display the report with the current customer id and current product id from the form. But my problem is I don't know how to pass parameters from form to report. I am a new user of oracle applications. If any one can help me, please tell me step by step what I should do because I am so new with oracle developer.
    Thanks.
    Sonia.

    Hi,
    An easy way to pass the parameters to the report from the form.
    In the trigger from where u are calling the report you can write a short code there to pass on the parameters you want in the report.
    declare
    pl_id ParamList;
    BEGIN
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'PARAM1',TEXT_PARAMETER,:FORM_ITEM1);
    Add_Parameter(pl_id,'PARAM2',TEXT_PARAMETER,:FORM_ITEM2);
    Add_Parameter(pl_id,'PARAM3',TEXT_PARAMETER,:FORM_ITEM3);
    Run_Product(REPORTS,'C:\UR.RDF',(SYNCHRONOUS or ASYNCHRONOUS), RUNTIME,FILESYSTEM, pl_id);
    END;
    For this there is an assumption that in your report you have created, 'PARAM1', 'PARAM2', 'PARAM3' as User Parameters in you data model.
    I have also just now answered for your problem of setting item properties on select of a value from an LOV. Check that out too.
    Regards
    Chintan

  • Insert from a form ! Important Question !

    I have a form based on a block based on a table with 4 fileds
    if insert the first one , got his value from a tirgger on it's table (ie.like a sequance or something)
    now , when use the form to insert i just insert a 3 value for the others colums ,
    so after commit , the first column will get his value on the table from the trigger
    [b]the question is :
    from the form how i got this value without need to select it from the table.
    or how make requery in the form and still on the same record i did insert ?

    In block property palette, set "DML returning value' property to "Yes"

  • Calling Java Script to open a Map (Like Google Map) from Oracle Forms 10g

    Hello,
    We are on Oracle EBS rel 12, Forms 10g. We have a requirement of calling a Custom Map application (Like Google Maps) from Oracle Forms 10g.
    When the user enters the address like town, city, country etc and clicks on a button there should be a call to this Google Map like application which will pass the co-ordinates (Latittude, Longitude) to the map and shows the place on it. If the user selects a different location on this maps and closes the window the parameters co-ordinates (Latittude, Longitude) should be back in the calling form and this new location should replace the original location.
    I appreciate if I can get some help for the above requirements.
    Thank you.
    GM

    Thank you for your reply. I was reading on the metalink that we could use the to call the java script from oracle Forms 10g (Doc ID 265863.1)
    Example:
    WEB.SHOW_DOCUMENT ('javascript:void(window.open("http://www.oracle.com","","location=no,toolbar=no,menubar=no,status=no,"));self.close()','_blank');
    I tried it but it did not open the any window as it claims. Am I missing anything? Is there any IE related setting which I need to modify for the above to work?
    Regards
    GM

  • Pre-query trigger firing twice

    I have a pre-query trigger on a block in a form to set the "default where" as
    SET_BLOCK_PROPERTY (BLOCK_ID, default_where,where_clause);
    but when I look at the current query for the session the where clause looks like
    WHERE screening_group_num = :1 AND (screening_group_num = :2)
    Why is this firing twice?
    I checked this thread : Re: pre-query firing twice but I dont have any calls to execute_query in the form.

    I am setting the where_clause in the pre_query trigger for that block.
    and the copy value is not set for the screening_group_num item or for that matter any other item in the block. For all other items, it dosent really matter if the comparison is done twice (as the values will be same) , but when I have text (string) items, then its a problem. For example:
    Where
    (event_description LIKE '%test%') --- this is from the pre_query trigger where I am doing a string_comparison using 'Like and %%'
    AND (event_description = :1) --i suppose this is from the default where clause of the block                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Item added & item updated events fired twice.

    Hello everyone, 
    I have item added and item updated events and both sends e-mails twice cos they are fired twice. 
    I tried the below method but the problem still continues. Any suggessions?
    base.EventFiringEnabled=false;
    base.EventFiringEnabled=true;
    note: my list is custom list. (not document lib)

    If you have required checkout enabled the events can be triggered twice. See this post for more information and how to bypass it:
    Managing ItemUpdating and ItemUpdated Events Firing Twice in a SharePoint Item Event Receiver

  • Oracle.apps.po.rcv.rcvtxn firing twice

    Hi,
    I am using oracle.apps.po.rcv.rcvtxn business event which is fired when we do a receipt trasaction in PO. I have created a pkg.function in which it just enters 2 values into a cutom table. I map this pkg.func to the subscription.
    Now when I test this subscription from Workflow Admin--> Business events -->Events with a key it fires properly as in it inserts 2 values into the custom table.
    But when I actually fire while saving a receipt transaction it inserts data into the table, but twice. I used a sequence and inserted it. 2 different sequnces were inserted. It means it is fired twice.
    Any clue where I am going wrong?

    Hi;
    What is your EBS and OS?
    Please check below notes which could help you on your issue:
    What are the Out-Of-The-Box Business Events Available in the Purchasing Module? [ID 558712.1]
    Where is Oracle.Apps.Po.Rcv.Rcvtxn Business Event Raised? [ID 428493.1]
    ORACLE.APPS.PO.RCV.RCVTXN Business Event Does Not Work For Batch Mode/ROI Receipts [ID 803313.1]
    Also see:
    Common Receiving Issues after Installing or Upgrading to 11.5.10 [ID 309896]
    Regard
    Helios

  • Guidence needed for Custom Trigger

    I have an ADDT Dynamic List and Form. (I love these things!) When I add/edit/delete a record using the form, I would like to update another (unrelated) database table and would like to know if that is possible using a Custom Trigger. I have read Ch. 16 of the ADDT Help manual and am a bit lost with the jargon  as I am not a power-php person.
    Here is what I need to do: Select from a different table a record by a value in a field and update another field in it. Then return to the Dynamic List page.
    The other solution which is an easy cop-out is once the transactions have been completed on the Form page, go to an intermediate PHP script that carries out the Select and Update process then return to the Dynamic List page.
    Any suggestions/comments welcome. Thanks.

    Hi Albert. Thanks for pointing out yet another hidden gem in ADDT.
    The help for this SB is a little vague.
    As a result I have no idea on how this will help.
    Here is the situation in a bit more detail.
    Lets say the Dynamic Form is used to enter News items. These are kept in a table for News Items. These Items are presented on a News page in the site. This page gets its content from the Pages table as well as the News table.
    There is no relationship between the two tables. However, the Pages table includes a field called updated which contains the date the "page" was last updated. Each News item also has an Updated field, but when the news item is updated I also want to update the updated field for the News Page.
    My first thought was to add a custom trigger to the News Items Form page that could grab the News Page record from the Pages table and update its updated field.
    So the Pages Table looks like this:
    Table name:pages_pag
    Columns:
    id_pag  - the primary key
    idpag_pag - the self foreign key
    menulabel_pag - the menu label
    template_pag - the template file used to display the page.
    pageheading_pag - the page heading
    content_pag - the page content
    updated_pag - the date created/updated
    etc etc......
    The News Table looks like this:
    Table name: news_nws
    Columns:
    id_nws
    heading_nws
    summary_nws
    details_nws
    updated_nws
    etc...
    Hope this explains what I am trying to achieve.

  • Can you send custom events from one form to another?

    I have a compli
    cated application, where I about hundred inp
    uts organized in several input forms. Some of the forms
    require data which has been input in other forms. I have tried to
    dispatch custom events from one form to another, but it dispatches the
    whole form and I only need one or two items.
    Ha anybody else come across such a problem?
    Svend

    One way is to share data in a static singleton

  • Customer fields replication in Sales order from R/3 to CRM

    Hi all,
    I want to replicate, for Sales orders, one field (ZFIELD_A) on item level (VBAP) from R/3 to CRM .
    I used transaction EEWB on CRM with the option "Adding new fields to Business transactions" and I flagged checkbox "Also used in R/3".
    All worked fine and all the repository objects where created both in CRM and R/3, and the fileds was appended in structure CUSTOMER_I (CRM).
    The problem is when I replicate the data, because of existing customer fields  in R/3.
    In R/3 I have exisiting fields on BAPE_VBAP
    ZFIELD_1  [CHAR1]  - existing
    ZFIELD_2  (CHAR1] - existing
    ZFIELD_A  [CHAR30] (the new one)
    Assuming the above field values are X-Y-thisisatest
    the value of ZFIELD_A in CRM will be "XYthisisatest", since R/3 sends, in structure BAPIPAREX all the three Customer fields.
    In the generated (from EEWB) method ZEEW_DATAEXCHANGE01->CRM_DATAEXCH_R3D_MBDOC_FILL, called when transferring the order to CRM , all the first 30 positions are moved to ZFIELD_A from CRM.
    A solution would be to change the generated coding of the above method, by truncating the first 2 chars, but it's not so nice (and I also could loose the changes after a generation of the EEWB project).
    Anyone has a nicer idea?
    thanks a lot,
    Fabrizio

    Hi
    Go through the following NOTEs
    736595,833585,863611,873771.
    Regards
    Nadh.

  • Can anyone help with a custom trigger?

    Hi - I know this is a tough one and appreciate anyone's help!
    I'm trying to create a custom trigger that confirms 2 fields belong to the same record. If they do, proceed with insert transaction.
    I have gone through the tutorial (from the old Interakt Discussion Board tutorial at http://www.interaktonline.com/Documentation/MXKollection/075000_tutorialdiscussionboard.h tm) on how to create a custom trigger that checks to see whether a duplicate message and subject exist in the table and if so, stop the insert. I have this working fine, using my own table and fields.
    Can anyone help me to change the script here to confirm that both fields belong to the same record? Here is what I have right now:
    $query = "SELECT * FROM dan_camptrans_login_familyid_confirmid WHERE family_id = ".KT_escapeForSql($tNG->getColumnValue("family_id"),$tNG->getColumnType("family_id"))." AND confirm_id = ".KT_escapeForSql($tNG->getColumnValue("familyconfirm_id"),$tNG->getColumnType("familycon firm_id"));
    $result = $tNG->connection->Execute($query);
    if(!$result) {
    $error = new tNG_error("Could not access database!",array(),array());
    return $error;
    } else {
    if($numberOfRecords = $result->recordCount()) {
    $uniqueFailed = new tNG_error("There is already a message with the same subject and content!",array(),array());
    return $uniqueFailed;
    } else {
    return NULL;
    Any help would be SUPER appreciated!
    Dan

    Thank you very much Shane for responding.
    Right now, if I fill out the form and enter any numbers in the family_id and familyconfirm_id fields that are currently NOT in the dan_camptrans_login_familyid_confirmid table, the form submits fine. If however, both fields already exist within the same record, the error is returned.
    I guess what I am looking for is the opposite. When the form is submitted, the table dan_camptrans_login_familyid_confirmid is checked. If both field entries are not within the same record, return the error.
    Basically, I am sending out a user ID and confirmation number via mail to users. When they register they need to enter in both of these numbers and only if they match the records will the registration proceed.
    The main recordset/form that this custom trigger is attached to is one for my user registration table. This custom trigger and associated table is only to confirm the user registering has the correct information to register.
    Thanks again - I hope that I am explaining this clearly.
    Dan

  • Approver has to approve twice from the inbox

    Hi,
    We are in SRM 5.0 SP14, extended classic deployment. We are currently
    facing an issue with the approvals. Approver has to approve the item
    twice from his inbox. First time if you approve, the item doesn't move
    from the inbox. Second time if the same item is approved, it gets moved
    from the inbox. We applied a note (1284516- Work items executed twice
    via inbox), even after that the system behaviour is same.
    Although it is not the same behaviour always, sometimes the item gets
    executed in the first try.
    Regards
    Kapil

    Hi Kapil,
    Please check if index value of approver is maintained correctly. Sometimes if you remove an approval step from your workflow coding, there is an index value which also needs to be updated. If you have not maintained it correctly, it will require tow approve same item twice.
    Thanks,
    Anshuk Saxena

  • Delete mutiple image with custom trigger

    I am attempting to delete multiple images associated with a record being deleted. The record has a field with the default filename, then each image has a prefix ("thumb_", "callout_", "feature_") along with this filename.
    My issue is two-fold. I am attempting this with a custom trigger (on the delete record; using AFTER), but I keep getting an error message when I try to pull in the filename using tNG->getColumnValue(). The error reads:
    tNG_fields.getColumnValue:
    Column file is not part of the current transaction.
    Here is my code:
    $file = $tNG->getColumnValue('file');
    deleteFileAndThumbs($file);
    My second issue is in regards to the redirect after the triggers.
    getPrimaryKeyValue() works just fine. Thus, if I change the image names to correspond to my record's "id" #, it will pull the ID # just fine. It will make it through my code and redirect back to the listing page. However, the images will not be deleted. If I remove the redirect, the images delete, but it just sits on this page. So I assume my issue is a result of the page redirecting before al the images are deleted. Is there a way to not allow the redirect to run until my deleteImages function is completed?
    Thanks!

    Ok. How about executing a SELECT inside a Custom Trigger and accessing
    the resulting rows to use in PHP code also in the trigger?
    Example - within the Custom Trigger execute:
    $sql="SELECT * FROM table";
    How do I execute it? With the regular DW code like:
    mysql_select_db($database_conWV, $conWV);
    $sql="SELECT * FROM table";
    $result = mysql_query($sql, $conWV) or die(mysql_error());
    $row_result = mysql_fetch_assoc($result);
    $totalRows_result = mysql_num_rows($result);
    or with some ADDT code like:
    $result = $tNG->connection->execute($sql);
    If I do the "ADDT" way, how do I access the rows?
    $result['column'] or something?
    Alec
    Adobe Community Expert

  • Enhancement Req (v4.0): Report Query- Output Format- Derive from Item

    Brief Introduction
    I have 1 major request I would like to make (and 2 lesser ones). The first, I would like to specify custom available output formats for 'Report Query' objects, as well as Reports Regions, Interactive Reports, etc. I believe that this could easily be an instance setting in the Report Server region of the internal workspace, or per workspace / application. Even if not supported on the system wide level, I would recommend that the "Derived from Item" output format "Return Value" be allowed to be returned unaltered to the Report Server. I know that the type is returned as "_xf", and for my purposes I would REALLY like to be able to get something other than the defaults.
    Use Case
    I am creating a custom JasperReports integration (for which I will be launching a public SaaS beta extremely soon). It uses the standard Apex reporting objects (Queries, Layouts, Print Buttons, etc). JasperReports templates are uploaded as Report Layouts and everything works fine. I am, however, wanting to implement as many output formats as are available to me in Jasper...that means Word 07, Excel 07, ODS, ODT, etc. For the items that take a print server override I can handle this in other ways (even though this appears broken [see below]), but for the standard report queries this isn't available. I would basically like the option to define the set of available output formats for the report server, and what the "_xf" returned for each one is.
    Minor Requests
    - Replace Uploaded Templates: If a template is used often and updated, then it has to be changed everywhere...minor irritation.
    - Customize Report Server URL for the Workspace or Application: For SaaS instances, workspace developers may license or have access to reporting solutions that are not (and should not be) available to all of the Oracle instance's workspaces, or may conflict with a service that is already provided by the instance administrators.
    Broken
    When I use the print server override, with the "Use Headers From" option, it appears that neither my content type, nor my content disposition headers are being sent back to the client. This is the work around solution for the non-standard types issue I am requesting enhancement on, so I would like to know what I can do to get this working immediately.
    Additional Info
    As it stands, if the site is available, feel free to sign up for the beta. The beta keys will be exported soon to the instance and made available. Instructions on setup will also follow:
    https://apex.vendelinc.com/apex/f?p=home

    Hi, please did you get any solution to this issue? I am having similar challenge right now.
    select     EMP.DEPTNO as DEPTNO,
         DEPT.DNAME as DNAME,
         EMP.EMPNO as EMPNO,
         EMP.ENAME as ENAME,
         EMP.JOB as JOB,
         EMP.MGR as MGR,
         EMP.HIREDATE as HIREDATE,
         EMP.SAL as SAL
    from     SCOTT.DEPT DEPT,
         SCOTT.EMP EMP
    where EMP.DEPTNO=DEPT.DEPTNO
    and      DEPT.DNAME =upper(:dname)
    This run perfectly in sql developer, toad, and even inside publisher if I login directly to publisher to create report.
    Generating this same query in shared component query builder and testing it returns no data found. If I remove the last line, it works. but with the last line, it return no data found. It seems no one has been able to provide solution to this issue

Maybe you are looking for