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

Similar Messages

  • Problem DB Trigger and ADF Application for update a field.

    I again,
    I have a Data Base table as following :
    --Solicitudes*
    id number not null,
    extern_code integer,
    delivery_date timestamp( 6 ),
    ... and more fields
    And a Trigger as following :
    create or replace trigger update_delivery_date
    before update of on Solicitudes
    for each row
    begin
    if ( :new.extern_code = 9 ) then -- I need update the "delivery_date" to the current date and timestamp
    select systimestamp into :new.delivery_date from dual;
    end if;
    end;
    The trigger works fine in the DB, but when I update the 'Solicitudes' data base table through the ADF Application, the 'delivery_date' field is updated to different current systimestamp , for example suppose right now is : 19-JUN-*2012** 10.45.30.773000000 PM -04:00 , it field should be update to this date, but it is not update to that date, it is update to : 10-DEC-*1989* 10.45.30.773000000 PM -04:00.
    Why is this ?
    I put in the SQL Developer's query editor : select systimestamp from dual; and it show me the correct date and time.
    That problem occurs only when I update the table through my ADF Application.

    Marco,
    I don't see any issue with ADF in this. Just tried with a dummy table created with similar structure and tried updating it (have a similar trigger as well). It updated with proper timestamp (tried from SQL Developer, AppModule Tester and in jspx page - all same result).
    Can you check the system date on the machine where your DB is hosted. I guess you are using different database for testing the query and the app is using a different db.
    If not, try creating a simple testcase (as I mentioned in the first line) and see if you are able to reproduce the issue.
    -Arun
    P.S : I tried this in 11.2.0.1 DB & JDev 11.1.2.0.0

  • There is some problem while I try to put a figure in a slide.

    Hi, There is some problem while I try to put a figure in a slide. For editing the data, the input will change into a date(e.g. 2014/1/8) while I key in a floating(e.g. 1.8), and I can't change it back to a floating while I use the new version of keynote. Is that a bug?

    I have never seen this issue.
    Try this, ensure you complete all the tasks and in the order shown:

    delete all the iWork applications if you have them, not just Keynote, using Appcleaner from Mac Update, its a freeware application

    empty the trash:  Finder > Empty Trash

    Shut down your Mac, wait 30 seconds, then power on the Mac, immediately after the start chime, hold down the Shift key
    When you see the grey Apple symbol and progress indicator (a spinning gear), release the Shift key.
    If you are prompted to log in, type your password, then hold down the Shift key again as you click Log in. 
    Let the Mac fully boot up, it will take longer as the OS is repairing the drive
    4
    when fully booted, go to Applications > Utilities > Disc Utility; click on the boot drive then First Aid tab and click  repair disc permissions
    5
    when complete, restart the Mac normally, Apple menu > Restart

    install Keynote from the Mac App Store

  • After Update Trigger not triggering for first update

    Hi All,
    I have written a Trigger on AP_SUPPLIERS table to update AP_SUPPLIER_SITES_ALL when payment priority gets updated on AP_SUPPLIERS table. Trigger calls a pragma autonomous procedure after update happens, and updates sites table. We are on R12 (12.1.3) with  DB 11.2.0.3.0
    Somehow this is not working for the first update, after that for every update it is working. Any idea why this might be happening?
    Trigger Code: 
    CREATE OR REPLACE TRIGGER XX_AP_SUPPLIER_SIT_UPD_SYNC
    AFTER UPDATE
    ON AP.AP_SUPPLIERS
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
    l_vendor_id     NUMBER;
    l_paym_priority NUMBER;
    BEGIN
       XX_AP_SUPSITE_UPDATE(:NEW.PAYMENT_PRIORITY, :NEW.VENDOR_ID);
       EXCEPTION
         WHEN OTHERS THEN
           RAISE;
    END XX_AP_SUPPLIER_SIT_UPD_SYNC;
    Procedure Code:
    CREATE OR REPLACE PROCEDURE APPS.XX_AP_SUPSITE_UPDATE (p_payment_priority  IN  NUMBER,p_vendor_id IN NUMBER) AS
      PRAGMA AUTONOMOUS_TRANSACTION;
      ex_custom EXCEPTION;
      PRAGMA EXCEPTION_INIT( ex_custom, -20001 ); 
    BEGIN
      UPDATE AP_SUPPLIER_SITES_ALL
      SET PAYMENT_PRIORITY =p_payment_priority
      WHERE VENDOR_ID = p_vendor_id;
      COMMIT;
    EXCEPTION 
    WHEN OTHERS THEN
        raise_application_error( -20001, 'Error while updating payment priority on Site '||SQLERRM );
    END XX_AP_SUPSITE_UPDATE;

    Thanks for your replies Saubhik/VT,
    now my trigger is compiled. but is not triggering. pl help me to resolve .....
    create or replace
    TRIGGER AUDIT_DEV.trg2
    AFTER DELETE OR UPDATE OF EMP_STATUS ON AUDIT_DEV.AUDIT_PERSONS
    FOR EACH ROW
    declare
    OSUSER varchar2(30);
         MACHINE varchar2(30);
         logon_time date;
    db_user varchar2(30);
    USERNAME VARCHAR2(30);
    EMP_USER_MODIFIED AUDIT_PERSONS.EMP_USER_MODIFIED%TYPE;
         EMP_DATE_MODIFIED AUDIT_PERSONS.EMP_DATE_MODIFIED%TYPE;
         EMP_SK AUDIT_PERSONS.EMP_SK%TYPE;
         EMP_ID AUDIT_PERSONS.EMP_ID%TYPE;
         EMP_NAME AUDIT_PERSONS.EMP_NAME%TYPE;
    EMP_RESIGNATION_DATE AUDIT_PERSONS.EMP_RESIGNATION_DATE%TYPE;
    BEGIN
    select     username,osuser,machine,logon_time into db_user,osuser,machine,logon_time from v$session where sid=(select sid from v$mystat where rownum=1);
    INSERT INTO AUDIT_DEV.AUDIT_PERSONS_LOG (EMP_USER_MODIFIED,EMP_DATE_MODIFIED,EMP_SK,EMP_ID,EMP_NAME,EMP_RESIGNATION_DATE,EMP_STATUS_OLD,EMP_STATUS_NEW,osuser,db_user,machine)
    VALUES(EMP_USER_MODIFIED,EMP_DATE_MODIFIED,EMP_SK,EMP_ID,EMP_NAME,EMP_RESIGNATION_DATE,:old.EMP_status,:new.EMP_status,osuser,db_user,machine );
    COMMIT;
    END;
    09:59:06 AUDIT_DEV@dev>UPDATE AUDIT_DEV.AUDIT_PERSONS SET EMP_STATUS='TEST' WHERE EMP_ID='4234';
    EMP_STATUS
    TEST
    1 row selected.
    Elapsed: 00:00:00.01
    10:00:03 AUDIT_DEV@dev>commit;
    Commit complete.
    Elapsed: 00:00:00.01
    10:00:17 AUDIT_DEV@dev>select * from AUDIT_persons_log;
    no rows selected
    Elapsed: 00:00:00.00
    10:00:17 AUDIT_DEV@dev>
    Edited by: Abk on Nov 4, 2010 10:42 AM

  • My ipod restarted while sofwear update .now its just showing white screen

    my ipod restarted while sofwear update .now its just showing white screen...now how can i start my ipod...

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iPod fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar

  • Con not assign TASK TYPE for Put away during PO receipt

    Good morning everyone!
    I spent a lot of time to setup WMS Task assigment rule with no result.
    My goal is to make Task assigment for inbound tasks. Particulary put away after receipt.
    Expected behavor: after receipt in receiving area system should assign task type. This can be checked via "Warehouse control board" form, "Task type" column.
    Actual (current behavour): task is created and even can be seen via "Warehouse control board" form. But there's no task type. For Task assigment the only rule exists.
    To be sure that it works with other tasks types I've checked on Move order. Works well.
    NEED YOUR ADVISE
    Thanks in advance.
    Eugene.

    This case happened to me too in R12.
    The system did not assign task type after receipt in the receiving area. Moreover, I cannot update status from "Pending" to "Queue" to the user via "Warehouse Control Board" form for these put away tasks. It always show the error message "Cannot update putaway task." after press execute button. So How can I assign these task to specific user?
    Need your advise too,
    Thanks,
    Surachai.

  • Trigger for validation of salary updated in emp table is within range

    Hi,
    I need some help in correcting my fault in the below trigger as it is not working as expected.
    . trigger should be invoked if while modifying the  sal in EMP table, it is not in the valid range as specified in the SALGRADE table (between lowest  losal and highest  hisal)
    salgrade table
    Column Name
    Data Type
    Nullable
    Default
    Primary Key
    GRADE
    NUMBER(2,0)
    Yes
    LOSAL
    NUMBER
    Yes
    HISAL
    NUMBER
    Yes
    I have created a trigger
    create or replace trigger tr_validate_sal
    before
    insert or update on emp
    for each row
    declare
    cursor c is select losal,hisal from salgrade;
    begin
    for i in c
    loop
    if :new.sal < i.losal and :new.sal > i.hisal
    then
    raise_application_error(-20400,'sal out of range');
    end if;
    end loop;
    end;
    after creating this trigger also i am able to insert or update salary not in range of salgrade (losal and hisal). please help.

    /* Formatted on 2013/12/24 09:31 (Formatter Plus v4.8.8) */
    CREATE OR REPLACE TRIGGER tr_validate_sal
       BEFORE INSERT OR UPDATE
       ON emp1
       FOR EACH ROW
    DECLARE
      v_lowsal number;
      v_hisal number;
    BEGIN
      SELECT min(losal) losal, max(hisal)
         INTO v_lowsal, v_hisal
            FROM salgrade;
          IF :NEW.sal not between v_lowsal and   v_hisal
          THEN
             raise_application_error (-20400, 'sal out of range');
          END IF;
    END;

  • Error while schedulingg update stat in db13

    Dear Experts,
    Please look into my issue we are facing an error while scheduling update statistics in db13 and I tried to open detailed log
    It is given
    SXPG_COMMAND_EXECUTE failed for BRTOOLS - Reason: program_start_error: For More Information, See SYS
    Please help me how to solve this my error
    Regards

    Hi,
    Check the owner for BRBACKUP, BRARCHIVE, and BRCONNECT in kernel,
    these files should be with SIDADM, if not change the owner to SIDADM and rerun the update stats.
    and also Refer the note 446172
    Regards,
    Ram

  • Error while activating update rule in Inventory

    I was working with migration of datasource 2LIS_03_BF from 3.x to 7.0 in MM module.
    Recieved an error while activating update rule  0RT_C17 2LIS_03_BF in Inventory module.
    When I checked the routine ,it shows the following error.
    Errror:E:The Dictionary structure or table "/BI0/PMAT_SALES" is either not active or does not exist.
    I am not usre how to resolve this.
    Kindly reply asap.

    1. Activate the master data infoobject for 0MAT_SALES at info object level of RSA1
    2. Replicate and Activate the data source once again by using the program > SE38 : RS_TRANSTRU_ACTIVATE_ALL
    3. Then try to migrate you datasource and activate you update rules.
    it may help you
    Regards.
    Rambabu

  • I am getting error "An error ocurred while installing updates (103) when I try to do update for OSX

    Whenever I try to update an OSX Update, I get the error message "An error ocurred while installing updates." (103).  Has anyone encountered any such error?

    Try each of the following steps.
    Step 1
    If you're trying to install more than one update, do the updates one at a time.
    Step 2
    Triple-click anywhere in the line below on this page to select it:  
    /Library/Updates
    Right-click or control-click the highlighted line and select
    Services ▹ Open
    from the contextual menu. A folder should open. Move the contents to the Trash. You may be prompted for your administrator password.

  • ASSERTION FAILED error while migrating update rules

    Hi all,
    We are migrating the 3.x datasource for sd - lo cockpit.
    Migration steps are as follows...
    1. Make a copy of the infosouce. Activate it.
    2. Migrate transfer rules. Activate it.
    3. Migrate datasource.
    4. Migrate Update rules for the respective info providers.
          But while migrating update rules  ASSERTION_FAILED runtime error occurs.
           the assert condition was violated.
           CL_RSTRAN_TEMPLATE========CP or CL_RSTRAN_TEMPLATE======CM003
    Please help i tried all the means to rectify but none succeds.
    It is occuring for each datasource .
    Thanks in advance.
    aravind

    Hello
    Assertion statement is like a conditional break point in ABAP. When you are trying to migrate the update rules,it is failing with Assertion statement it means there is some error with your update rules. Either the mapping is wrong or the the target to which it is mapped is in inactive state. Please check these and retry your migration.
    Regards,
    Krishna Tangudu

  • DSO error while creating update rules

    Hi All,
              i am new to BI 7.0 , while creating update rules for datastore object , i have given the infosource name, and tried to activate it, then i got the error,
    ERROR:  infoobject 0recordmode is missing from the infosourse
    Can any one help, points are assured for the suggestions
    Thanks in advance
    Peddinti

    Hi,
      Add 0recordmode info object to your info source and again try to create DTP, 0recordmode is requried in DSO to keep data with history.(like before image,after image,etc), by adding this you dont have any problem, at the time of creating info source itself system will prompt you that this info object is missing do you want to add here say yes.
    Regards
    Sankar

  • Error Code 8024200D while installing update KB3000850 for Windows 8.1

    Error Code 8024200D while installing update KB3000850 for Windows 8.1
    I have been prompted for the last 10 days to install the important update KB3000850 in my laptop, but the installation fails every time.
    Two days ago, on March the 12<sup>th</sup>, I installed 31 updates without any problem. What is wrong with this particular update?
    You will find below my dialogue with Microsoft Support Engineer, Mr Niranjan Manjhi, who referred me to you:
    Hi Michelle,
    Thank you for posting your query in Microsoft Community.
    I understand that you are unable to install the a specific update KB3000850. I will be happy to assist you with your query. Let me ask you;
    Is your computer connected to domain?
    Which security software is installed in the      computer?
    Do you remember making any specific change in the      computer prior to the issue?
    This November update rollup also includes all previous updates since the previous image update in April 2014 and this includes performance and reliability
    improvements.
    Cause:
    This issue occurs because a process keeps a file in the component store open. Therefore, the file cannot be deleted or overwritten. Let's try the methods below and
    check the status.
    Method 1: Depending on the architecture of your
    Windows 8.1 operating system, I would suggest you to install the following package first and then try installing the KB3000850.
    All supported x86-based versions of Windows 8.1: [link] Download the package now.
    All supported x64-based versions of Windows 8.1:
    [link] Download the package now. 
    Restart is required.
    Method 2:
    If the issue still persists, run the Windows Update Troubleshooter and check the status.
    Click to run
    [link] Windows Update Troubleshooter
    Also refer to:
    [link] Troubleshoot problems with installing updates
    Hope this information is helpful. Please feel free to reply in case you face any other issues with Windows in future.
    Regards,
    Niranjan Manjhi
    Dear Niranjan,
    Thank you for your answer.
    To answer your questions:
    1) Yes, my laptop is connected to the domain,
    2) My security software is McAfee Total Protection, the same I use for my PC running Windows 7 XP,
    3) I did not make any specific change to the laptop. It is true though that I run regularly McAfee´s QuickClean.
    In your answer, you suggested 2 methods for resolving the problem.
    I chose to apply first the second one, i.e. I ran once again the Windows Update Troubleshooter, which revealed again the following status:
    Potential Windows Update Database error detected Ox800F08F: Not fixed
    Windows Update components must be repaired: Fixed
    And a last information: Yesterday, McAfee´s Vulnerability Scanner was automatically activated, showing as "critical" the update in question ("important" according to Windows)!
    As for applying the first method you suggested, I will need the services of a professional, someone more IT literate than myself.
    Michelle
    Hi Michelle,
    Thank you for keeping us updated on the issue.
    Since the computer is connected to domain, I would request you to post your query in the TechNet forums as your question is beyond the scope of what
    is typically answered in this consumer forum and would be better suited for the IT Pro audience on TechNet.
    Please post your question in the link TechNet Forums.
    Regards,
    Niranjan Manjhi

    Hi there @Achintya-only
    Welcome to the HP Support Forums! It is a great place to find the help you need, both from other users, HP experts and other support personnel.
    I see that you are getting an error code, when you try to install Windows 8.1 from USB or DVD. I am happy to assist.
    Just to clarify, you are using a standalone Windows installation disk, you are not using a factory recovery image. Is that correct?
    Have you run the hardware diagnostics on your notebook? HP Notebook PCs - Testing for Hardware Failures (Windows 8)
    What operating system was on the system before, and have you made a set of recovery media, for your original factory installation?
    Please let me know what you find.
    Malygris1
    I work on behalf of HP
    Please click Accept as Solution if you feel my post solved your issue, it will help others find the solution.
    Click Kudos Thumbs Up on the right to say “Thanks” for helping!

  • Itunes won't open. it keeps saying cannot be opened while being updated.

    i have a macbook pro.  i updated the os to mavericks maybe 2 months ago. now it is OS x version 10.9.4.  last night i was trying to open iTunes.  it said updates available so i clicked update.  i left my computer on since last night and everytime i try to open iTunes it keeps saying "itunes is being updated.  itunes cannot be opened while being updated."  is that normal? there's no other program running.  i am afraid to reboot the computer, i'm afraid that will cause it to crash.

    Restart and see what happens. You won't be any worse off than you are now, as long as you have backups.

  • E.     They are getting material from customers. This while receipt will be non

    Hi Friends,
                       1. They are getting material from customers. This while receipt will be non valuated. But they want to avail CENVAT on this.
                        2. In some times, Supplies from customer are delayed.So they are adjusting this against their stock.and after recieving, they are taking back their stock.how this can be mapped?.

    Hi JPAnnett
    I can investigate what has happened for you.
    Send me an email using the contact the mods link in my profile you will find it in the section 'About Me'.
    Thanks
    Stuart
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

Maybe you are looking for

  • My macbook air camera does not work

    I have a macbook air 11" mid 2011   running OSX Yosemite 10.10.1   I need to use the facetime camera, but it says no camera is available.  what I have done (6 hours or research and grief later): After reading a plethora of forums,  I have tried: Migr

  • Write Back Error in  OBIEE 11.1.1.7.150120

    Hello everybody, i have a problem with the writeback capabilities of OBIEE 11.1.1.7.150120. After the Migration from 10g to 11g i would like to customize the write back in 11g. I go like Oracle BI Practice: OBIEE 11g Configure Writeback this, but get

  • Badi ISU_PRODUCT_CHANGE and creation of a new contract line item

    Hello Gurus; I have this requirement: Once a contract gets close the ending date (30 days before) i need to automatically renew the contract. In order to do that i thought that an action in the Contract Item might get the job done and browsing i foun

  • Export Recordset As XML w/ session variable

    I'm trying to use the Export Recordset As XML function. It works great for recordsets without any variables (such as a session variable), but as soon as a add a variable to the record set, I get a "Header already Sent!" Error. The prior (non-adobe) v

  • Best practice in Infoprovider & Query design for access by BO Universe

    Hello Experts, Are there any best practices identified by practitioners or suggested by SAP for development of Infoprovider and queries for access by BO Universe. Best practices should be from the prospective of performance, design simplicity, adapta