BAPI_INCOMINGINVOICE_GETDETAIL returns "old" data

Hello,
I have developed some WF which handles incomming invoices but also have some Z tables behind.
I will describe my problem now. One of the tasks opens a secondary screen with tx MIR7, on a primary screen there is a button which reads data from invoice. Steps are:
1. user opens a task - he has a screen with some data
2. wf automaticallly opens a secondary window with MIR7 (so user can switch between two sap windows with e.g. alt+tab)
3. user make some changes in MIR7 and save invoice
4. user click the button in the primary window -> action which reads data from invoice with BAPI_INCOMINGINVOICE_GETDETAIL -> sometimes this function returns "old" data.
Do u know if the data from MIR7 are saved in some update task, or are they buffered, or....? how can i avoid this?
thx,
JJ

hi..
U have to give vendor invoice number for it to work.  The invoice should be posted in MM, if u post in FI this BAPI wont work.
MIR4: In this tcode, you can display the vendor invoice numbers.
MIR5: THIS CODE gives the list of available invoice documents.
Regards,
VIshwa.

Similar Messages

  • Content Rendered from UCM after updation returns old data

    Hi
    The requirement that i have in place is as below:
    1. Portal application should have an option to display content from UCM(Content here is just the metadata like title, description, etc of the content)
    2. The application should also have options for adding, updating and deleting the content.
    3. The updates should immediately reflect on the display.
    I am achieving the above using RIDC apis, not using OOTB task flows.
    But the issue that am facing here is that after performing any of add,update or delete the results fetched are still the older ones. There fore my display screen still shows old data.
    And one observation is that the updates are reflected only when i send a new browser request.
    I have tried refreshing, clearing browser cache, but nothing seems to work. Not sure if the content is being cached on the UCM server itself.
    If so how do i clear it?
    I am using GET_SEARCH_RESULTS to fetch the data and display.
    And i am using PS4 version of webcenter.
    I really need some help on this ASAP as it is in a critical state or any work around please.
    Thanks

    Hi Nelson
    The code snippet used for fetching the content metadata is as below
    To retrieve all the Folder information
    requestBinder.putLocal("IdcService","COLLECTION_DISPLAY");
    requestBinder.putLocal("hasCollectionID","true");
    requestBinder.putLocal("dCollectionID",rootFolderId);
    ServiceResponse response = idcClient.sendRequest(idcContext, requestBinder);
    DataBinder resultbinder = response.getResponseAsBinder();
    resultbinder.getResultSet("COLLECTIONS");
    List folderList = new ArrayList();
    for (DataObject data : resultSet.getRows())
    String parentId = data.get("dParentCollectionID");
    if (folderId.equals(parentId))
    folderList.add(data);
    To retrieve all the content information under a folder
    requestBinder.putLocal("IdcService","GET_SEARCH_RESULTS");
    requestBinder.putLocal("QueryText",
    new StringBuilder().append("xCollectionID >= `").append(docInfo.get("xCollectionID")).append("` <AND> xCollectionID <= `").append(docInfo.get("xCollectionID")).append(" ` ").toString());
    requestBinder.putLocal("SortField","dInDate");
    requestBinder.putLocal("SortOrder","DESC");
    idcClient.sendRequest(idcContext, requestBinder);
    resultbinder.getResultSet("SEARCH_RESULTS");
    List files = new ArrayList();
    for (DataObject dataObject : resultSet.getRows())
         files.add(dataObject);
    Once i have the list i just iterate over it and display using <af:outputText> or <af:commandLink>
    Till now havent been able to find the issue.
    The ony solution which helped this is to call this retrieval method twice before displaying. But this is creating a huge performance issue.
    So i am looking for a proper solution for this.
    Please help.
    Thanks

  • Datasocket returns old data

    I use the datasocket Read VI in LabVIEW to read images off a webpage. I append [text] to get the image back in a string and can then save it to the local harddrive.
    Trouble is, without reporting an error, the vi will on occasion return the same image it returned on the last call. (Eventhough it was from a different URL)
    Has anyone else observed this?
    Does anyone know what to do about it?
    It used to happen about 2.5% of the time, but now it appears to happen much more frequent.
    The big difference is that the HTTP apache server is now much closer.
    Any ideas?

    Interesting, I have used the Datasocket VIs to do a similar thing in the past without error.  Do you happen to have any example URLs we could use to reproduce this?
    Regards,
    Burt S

  • I am still having issues when visiting a website and then selecting the back icon and going to days old data instead of current. How do I fix this?

    I am still having issues when visiting a website and then selecting the back icon and browsers is returning old data instead of current. How do I fix this?

    found a solution thank you firefox live chat!!!

  • EJB 3.0 - EntityManager.find() not returning latest data from DB

    I have to restart the app server (using 10g embedded server) to get an EntityManager find to work propoerly. Basically if I update the DB directly (using dbvisualiser) and do a find using an entiy bean in JDev with embedded container the find return old data.
    Very new to this.
    any ideas ?

    The persistence provider for our EJB 3.0 implementation is TopLink and uses TopLink's object cache for the retrieved entities. By default it is configured to aggresively cache. You can customize the caching by using TopLink configuration files. I briefly described the process in this EJB3: Mapping a Boolean.
    I would recommend using entityManager.refresh(entity) or use the vendor hint on the query:
    Customer customer = (Customer)entityMgr.
                                        createNamedQuery("findCustomerBySSN").
                                        setParameter("SSN", "123-12-1234").
                                        setHint("refresh", Booelan.TRUE).
                                        getSingleResult();Doug

  • HT4597 I want to continue having my PC as the master and my iTouch as the slave in syncing Calendar, photos, music. Will iCloud allow that to happen or will it try to override my newly synced iTouch data with old data in iCLoud?

    I want to always sync my iTouch by what is held on my PC, not what is held in iCloud. To me, iCloud is an emergency back up. Will this be able to be done and do I need to do anything in particular to make sure that the data held on the PC, synced to my iTouch, will always take precedence over what is in iCloud? I want to continue to get email, use the internet wirelessly, etc but am worried that iCloud will try to take over. I want the data held by iCloud to be taken from my iTouch and not return old data to my iTouch.

    Restoring will not put it back to iOS 5, it will remain on iOS 7. The 'restore from backup' will replace your current content of your iPad (music, apps and their content, films etc) with what was in that backup (the backup picks up your apps, music, films etc from your iTunes library, not from within the actual backup, so you will need those in your iTunes library for the restore to be able to copy them back). If you currently have important documents/photos on the iPad then copy then copy them off first.
    There is this page, specifically about iPhones but it applies to iPads as well, about syncing to a new computer : Syncing to a "New" Computer or replacing a "crashed" Hard Drive

  • UCCX printable reports for Contact Service Queues displaying old data

    Hello,
    Does anyone know how to remove old data from the printable reports? I am trying to view all users listed under specific CSQs and it returns old data of users that are no longer in our system.
    -Ben

    Walter,
    Thanks for the suggestions. We are running version 8.5.1.11002-22. I strictly deal with the UCCX side of things and spoke with the CUCM admin. He advised that the extension is still active because we are forwarding all of the calls for now. Once he removes it I am sure that the name will disappear from the printable reports. If it does not disappear, you will see me posting again.
    Thanks Walter.
    -Ben

  • JSP page is coming back with old data even when DB updated

    Hello,
    I am updating an existing record on a database using an HTML form and the changes update the ACCESS database immediately, but the .jsp page is picking up
    old data.
    But but when i do a manual REFRESH, the correct data comes back fine!
    Thanks very much for any insights!
    Summary of the code:
    1. InputEmployeeInfo.html - enter change data, call update....jsp
    <HEAD> <meta content="no-cache" http-equiv="Cache-Control"/>
    <meta content="no-cache" http-equiv="Pragma"/> </HEAD>
    <FORM NAME="updateInfo"
    ACTION="./UpdateEmployeeInfo.jsp" >>>>>2.
    METHOD="POST">
    2. UpdateEmployeeInfo.jsp: - call bean, update database, forward to present..jsp
    <HEAD> <meta content="no-cache" http-equiv="Cache-Control"/>
    <meta content="no-cache" http-equiv="Pragma"/>
    </HEAD>
    <% response.setHeader("Cache-Control","no-cache");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader ("Expires", 0); %>
    <jsp:useBean id="empInfo"
    class="com.ora.jsp.beans.employee23.EmployeeInfoBean" >>>>>3.
    scope="request"/>
    <jsp:setProperty name="empInfo" property="*" />
    <% empInfo.updateDatabase(); %> >>>>>3b.
    <jsp:forward page="PresentChangeOfEmployeeData.jsp" /> >>>>>4.
    </BODY>
    </HTML>
    3. com.ora.jsp.beans.employee23.EmployeeInfoBean - Bean-update DB with change data
    public class EmployeeInfoBean {
    public void updateDatabase(){                                            <----3b.
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    Connection conn =
    DriverManager.getConnection("jdbc:odbc:example");
    String sql = "UPDATE EMPLOYEEINFO SET " +
    "NAME=?, ADDRESS=?, PHONE=? WHERE ID=?";
    PreparedStatement statement = conn.prepareStatement(sql);
    statement.setString(1, name);
    statement.setString(2, address);
    statement.setString(3, phone);
    statement.setInt(4, id);
    statement.executeQuery();
    statement.close();
    conn.close();
    4. PresentChangeOfEmployeeData.jsp - read database and display changes <----4.
    <HEAD> <meta content="no-cache" http-equiv="Cache-Control"/>
    <meta content="no-cache" http-equiv="Pragma"/>
    </HEAD>
    <% response.setHeader("Cache-Control","no-cache");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader ("Expires", 0); %>
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    Connection conn =
    DriverManager.getConnection("jdbc:odbc:example");
    Statement statement = conn.createStatement();
    String sql = "SELECT * FROM EMPLOYEEINFO WHERE ID = " + employeeID;
    ResultSet rs = statement.executeQuery(sql);
    while(rs.next()){
    %>
    <TR><TD ALIGN="right" WIDTH="50%">Name:</TD>
    <TD WIDTH="50%"><%= rs.getString("NAME") %></TD>
    ================================================================================
    Complete code listing:
    1, InputEmployeeInfo.html
    <HTML>
    <HEAD>
    <meta content="no-cache" http-equiv="Cache-Control"/>
    <meta content="no-cache" http-equiv="Pragma"/>
    <TITLE>Change of Information</TITLE>
    </HEAD>
    <BODY>
    <TABLE WIDTH="100%" BORDER="0" BGCOLOR="navy">
    <TR ALIGN="center">
    <TD><FONT SIZE="7" COLOR="yellow">Employee Information</FONT></TD>
    </TR>
    </TABLE>
    <CENTER>
    <FONT SIZE="5" COLOR="navy">
    Please Enter Your Information<BR>
    Fill in all fields
    </FONT>
    </CENTER>
    <TABLE WIDTH="100%">
    <FORM NAME="updateInfo"
    ACTION="./UpdateEmployeeInfo.jsp" >>>>>>>>>2.
    METHOD="POST">
    <TR><TD WIDTH="40%" ALIGN="right">Current ID: </TD>
    <TD WIDTH="60%"><INPUT TYPE="text" NAME="id"></TD>
    </TR>
    <TR><TD WIDTH="40%" ALIGN="right">New Name: </TD>
    <TD WIDTH="60%"><INPUT TYPE="text" NAME="name" VALUE="Mickey"></TD>
    </TR>
    <TR><TD WIDTH="40%" ALIGN="right">New Address: </TD>
    <TD WIDTH="60%">
    <INPUT TYPE="text" NAME="address" VALUE="St. Louis, MO">
    </TD>
    </TR>
    <TR><TD WIDTH="40%" ALIGN="right">New Phone: </TD>
    <TD WIDTH="60%">
    <INPUT TYPE="text" NAME="phone" VALUE="555-555-1234">
    </TD>
    </TR>
    <TR><TD COLSPAN="2" ALIGN="center">
    <INPUT TYPE="submit" NAME="btnSubmit" VALUE="Update Profile"></TD>
    </TR>
    </TABLE>
    </FORM>
    </BODY>
    </HTML
    2. UpdateEmployeeInfo.jsp:
    <HTML>
    <HEAD>
    <meta content="no-cache" http-equiv="Cache-Control"/>
    <meta content="no-cache" http-equiv="Pragma"/>
    <TITLE>Updating Employee Information</TITLE>
    </HEAD>
    <BODY>
    <% response.setHeader("Cache-Control","no-cache");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader ("Expires", 0);
    %>
    <jsp:useBean id="empInfo"
    class="com.ora.jsp.beans.employee23.EmployeeInfoBean" >>>>>>>>>>>>>3.
    scope="request"/>
    <jsp:setProperty name="empInfo" property="*" />
    <% empInfo.updateDatabase(); %> >>>>>>>>>>>>>3b.
    <jsp:forward page="PresentChangeOfEmployeeData.jsp" /> >>>>>>>>>>>>>4.
    </BODY>
    </HTML>
    3. com.ora.jsp.beans.employee23.EmployeeInfoBean <-------------3.
    package com.ora.jsp.beans.employee23;
    import java.sql.*;
    public class EmployeeInfoBean {
    private String name, address, phone;
    private int id;
    public void setName(String input){
    name = input;
    public String getName(){
    return name;
    public void setAddress(String input){
    address = input;
    public String getAddress(){
    return address;
    public void setPhone(String input){
    phone = input;
    public String getPhone(){
    return phone;
    public void setId(int input){
    id = input;
    public int getId(){
    return id;
    public void updateDatabase(){                                       <-------3b.
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    Connection conn =
    DriverManager.getConnection("jdbc:odbc:example");
    String sql = "UPDATE EMPLOYEEINFO SET " +
    "NAME=?, ADDRESS=?, PHONE=? WHERE ID=?";
    PreparedStatement statement = conn.prepareStatement(sql);
    statement.setString(1, name);
    statement.setString(2, address);
    statement.setString(3, phone);
    statement.setInt(4, id);
    statement.executeQuery();
    statement.close();
    conn.close();
    catch (Exception e) {}
    4. PresentChangeOfEmployeeData.jsp <---------4.
    <HTML>
    <HEAD>
    <meta content="no-cache" http-equiv="Cache-Control"/>
    <meta content="no-cache" http-equiv="Pragma"/>
    <TITLE></TITLE>
    </HEAD>
    <BODY>
    <% response.setHeader("Cache-Control","no-cache");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader ("Expires", 0);
    %>
    <%@ include file="CompanyBanner.html"%>
    <%@ page import="java.sql.*" %>
    <jsp:useBean id="empInfo"
    class="com.ora.jsp.beans.employee23.EmployeeInfoBean"
    scope="request"/>
    <CENTER>
    <FONT SIZE="5" COLOR="navy">
    Your New Information
    </FONT>
    </CENTER>
    <TABLE WIDTH="100%" BORDER="1">
    <%
    int employeeID = empInfo.getId();
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance(); <--------4b,
    Connection conn =
    DriverManager.getConnection("jdbc:odbc:example");
    Statement statement = conn.createStatement();
    String sql = "SELECT * FROM EMPLOYEEINFO WHERE ID = " + employeeID;
    ResultSet rs = statement.executeQuery(sql);
    while(rs.next()){
    %>
    <TR><TD ALIGN="right" WIDTH="50%">Name:</TD>
    <TD WIDTH="50%"><%= rs.getString("NAME") %></TD>
    </TR>
    <TR><TD ALIGN="right" WIDTH="50%">Address:</TD>
    <TD WIDTH="50%"><%= rs.getString("ADDRESS") %></TD>
    </TR>
    <TR><TD ALIGN="right" WIDTH="50%">Phone Number:</TD>
    <TD WIDTH="50%"><%= rs.getString("PHONE") %></TD>
    </TR>
    <TR><TD ALIGN="right" WIDTH="50%">Work Status:</TD>
    <TD WIDTH="50%"><%= rs.getString("WORKSTATUS") %></TD>
    </TR>
    <TR><TD ALIGN="right" WIDTH="50%">Total Sick Days:</TD>
    <TD> <%= rs.getString("TOTALSICKDAYS") %></TD>
    </TR>
    <TR><TD ALIGN="right" WIDTH="50%">Taken Sick Days: </TD>
    <TD><%= rs.getString("TAKENSICKDAYS") %></TD>
    </TR>
    <TR><TD ALIGN="right" WIDTH="50%">Total Personal Time(in hours): </TD>
    <TD><%= rs.getString("TOTALPERSONALTIME") %></TD>
    </TR>
    <TR><TD ALIGN="right" WIDTH="50%">Taken Personal Time(in hours): </TD>
    <TD><%= rs.getString("TAKENPERSONALTIME") %></TD>
    </TR>
    <TR><TD ALIGN="right" WIDTH="50%">Health Care Plan:</TD>
    <TD WIDTH="50%"><%= rs.getString("HEALTHCAREPLAN") %></TD>
    </TR>
    <TR><TD ALIGN="right" WIDTH="50%">Dental Plan:</TD>
    <TD WIDTH="50%"><%= rs.getString("DENTALPLAN") %></TD>
    </TR>
    <TR><TD ALIGN="right" WIDTH="50%">Vision Plan:</TD>
    <TD WIDTH="50%"><%= rs.getString("VISIONPLAN") %></TD>
    </TR>
    <% }//end while loop
    } // end try block
    catch (Exception e) {};
    %>
    </TABLE>
    <%@ include file="ch24_SiteNavigator.html" %>
    </BODY>
    </HTML>

    <%
    String dept_name=request.getParameter("D1");
    String itmp,itmcd,sn;
    %>
    <%
    Connection con;
    PreparedStatement ps;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con=DriverManager.getConnection("jdbc:odbc:acc");
    Statement stmt=con.createStatement();
    ResultSet rs=stmt.executeQuery("select * from item_details where Item_Name='"+dept_name+"'
    %>
    <td> Product name</td>
    <td>Product description</td>
    <td><Product code</td>
    <td>Product price</td></tr>
    <form method=post action="mycreate.jsp">
    <%
    while(rs.next())
    %><tr>
    <%=rs.getString(1)%></td>
    <%=rs.getString(4)%></td>
    <td><font color="#ffffff" size="3" face="arial unicode
    ms">    <%=rs.getString(3)%></td>
    <% String temp=rs.getString(3);%>
    <%=temp%>
    <td>
    <%=rs.getString(5)%></td>
    <td><input type=submit value="Add to cart"></td></tr>
    <form method=post action="mycreate.jsp">
    <%
    con.close();
    %>
    </tr>
    </table></tr></table></tr></table>
    </form>
    </form>
    I want the value of rs.getString(3) in a variable

  • Report with two Command is empty if one of the two commands returns no data

    Hi all,
    I have a report with two Commands not linked together.
    If ONLY one of the two Commands returns no data, the full report is empty (although the other Command returns data).
    I'm using Crystal Report 2008 and the CRJ 12.2.205
    Have an idea?

    Hi Ted,
    how can I solve the problem, please? It is important.
    If I can help yourself, the problem is appeared in many reports since I updated the library (the old library version 11.8.4.1094 works fine with all). I'm waiting for your answer, please.
    Thank you very much.

  • Webi report gives old data in infoview on refresh

    Hi Experts,
    We are facing this strange issue on a webi report after some data updation in the SAP BW infocube.
    The webi report is based on the universe which is connected to an infocube in our BW dev system. After some data updation in the cube, we had tested the report in webi rich client and everything was working fine (the newly updated data from cube was reflecting). Now, we had tested the same report in infoview, but it was showing the old data only. We had tried exporting the report once again to infoview, refreshed universe structure; but without any success.
    What appeared to be even more strange was that the last refresh time was also not changing. While running the report in the infoview it hardly takes 40secs. But on refreshing it says the last refresh time was 5mins.
    Any help on this would be highly appreciated.
    Regards,
    Arun.

    it sounds like when you refresh report in Infoview you get the cached data, it never goes to the DB to fetch new one...
    You'll need to enable traces on webi processing server as well as SOFA/MDX tracing and review log files to see if requests are going to db or not and what is being returned.
    It could be at webi proc level or at your BW level.
    You can also try disabling webi caching in webi proc server properties and see what happens.

  • Getting back my old data after HD crash

    I've just erased my mac hard drive becuase it was corrupt and re-installed OSX, I did the simple erase with the disc utility.
    I know the data still exists on my hard drive and will just be over written with new data when it comes along.
    Is there any piece of (free) software I can use to get back my old data?
    Thanks

    Unfortunately you reinstalled OS X which means you've already overwritten the drive. You should have recovered your data before erasing the drive and reinstalling. Or better yet you should have been maintaining backups.
    Basics of File Recovery
    If you empty the Trash the files are gone. Recovery is possible but you must not allow any additional writes to the hard drive - shut it down. When you delete files you erase only the directory entries, not the files themselves. However, the space occupied by the files has been returned to the system as available for storage. Writing to the drive will then eventually overwrite the space once occupied by the deleted files in which case the files are lost permanently. Also if you save a file over an existing file of the same name, then the old file is overwritten and cannot be recovered.
    If you stop using the drive it's possible to recover deleted files that have not been overwritten with recovery software such as Data Rescue II, File Salvage or TechTool Pro. Each of the preceding come on bootable CDs to enable usage without risk of writing more data to the hard drive.
    The longer the hard drive remains in use and data are written to it, the greater the risk your deleted files will be overwritten.
    Also visit The XLab FAQs and read the FAQ on Data Recovery.

  • HT1766 If you had already restored your ipod touch without backing up, is there any way to get your old data back?

    Somehow, all my ipod touch's music was deleted so I restored it but forgot to back up. Now around a term past but I still don't how to get my old data back. Now the music thing still doesn't work so I don't know what happened. Maybe my itunes is stuffed??

    i wanna know if my warranty covers it
    No. The warranty covers manufacturing defects and faults that develop after purchase. Your dogs' mauling is neither of those.
    if it doesnt how much it will cost
    A Google search for "ipod touch 2g parts" returned this. There are others you can find yourself.
    $50 for back panel
    http://www.rapidrepair.com/shop/4405-chrome-backing-ipod-touch-2g.html
    $90 for glass panel
    http://www.rapidrepair.com/shop/4421-digitizer-glass-ipod-touch-2g.html
    do not reply to this unless u have an answer
    Yeah, 'cos people often do that...

  • Get_num_value return no data found with headstart 6.5.2.3

    Hi,
    We are migrating an application based on headstart (capi generator 6.0.2.1). Our migration upgrade headstart to 6.5.2.3 (capi generator 6.5.3.4).
    The capi generator 6.5.3.4 generate the get_row function, but this function doesn't call the find_on_stack function. With the old version of headstart, the get_row call find_on_stack. On another project I did for another company, I see that the capi generator 6.5.2 generate the get_row and this function call the find_on_stack.
    The capi generator change after the version 6.5.2. I search on this forum and I see this "2227746 - ENHANCE RULEFRAME PERFORMANCE BY MINIMIZING CAPI USE OF FIND_ON_STACK" !
    Our application has business rules that call get_num_value, get_char_value, etc... These get_???_value call get_row and get_row call slct function of the tapi.
    Before the migration, these get_???_value functions returned always a row. Because the get_row scans the pl/sql table with the find_on_stack function.
    Now, these get_???_value functions return the error no data found !!!. The function doesn't call the find_on_stack, but call the slct function of the tapi. The slct returns no data found.
    I have this bug (no data found) when a business rule is executed from a delete cascade. The parent row is not there and the br returns no data found. The old version search the parent row with the find_on_stack and returns the row.
    So, I suppose that the "ENHANCE 2227746" drop too much find_on_stack call !
    Do you have a patch for this or I modify the capi generator ?
    Thanks.

    Geert,
    The workaround mentioned above is not sufficient. It makes sure the correct value is returned inside a single transaction, e.g. when a transaction is rolled back, but when a new transaction is opened, it will still return the cached values, even though the database value might have changed between the closing of the first and the opening of the new transaction.
    To make sure the correct value is returned, we should also keep track of the id of the transaction in which the cached values are stored. Only when this ID is the same as the ID of the current transaction, we can be sure the cached value is the correct one. In all other cases the database value must be used.
    The following changes can be implemented as a workaround:
    In the CAPI generator package HSU_CAPF:
    - In procedure create_declarations add declarations of package variables to store transaction id for the cached values g_current_row and g_cached_row.
    - In procedure create_init fill the transaction id when g_current_row is filled.
    - In procedure create_get_row:
    - Enclose if-statement as mentioned above, to make sure correct value is returned after transaction is closed      
    - Add extra restriction to the if-statements to determine whether package variables can be used
    - remove part to use value from CAPI stack      
    - fill transaction id when g_cached_row is filled.
    This solution slows down the retrieval of data via the get_% functions. It only uses cached values when they are cached in the same transaction as they are retrieved in.
    Hope this helps,
    Harold Oortwijn

  • Script against outlook mail box is selecting old data

    Hi there,
    I am into this project wherein emails pushed into a folder has to be cross checked whether it arrives.
    So, to meet this end, I used a powershell script to connect to the mail folder and collect the data.
    Add-Type $class -ReferencedAssemblies Microsoft.Office.Interop.Outlook
    $class = @"
    using Microsoft.Office.Interop.Outlook;public class MyOL
        public MAPIFolder GetInbox(string userName)
            Application oOutlook = new Application();
            NameSpace oNs = oOutlook.GetNamespace("MAPI");
            Recipient oRep = oNs.CreateRecipient(userName);
            MAPIFolder inbox = oNs.GetSharedDefaultFolder(oRep, OlDefaultFolders.olFolderInbox);
            return inbox;
    Add-Type $class -ReferencedAssemblies Microsoft.Office.Interop.Outlook
    $MyOL = New-Object MyOL
    $olInbox = $MyOL.GetInbox("mailbox")
    $olInbox.items | Select-Object -Property Subject, ReceivedTime, Importance, SenderName
    but this code is collecting only a week old data! I did try a bit of looking around and found that this can be related to the indexes in the mailbox. So, I have tried disabling that as well but in vain.
    Please can someone help me on this.

    Hi Kuleen,
    If you want to check whether the email arrives from a specific sender, please also try the script below and feedback:
    $olFolderInbox = 6
    $outlook = new-object -com outlook.application
    $ns = $outlook.GetNameSpace("MAPI")
    $inbox = $ns.GetDefaultFolder($olFolderInbox)
    $targetfolder = $inbox.Folders | where-object { $_.name -eq "outlook subfolder name" }
    $email = $targetfolder.items |Where {($_.SenderName -eq "sender")}
    If I have any misunderstanding, please let me know.
    Best Regards,
    Anna

  • Discoverer Report  returning ' no data  found '

    Hi  ...
    i  have an issue with one discoverer  report  .
    Discoverer report  name : EDI Price Exception Report.
    when i ran the report  in Discoverer  Desktop edition  It is returning 'No Data Found ' But  i am taken the  Query from admin edition  and tried to  ran in  PL/SQL Developer/TOAD  by setting  Org_id condition
    it's returning Data  . the Desktop Edition of Discoverer for  some specific date  Range  it's giving Data  But  from last month on wards  it's not returning any Data.
    in Discoverer Report  Desktop  it's not retuning the Data from  November to till date
    Oracle  Applications  11i
    Discoverer 4i
    Oracle Data base :9i 
    OS : Windows.
    Attached the Sql  which i used to generate the Report :
    I HAVE USED THE FOLLOWING  :-for initialize the profile options
    EXEC FND_GLOBAL.APPS_INITIALIZE (0,52163,660);
    EXEC APPS.FND_CLIENT_INFO.SET_ORG_CONTEXT(2922);
      SELECT A.CUST_PO_NUMBER,
             A.ORDER_NUMBER,
             A.ORDERED_DATE,
             A.ORDER_TYPE,
             -- C.CUSTOMER_ID,
             C.CUSTOMER_NUMBER,
             C.CUSTOMER_NAME,
             B.LINE_NUMBER,
             B.ORDERED_ITEM,
             MSI.SEGMENT1 ACCO_ITEM,                               -- GRW 20060407
             MSI.DESCRIPTION,
             -- MSI.INVENTORY_ITEM_ID,
             (SELECT MCI.CUSTOMER_ITEM_NUMBER
                FROM MTL_CUSTOMER_ITEMS MCI,
                     MTL_CUSTOMER_ITEM_XREFS MCIX,
                     MTL_SYSTEM_ITEMS_B MSIB
               --  MTL_PARAMETERS          MP
               WHERE     MCI.CUSTOMER_ID = C.CUSTOMER_ID                 --1814924
                     AND MCI.CUSTOMER_ITEM_ID = MCIX.CUSTOMER_ITEM_ID
                     AND MCIX.INVENTORY_ITEM_ID = MSIB.INVENTORY_ITEM_ID
                     AND MSIB.INVENTORY_ITEM_ID = MSI.INVENTORY_ITEM_ID   --869899
                     AND MSIB.ORGANIZATION_ID = MTP.ORGANIZATION_ID --MP.ORGANIZATION_ID
                     AND MTP.ORGANIZATION_CODE = 'BRM'
                     AND MCI.CUSTOMER_ITEM_NUMBER = B.ORDERED_ITEM
                     AND NVL (mci.inactive_flag, 'N') <> 'Y'
                     AND NVL (mcix.inactive_flag, 'N') <> 'Y')
                CUSTOMER_ITEM,
                     XXAB_ITEM_XREFS.GET_GBC_ITEM_NUM (B.ORDERED_ITEM) GBC_ITEM_NUMBER,
             B.ORDERED_QUANTITY,
             B.PRICE_LIST,
             B.UNIT_SELLING_PRICE,
             B.UNIT_LIST_PRICE,
                   TO_NUMBER (B.ATTRIBUTE7) CUST_SENT_PRICE,
             apps.XXAB_CUST_SENT_PRICE_CONV_SO (C.customer_number,
                                                B.ordered_item,
                                                B.header_id,
                                                B.line_number,
                                                B.unit_selling_price,
                                                B.attribute7,
                                                B.pricing_quantity_uom,
                                                B.attribute4)
                CUST_SENT_PRICE_CONVERTED,
             ABS ( (B.UNIT_SELLING_PRICE
                    - apps.XXAB_CUST_SENT_PRICE_CONV_SO (C.customer_number,
                                                         B.ordered_item,
                                                         B.header_id,
                                                         B.line_number,
                                                         B.unit_selling_price,
                                                         B.attribute7,
                                                         B.pricing_quantity_uom,
                                                         B.attribute4)))
                DIFFERENCE,
                      MTP.ORGANIZATION_CODE,
             B.SHIP_TO_LOCATION
        FROM OE_ORDER_HEADERS_V A,
             OE_ORDER_LINES_V B,
             RA_CUSTOMERS C,
             MTL_PARAMETERS MTP,
             MTL_SYSTEM_ITEMS_B MSI
       WHERE     A.HEADER_ID = B.HEADER_ID
             AND A.SOLD_TO_ORG_ID = C.CUSTOMER_ID
             -- Added by Gati on 19-Oct-2012, tkt - INC000000118962
             AND ROUND (TO_NUMBER (apps.XXAB_CUST_SENT_PRICE_CONV_SO (
                                      C.customer_number,
                                      B.ordered_item,
                                      B.header_id,
                                      B.line_number,
                                      B.unit_selling_price,
                                      B.attribute7,
                                      B.pricing_quantity_uom,
                                      B.attribute4)),
                        2) <> B.UNIT_SELLING_PRICE
             --AND ROUND(TO_NUMBER(B.ATTRIBUTE7), 2) <> B.UNIT_SELLING_PRICE
             --AND     a.ship_from_org_id = mtp.organization_id
             AND B.SHIP_FROM_ORG_ID = MTP.ORGANIZATION_ID          -- GRW 20060413
             --AND     a.ship_from_org_id = msi.organization_id
             AND B.SHIP_FROM_ORG_ID = MSI.ORGANIZATION_ID          -- GRW 20060413
             AND B.INVENTORY_ITEM_ID = MSI.INVENTORY_ITEM_ID       -- GRW 20060407
             AND A.ORDER_SOURCE_ID = 6
             AND A.ORG_ID = B.ORG_ID
             AND TO_CHAR (A.ordered_date, 'DD-MON-YYYY') between  '01-NOV-2013' and  '03-NOV-2013'
             and mtP.organization_code='BRM'
                      AND A.ORG_ID = (SELECT HOU.ORGANIZATION_ID
                               FROM HR_OPERATING_UNITS HOU
                              WHERE HOU.NAME = '50 ACCO Canada')
             AND B.cancelled_flag <> 'Y'
             AND B.flow_status_code <> 'CANCELLED'
             AND B.ORDERED_ITEM <> 'INVALID_ITEM'
    ORDER BY a.order_number

    Hi,
    Assuming your initialization matches your discoverer login, it is pretty weird that you get no data.
    I am not sure how you got the SQL but i suggest you trace the session to get the exact SQL ran by the discoverer.
    You may find another condition or join that limits your data.
    Also another thing that you should try is to initial the session by using all the parameters (including the security group as you have in your discoverer login):
    begin
      fnd_global.APPS_INITIALIZE(user_id =>, resp_id =>, resp_appl_id =>, security_group_id =>);
    end

Maybe you are looking for