Vendor ID, Last Update Date, Invoice Details - Query

For each Supplier, we would like to know the vendor ID, vendor number, vendor name, vendor site code, Created Date, Last Update Date, last invoice date, last payment date, total number of invoices and total $ amount of invoices for each supplier.
1) How do i find the last payment date and supplier catagory?
2) As i have to use sum(invoice_amount), count(invoice_amount), max(payment_date) which point to 3 different tables, i am not sure how to use "group by" based on the Vendor_id alone while i select lot of fields from different table. Could you please help me with this?
3) Please help me to get this query fixed.

1) You can get last_payment_date by joining vendor_id to ap_invoices_all and the joining invoice_id with ap_invoice_payments_all to get the max accounting_date (i.e. last payment date)
2) You are partially right. Invoice_amount and invoice_count are from the same table so you have to join 2 tables. Best way is to do a select in the select.
e.g SELECT   pv.vendor_name, COUNT (1), SUM (invoice_amount), pv.vendor_id,
         (SELECT MAX (aipa.accounting_date)
            FROM ap_invoice_payments_all aipa, ap_invoices_all aia2
           WHERE aia2.vendor_id = pv.vendor_id
             AND aia2.invoice_id = aipa.invoice_id) latest_payment
    FROM ap_invoices_all aia, po_vendors pv
   WHERE aia.vendor_id = pv.vendor_id
GROUP BY pv.vendor_name, pv.vendor_idSandeep Gandhi

Similar Messages

  • How to Query for last updated data in planning Cube?

    Hi,
    i want to see the last updated data with specific timestamp on one of our planning application Cube, IS it possible ?
    I have gone through application log and essbase server log but didn't get much information
    Can any one please let me know.
    Thx

    How was the data updated, if it was through planning then you can enabling data auditing and you should be able to then query the information.
    If it is was a data load then in EAS go the database, edit properties, modications, it should display data load information.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to find the last update date time and user of record field peoplecode

    how to find the last update date time record field peoplecode?
    Thank you.

    One can check the last update date time using the following query
    SELECT LASTUPDDTTM FROM PSPCMPROG WHERE OBJECTVALUE1 LIKE 'RECNAME' AND OBJECTVALUE2 LIKE 'FIELDNAME'

  • Add Last Updated Date/Time to Cube

    Is there a way that you can display a date field in EXCEL when a user logs in to a cube so that they can see when the cube was last updated (date/time)? I am currently attaching a note using linked objects but would like to find a more automated solution.

    At a previous job, we managed to pick up the system date during the batch and write it into the Database/Set note (from app manager). I can't remember the exact details but pretty sure we used the API.Then people could see when they logged in whether the database had been updated or not.At another place we sent out automated e-mails at the end of each update to those users with access to the database.Ideas only I'm afraid but hope it helps.

  • Displaying date/time in the report of last updating data?

    Hi,
    I have produced a report over a multiprovider. The multiprovider is built up from tow cubes. The data is being updated to one cube each hour and to the another cube one time daily.
    The date/time that display in the report is for the last updating data of the cube that updating one time daily.
    I want that the date\time be updated each hour, in another words, to display the date\time of last updating data to the second cube.
    Any suggestions?

    Hi Mohamad,
    Please read through this discussion for a solution:
    ROLLUPTIME of a multiprovider
    Hope this helps...

  • How to insert last update date and user id to a form?

    Hi,
    I have created a form to enter data to a custom table.
    When a new record is created, I would like to keep track of the creation date, last update date and who (user id) enters the form.
    Can someone please help or point me to a right place to look for this information?
    Thank you!
    LC

    Create four new columns in your table called Created_On, Created_By, Last_Updated_On and Last_Updated_By.
    You can create a trigger to accomplish the rest:
    create or replace trigger "<name of your trigger>"
      before insert or update on "<name of your table>"
      for each row
    begin
      if inserting then
        :NEW.Created_On := sysdate;
        :NEW.Created_By := v('APP_USER');
      end if;
      if updating then
        :NEW.Last_Updated_On := sysdate;
        :NEW.Last_Updated_By := v('APP_USER');
      end if;
    end;Every time you'll add or modify data in that table, the trigger will automatically fill those fields.
    Regards,
    Mathieu

  • To find last updated date in sql developer for a procedure or a function

    hi
    how to to find last updated date in sql developer for a procedure or a function.
    i m using sql developer version in 1.2

    I think you are in the wrong forum...
    Anyway you can try
    select * from
    all_objects o
    where o.object_type in ('FUNCTION','PROCEDURE');
    you have there the created date, last DDL and timestamp

  • Query on 0TCT_MC01 to get the last used date of a query

    Dear All,
    I tried to create a query on 0TCT_MC01 to get the last used date of a query.
    Since we do not have readily available key figure for Last used date, could any one help me out to achieve this result?
    I am interested to find the old queries which are not being used anymore.
    Thanks in advance.

    You can get the info from the below tables
    if you are working with BW 3.5 you can look in table RSDDSTAT in BI 7.0 it is RSDDSTAT_OLAP.
    Make a selction on the infocube and the OLAP Statistic Object which is the query ID and execute. Then you should see how often the query was executed, by whom and which date/time.
    in field Statistics Object Name Query ID you type in the tech name of the query
    from the Counter for statistics event calls -- will give the count... no of times the query used least the count lesser the query is used.
    Regards
    KP
    Edited by: Konduru Prashanth. on Dec 22, 2011 2:44 PM

  • Dimension Current Flag and Last Update date not updated - SLD issue!

    Hi.
    ODI is running pretty well now. I have created several interfaces from flats, multi database tables, but still have to test the services and cdc, etc... later I will do this.
    I am having a small issue here when dealing with Slowly Changing Dimensions. I am trying to populate a product dimension. I use a Load KM and the SLD KM. Then I update a product row in the source, and I wish to make sure that type-II runs OK for major and minor changes after running the interface.
    Well minor changes run ok, deletes don't run at all, and update for major changes should generate another surrogate key and turn the old record "current flag" to zero and "close"/update the last update date as well!!!
    What am I missing here? Is this related to the KM restrictions?
    "Restrictions:
    - Make sure to map ALL target table columns flagged as: "Surrogate Key", "Natural Key", "Current Record Flag", "Start Timestamp" and "End Timestamp". Notice that mappings set for the "Current Record Flag", "Start Timestamp" and "End Timestamp" columns are not used."
    Do I need to implement somehow that behaviour or use another KM?
    Another question regarding data warehousing: Well usually in a bespoke DW we can have N sources, N staging areas, and several data marts. Using ODI, for instance what are the best practises to create or simulate this behaviour??
    I know that using a Knowledge Module I can load/extract (to temp tables in the source work schema), then integrate in the target schema.. using the same schema to temp staging tables or another schema.... what is the best aproach?
    Any dw people wants to share some experiences here?
    Thank you all.
    Best regards,
    Alvaro
    Message was edited by:
    Alvaro Silva

    Thanks Cezar :)
    Well Updates work if I unckeck 262!!! :) But deletes are not setting the CURR to zero!!!
    PS: um abraço para ti também .... o mundo é pequeno! :) será que podes adicionar-me no messenger para alguma troca de experiências? [email protected]
    Alvaro
    Message was edited by:
    Guest

  • Vendor with last transaction date

    Hi,
    Can I generate any report which contains all vendors with last transaction date? THis is for audit purpose.
    Thanks & Regards,
    Rajaneesh.C

    Hi,
    You can take the report of the  FI accounting document for all vendors based on the company code and the posting date ( input the present date) in the T code- S_ALR_87012991.
    regards,
    Kannan B

  • To show Last Update Date(Date datatype) as per User Preferred TimeZone

    VO RuleSetVO.xml has a timestamp attribute LastUpdateDate.In UI,this VO is shown in table format and the last update date is shown in date format and there is QBE filter enabled on it.
    As there is a QBE enabled on last update date and our filltering view criteria requires a date attribute,we have made use of a transient date datatype attribute LastUpdateDateQBE which gets the value from the LastUpdateDate in VOrowImpl and LastUpdateDateQBE (date attribute) is shown in UI.
    Now,we have a requiement to show the date in UI in user preferred time zone instead of DB server timezone.
    Any pointers to the solution??
    Note:
    1.LastUpdateDateQBE is a date attribute,cannot use <timeZone="#{applCorePrefs.UPTZ}"/> as this doesnt hold good on date attribute
    2.There might be differences between the DB server timezone and the timezeone in which the database records are stored i.e both might not be in sync always.
    Jdev and ADF information:
    ade:[ amujahed_rupaug08 ] [amujahed@indl64066 fusionapps]$ jdev getJdevAdfLabelInformation
    Primary == FUSIONAPPS_PT.11.1.1_LINUX.X64_110807.0800.S (Primary Product for the view)
    Primary depends on FMWTOOLS == FMWTOOLS_11.1.1.5.0_GENERIC_110505.0801
    FMWTOOLS depends on label == JDEVADF_11.1.1.5.0_GENERIC_110409.0025.6013
    The above label originated from base label == JDEVADF_MAIN_GENERIC_090903.1833.5483

    I would have to think that someone on the fusion apps team has already dealt with something like this - why not ask your peers instead of a public forum (we don't know all the ins-and-outs of fusion apps and any utility methods that may be available for you)
    John

  • How to know last updated date of screen

    Dear all my friends,
    Please help to show me : How can i know which screen has been updated by when ?
    or help to show me the table name which contain all screen in system with creatation date and last updated date.
    many thanks

    hi, go to the attribute tab. you can see there when it was last updated.
    hope this helps.
    best regards,
    benedict

  • Retrieve contact list  via the API not with the last updated date but created date?

    I can connect via the API and retrieve a list of contacts  but it seems that the only paramater i can pass is to search since the last Update  Date.
    Is it possible to search on the Created date and to have a date range as well?
    I found the xml result is slow to come as it gives all entries since the "lastUpdateDate" entered.

    A change in score does not cause the Date Modified field to change on the contact record. This field only changes when some data in one of the fields has changed.
    However, some of the confusion can come from the fact that lead scores have a Profile and Engagement portion. So if you have certain fields on the profile section being modified, that would cause a rescore at the same time. Engagement criteria such as form submits often cause the contact record to be modified while website visits and email clicks/opens do not.
    Hopefully this helps clarify,
    Bojan

  • How to find out last update date for business partner's marketing attribute

    How to find out last update date for business partner's marketing attribute??
    Im freshie for SAP Application and im assigned to find out last update date for marketing attribute changed
    which table is involved??
    Yours kindness will be appreciated
    thanks

    You can take a look at table AUSP as well as CRMD_AUSP_HIST.
    The "changed by" and "changed at" are logged on attribute level, not on attribute value level. When you change one specific value, the system does a "re-insert" of all existing values of this attribute.
    Take a look at the SAP notes 938426 and 966670  these may assit you in resolving the issue.
    Regards,
    William Laverde

  • Can I update datas of Power Query after making relation tables in Power Pivot ?

    Can I update datas of Power Query after making relation tables in Power Pivot ?
    I want to update datas at day by day to viewing today's graph by Power View on Excel.
    Power Query use to transform web site to Power Pivot data model table.
    Power Pivot use to making relasing tables, and making measuers.
    Regards,
    Yoshihiro Kawabata.

    Hi Yoshihiro,
    Can you share an example of the things you are doing in Power Pivot? There are some operations that prevent the query from being refreshed in Power Query; this is not ideal so we are currently working on fixing it.
    Thanks for your feedback.

Maybe you are looking for

  • Installing Creative Cloud for teams?

    I have purchased Creative Cloud for Teams. One of my team members is having trouble getting the apps onto a second machine. She had an existing Adobe ID, which had to have the password reset before she could accept the Team Invitation. She has now ac

  • Merging two or eliminating one Apple ID?

    I must have created two apple IDs. When I go to update Apps on iPad2 it asks for a password associated with a gmail account not used. My normal email apple I'd is associated with a me.com address. So I cannot update as any password I give for the gma

  • Routers: What Are Jumbo Frames and why do I need them?

    Some routers' specs specifically mention that they handle jumbo frames (with a number like 9K). I have a network with 2 iphones, two ipads, 4 computers, two networked Blu-Ray players, and 3 computers, all of which are operating simultaneously a lot o

  • Marking Fields as Read-Only After Digitally Signing Issues

    I am creating a PDF form that contains several digital signatures.  I am selecting a signatures and am in the property options for that specific signature looking at the "Signed" tab.  I select, Mark as read only, than choose "Just these Fields. When

  • Determing JavaFX Chart Size using FXML

    Hello Guys, I'm working on a value marker for a line chart in JavaFX 2.2. I therefore used the answer on an existing question on stackoverflow and the example by Sergey Grinev is working fine. However, if I want to use FXML to add a chart instead of