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

Similar Messages

  • How to access/update Routing Rules in WorklistApplication console ?

    Hi,
    I have created few Routing Rules in my Human Task and routing is properly working.
    But when I tried to search these Routing Rules in WorklistApplication console (via weblogic which an admin user)
    I couldn't find any Routing Rules, However all other rules (rules for list building) that I had created for my human task are available in WorklistApplication.
    I want to know how to access/update these Routing Rules in WorklistApplication ?
    regards,

    Hi,
    Even when I deployed the sample application workflow-106-IterativeDesign provided at http://java.net/projects/oraclesoasuite11g/downloads/directory/HumanWorkflow?field=date&order=asc , the routing rules are not appearing in WorklistApplication console.
    is this a bug ?
    regards
    Edited by: user10303338 on Oct 10, 2011 10:46 PM

  • How to access the database jar file using the derby 10.2.1.6 database ?

    Hi,
    How to access the database jar file using the derby 10.2.1.6 database ?
    I have used like below. And i am getting the following the error:
    "org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.apache.derby.jdbc.EmbeddedDriver'
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1136)"
    My context.xml file looks like this:
    <Context crossContext="true">
    <Resource name="jdbc/derby" auth="Container"
    type="javax.sql.DataSource" driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
    url="jdbc:derby:jar(\CalypsoDemo\database.jar)samples"
    username="xxx" password="xxx" maxActive="20" maxIdle="10"
    maxWait="-1"/>
    </Context>
    What could be the reason.?
    Any suggestions will be appriciated.
    Thanks in Advance,
    Gana.

    ya, I have restarted. Can you please tell me whether the path which i am giving is right or not in the context file?
    Thanks,
    Gana.

  • How to access the SAP MDM destinations using mdm java api in 7.1

    hi,
    I have SAP MDM 7.1 SP11 and SAP Portal 7.3 and developing the custom webdynpro application using the  JAVA MDM API. I want configure the SAP MDM destinations in SAP Portal .
    How to access the MDM destinations in java code using API? and how to create the connection with MDM using the MDM destinations.
    Please provide the code for access the SAP MDM destinations in java code using MDM java api and creating the connection to MDM.
    Thanks

    Jun,
    Thanks for the reply and api information.
    I have got this api information from the following sap documentation. But i am looking for the code by implementing this class and creating the mdm connection.
    Creating an MDM Connection Using Java Code - SAP NetWeaver Master Data Management (MDM) - SAP Library
    if any thing can you share it.
    Thanks

  • How to access Oracle Apps 11i forms using Vmware Player?

    Hi,
    I have installed Oracle Apps 11i on native OS OEL5 Server and guest OS Windows XPP using Vmware Player.Now how to access Oracle Apps 11i forms from Windows XPP using Vmware on my OEL5 Server Desktop?
    Thank's
    Regard's
    Rerry

    Hi,
    If you mean how to access eBusiness Suite from within the Virtual Machine, then you just navigate to the same URL you normally would. You may need to put the machine alias in your hosts file if you are referencing it via machine name rather than IP address.
    If you mean that you want to load the form in forms builder (for example) then you need to FTP the form from server to client (as you normally would) and then open it in your client (XP virtual machine).
    If you want to use Workflow Builder (as per your original requirement) then you need to ensure that the TNSNAMES.ora file in the Workflow Builder home has an entry for your instance on Linux, and then you should be able to connect to the database directly.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • How to auto update date column without using trigger

    Hi,
    How to write below MYSQL query in Oracle 10g :
    CREATE TABLE example_timestamp (
    Id number(10) NOT NULL PRIMARY KEY,
    Data VARCHAR(100),
         Date_time TIMESTAMP DEFAULT current_timestamp on update current_timestamp
    I need to auto update the Date_Time column without using trigger when ever i update a record.
    Example shown below is from MYSQL. I want to perform the below steps in ORACLE to auto update Date_Time column.
    mysql> INSERT INTO example_timestamp (data)
    VALUES ('The time of creation is:');
    mysql> SELECT * FROM example_timestamp;
    | id | data | Date_Time |
    | 1 | The time of creation is: | 2012-06-28 12:37:22 |
    mysql> UPDATE example_timestamp
    SET data='The current timestamp is: '
    WHERE id=1;
    mysql> SELECT * FROM example_timestamp;
    | id | data | Date_Time |
    | 1 | The current timestamp is: | 2012-06-28 12:38:55 |
    Regards,
    Yogesh.

    Is there no functionality in oracle to auto update date column without using trigger??
    I dont want to update the date column in UPDATE statement.
    The date column should automatically get updated when ever i execute an Update statement.

  • How to access PL/SQL Web Services using java

    New to Webservices. Created PL/SQL Web Service using JDeveloper. Vendor is not sure how to access it using java. Can anyone please help to point in the right direction or provide some sample ?

    So if I'm correct you have already exposed a PL/SQL procedure or function as web service?
    In that case you can generate a proxy (client) for the generated web service using JDeveloper. It will generate Java code which invokes the web service.
    See the wizard in JDeveloper, it should be in the same category as the create PL/SQL web service wizard.
    Regards, Ronald

  • "Software update failed", how can I update to ios8 without using itunes?

    I've received and error message, "software update failed".  How do I update my iphone 5s to ios8 without using itunes?

    Wait until later when the servers are quite so busy.

  • How do I update the Apple ID used on my iPhone?

    I changed my Apple ID on my computer and synced my phone but I am still getting a message saying my phone can not update with iCloud. My iPhone is still showing my old Apple ID but I can't access it via iPhone to update it. I have logged in and out of iTunes and I have turned my phone off and on. I can't figure out how to get my updated ID to sync with my phone. Help, please!

    Go into settings, and iTunes & App Stores, and change your Apple ID that way. If you are still having problems with this issue you cand definitely contact
    1-800-MY-APPLE (800-692-7753).

  • How do i update a db table using one JSP page

    I created a JSP Form page and I want to update a db table when the user hit submit. Please help my job depends on it Send me small code example below is what I have (very new to JSP)
    <%@ page language="java" import="java.sql.*" import="java.io.*" %>
    <html>
    <head><title>accessing database</title></head>
    <body bgcolor="white">
    <%     Connection con =null;
         try {
    // Load Driver Class File
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    //Make a connection to Data table
    con = DriverManager.getConnection("jdbc:odbc:SportsbookTables", "developer", "developer");
    Statement statement =con.createStatement();
    String SQL = new String("INSERT INTO tblLines (gameID,leagueType) VALUES (5,'gam')");
    statement.executeUpdate(SQL);
    statement.executeUpdate("INSERT INTO tblLines (gameID,leagueType) VALUES (6,'lea')");
    %>
    <table border=1 cellspacing=1 cellpadding=1>
    <form method="POST">
    <p><font color="#800000" size="5">Enter your name:</font><input name="leagueType" size="4"></p>
    <p><input type="submit" value="Submit"></p>
    </form>
    <%
    catch (IOException ioe)
    out.println("IO Exception:");
    out.println(ioe.getMessage());
    catch (SQLException sqle)
    out.println("SQL Exception:");
    out.println(sqle.getMessage());
    catch (ClassNotFoundException cnfe)
    out.println("Class Not Found Exception:");
    out.println(cnfe.getMessage());
    catch (Exception e)
    out.println("General Exception:");
    out.println(e.getMessage());
    finally {
    try
    if (con!=null) {
    con.close();
    catch(SQLException sqle)
    out.println(sqle.getMessage());
    %>
    </table>
    </Body>
    </HTML>

    First I would remove all the JDBC code you have in the JSP and place it in a servlet (or other Java) class, and have your form action call the servlet on submission. Then use the servlet API to extract the form data from the request and pass it to the JDBC in the servlet to update the DB. Once complete have it branch to another JSP/HTML to let the user know if they were successful or not.
    Take a look at some of the online tutorials as they will be helpful with regards to code examples.
    Depending on the size of your project, and deadlines naturally, you may also want to have a look at an MVC architecture and custom tags like Struts from Apache. These can make your job a lot eaiser.

  • How to intercept update on entity object using bc4j

    Hi all,
    I need to intercept a user from updating a particular entity object and create a new entity instead. I have a particular row in a database table that has a primary key with special meaning. If a user attempts to update this row, I want to automatically create a new row in the table with the information they entered and leave the original row unmodified. Any suggestions on how to do this at the entity layer?
    Thanks
    Mike

    Hi Sung,
    I've created 2 Entity Objects, named TestEo and OtherEo. The logic I've included is as follows: Before posting data for TestEo to the database (thus as part of the prepareForDML), I create a new instance of OtherEo, using the createBlankInstance method exposed on OtherEoDefImpl.
    However, the instance thus created ends up in a STATUS_UNMODIFIED, regardless of locking mode (I've managed to eliminate the locking mode as an issue).
    Could you give me an idea of where I'm going wrong? I've attached the prepareForDML() (with diagnostic msgs) and createBlankInstance() methods below.
    TestEoImpl.prepareForDML()
    protected void prepareForDML(int p0, TransactionEvent p1)
    switch (this.getDBTransaction().getLockingMode())
    case DBTransaction.LOCK_OPTIMISTIC:
    System.out.println("Locking mode: LOCK_OPTIMISTIC");
    break;
    case DBTransaction.LOCK_PESSIMISTIC:
    System.out.println("Locking mode: LOCK_PESSIMISTIC");
    break;
    // TODO: Override this oracle.jbo.server.EntityImpl method
    super.prepareForDML(p0, p1);
    OtherEoDefImpl otherEoDef = (OtherEoDefImpl) EntityDefImpl.findDefObject(
    "testapp.OtherEo");
    System.out.println("Entity Class: " + this.getClass().getName());
    switch (this.getEntityState())
    case EntityImpl.STATUS_DEAD:
    System.out.println("Entity State: STATUS_DEAD");
    break;
    case EntityImpl.STATUS_DELETED:
    System.out.println("Entity State: STATUS_DELETED");
    break;
    case EntityImpl.STATUS_INITIALIZED:
    System.out.println("Entity State: STATUS_INITIALIZED");
    break;
    case EntityImpl.STATUS_MODIFIED:
    System.out.println("Entity State: STATUS_MODIFIED");
    break;
    case EntityImpl.STATUS_NEW:
    System.out.println("Entity State: STATUS_NEW");
    break;
    case EntityImpl.STATUS_UNMODIFIED:
    System.out.println("Entity State: STATUS_UNMODIFIED");
    break;
    EntityImpl otherEo = otherEoDef.createBlankInstance(getDBTransaction());
    System.out.println("Entity Class: " + otherEo.getClass().getName());
    int state = otherEo.getEntityState();
    switch (state)
    case EntityImpl.STATUS_DEAD:
    System.out.println("Entity State: STATUS_DEAD - " + state);
    break;
    case EntityImpl.STATUS_DELETED:
    System.out.println("Entity State: STATUS_DELETED - " + state);
    break;
    case EntityImpl.STATUS_INITIALIZED:
    System.out.println("Entity State: STATUS_INITIALIZED - " + state);
    break;
    case EntityImpl.STATUS_MODIFIED:
    System.out.println("Entity State: STATUS_MODIFIED - " + state);
    break;
    case EntityImpl.STATUS_NEW:
    System.out.println("Entity State: STATUS_NEW - " + state);
    break;
    case EntityImpl.STATUS_UNMODIFIED:
    System.out.println("Entity State: STATUS_UNMODIFIED - " + state);
    break;
    OtherEoDefImpl.createBlankInstance()
    public EntityImpl createBlankInstance(DBTransaction p0)
    // TODO: Override this oracle.jbo.server.EntityDefImpl method
    return super.createBlankInstance(p0);
    Output - Test 1
    Locking mode: LOCK_OPTIMISTIC
    Entity Class: testapp.TestEoImpl
    Entity State: STATUS_NEW
    Entity Class: testapp.OtherEoImpl
    Entity State: STATUS_UNMODIFIED - 1
    Output - Test 2
    Locking mode: LOCK_PESSIMISTIC
    Entity Class: testapp.TestEoImpl
    Entity State: STATUS_NEW
    Entity Class: testapp.OtherEoImpl
    Entity State: STATUS_UNMODIFIED - 1

  • HT1977 how to access funds purchased to be used (game money) in infinity blade II

    have paid for game money to be used for infinity blade II but money failed to load onto game how can I access or get credit. would like to access game money

    I would contact the developers of Infinity Blade II.

  • How to access Time Machine backups after using migration assistant?

    Can someone please help me with a TM issue.
    My HD died so I fitted a new one.  I figured that I would do a clean install rather than use TM to bring across a whole bunch of 5 year old junk and Aps that all broke after the Leopard -Snow Leopard -Lion -Mountain Lion upgrades.
    Installed 10.8.2 Mountain Lion, no issues.  Then used TM to drag and drop all the Applications I actually wanted, still good.  Then used Migration assistant to bring in the remainder of the settings, documents, mail etc.  For some reason you cannot migrate to the current default user so you have to create a new user profile which I did.  New profile was great so I deleted the other profile created at install that was pretty much blank.
    At this stage everything looks awesome but I noticed a video clip was missing in a Final Cut project so I went back into TM to retrieve it.  Now, all the documents in my old user profile in TM have a little no entry symbol on them and I do not have permission to look at those files.
    It looks as though I am now being treated as someone else on a different machine and no doubt TM will continue to work from this point on but how do I tell it that there is just one user on this machine and I want access to all the historic backups too?
    Any advice will be gratefully received.

    Many thanks for your response Mende,
    I am trying to specifically NOT do a full TM restore because I have some issues with some programs that I cannot delete.  I wanted a fresh start but from what I understand the TM will bring back everything as it was, including all the corrupt system files.  Fixing the TM permissions would be the preferable option.
    (I attempted to make a windows partition on my system once, thinking it would make some sort of clever fake-windows desktop supported by Mac coding. It actually wanted me to do a full windows 7 install on the partition with windows install disks so I cancelled the process.  Because it was a partial install I have not been able to uninstall the modifications and my system was crashing regularly due to some sort of stray code).
    Just out of interest, if your OSX install is perfectly good, will TM use that or will it still take your OSX from the TM backup?
    Apart from that one stray file, my system is now super clean and faster than ever... but maybe there are still some things missing that I haven't noticed yet.

  • How to access OEL 5 server remotely using x-windows

    I use Reflections X or X-deep to remotely access several unix boxes from my desk instead of from the server. I am having some issues getting xdmcp or gdm setup so I can do this with a new server running OEL 5. Does anyone know how to configure the server to accomplish this?
    I have done the setup on several rhel 2 - rhel 4 and OEL 4 installations but it appears to have changed in OEL 5.

    Figured it out, too easy. Go to system - administration - login screen. On the resulting screen go to accessibility and enable accessible login. Go to the security and users tabs to choose who and how. Pretty slick.

  • How can I update the BIOS without using a CD?

    Hello!
    I have recently decided to upgrade my RAM from 2GB to 4GB. After installing, I booted up my computer to find that it would not recognize the new memory. After doing a bit of troubleshooting, I decided to try and update the BIOS, as the version was from 2010. I downloaded the BIOS update boot CD application from lenovo, burned a disc, and on reboot I found that the boot order did not have CD listed on it. Here's the catch: I don't have the supervisor password. This is a hand-me-down laptop, and I have tried to find the password to no avail. This is the current boot order: USB drive, Hard drive. 
    My question is, can I either create a BIOS update disc using a USB, or update the BIOS some other way?
    I understand that it is impossible to recover the supervisor password without having it serviced (which I would rather not do, even if I have to send my RAM back to Crucial)
    My system specs:
    Thinkpad L512
    Bios version: 1.04
    Bios date: 2010-3-26
    Embeded Controller Version: 1.01
    Windows 7 32 bit
    Thanks for your help.
    Solved!
    Go to Solution.

    Welcome to the forum!
    Two things here:
    a) If you run System Update, it should offer the latest BIOS for your machine as well. I've never done it on a passworded unit, so it might or might not work but might be worth a shot.
    b) I doubt that the ability of the system to recognize new RAM has anything to do with the BIOS. ThinkPads much older than yours will run 4-8GB RAM with an old BIOS, older than your machine to begin with.
    Good luck.
    Cheers,
    George
    In daily use: R60F, R500F, T61, T410
    Collecting dust: T60
    Enjoying retirement: A31p, T42p,
    Non-ThinkPads: Panasonic CF-31 & CF-52, HP 8760W
    Starting Thursday, 08/14/2014 I'll be away from the forums until further notice. Please do NOT send private messages since I won't be able to read them. Thank you.

Maybe you are looking for

  • ASA5505 - SG300 VPN site2site problem

    Hello, I have a problem with a site2site VPN between a SG300 and an ASA5505. On the SG300 we have two internal connected networks, the second one is an alias. The VPN goes up and works correctly for hours or even for days. Then I don't know why, for

  • Accounting Doc. not cleared...

    dear all, Once invoice has been done and released to accounting, we can see the status of INVOICE as completed in DOC. FLOW. After that iam getting the Accounting doc. as "not cleared" in the document flow. What it is actually referring about....as w

  • Form not fillable

    Hi,  I am reasonably new to Adobe Acrobat Pro 9 but am reasonably quick to learn new softwares so when I post on here it is because I simply can't figure out this software. Here is my situation.  I create a form and add fields so that it can be compl

  • How often does my Curve 9300 check for new email messages?

    Hello everyone, I hope that you are all well. I use a Curve 9300 (3G) and assumed that it checked for and retrieved new emails all of the time. However, it seems that it only retreives new messages from my email account every so often. Could someone

  • Integration with Motorola T505 bluetooth/RF adapter

    I never had a problem using phones and ipod's (using a bluetooth adapter) with my Motorola adapter but for some reason I just can't get it to work right with my new 3GS (my first iPhone). I can't voice dial with it but I CAN dial from the phone and h