Last Activity Date in Opportunity Report

Hi Guys,
Would like to knoe if there's a way to retrieve the Last Activity Date in a historical Opportunity report?
Regards,
Teena

Basically, I need to show all opportunities with or without activities. If there are activities attached to an opportunity, then I need to get the Last Activity Date.
I tried using the Activity object in reporting but if there's no activity linked to an opportunity, it is not being displayed in the report.
Regards,
Teena

Similar Messages

  • Reporting Last Activity Date on Contact

    Hello,
    I maybe lossing my mind here but i feel like i have been looking for "Last Activity Date" on the contact screen all day. Can someone veryify that this appears under reporting.
    Also does anyone know if you can create a case statement around this to state if values is less than 3 weeks = Dont not Contact and if greater Contact.
    Anyway hope someone can verify this.

    JE,
    i don't know about a last Activity date but I've just done it with Activity reporting on Service Requests. I did RANK(activity created date by SR ID) and then set the filter to RANK=1. This gives you the last activity created.
    I then did a calculation in another field TIMESTAMPDIFF(SQL_TSI_DAY, activity.createddate, Current_date) which gave me the number of days since an activity was last posted to an SR.
    You can then do conditional formatting or a CASE WHEN statement on this field.
    cheers
    ALEX
    ***NOTE I have a current SR with Oracle because I'm in sydney and Current_date returns Central Server time which is a 17 hour difference and for most of the day is a day behind so my formula above has had to be
    TIMESTAMPDIFF(SQL_TSI_DAY, activity.createddate, TIMESTAMPADD(SQL_TSI_HOUR, 17,Current_date))

  • DB link problem between active Data Guard and report application database

    My database version in 11.2.0.2.0 and OS is Oracle Solaris 10 9/10.
    I am facing a problem in my Active data guard Database for reporting purpose. Active Data guard information is as below.
    SQL> select name, database_role, open_mode from v$database;
    NAME DATABASE_ROLE OPEN_MODE
    ORCL PHYSICAL STANDBY READ ONLY WITH APPLY
    Problem detail is below
    I have created a db link (Name: DATADB_LINK) between active data guard and report application database for reporting purpose.
    SQL> create database link DATADB_LINK connect to HR identified by hr using 'DRFUNPD';
    Database link created.
    But when I run a query using db link from my report application database I got this below error.
    ORA-01555: snapshot too old: rollback segment number 10 with name "_SYSSMU10_4261549777$" too small
    ORA-02063: preceding line from DATADB_LINK
    Then I check Active Data Guard database alart log file and get below error
    ORA-01555 caused by SQL statement below (SQL ID: 11yj3pucjguc8, Query Duration=1 sec, SCN: 0x0000.07c708c3):SELECT "A2"."BUSINESS_TRANSACTION_REFERENCE","A2"."BUSINESS_TRANSACTION_CODE",MAX(CASE "A1"."TRANS_DATA_KEY" WHEN 'feature' THEN "A1"."TRANS_DATA_VALUE" END ),MAX(CASE "A1"."TRANS_DATA_KEY" WHEN 'otherFeature' THEN "A1"."TRANS_DATA_VALUE" END )
    But the interesting point if I run the report query directly in Active Data Guard database, I never got error.
    So is it a problem of DB link between active Data Guard and other database?

    Fazlul Kabir Mahfuz wrote:
    My database version in 11.2.0.2.0 and OS is Oracle Solaris 10 9/10.
    I am facing a problem in my Active data guard Database for reporting purpose. Active Data guard information is as below.
    SQL> select name, database_role, open_mode from v$database;
    NAME DATABASE_ROLE OPEN_MODE
    ORCL PHYSICAL STANDBY READ ONLY WITH APPLY
    Problem detail is below
    I have created a db link (Name: DATADB_LINK) between active data guard and report application database for reporting purpose.
    SQL> create database link DATADB_LINK connect to HR identified by hr using 'DRFUNPD';
    Database link created.
    But when I run a query using db link from my report application database I got this below error.
    ORA-01555: snapshot too old: rollback segment number 10 with name "_SYSSMU10_4261549777$" too small
    ORA-02063: preceding line from DATADB_LINK
    Then I check Active Data Guard database alart log file and get below error
    ORA-01555 caused by SQL statement below (SQL ID: 11yj3pucjguc8, Query Duration=1 sec, SCN: 0x0000.07c708c3):SELECT "A2"."BUSINESS_TRANSACTION_REFERENCE","A2"."BUSINESS_TRANSACTION_CODE",MAX(CASE "A1"."TRANS_DATA_KEY" WHEN 'feature' THEN "A1"."TRANS_DATA_VALUE" END ),MAX(CASE "A1"."TRANS_DATA_KEY" WHEN 'otherFeature' THEN "A1"."TRANS_DATA_VALUE" END )
    But the interesting point if I run the report query directly in Active Data Guard database, I never got error.
    So is it a problem of DB link between active Data Guard and other database?
    Check this note which is applicable for your environment
    *ORA-01555 on Active Data Guard Standby Database [ID 1273808.1]*
    also
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:8908307196113

  • How to find the last run date of the report..

    please any one one help me
    how to find last run date of the report...
    for example if my report is zgrir...if i am exuted in last week
    if want to find when it executed
    last run date is req
    please any one help me...

    The trasaction stat is limited because i want all the execution date even if it is 3 years ago.
    I have tryied the transaction st03 but it is limited to 3 months ago.
    check transaction STAT and it's report RSSTAT00.
    U can copy RSSTAT00 into ZRSSTAT00 and modify corresponding.
    *& Report ZDSAP *
    REPORT ZDSAP .
    DATA: d_ref TYPE REF TO data,
    d_ref2 TYPE REF TO data ,
    i_alv_cat TYPE TABLE OF lvc_s_fcat,
    ls_alv_cat LIKE LINE OF i_alv_cat.
    TYPES tabname LIKE dcobjdef-name .
    parameter: p_tablen type tabname.
    data: begin of itab occurs 0.
    INCLUDE STRUCTURE dntab.
    data: end of itab.
    FIELD-SYMBOLS : <F_FS> TYPE table,
    <F_FS1> TYPE TABLE,
    <F_FS2> TYPE ANY,
    <F_FS3> TYPE TABLE.
    REFRESH itab.
    CALL FUNCTION 'NAMETAB_GET'
    EXPORTING
    langu = sy-langu
    tabname = p_tablen
    TABLES
    nametab = itab
    EXCEPTIONS
    no_texts_found = 1.
    LOOP AT itab .
    ls_alv_cat-fieldname = itab-fieldname.
    ls_alv_cat-ref_table = p_tablen.
    ls_alv_cat-ref_field = itab-fieldname.
    APPEND ls_alv_cat TO i_alv_cat.
    ENDLOOP.
    internal table build
    CALL METHOD cl_alv_table_create=>create_dynamic_table
    EXPORTING it_fieldcatalog = i_alv_cat
    IMPORTING ep_table = d_ref .
    ASSIGN d_ref->* TO <F_FS>.
    SELECT * FROM (p_tablen) INTO CORRESPONDING FIELDS OF TABLE <F_FS>.
    LOOP AT <F_FS> ASSIGNING <F_FS2>.
    *your code goes here.
    ENDLOOP.

  • Last Refersh date in Webi Report

    Hi All,
    I'm getting different last refresh date and time on the webi report(using drill down report). I am getting the right date on the main report,  wrong date showing on the sub report report.
    Could anyone advise me ASAP?
    Regards,

    Hi,
    Thanks 4 reply, main report is showing correct 'Last refresh Date' but Sub Report showing a day ahead (Ex. if refresh the report today its showing 7th July,but the sub report showing 8th July. as 'last refresh date').i already refreshed the drill down report, but its still showing 8th July, its really strange.
    Regards,

  • Opportunities Report - Last Activity Date ?

    Currently we use the Opportunities Report to generate data on the pipeline for each of our sales people.  We record each sales touch to a lead by recording an activity from the open opportunity.  We review our open pipelines and also the marketing touches that each rep performs within the opportunity.  We track open pipeline total activities weekly.  
    When we review the summary data presented by the Opportunities Report we are searching for a way to pull the last closed activity date for that opportunity.    
    Is anyone aware of a report that is available to service this need and or....does someone have a query to perform this need.
    Any help would be appreciated........
    Thanks, Dan

    Hi Dan,
    I don't have a query, but, as a quick pointer:
    The activities table (OCLG) contains a field OPRID which you can use to link the activities to the opportunity. You can the use a MAX function to pull the activity with the last date for the opportunity?

  • Last Activity Created Month in reports

    Hi Experts,
    Need to find the last activity created month with a particular value for an account in reports.
    Didn't find any activity metrics for that.
    Is there any work around for this.
    Thanks in advance.
    Lemu

    Hi Lemu,
    It's not clear if your question is with getting the last activity or extracting the month? From the Activities subject area you can filter on Accounts to see all activities for a particular account. To see the Created Date month, expand the Activity: Created Date dimension to expose the Calendar Month / Qtr, etc.
    You can use the RANK function (RANK("- Created Date".Date)) to replace the date value with a rank number, where 1 is the most recent date. You can then filter on this field to just get the most recent activity (RANK("- Created Date".Date) = 1).
    If you need to get the Month from a date field that is not an expandable dimension, then you can use the conversion function Month or MonthName (MONTHNAME("- Created Date".Date)).
    Hope that helps!

  • Last executed date for a report

    Hi,
    I have to find out the last executed date of set of reports/programs. Please let me know how to get that information. Is there any table wherin I can give the list of reports and download the output?
    Thanks,
    Raj.

    HI,
    Check transaction STAD.
    There you can specify user, transaction or program and a time frame.The question will be, how long do you keep statistics in your system...
    Regards
    Kiran

  • Last Consumption & Last receipt date logic

    Hi
    I am facing some issue while developing BI Stock report where user wants last consumption date & last receipt date in the report.
    But issue is that when i am going to develop BI query how can i differentiate date for both consumption & receipt because consumption & receipt has differentiate with movement type (suppose Mov type : 101 is for receipt & 261 is for consumption then if i use exceptional aggregation and put last value & reference char as Mov type then all 101 & 261 mov type data will come.
    Please guide for developing last consuption & last receipt date logic
    Regards,
    Gaurav

    Hi Anshu
    Thanks for your helpful reply.
    This is my last option as you suggested. But i will share you my concern that i have developed report on 0IC_C03 & in our business scenario, If i change ETL Structure then we need to delete target data, & we have millions of records if i reconstruct the data then it will take 4-5 days times. Also, some times our marker is interrupted then we need to again the same activity so i want to avoid the same activity in Workbench side and do all required changes in BI Query side.
    Can we use customer variable for time characteristics for the same issue.
    If there is any other idea in your mind, Please share.

  • To find the latest active date in case if any gap occurs

    Hi Experts,
               I've to find the active date if employee is on leave, any kind, and joined again.
               Is there any FM exist to find out the last active date before the gap??
    Regards,
    Jyoti Shankar

    It would be worth chatting to someone functional in the HR area of the company that you are trying to do this for, as there are many different ways that have been implemented at different sites to say when exactly an employee started/finished.
    Many companies will use IT0041 rather than relying on IT0000 because of the payroll complications that occur with making changes to IT0000 - not to mention that it is rare that a company has been on SAP HR so long that the IT0000 start dates actually reflect employee hire dates (normally a large part of them will reflect system cut-over date).
    Also, many companies have taken the approach of using a new employee number when a person re-joins the company and just using a reference personnel number to copy the common data. In this case using IT0000 is not very useful.
    Like was mentioned above, you're going to have to code something yourself, but it's worth finding out what the local processes for your company are first!
    Hope this is helpful,
    Chris

  • Last GR Date

    Hi !
    Two questions regarding Last GR date:
    1. We need to display the Last GR date on a report. Is this date stored in any table from where it could be readily read? Or, do we need to scan through MSEG for movement 101 to determine this date?
    2. What is the best strategy to bring over the last GR date from the legacy system at the time of cutover?
    Thanks!
    Anisha.

    Hi Anisha,
    Study through EKBE table, should give you the details as well. Yes MSEG table is a good place to get the info, just ensure that for a given 101 mvt document, there is no cancellation & also check for the posting date in descending order, should give you the latest receiving date.
    Also refer to ME2M, ME2N, ME2L, with appropriate value in the field Selection Parameters on the input screen eg: WE101, to get the output as needed.
    Hope the above helps.
    Regards,
    Vivek

  • Need formula in my subreport to get last month date - CR XIr2

    Post Author: olesco
    CA Forum: Formula
    I need to pass the value (#of units) from the subreport to the main report u2013 I know how to do that but my problem is I donu2019t know what formula should I put in my subreport  to get last month date.
    Both main report and subreport have a date parameter (Field link - {?DatePrompt}. What I need is when I fill in the current month date to the main report the subreport should process the last moth date.
    Main report u2013 Date Range (2007-10-1) (2007-10-31) - result  #of units = 22
    u201CRecord Selection Formula Editor
          DateRecd = {@DatePrompt} &#91;i.e. current month&#93;
    Subreport u2013 should have data from last month - result  #of units = 25
    u201CRecord Selection Formula Editor
          DateRecd < {@DatePrompt} &#91;last month&#93;   ??????
    There are   22 3 units this month and   25  units last month.
    Any help is greatly appreciated.

    Post Author: SKodidine
    CA Forum: Formula
    DateRecd in dateadd('m',-1,minimum({@DatePrompt})) to dateadd('m',-1,maximum({@DatePrompt}))

  • Last execution date

    Hi SAP Minds,
    How can we find out the last execution date of a report? Is there any F.M available to serve this, or any system tables are there?
    Please help me out.
    Thanks in advance.

    Vamsi,
    check the below t codes and tables...
    Table TRDIR
    tcode SM22
    ST03N Transaction
    try this program RSSTAT20
    Definetly u will find the info

  • Update Last Changed Date when attaching a Document to Opportunity/Activity

    Hi my CRM peers,
    we have the requirement to update the last changed date of the one order object (Activity, Lead, Opportunity) when a user attaches a document to the object. Has anyone solved this requirement?
    Best regards
    Gregor

    Hi Stephen,
    what do you think about using the SEARCH_DOCUMENTS method of CL_CRM_DOCUMENTS to get the documents uploaded during the last day. I fill the table IT_QUERY_PROP is filled to search for the Documents Created starting yesterday:
    Query:
    IT_QUERY_PROP[1]
      PROP_NAME      CREATED_AT
      SIGN           I
      OPTION         BT
      LOW            20100217000000
      HIGH           99991231235959
    And I get this result:
    LT_SRES[1]
      OBJTYPEP       P
      CLASSP         CRM_P_ORD
      OBJIDP         DF1C76C7D7D02BF1ABA8005056857C4E
      OBJTYPEL       L
      CLASSL         CRM_L_ORD
      OBJIDL         DF1C76C7D7D02AF1ABA8005056857C4E
      RANKV          05000
      DOCREFER       0000000001
    When I now use the WHERE_USED method I can find the Business Object where this document is attached to by filling the
    IS_IO parameter:
    IS_IO
      OBJTYPE                        P
      CLASS                          CRM_P_ORD
      OBJID                          DF1C76C7D7D02BF1ABA8005056857C4E
    Now my follow up question is: How can I update the last changed date of the document without changing any data?
    Best regards
    Gregor

  • Last recorded activity in an opportunity

    Hello all,
    I need to run an activity report, but the request is to only show the last activity that has happened.
    I want to filter out everything except the last activity.
    Any ideas on how I can accomplish that?
    Thanks in advance!!

    RANK(Activity."Completed Date")=1
    When I tried to do that on the formula I received an error:
    [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <=>: Syntax error [nQSError: 26012] . (HY000)
    SQL Issued: SELECT Account."Account Region", Activity."Completed Date", Opportunity."Sales Stage", Opportunity.Name, Opportunity.PICK_7, RANK(Activity."Completed Date")=1 FROM "Activity Lists (RTO5)"
    OK (Ignore Error)
    I am pulling all the active opps in two territories, so there will be maybe 100 opps total. I need to be able to pull the last activity done on each opportunity.

Maybe you are looking for