Trigger or Package?

Business part: optionA - DeviceA(saved into device table)
optionB - DeviceB(saved into device table
Before user just enter "deviceA" directly in form which base tabe is "device", now business manager decided user should only tick on / off checkboxes, then system will auto genrerate Device code.
My design is: create a new table to save options user choosed, when commit, there are database triggers to insert / update device table.
Is it ok or should I user some database packages to do it or there are other ways?
Please help me. Thanks.

Hi,
database triggers are good to use if the logic is data centric and should be the same for all applications working with this tables. If you only need this functionality in one application but not any other then handling the code in Forms is the best option. From what you describe it sound okay to do whyt you do. Instead of using database triggers, you can use database procedures that you call from Forms
Frank

Similar Messages

  • Can we declare trigger in package

    Hi
    Can we declare trigger in package specification and body of trigger in package body. If so just give me the syntax.
    Thanks

    No. Just think: trigger would be firing on what? :-)
    But you can call (packaged) procedure from trigger.

  • Autimatic trigger of packaging material in a sales order

    Hi,
    I am trying to understand client SAP system.When I try to create a Sales Order with one line item (material type = FERT) the system automatically triggers a second line item (material type = VERP).
    If anybody has come across this kind of requirement, then please explain me the reason behind this kind of behaviour.How the system triggers the second line item?

    Hi,
    I checked the automatic packing configuration.There is no packaging instructions defined in it.Neither there is any Procedure created to detrmine packing instructions.
    Is there anything else that I can check?

  • FXRestatement DM Package - Trigger by Data Send?

    Hey experts!
    I'm playing around with the FX Restatement DM package.  I've recently found the How To Guide to modify BPC to run a limited currency configuration and I'll be working on that today.  If I can get that working as I expect it, I would love the ability to trigger this package to run each time data is sent to BPC via an Input Schedule or via an SSIS load. 
    I seem to recall someone saying that they had done this, but can't find any information on how to get it to work.  Any ideas how to trigger these packages without using the Scheduler?
    Thanks!
    Sean

    Hi Sean,
    Basically, each time some records are sent to the database, the default logic is also executed automatically. That would mean, if you would like to execute a currency conversion each time a record is sent, you'll have to reference the FXtrans logic in your default logic file, with an *INCLUDE FXTRANS.LGL statement (see Admin Help for more details).
    This default logic can also be executed automatically when running packages. The "Import" package, for example, allows the user to run the default logic or not after the import.
    I hope it will help you.
    Kind Regards,
    Patrick

  • Query: Can we write Triggers in a Packages??

    Hi Al

    Triggers provide a way of executing PL/SQL code on the occurrence of specific database events. For example, you can maintain an audit log by setting triggers to fire when insert or update operations are carried out on a table. The insert and update triggers add an entry to an audit table whenever the table is altered.
    The actions that Informix Dynamic Server triggers perform are constrained to multiple insert, update, delete, and execute procedure clauses; whereas, Oracle allows triggers to execute arbitrary PL/SQL code. Oracle triggers are similar to stored procedures in that they can contain declarative, execution, and exception handling code blocks.if you mean trigger call package, yes!
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7004.htm
    Edited by: Surachart (HunterX) on Jun 14, 2009 8:46 PM

  • Trigger on RCV_SHIPMENT_HEADERS while Receipt Updation in Put Away Report

    Hi,
    I am working on PUT Away Label Report :
    The process is follows:
    When receipt is saved , a trigger will fire on RCV_SHIPMENT_HEADERS and in trigger a package will be called which in turn will submit the report for the receipt that is newly created.
    The problem here is trigger is working fine when new receipt is created,But when receipt is updated using ADD to receipt option or In case of Internal sales order.The trigger is not firing as trigger is fired for every new insertion.
    I am not able to find any column to know that receipt is updated and to track the quantity that is receipted recently . Since RCV_SHIPMENT_LINES table will have the track of the Total receipted quantity till date.
    I am attaching the script of Trigger i am using for insertion.Please suggest me how to approach in this scenario.
    Trigger that is used for new receipt insertion:
    AFTER INSERT
    ON rcv_shipment_headers
    FOR EACH ROW
    DECLARE
    PRAGMA AUTONOMOUS_TRANSACTION;
    l_request_id1 NUMBER;
    BEGIN
    BEGIN
    If :NEW.RECEIPT_NUM IS NOT NULL
    Then
    l_request_id1 :=
    fnd_request.submit_request ('XXINV',
    'MTUPUTAWAY',
    NULL,
    :NEW.RECEIPT_NUM,
    :new.SHIP_TO_ORG_ID
    commit;
    End If;
    END;
    EXCEPTION
    WHEN OTHERS
    THEN
    NULL;
    END;
    Thanks in advance,
    Best Regards,
    Mahesh

    you should post this question in the ebusiness-forum..

  • Workflow; Trigger to execute IDOC matmas update

    Hi
    I do not know workflow at all. Is is possible to trigger a execution of an program using workflow as soon as there is a create/change of an material on the Materials master?
    Message was edited by: Giovanni Baumann

    Hi James
    Thanks  for your reply.
    Your suggestion  is as   good as updating  the dimension manual in  Dimension excel  sheet & processing. This  processes will update the new data in mbr table . So in this approach following two steps involves
    Step-1 u2013 Customer  fills temp table  or customer update dimension manually & processes it. Both the action will trigger package
    Step-2 u2013 Data also need to be updated in   data source i.e flat file. This task is  performed by ETL team
    Only when both of these task  are performed that  data  source & BPC will in sync.
    But what I want  is only one step i.e. Step 2. This mean that when  the data changes,  the ETL team make necessary change in data source  & this change should trigger the package. To do this I need to write cmd command  to trigger the package.
    I hope my situation is more clear to you know. Kindly let me know if you have any solution.
    Regards,
    Rahul

  • Triggering BPC Package Link from BW backend

    Has anyone figured out a way to trigger a Package Link from the BW backend? We would like to run our standard BW process chain(s) to load Master Data and Hierarchies and THEN once that is successful, trigger the BPC package link to load the data into BPC... We'd like to do the same for transactional data too.
    We were given function module UJD_RUN_PACKAGE_LINK but could not get it to actually do anything.
    No hits on Google either.... well after this message there will be one hit 
    Thanks,
    Eric

    Jonathan,
    Bingo!!
    UJD_TEST_PACKAGE_LINK calls function UJD_RUN_PACKAGE_LINK which we were trying to do. We just must have messed up some parameters.
    Anyway, UJD_TEST_PACKAGE_LINK works brilliantly!
    For those reading this in the future....
    1. Find your LINK_ID  in table UJD_LINK. The CONTENT field gives you clues as to which one.
    2. Execute UJD_TEST_PACKAGE_LINK.
    3. Find your LINK_ID in the drop down and then hit enter. It will fill in your Appset Id and Appl Id.
    4. Make sure you enter a user id to run it under (<domain>\<bpc userid>)
    5. For our purposes we don't have any manual prompts so left it blank.
    6. Save as a variant or simply just run.
    7. Enjoy
    Thanks again everyone.

  • Business rule to execute SSIS package OR SP

    Is there a way to trigger SSIS package OR Stored Procedure by Business Rule?
    I would like to trigger SSIS package based on value change of specific column in MDS.
    RaghuM

    Hi MSRN,
    As you may know, Business Rule (Master Data Services, MDS) have the following types of actions
    Default value actions
    Change value actions
    Validation actions
    External action
    The first 3 type of actions can only affect objects inside MDS. The last one, External action, has the action "start workflow".
    The "start workflow" action can be the breakthrough point for us to trigger SSIS packages or Stored Procedure(SP).
    In the StartWorkflow method, we can load an SSIS package by SSIS object model class "Application". We can then Execute the package by package.Execute().
    Same to start SSIS package, we can execute SP by SQLCommand from StartWorkflow method.
    To understand how it works well, please:
    Review "Workflow Integration with Master Data Services":
    http://msdn.microsoft.com/library/gg690195.aspx
    Execute SSIS Packge by using C# and SQL Server:
    http://www.codeproject.com/Tips/658959/Execute-SSIS-Packge-by-using-Csharp-and-SQL-Server
    Thanks,
    Jinchun Chen

  • Source version of software update package is getting modified

    Hi
    In what condition does the source version of package get updated.
    I have a software update package created, suddenly saw its source version got updated.
    Regards Sushain KApoor

    There are only two ways the version (of a software update package) is incremented: you manually trigger a package update or you add updates to the package (which in turn triggers a package update).
    Jason | http://blog.configmgrftw.com

  • Automatic Packaging In HU Management

    Hello All,
    I have a issue in Handling Unit Mangament.
    Requirement is -
    Handling units should generate Automatically without clicking the 'Automatic Packing" icon in delivery.
    For this necessary configuration is done and-
    We are able to trigger the packaging proposal in delivery.
    But in Packing Tab we need to click on 'Automatic Packaging' tab to generate the handling units in delivery.(This should also happen automatically)
    Please guide me whether any configuration is required for this ?
    regards,
    sujit borse

    If the automatic packaging works if it is triggered manually then it should work automatically used by the mentioned setting.
    Try this:
    Create the delivery --> do nothing else, only go to packaing transaction and trigger automatic packing
    Can you do this? Or do you have to do something else in order to get the handling unit - e.g. enter the batch for the to be packed item otherwise it won't appear in the packing screen and you cannot create the HU whether automatically or purely manually.
    If you e.g. have to enter the batch manually then of course the handling unit cannot be created automatically too when the delivery is being created. You can use batch determination in this case.

  • Best practice to reduce downtime  for fulllaod in Production system

    Hi Guys ,
    we have  options like "Initialize without data transfer  ", Initialization with data transfer"
    To reduce downtime of production system for load setup tables , first I will trigger info package for  Initialization without data transfer so that pointer will be set on table , from that point onwards any record added as delta record , I will trigger Info package for Delta , to get delta records in BW , once delta successful, I will trigger info package for  the repair full request to  get all historical data into setup tables , so that downtime of production system will be reduced.
    Please let me know your thoughts and correct me if I am wrong .
    Please let me know about "Early delta Initialization" option .
    Kind regards.
    hari

    Hi,
    You got some wrong information.
    Info pack - just loads data from setup tables to PSA only.
    Setup tables - need to fill by manual by using related t codes.
    Assuming as your using LO Data source.
    In this case source system lock is mandatory. other wise you need to go with early delta init option.
    Early delta init - its useful to load data into bw without down time at source.
    Means at same time it set delta pointer and will load into as your settings(init with or without).
    if source system not able lock as per client needs then better to go with early delta init options.
    Thanks

  • How to access updated receipts in rcv_shipment_headers using triigger

    Hi,
    I am working on PUT Away Label Report :
    The process is as follows:
    When receipt is saved , a trigger will fire on RCV_SHIPMENT_HEADERS and in trigger a package will be called which in turn will submit the report for the receipt that is newly created.
    The problem here is trigger is working fine when new receipt is created,But when receipt is updated using ADD to receipt option or In case of Internal sales order.The trigger is not firing as trigger is fired for every new insertion.
    I am not able to find any column to know that receipt is updated and to track the quantity that is receipted recently . Since RCV_SHIPMENT_LINES table will have the track of the Total receipted quantity till date.
    I am attaching the script of Trigger i am using for insertion.Please suggest me how to approach in this scenario.
    Trigger that is used for new receipt insertion:
    AFTER INSERT
    ON rcv_shipment_headers
    FOR EACH ROW
    DECLARE
    PRAGMA AUTONOMOUS_TRANSACTION;
    l_request_id1 NUMBER;
    BEGIN
    BEGIN
    If :NEW.RECEIPT_NUM IS NOT NULL
    Then
    l_request_id1 :=
    fnd_request.submit_request ('XXINV',
    'MTUPUTAWAY',
    NULL,
    :NEW.RECEIPT_NUM,
    :new.SHIP_TO_ORG_ID
    commit;
    End If;
    END;
    EXCEPTION
    WHEN OTHERS
    THEN
    NULL;
    END;
    Thanks in advance,
    Best Regards,
    Mahesh

    Hi,
    All the manual receipts will have NULL value in the INTERFACE_SOURCE_LINES_ID column in the RCV_TRANSACTIONS table for the TRANSACTION_TYPE="RECEIVE".
    Thanks
    Bobby

  • Query to obtain PL/SQL usage

    Is there a query that I can write to obtain information as to how many procedures/functions/triggers/package bodies that exist in the database for a particular user and how many of them executed on a given day(sysdate)?
    For example, the output(for user SCOTT) to be something with 3 columns like
    Object Type --- Total Existing -- Executed Today
    Package Body 100 22
    Trigger 15 9
    Function 20 1
    Procedure 8 3

    Thanks..I was thinking of something like
    select object_type, count(distinct object_id) "Actual Count",count(distinct program_id) "Executed Count"
    from all_objects,v$sqlarea
    where all_objects.OBJECT_ID = v$sqlarea.PROGRAM_ID(+)
    and object_type in ('FUNCTION','TRIGGER','PROCEDURE','PACKAGE BODY') and
    (to_char(last_active_time,'DD/MM/YY') = to_char('12/07/07') or to_char(last_load_time,'DD/MM/YY') = to_char('12/07/07') or
         to_char(to_DATE(first_load_time,'YYYY-MM-DD HH24:MI:SS'),'DD/MM/YY') = to_char('12/07/07')) and
    owner in ('SCOTT')
    group by object_type
    But the problem is :
    I get
    Package Body|30|30
    Trigger|2|2
    whereas in the following query :
    select object_type, count(distinct object_id) "Actual Count",count(distinct program_id) "Executed Count"
    from all_objects,v$sqlarea
    where all_objects.OBJECT_ID = v$sqlarea.PROGRAM_ID(+)
    and object_type in ('FUNCTION','TRIGGER','PROCEDURE','PACKAGE BODY') and
    owner in ('SCOTT')
    group by object_type
    I get
    FUNCTION|22|1
    PACKAGE BODY|392|39
    PROCEDURE|9|0
    TRIGGER|531|8
    BUT IF I put in the date condition(just as in the first query) in the second query, I still get
    Package Body|30|30
    Trigger|2|2
    (Clearly, here the Procedure and Function rows are gone)
    Is there a way I can get results (using a join) like
    FUNCTION|22|1
    PACKAGE BODY|392|30
    PROCEDURE|9|0
    TRIGGER|531|2

  • KR TAX LOCALIZATION REPORT 실행시의 ORA-20000, ORA-06512 ERROR MESSAGE

    제품 : FIN_AP
    작성날짜 : 2002-12-02
    KR TAX LOCALIZATION REPORT 실행시의 ORA-20000, ORA-06512 ERROR MESSAGE
    ===================================================================
    PURPOSE
    Multi-Org 환경속에서 Kr Tax Localization Report 실행시의 ORA-20000, ORA-06512 Error Message 를 해결한다.
    Problem Description
    Kr Tax Localization의 Reports가 Error를 발생하고, View Log를 통해 확인한 Message가 다음과 같을 경우
    ORA-20000: APP-00001: Unable to find message:
    AR_NO_ROW_IN_SYSTEM_PARAMETERS
    ORA-06512: "APPS.ARP_STANDARD", 줄 999에서
    ORA-06512: "APPS.ARP_STANDARD", 줄 2246에서
    ORA-06512: "APPS.ARP_UTIL", 줄 29에서
    ORA-06512: "APPS.ARP_UTIL_TAX", 줄 111에서
    ORA-06512: "APPS.ARP_TAX_EXTRACT", 줄 6178에서
    ORA-06512: 줄 1에서
    Workaround
    Solution Description
    1) fnd_client_info.set_org_context(<org_id>);
    or
    2) v_org_id varchar2(10);
    v_org_id := fnd_profile.value('ORG_ID');
    fnd_client_info.set_org_context(v_org_id);
    .rdf 의 경우 : Before Report Trigger 에 추가
    .sql (Package Body, Procedure) 의 경우 : 각 Begin 절 이후
    Reference Documents
    -------------------

    제품 : FIN_AP
    작성날짜 : 2002-12-02
    KR TAX LOCALIZATION REPORT 실행시의 ORA-20000, ORA-06512 ERROR MESSAGE
    ===================================================================
    PURPOSE
    Multi-Org 환경속에서 Kr Tax Localization Report 실행시의 ORA-20000, ORA-06512 Error Message 를 해결한다.
    Problem Description
    Kr Tax Localization의 Reports가 Error를 발생하고, View Log를 통해 확인한 Message가 다음과 같을 경우
    ORA-20000: APP-00001: Unable to find message:
    AR_NO_ROW_IN_SYSTEM_PARAMETERS
    ORA-06512: "APPS.ARP_STANDARD", 줄 999에서
    ORA-06512: "APPS.ARP_STANDARD", 줄 2246에서
    ORA-06512: "APPS.ARP_UTIL", 줄 29에서
    ORA-06512: "APPS.ARP_UTIL_TAX", 줄 111에서
    ORA-06512: "APPS.ARP_TAX_EXTRACT", 줄 6178에서
    ORA-06512: 줄 1에서
    Workaround
    Solution Description
    1) fnd_client_info.set_org_context(<org_id>);
    or
    2) v_org_id varchar2(10);
    v_org_id := fnd_profile.value('ORG_ID');
    fnd_client_info.set_org_context(v_org_id);
    .rdf 의 경우 : Before Report Trigger 에 추가
    .sql (Package Body, Procedure) 의 경우 : 각 Begin 절 이후
    Reference Documents
    -------------------

Maybe you are looking for

  • Blank message body when sending or receiving HTML formated emails Exchange 2010

    I Have just installed Exchange Server 2010 over the weekend on a customers system.  All clients using either Outlook 2003 or 2007 are unable to see any text in the body of emails that are formatted in HTML.  If they receive an email formatted as HTML

  • More than100 Items on a Page

    When there are more than 100 Items on a page a message appears below the list of items "Item count of X exceeds maximum of 100". What happens when you exceed the maximum number of items?

  • Tab image not works in 3.2.0

    dear firends hi ! I edited tab with image attribute as myimage.gif (without prefix) but it not works (I uploaded an image myimage.gif in shared components) any iadea? regrads siyavuş Edited by: sak on Feb 20, 2010 1:54 AM

  • Useing Excel Function NORMSINV() in BEx

    Hi All, I am having a requirement where i have to generate a Query like below. Plant | Service Lvl | Cost | Time | Deviation Z (Service Lvl) = Should be calculated based on FUNCTION NORMSINV(Service LVL), the service level percentage they enter in se

  • WIndows 8.1 Storage Space failing -- having trouble even getting information.

    Hello, I've looked at a bunch of articles to try to sort this out, but haven't found anything. I hope I'm just missing something obvious. :-/ Here's my setup: in addition to a system drive, I have three additional, identical disks (WD Red, 2TB) that