Report for last date of an activity

I'm running Crystal Server / Designer 2008 in conjunction with SAP Business One.  I'm trying to create a report that will list all of my customers that have not been seen in the past 90 days.  I have two tables that this report needs to be generated from for this.  The first is the customer table.  The second is the customer activity table.  My problem lies in two areas.  Anytime I set an activity type I'm searching for and there is not one it eliminates the customer from the list.  The second has to query the date and if there hasn't been someone to see the customer in more than 90 days it eliminates them there too.  Below are a few examples of what I'm trying to explain.
Customer A
No Activities in second table
Customer dropped from list
Customer B
No Activities of the type I'm looking for
Customer dropped from list
Customer C
Activities present but more than 90 days old
Customer dropped from list
Customer D
Activities less than 90 days old
Customer stays on list but need to hide it since they have been there oin the past 90 days.
To try to summarize I want to create a report of the cautioners our sales team have not been to see in the past 90 days.
Any direction would be appreciated.
Thanks,
Thomas

Something that might make Jason's #4 step easier to swallow:  Leave the tables there, save the changes in the database expert, then modify all of the formula fields, summaries, etc. to use the fields from the command instead of the tables.  The Field Explorer will not show a green checkmark on the table fields once they have all been changed.  Then go back into the database expert and drop the tables.
You will find that by doing it this way, much of your formatting, etc, can be preserved.  Virtually every instance of a table field use can be replaced by the command field's use without effecting any formatting changes.  (Fields directly on the report, and the number of decimals on summary fields are the only two places where I noticed format info was not retained.)
Some hints:  Summary fields on the report can be changed by right-clicking on the field and selecting Change Summary.  Change the field being summarized in the pop-up.  Groups can have the field changed by going into the Group Expert, selecting the field in the Group By: pane, pressing the Options button, and changing the referenced field.  This will keep all of the group formats and their fields and formulas (like suppression).  The formula fields are easily changed by pressing Control-F (Find) and doing a Find and Replace to substitute field names.  Lastly, if the SQL Command field names are the same as the table field names, you only have to change the "table qualifier" in all of your formulas, which can change several different field references with on Find and Replace.  (I just had to switch about a dozen reports from using Stored Procedures to using SQL Commands - which Crystal doesn't like to handle with the Change Data Source Location functionality - using this technique, and it took me less than an hour per report.  And the reports weren't trivial...)
HTH,
Carl

Similar Messages

  • STAD Report for last month

    Hi,
       Iam getting stad report for last one week,iam not getting the stad report for last month.i want to get stad report for particular day in last month.how to rectify the same.
    Thanku

    Hi,
    rsau/local/file /usr/sap/LID/DVEBMGS00/log/
    you will have to set DIR_AUDIT parameter instead of it.
    Set the following parameter with reference value:
    Parameter                                  Description                                   Reference Value
    DIR_AUDIT                  Directory for security audit files          S:\ECP-AUDIT\ECP\DVEBMGS00\ECP_security_audit_log
    FN_AUDIT                  Name of security audit file                   ECP_AUDIT_++++++++.AUD
    rsau/enable                  Enable the Security Audit Log                       1
    rsau/max_diskspace/local       Maximum space for security audit file                 2147483647
    rsau/max_diskspace/per_day  Maximum size of all security audit files per day            (If you wish, otherwise let it be default '0')
    rsau/max_diskspace/per_file      Maximum size of one single security audit file             (If you wish, otherwise let it be default '0')
    rsau/selection_slots              Number of filters to allow for the Security Audit Log            (If you wish, otherwise let it be default '2')
    rsau/user_selection              Defines the user selection method used inside kernel functions         (If you wish, otherwise let it be default '0')
    activated profile in sm19,still iam not getting audit log for last week in sm20.
    After Proper setting of Security Audit log parameters, the Application Server needs to be restarted to make the changes effective. You will only get the Audit Data since the activation of valid Security Audit parameter.
    Regards,
    Bhavik G. Shroff

  • Want to schedule WebI report for End date of Prior Month

    Hello Experts,
    We have WebI report created on top of Bex Query, We have key date as prompt for the report. Can we schedule the webi report for key date as last date of prior month, so if current month is February, my key date should be Jan 30 2011. I am not sure if this is possible?
    Thanks,
    Ravi

    You need to apply two FM to get the end day of the month.
    First you need to apply FM MONTHS_PLUS_DETERMINE. This will give you the date after 3 months.
                CALL FUNCTION 'MONTH_PLUS_DETERMINE'
                  EXPORTING
                    MONTHS        = 3   " << for 3 months
                    OLDDATE       = l_start_Date   " << 12/01/2007
                 IMPORTING
                   NEWDATE       = l_3_Date. " << 02/01/2008
    Then call the FM RP_LAST_DAY_OF_MONTHS . this will give you the end date of the month
      CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
        EXPORTING
          day_in            = l_3_Date  " << 02/01/2008
        IMPORTING
          last_day_of_month = l_3_Date  " < 02/29/2008
        EXCEPTIONS
          day_in_no_date    = 1
          OTHERS            = 2.
    Call both FMs again to get your another date(after 4 months).
    Regards,
    Naimesh Patel

  • Queries Report For Last Purchased Price

    Dear All,
    Can someone helps me to get queries report for last purchased price vs new purchase price that recently being enter on purchased order.
    Trigger by purchased order document posting and we can choose % variance
    Report by order :
    No. Document PO ; Vendor code ; Vendor Name ; Doc Posting Date ; Item code ; Item Name : New Purchased price ; Last Purchased Price; Variance; Buyer Name
    i will used it on alert management.. each time there % variance automaticaly sending an email with those report.
    Thanks

    So.. is it the right query if i join it?:
    SELECT T0.DocEntry, T1.CardCode, T1.CardName, T1.DocDate, T0.ItemCode, T0.Dscription, T0.PriceBefDi, T2.LastPurPrc, (T0.PriceBefDi - T2.LastPurPrc) AS Variance, ((T0.PriceBefDi - T2.LastPurPrc)/T0.PriceBefDi) AS 'Variance%', T3.SlpName FROM POR1 T0 INNER JOIN OPOR T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T0.ItemCode = T2.ItemCode INNER JOIN OSLP T3 ON T0.SlpCode = T3.SlpCode
    select * from opor where month(docdate) = MONTH(GETDATE()) and Year(docdate) = YEAR(GETDATE())
    But i still find document with last month posting include on the report adn the report became different too

  • How to make report for last 24 hours?

    Hello,
    I have a little problem, I can't make report for last 24 hours.
    Example:
    If I am running report on 2.1.06 at 14:00, I want to get results from 1.1.06 14:00 to 2.1.06 14:00.
    How do i make a report with this selection?
    Because,if I choose date from 1.1.06 to 2.1.06 and
    hour 14:00 to 14:00, I will only get results on 1st and 2nd on 14:00.
    If I choose 1.1.06 and 2.1.06, 14:00 to 24:00, I won't get results for 2.1.06 from 0:00 to 14:00.
    Because all selections use AND to get results.
    How can I choose that system compare selections with OR?
    How can I get results for last 24 hours?
    Best regards,
    Uros

    Hi,
    define a structure in your query with two entries. First one with 1.1. and > 14:00 and second one with 2.2. and < 14:00. Perhaps you need to fill the structure by user exits.
    Hope it helps,
    Leo

  • I need the Log Report for the Data which i am uploading from SAP R/3.

    Hi All,
    I am BI 7.0 Platform with Support Patch 20.
    I need the Log Report for the Data which i am uploading from SAP R/3.
    I extract the DATA from R/3 into BI 7.0 DSO where I am mapping the GL Accounts with the FS Item.   In the Transformation i have return a routine on the FS Item InfObject . I am checking the Gl code into Z table for the FS Item .
    I capture the FS item from the Z table then update this FS item to Infobject FS item.
    Now i  need to stop the Data upload if i do not find the GL code in the Z table, and generate report for all GL code for which the FS item is not maintained in the Z table.
    Please suggest.
    Regards
    nilesh

    Hi.
    Add a field that you will use to identify if the GL account of the record was found in the Z table or not. Fx, create ZFOUND with length 1 and no text.
    In your routine, when you do the lookup, populate ZFOUND with X when you found a match (sy-subrc = 0) and leave it blank if you don't find a match. Now create a report filtering on ZFOUND = <blank> and output the GL accounts. Those will be the ones not existing in the Z table, but coming in from your transactions.
    Regards
    Jacob

  • AP Invoice Aging Report for past date

    hi guys,
    I am running R12.
    my requirement is to run AP invoice aging report for past dates (same like AP Trial Balance Report), but the seeded invoice aging report has no option to do so.
    would appreciate some help
    thanks in advance
    Ravi

    Hi Senthil,
    I am running R12.
    my requirement is to run AP invoice aging report for past dates (same like AP Trial Balance Report
    if u have any solution to this , please suggest me how to resolve this requierement.
    thanks in advance
    Ravi
    mail:[email protected]

  • How to take a report for the assigned transaction and activity in a role

    Hi Colleagues,
    I want to take a report for the assigned transaction with activity for all roles, which are assigned to the users,
    Transaction list for a role i can able to take it from SUIM but not able to take the ACTVT for the role.
    Please suggest how to take this information.
    BR,
    Jai

    Hi Jaikumar from the post :
    I think you have reached the state of finding the USER to ROLE relationship
    Take the output to an excel,
    COPY just the roles column exactly in order do not rearrange , use AGR_1251 like other experts have mentioned
    insert the roles copied from you buffer and execute, the output will have multiple entries for each role take the output to an EXCEL again , make it unique and match the outputs between both the EXCELS.
    It will be a little tricky to do this, but I think you are proficient in MS EXCEL.
    This is one of the ways to do , there are many other ways to do it.

  • How to take unreconcilled transactions report for a date range ?

    hi all,
    How to take unreconcilled transactions report for a
    data range ?
    we have taken unreconcilled transactons from
    external reconcillation using filter option mentioning
    range of dates,But when we take print out using PLD,
    it showing unreconcilled transactions for all dates.
    But our client requires it as a standard report from SAP ?
    Our client is using SAP B1 2005B PL39.
    Jeyakanthan

    Hi
    Financials -> Financial Reports -> Accounting -> General Ledger.
    In the 'Display' dropdown select, 'Unreconciled' .
    Hope this should help you.

  • Configuring reports for express data(2)

    We are in the process of configuring reports for express data.
    In this regard we have done the following steps:
    1.In the machine A reports 9i developer suite release 2 has been installed on Windows 2000
    Professional Edition with the following utilities - (a) Oracle Reports Builder and runtime
    support,(b) Oracle Express Connection Editor and (c) Oracle SNAPI are installed.
    2.Express Server 6.3.4 has been installed on Windows 2000 Professional Edition in machine
    B with Remote Operation SNAPI 6.3.4.0.
    3.Oracle 8i has been installed on Solaris and the Express Support Administrator and User
    Accounts have created and the xrb_admin.sql and xrb_user.sql have been run through the
    respective accounts.
    Queries
    1.We have still not run the Express Oracle8 External Procedures on the Oracle8
    gateway. Should we run this in order to get Express Data in Reports9i incase of the General
    Maintenance where the Express data fetches the data from the Oracle8 gateway on the fly
    ?We are also not able find the Express Oracle8 External Procedures downloads after
    extensive search on OTN.Please guide as to where can we find the downloads.
    2.What are the configurations settings that have to be done in the tnsnames.ora,sqlnet.ora
    and listener.ora ?

    Ramakrishnan,
    Express connectivity for Oracle9i Reports is installed by default as one of your pluggable data sources and it communicated directly with Express, which is a large change over Reports 6i in which you needed an Oracle8i database to talk to the Express database.
    For Oracle9i Reports, you need to have:
    1 - Express installed 6.3 or later.
    2 - Oracle9i Reports
    3 - The connection dialog (which is documented in the release notes if you need to set this up)
    That's it. When you click on the Express PDS to access the data, it will read the connection dialog information and you need to supply the logon information to the Express database.
    You should also look at the help topic for Express and you will find all the necessary documentation on configuring Reports and how to connect.
    Regards,
    The Oracle Reports Team jls

  • Configuring reports for express data

    I am trying to configure reports for express data and in this regard I have done the following :
    1.Machine A having reports 9i Developer suite Release 2 and Pluggable Express Connection Editor
    installed on Windows 2000 professional.
    2.Machine B having which Express Server 6.3.4 installed on Windows 2000 professional.
    3.In Machine A created user OESDBA with Administrator privilige.
    In the reports I am able to connect to the Express Server and attach the database and choose the
    measure.Once all the other steps are done I am able to print the data on the reports.
    But if I use a parameter form in which I give the HOST,USER and PASSWORD then substitute the
    same in the express_server parameter value in the AFTER PARAMETER FORM trigger block then
    the report gives an error saying that
    Express query contains incorrect,missing or damaged information.
    How to solve this error ?
    Can any one help me out.

    Ramakrishnan,
    Express connectivity for Oracle9i Reports is installed by default as one of your pluggable data sources and it communicated directly with Express, which is a large change over Reports 6i in which you needed an Oracle8i database to talk to the Express database.
    For Oracle9i Reports, you need to have:
    1 - Express installed 6.3 or later.
    2 - Oracle9i Reports
    3 - The connection dialog (which is documented in the release notes if you need to set this up)
    That's it. When you click on the Express PDS to access the data, it will read the connection dialog information and you need to supply the logon information to the Express database.
    You should also look at the help topic for Express and you will find all the necessary documentation on configuring Reports and how to connect.
    Regards,
    The Oracle Reports Team jls

  • Report for last seen machines

    I'm trying to build a report to show all Serial numbers of machines, machine name, Top console user and when the machine last connected to the domain.
    I have the first 3 sorted and working but I don't know what variable i'm looking for when trying to add a last logon.
    I did add the additional attribute for the active directory discovery management for last logon but when that runs it gives me some stupid number like 3213201930219312 instead of a date/time.
    The query I'm using at the moment is: 
    SELECT     dbo.v_R_System_Valid.Netbios_Name0, dbo.v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP.TopConsoleUser0, dbo.v_GS_SYSTEM_ENCLOSURE.SerialNumber0, 
                          dbo.v_R_System.lastLogon0
    FROM         dbo.v_R_System INNER JOIN
                          dbo.v_R_System_Valid ON dbo.v_R_System.ResourceID = dbo.v_R_System_Valid.ResourceID INNER JOIN
                          dbo.v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP ON dbo.v_R_System.ResourceID = dbo.v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP.ResourceID INNER JOIN
                          dbo.v_GS_SYSTEM_ENCLOSURE ON dbo.v_R_System.ResourceID = dbo.v_GS_SYSTEM_ENCLOSURE.ResourceID
    Any ideas?

    So that AD attribute is store in milliseconds (if I remember right) since Jan 1 1970. You will need to convert this to a date time format. The first thing to do is confirm the AD attribute's type and meaning then you should be able to find some query to
    convert it into a date and time.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Does CPS Provide Report for Last Time Page was modified?

    Can someone who uses Adobe Contribute Publishing Server tell me if it will provide a report or some sort of log that I can run and get a list of all the dates pages were last published?
    We would like this report so we can pinpoint users who haven't updated in awhile and notify them to update.
    Thanks.

    That's what I needed to know.
    In the meantime I did learn that you can create a folder on the desktop called ctnetperformancelog and it will log all activity in Contribute.  I was able to do that and I am now getting useful data that I can use with a little bit of work to pull out what I need.
    Dreamweaver doesn't meet my needs because the recently modified date changes every time I update a template.  So it doesn't necessarily reflect the actual last date the page was modified. I want to know the last date one of my users edits a page and then sends it to me to publish.
    I am not going to do with CPS at this time because I think my Contribute logs are good enough.
    Thanks for responding. 

  • Error while pulling report for particular dates

    hi
    i am trying to fetch report for the first quarter in incident management --> incident analyst i got an error the below error:
    On in-depth analysis i found out that this error occurs in the month Jan and Feb 2014 hence i am not able to pull the complete report of quarter. Kindly help me to resolve this issue.
    Date: 14-04-2014 15:13:11
    Application: System Center Service Manager Console
    Application Version: 7.0.6555.0
    Severity: Error
    Message: An error has occurred during report processing.
    System.Exception: An error has occurred during report processing. ---> System.Exception: Query execution failed for dataset 'Data_Incidents'. ---> System.Exception: For more information about this error navigate to the report server on the local server
    machine, or enable remote errors
       --- End of inner exception stack trace ---
       --- End of inner exception stack trace ---
       at Microsoft.Reporting.WinForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream outputStream, String& mimeType, String& fileNameExtension)
       at Microsoft.Reporting.WinForms.ServerReport.InternalRender(Boolean isAbortable, String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension)
       at Microsoft.Reporting.WinForms.ProcessingThread.ProcessThreadMain(Object arg)
    System.Exception: Query execution failed for dataset 'Data_Incidents'. ---> System.Exception: For more information about this error navigate to the report server on the local server machine, or enable remote errors
       --- End of inner exception stack trace ---
    System.Exception: For more information about this error navigate to the report server on the local server machine, or enable remote errors
    Micheal Nishit

    Hi All,
    Any pointers or suggestions for this issue ??
    Is there a setting/option avialable in CMC which could resolve these errors.
    Or, user has to login once to infoview in all circumstances to avoid these errors.
    Thanks,
    Chandra

  • Report for a date range

    Hi,
    My end user requires me to develop a report that will accept the following parameters:
    Customer Code : ABC
    From Period : 01-Jan-2005
    To Period : 31-Dec-2010
    Output must be as follows :
    Customer Jan-05 Feb-05 Mar-05 Apr-05 May-05 ......................................Dec-10 Total Order
    Code
    ABC 10 15 5 20 10 ...................................... 15 X value
    I have told my end user that it is not possible to create an Oracle report that will give data for any period range that the user specifies. First the number of columns for the date range must be fixed like say at a time only data for 12 months will be displayed in the report. Then they can run the report for any year and the parameter has to be
    Customer Code : ABC
    Year :2005
    The output will be :
    Customer Jan-05 Feb-05 Mar-05 Apr-05 May-05 ......................................Dec-05 Total Order
    Code
    ABC 10 15 5 20 10 ...................................... 15 X value
    Am I right or wrong ? Please advise. This is very urgent.

    I don't see why this should not be possible.
    Remember that you can have repeating frames in every direction (ie. right and down) and can combine these.
    What I would do is look for (or create) a type of calender-table where I could select the date values from (ie. JAN 05) qualified by the from- and to-Parameters (aka query1),
    then have a second, dependent query which uses the date from the calender (aka query2).
    Then stack a down repeating frame for query2 into the right repeating frame for query1 and you should be almost there... Use the date from query1 as heading...
    Cheers,
    Jens Rettig

Maybe you are looking for

  • Internet explorer hangs, slow to load. Systen slow as a whole. Last HP product I will ever purchase.

    I have (and regret purchasing) an HP Pavillion P2-1123W Running Win 7 64 bit. I bought new and at the time the only installation I did was Microsoft office pro. Loaded my printer software. I first has issues with the printer software. Win 7 did not l

  • Cs3 framescript problem vista

    hi, i've got cs3 design premium running on 32 bit vista and i'm having a number of issues with flash and particularly actionscript framescripts. when i create the script on the first frame of the timeline and try to type, the line-number column becom

  • How to connnect my ipad to HP printer 6520

    I would like to know how to print from my Ipad Air using my HP printer-6520. This question was solved. View Solution.

  • Manually updating songs

    I only want certain songs on my ipod because my husband and I both have one and I don't want some of his songs on my ipod. I tried automatically updating from just my own playlists per the help instructions but after updating it still has all the son

  • Chat doesnt work on Nokia C3 after update

    hi, my chat wont work after the latest update, I updated it through wifi. When i try to open the Nokia Chat, it says "Application not Found" What must I do to get it back to work? Thanks.!