Report not  retrieving data

Hi Friends,
I have a problem with retrieving data from Crystal Reports. I have three parameters to get the records from OINV and INV1.
The frist two is 'from date' and  'to date' for the DocDate. The third one is for getting Sales Employee and has to be selected based on 'like' condition. I am able to fetch the records based on dates; but not when i select sales employee.
Following is the query from the Crystal Report, which is working perfectly fine when i run it on the SQL server.
  SELECT "OINV"."DocDate", "OINV"."DocNum", "OINV"."CardCode", "OINV"."CardName", "INV1"."ItemCode", "INV1"."Dscription", "INV1"."Quantity", "INV1"."PriceBefDi", "INV1"."DiscPrcnt", "OSLP"."SlpName", "OINV"."U_Commission"
FROM   ("JELLYCAT_LIMITED (Training)"."dbo"."OINV" "OINV" INNER JOIN "JELLYCAT_LIMITED (Training)"."dbo"."OSLP" "OSLP" ON "OINV"."SlpCode"="OSLP"."SlpCode") INNER JOIN "JELLYCAT_LIMITED (Training)"."dbo"."INV1" "INV1" ON ("OINV"."OwnerCode"="INV1"."OwnerCode") AND ("OINV"."DocEntry"="INV1"."DocEntry")
WHERE  "OSLP"."SlpName" LIKE N'%JC%' AND ("OINV"."DocDate">={ts '2009-01-01 00:00:00'} AND "OINV"."DocDate"<{ts '2010-01-01 00:00:00'})
ORDER BY "OSLP"."SlpName"
The formula syntax i gave for sales employee was - {OSLP.SlpName} like "%" + LTRIM({?SalesEmployee}) + "%"
Any help would be great.
Thanks & Regards
Shiva

Hi Shiva,
Try this,
SELECT T0.DocDate, T0.DocNum, T0.CardCode, T0.CardName, T0.U_Commission,
T1.ItemCode, T1.Dscription, T1.Quantity, T1.PriceBefDi, T1.DiscPrcnt,
T2.SlpName
FROM OINV T0
INNER JOIN INV1 T1 ON T1.DocEntry = T0.DocEntry
INNER JOIN OSLP T2 ON T0.SlpCode = T2.SlpCode AND T0.OwnerCode = T1.OwnerCode
WHERE
T2.SlpName = '[%0]'
AND
T0.DocDate>= '[%1]'
AND
T0.DocDate=< '[%2]'
ORDER BY
T2.SlpName
OR
SELECT T0.DocDate, T0.DocNum, T0.CardCode, T0.CardName, T0.U_Commission,
T1.ItemCode, T1.Dscription, T1.Quantity, T1.PriceBefDi, T1.DiscPrcnt,
T2.SlpName
FROM OINV T0
INNER JOIN INV1 T1 ON T1.DocEntry = T0.DocEntry
INNER JOIN OSLP T2 ON T0.SlpCode = T2.SlpCode
WHERE
T2.SlpName = '[%0]'
AND
T0.DocDate BETWEEN '[%1]' AND '[%2]'
ORDER BY
T2.SlpName
Regards,
Madhan.

Similar Messages

  • Report not displaying data from one of the infoproviders

    Hi Experts,
    Issue: Report not displaying data from one of the infoproviders
    I have a report 'ReportA' which has multiprovider MP1 as the source.
    MP1 has two Infocubes IC1, IC2 in its design.
    Now, when i execute the report, data from IC1 is displayed. But no data from IC2 is displayed.
    Is there a setting i need to enable in MP1 ? or is there anything else that needs to be enabled ?
    Please reply.
    Regards,
    Suraj S Nair

    Hi All,
    When i display data directly from the multi provider, without any restrictions, i cannot view the data from infocube IC2.
    I feel its not an issue with the Query. It must be a problem with the setting in the Multiprovider MP1.
    Infocube IC2 is a copy of Infocube IC1. Multiprovider MP1 first only had IC1 in its design. It was recently IC2 was also included.
    I checked the Characteristics, all of them are assigned corectly.
    Now, this issue sure has something to do wiht the setting of Multiprovider or please correct me if wrong.
    Regards,
    Suraj S Nair

  • Submit MC.9 does not retrieve data in background processing.

    Hi,
    Im submitting transaction MC.9 in one of my programs. The submit statement seems to retrieve data when the program is run in the foreground, but when the program is scheduled to run in the background the submit statement does not retrieve data.
    kindly advise,
    regards.
    Message was edited by:
            sheldon barretto

    Hi Tushar,
    Thanks for ur reply.
    I tried wat you asked to, but no spool was generated for the job. In SM37 it says that the Job (RMCB0300) is completed, but theres no spool list entry.
    Does it mean i cant run MC.9 in background.
    regards,
    Message was edited by:
            sheldon barretto

  • Can not retrieve data in Crystal Report

    Hi,
    I have a problem to load data from <i><b>Crystal Report</b></i> in an SBO form with the ActiveX DI object : the Crystal Report Viewer message display : <b><i>'Failed to retrieve data from the database. Details [Database Vendor Code:208]'</i></b>
    It seems do not change the name of database in SQL Crystal Report query : My SQL query in Crystal Report file is a generic query : it must run with all custom database with the same datatable ; so the database name in FROM  clause must be change with the SetLogonInfo : but it do not run !
    Have you an idea ?
    Francis
    Here my code :
    Public Class frm_CRViewer
    ' Adding References of project : CRAXDRT and CrystalActiveXReportViewerLib11
    Private WithEvents MRO_CRV As
    CrystalActiveXReportViewerLib11.CrystalActiveXReportViewer
    Public Sub New()
    Dim msa_Form As SAPbouiCOM.Form
    Dim dsa_ActiveX As SAPbouiCOM.ActiveX ' Item <ActiveX> from form XML
    dsa_ActiveX = msa_Form.Items.Item("axCRV").Specific()
    dsa_ActiveX.ClassID = "CrystalReports11.ActiveXReportViewer.1"
    MRO_CRV = dsa_ActiveX.Object
    ' Create the crystal application
    Dim dob_ReportApp As New CRAXDRT.Application
    ' Open the report
    Dim dob_Report As New CRAXDRT.Report
    dob_Report = dob_ReportApp.OpenReport("c:MyTest.rpt")
    ' Defined to log on to the data source, and change the database name in FROM clause
    Dim dob_Table As CRAXDRT.DatabaseTable
    For Each dob_Table In dob_Report.Database.Tables
         dob_Table.SetLogOnInfo("192.168.2.10", "AeroOneDemo", "sa", "45dfrfg5")
    Next
    ' The report have a parameter in the sql query
    dob_Report.ParameterFields.Item(1).DiscreteOrRangeKind = CRAXDRT.CRDiscreteOrRangeKind.crDiscreteValue
    dob_Report.ParameterFields.Item(1).AddCurrentValue("15")
    ' Display the report in SBO form
    Title = pst_ReportName
    MRO_CRV.ReportSource = dob_Report
    MRO_CRV.ViewReport()
    End Sub
    End Class

    Try these ...
    <a href="http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2002650&sliceId=&dialogID=7002531&stateId=1%200%207004328">http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2002650&sliceId=&dialogID=7002531&stateId=1%200%207004328</a>
    or
    <a href="http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2000957&sliceId=&dialogID=7002728&stateId=1%200%207004460">http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2000957&sliceId=&dialogID=7002728&stateId=1%200%207004460</a>
    or
    <a href="http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2001075&sliceId=&dialogID=7002728&stateId=1%200%207004460">http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2001075&sliceId=&dialogID=7002728&stateId=1%200%207004460</a>
    or
    [url=http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2003637&sliceId=&dialogID=7002728&stateId=1%200%207004460]http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2003637&sliceId=&dialogID=7002728&stateId=1%200%207004460[/url]

  • Can not retrieve data source status

    I have 3 DPS (6.3) running fine with 3 (6.2) DS downstream, running fine as well, on RHAS 4 U4 .
    I don't understand why the DPS console always report it can not retrieve the data sources status. I checked the DS access logs, and I see each DPS
    default monitoring request (on the "" DN) every 30 seconds, which returns one entry, and no obvious error in any DPS or DS error log .
    Any idea ?

    Hi,
    it looks like a a known problem to me that may appear in the following situation:
    In somes cases, the proxy and the DSCC (console) uses different hostnames: For instance, the proxy may be registered to the admin framework as myhost.sun.com and the proxy itself may use only myhost. Operation status is exposed by the proxy as an LDAP entry with dn cn=myhost,.....,cn=monitor. When there is a naming mismatch, the console search for cn=myhost.sun.com,...., cn=monitor and can't find the entry, so the status is unknown.
    Don't know if you are in this situation but it might worth checking this.
    Hope this helps
    -Sylvain

  • SSRS report not displaying data in correct order

    Guys,
    I have a SSRS 2012 report not displaying returned records from SQL in the correct order.  Running the stored procedure in SSMS and supplying the parameter values returns the data correctly and running Query Designer in SSRS using the stored procedure
    on the dataset in question, likewise returns the data correctly.  Only when I run the actual report does the data display incorrectly(always last name order).  I've done similar reporting using very similar stored procedures and I've never had this
    problem.  Below is the stored procedure.  "@SortBy" is the parameter with the sorting value. 1=Due Date; 2=Denial Amt and 3=Last name and is passed by SSRS to SQL.  Wish I could supply screen shots.  
    Thanks for any help,
    Dave
    ALTER PROCEDURE [dbo].[RAC_PT_List]
    @Level as int,
    @SortBy as int,
    @PTLName as varchar(30) = NULL,
    @User as varchar(10) = NULL
    AS
    SELECT pat.headerID,
    pat.PT_LName + ', ' + pat.PT_FName AS PTName,
    pat.PT_AcctNo,
    rco.RCO_CLMREF,
    rco.RCO_AppealLevel,
    rco.RCO_LevelNo,
    rco.RCO_AuditorStatus,
    let.LET_DEN_DueDate,
    CONVERT(varchar(12),let.LET_DEN_DueDate) as DueDate,
    let.LET_DEN_Dollars,
    let.userID
    FROM Master_PT_List pat
    INNER JOIN Master_RCO_Work rco on RCO.PT_headerID = pat.headerID
    INNER JOIN Master_Letters let on LET.PT_headerID = pat.headerID
    WHERE (@PTLName IS NULL OR(pat.PT_LName LIKE + '%' + @PTLName + '%'))
    AND (rco.RCO_LevelNo = @Level)
    AND (let.userID = @User)
    --AND (rco.RCO_AuditorStatus <> 'Closed' and rco.RCO_AdminStatus <> 'Closed')
    ORDER BY 
    CASE WHEN @SortBy = '1' THEN LET_DEN_DueDate
    END
    DESC,
    CASE WHEN @SortBy = '2' THEN let.LET_DEN_Dollars
    END
    DESC,
    CASE WHEN @SortBy = '3' THEN pat.PT_LName
    END

    Hi DaveMac1960,
    According to your description, when you render data in report, you find it always shows the data with unexpected order. Right?
    In Reporting Services, if we don't set any sorting in tablix, it will order the data as your query in SSMS or Query Builder. In some scenario, for example, we add parent group for data rows, it will have the rows sort by the group on data field by default,
    and the "order by" in your query will be ignored. So please check the Sorting tab in Tablix Properties, in this scenario, we suggest you delete any sorting in the Sorting tab so that the "Order By" clause can work.
    Reference:
    Sort Data in a Data Region (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Query Report:To Retrieve Data from A/R Invoice and A/P Invoice

    Hii Experts,
          I am a new Sap B1 Trainee.I am facing a problem when retrieving data from A/R Invoice and A/P Invoice in order to track
    Expenditure and Revenue according to a Bussiness partner,
    I am using union to retrieve the information,but it is saying a error that  Error Converting Varchar to Numeric and also
    i would like to know how can i show the total final payment by reflecting Downpayments in A/R Invoice and A/P Invoice
    With Regards
    Cherry.

    Hii.
    My Sap B1 version is 8.8.1 and patch level is 20. Actully i need a scenario where i can able to show both Expenditure and Revenue of a particular bussiness partner and profit/loss in a single query report.
    I need some tips regarding this,When i am doing union i am getting conversion error converting varchar to numeric when i take
    Sum(Line Total) from OINV and Sum(line total) OPCH group by docdate and docentry and BP .
    and another scenario is how to deduct A/P downpayment or A/R downpayment from A/P invoices and A/R invoice to get the final Revenue and Expenditure ..
    Thanks & Regards
    Cherry

  • Logical database PNP not retrieving data for custom infotypes.

    Hi all,
    I am using logical database PNP in a program. I have declared infotypes as follows:
    INFOTYPES: 0001, 0002, 0041, 9801, 9840.
    The problem is that the logical database is retrieving data for the standard infotypes but not for the custom infotypes. Any explanation as to why data for custom infotypes is not being retireved and how this can be solved will be greatly appreciated.
    regards,
    Hamza

    solved

  • Classic Report not retrieving when accessing the first time

    I have two classic reports on two separate tabs and the first time that I access the tabs, the report does not retrieve. However, if I tab off and then back onto the tab, the report will retrieve.
    Any idea why these two tabs are not retrieving when initially accessing the tab?
    I have several other tabs in the same application that retrieve properly when initially access them.
    Thanks,

    I think I remember something like that happening to me because there were variables that were not initialized properly that the report used.

  • BI Projects Report Not showing data

    Hi
    I am a new to BI.I am trying to configure BI for Oracle Projects.So the problem here is couple of reports are not loading data on dashboard.
    The issue is with Most of report that use data from Organization table
    1.My BI is integrated with EBS.(I am wondering id HR security has anything to do with same)
    2.Is there any step that should taken care while configuration?
    3.Currently my log level is 3,But I am not able to see the query in Manage session.Show that I can get more information on specific table which is causing the query to return no data
    Thanks in advance.

    Hi,
    The query is having some restrictions in the filter area. And also there are 2 conditions in the query.
    I am checking the Multiprovider data with the tcode LISTCUBE. I am giving all the selections and the restrictions in the Multiprovider , some data is there in the multiprovider.
    But in report its not showing any data.
    Where shall I check, whetehr I need to check the MultiProvider assignment characterstics?

  • Scheduling siebel BI report not pulling data

    Hi Gurus,
    i have created report in Siebel with BI publisher, My report is working fine when i am running report from the icon. But when the same report running with scheduling option not pulling data in to my report. Is any other properties to set like viewmode something or user properties under integration object? If anyone have tried please provide me the steps.
    Thanks in advacne,
    Regards,
    madhv

    Hi ,
    Please check the following :-
    Is an appropriate summarization level defined?
    Are fixed values stored in the definition of the summarization level?
    Is the use of a summarization level necessary?
    Was test mode activated in summarization level maintenance ?
    Are the summarization levels in status "active" ?
    Please have a detailed look into the SAP OSS Note :  67342 - CO-PA: No summarization level found which contains detials explanations and solutions for the issue ..
    Kindly revert back for any further clarifications
    Regards
    Sarada

  • Usage Report not showing data

    Hello,
    When I am opening usage reports under Site Settings > Site Administraton > Popularity Trends, i cannot see any data after 9th May 2014. It stopped working and all the numbers coming to zero after 9th may. 
    I tried many solutions that are given on internet for this issue like restarting timer job, enabling usage on usage service application, permission on log files, etc.. but none of them worked for me.
    Please help me out. Is usage report depend on any service? search is working fine, usage service application is working fine.
    Thanks.
    chirag

    Hi  chirag,
    For troubleshooting your issue, please take steps as below:
    Make sure the Web Analytics Data Processing Service and Web Analytics Web Service are started on each server.
    Make sure web analytics service application is started
    Deactivate and Activate the site collection Features on Reporting.
    Check the detail error message of ULS log  to determine the exact cause of the error.
    Also you can have a look at the article:
    http://geekswithblogs.net/bjackett/archive/2013/08/26/powershell-script-to-workaround-no-data-in-sharepoint-2013-usage.aspx
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/30d11d27-6708-4bfe-a7d3-4b0aed522e7d/site-web-analytics-reports-no-more-data?forum=sharepointadminprevious
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Scheduled WEBI reports based on File Events not retrieving data

    Dear All,
    We are facing performance related issues with Scheduled WEBI reports based on file based events.
    When running Web Intelligence on demand it takes  4to 5 Minutes.
    Scheduling the same report in Excel format it takes more than 20 minutes.Schedule status showing success but no data found in Excel instance.
    Env:BOXI3.1 Sp3
    Windows 2003
    It woud be great if any one can share your ideas.
    Thanks,
    Kumar

    Hi Kumar,
    Is your report has prompts?
    if you have prompts , make sure that you assigned prompts in the schedule also.
    Hope you have multiple webi processing servers and adpative job servers for better scheduling performance.
    Try below solution .
    On the BusinessObjects Enterprise server, navigate to the folder <install root>\Business Objects\BusinessObjects Enterprise 12.0\win32_X86\dataAccess\connectionServer
    Open the file cs.config in a text editor such as Notepad
    Search the file contents for the string "Traces Active"
    Modify the line from  <Traces Active="Yes">   to  <Traces Active="No">
    Save the cs.config file
    Restart the Web Intelligence Processing Server

  • SharePoint 2010 Web Analytics Reports Not Displaying Data

    Hi,
    I'm currently having some issue with the Web Analytics Reports. It had been working fine for the past 1 year and suddenly a few months back, the Web Analytics is not showing any data. Have already troubleshoot the issue using the
    Troubleshooting SharePoint 2010 Web Analytics Article and all values show the correct date and time. 
    Therefore, I have performed a more in-depth analysis and found out that the WAHierarchyData table in the Reporting Database only have Root ID
    I have verified with a working SharePoint environment and the table should contain all the SharePoint site ID. Also, I have looked into all the SharePoint and Windows logs and all found to be showing the services to be running normally. I would like to check
    if there is a way to restore the data in this table or is there any other ways I can trace and troubleshoot this issue.
    Background information
    SharePoint Version: Service Pack 2
    SQL Server: Cluster Environment
    3vild3vil

    Hi,
    I queried the WAHierarchyData table in my environment, and there should be id column in returning result.
    You could manually run timer job related to Web Analytics service application and check ULS log for error message.
    To narrow down the root cause, we need query SharePoint database tables and compare query result, which might exceed the supported scenario. I'd recommend you open a ticket with MS support, they could reach your envrionment and troubleshoot the issue for
    you. For your convenience:
    https://support.microsoft.com/contactus
    Thanks for the support.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Crystal Report not fetching data

    Hi Everyone,
    I have a crystal report which is not fetching any data but when I run the same sql in the database the data comes.Can anyone please help me in finding what exactly the problem is.
    Regards,
    Neeraj

    Sorry we can't help you, not enough info.
    See Rules Of Engagement.
    What have YOU done to debug the problem?
    Version of CR and any patches?
    Database connecting to and any patches?
    Version of Database Server and Client?
    How are you connecting, ODBC, OLE DB or Native?
    What error are you getting?
    Don

Maybe you are looking for

  • Run-time engine problem in Labview 2009 and Labview 2010

    I have a problem with Labview 2009 and Labview 2010. I updated my Labview 2009 into 2010. But it turned out to be a trial one, because i did not have the serial number. So I uninstalled the Labview 2010. however, the funny stuff came over. I cannot u

  • Is it possible to upgrade internal HD on 2nd Gen Blackbook??

    Is it possible to upgrade internal HD on 2nd Gen Blackbook?? I spoke to an apple reseller & he told me that 160 is as big as u can go on the macbook. is this true? thanks

  • Iphone 5 power button is not working

    The power button of my phone is not working properly. I just bought it last January in the US and I'm staying here in the PH, and the apple stores here still doesn't support it. How can I have it replaced? I think it's not working anymore.

  • Always Connected Means What, Exactly?

    I've heard the term "always connected" bandied about with respect to version 8 "Professional". What does that mean?

  • Help:Nokia 3600 Slide PC Suite

    Someone please help in downloading PC Suite for Nokia 3600slide. I can't find it in the website.