Quantcast
Channel: SCN : All Content - SAP Crystal Reports
Viewing all 4716 articles
Browse latest View live

Stored Procedure - Invalid Argument provided Error

$
0
0

I'm running Crystal Reports XI Version 11.5.10.1263 and getting the above-referenced error when trying to create a report using the attached stored procedure.

 

I didn't create the stored procedure, but in looking at it, wonder if the problem is being caused by the large number of arguments.  There are 126 arguments.

 

I'm not sure what to do to resolve this error.


Multi-Select queries

$
0
0

I am new to Crystal Reports 2013 and although I have a limited understanding of the fundamentals, using more complex formulas and queries mystify me.  I have been attempting to create a report using Crystal and selecting the database tables and fields from the SQL Server 2012 databases and tables.  Whereas, I have discovered how to use filters to limit records similar to having a WHERE clause in a T-SQL query, I have not been able to discover how to set up a grouping or filter to provide record selection filtering based on join back to the same table using an internal SELECT clause.  The SQL Query I use is listed below where the blue font inner join is what I want to duplicate in a CR filter, group, or whatever.  Can someone please explain how to do this?

 

USE LegacyGoldenCopy

GO

SELECT c90.CASE_ID AS 'ID'

  ,(RTRIM(c90.LAST_NAME) + ', ' + RTRIM(c90.FIRST_NAME) + ' ' + c90.MI_NAME) AS 'Case Name'

  ,c92.TYPE_CODE AS 'LIVAR'

  ,c92.LIVAR_PMT_AMT1 + c92.LIVAR_PMT_AMT2 + c92.LIVAR_PMT_AMT3 AS 'CM-07 Pay Amt'

  ,c92.TYPE_SERV_CODE AS TSC

  ,c17.DBA_NAME AS 'Living Arrangement Name'

  ,C17.STATE AS 'ST'

  ,c92.RSN_PLAC_CODE AS 'Rsn Plac'

  ,c92.CNTR_ID AS 'Contract #' -- ? supposed to be a 10-digit code not 5

  ,c92.PRV_ID AS 'Prov ID'

  ,c92.LIVAR_DATE AS 'LIVAR Date'

  ,c92.Ent_Date AS 'Data Entry Date'

FROM cftvcm9200 c92 inner join cftvcm9000 c90

  ON c90.CASE_ID = c92.CASE_ID left join CFTBLC17 c17

  ON c17.PRV_ID = c92.PRV_ID 

inner join

( select c92a.case_id as maxid,

max(convert(varchar(10),(livar_date),120) + ' ' + livar_time) as max_datetime

from cftvcm9200 c92a

group by c92a.case_id) as maxdate

on c92.case_id = maxdate.maxid and

livar_date = left(maxdate.max_datetime,10) and

livar_time = right(maxdate.max_datetime,2)

 

 

WHERE LIVAR_CASE_STATUS = 'o' AND (TYPE_CODE IN ('ipa','grh') OR TYPE_SERV_CODE IN ('0201','0202','0203','0221','0222','0223',      

'0231','0233','0240','0244','0251',             

        '7201','7202','7203','7221','7222','7223',

'7231','7233','7240','7244','7251'))

ORDER BY c92.CASE_ID

Help required to design the Crystal Report in WPF app

$
0
0

Hi,

I am using Crystal report's free 32 bit version 13.0.15 for VS 2013.
in WPF project.

 

Facing below listed problems while designing .rpt files.

1. Grouping multiple columns (Down then across) - Need to place the headline contents of the group always on the top of the group column.

     (column's content should always start from the top of the page and not like the column in the newspaper)

2. A single column group should always display one chart object out of the two according to the user's selection.

3. Need to suppress the prompt to enter the parameter defined on the.rpt file having subReport.

4. Set min max values for axis for the chart programmatically.

 

I'll be able to share more details here if any specific suggestions are available.

 

Awaiting your help.

 

Thank you!

Variables

$
0
0

Hi,

 

I have a report that has eight formulas that have a variable defined:  global StringVar EtikettNr;

 

Each formula does its thing (primarily setting a 0 value when {ettikettnr} = EtikettNr), then concludes EtikettNr := {ettikettnr}

 

Hopefully the problem is obvious.

 

If I reload without changing the parameters, I get  all the same numbers.  If I close the report and rerun, I sometimes get different results.

 

I see two possible solutions - change to EtikettNr1, EtikettNr2..., or use Previous({etikettnr}).

 

Before I go either route, I want to be clear, because I believe I have a third option.

 

"Local" - I understand to be "single formula, single evaluation", which indicates to me that when the next record is read the value will be unavailable.

 

"Global" (default if not declared) - available across the report, but not subreports.

 

"Shared" - available to the report and subreports.

 

I'm not entirely clear about "Local".  Is the variable value intact when the next record is read (assuming it's not declared as StringVar EtikettNr := "")?

 

Also, in this scenario, when I have multiple formulas declaring the same variable, is there any hiearchy as to when the formulas are evaluated?

 

On this report, it appears that not only is the evaluation order random from detail line to detail line, it appears to change each time the report is run.

How to update XML data source at run-time

$
0
0

Hi,

I am writing a program that will export a report using a XML data source.  I have designed a simple one table report to demonstrate this feature.  Unfortunately, I cannot seem to figure out how to feed an updated XML file to the report at run-time.  The following is a code snippet showing what I am trying to do.

 

 

// open the report file

ReportDocument rd = new ReportDocument();

rd.Load(@"Report1.rpt");

 

 

// read the xml data

DataSet reportData = new DataSet();

reportData.ReadXml(@"Report1.xml");

 

 

// update the report with the new data

rd.Database.Tables[0].SetDataSource(reportData.Tables[0]);

          

// export the report

ExportOptions CrExportOptions;

DiskFileDestinationOptions CrDiskFileDestinationOptions = new DiskFileDestinationOptions();

PdfRtfWordFormatOptions CrFormatTypeOptions = new PdfRtfWordFormatOptions();

CrDiskFileDestinationOptions.DiskFileName = "Report1.pdf";

CrExportOptions = rd.ExportOptions;

{

    CrExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;

    CrExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat;

    CrExportOptions.DestinationOptions = CrDiskFileDestinationOptions;

    CrExportOptions.FormatOptions = CrFormatTypeOptions;

}

rd.Export();

System.Console.WriteLine("file exported");

 

 

The following exception is raised when execution reaches the Export() function.

 

 

CrystalDecisions.CrystalReports.Engine.DataSourceException was unhandled

  HResult=-2147215616

  Message=Failed to load database information.

Error in File Report1 {A9470C9B-2CDE-458C-831C-35B3FC75F2BC}.rpt:

Failed to load database information.

  Source=CrystalDecisions.ReportAppServer.DataSetConversion

  StackTrace:

      at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)

      at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)

      at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)

      at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)

      at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export()

      at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export()

      at CrystalApp.Program.Main(String[] args) in c:\CrystalApp\Program.cs:line 39

      at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)

      at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)

      at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()

      at System.Threading.ThreadHelper.ThreadStart_Context(Object state)

      at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

      at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

      at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

      at System.Threading.ThreadHelper.ThreadStart()

  InnerException: System.Runtime.InteropServices.COMException

      HResult=-2147482931

      Message=Failed to load database information.

Error in File Report1 {A9470C9B-2CDE-458C-831C-35B3FC75F2BC}.rpt:

Failed to load database information.

      Source=""

      ErrorCode=-2147482931

      StackTrace:

            at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)

            at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)

      InnerException:

 

 

Any insight on this error would be greatly appreciated.

 

Thx.

If... in - multiple values

$
0
0

Hi,

 

I have the following statement in a formula:

 

if not ({pool_bearbeit.typ} in [200,401,409,410,411,413,420,450]

 

The numbers are processes, constantly added or deprecated.

 

To make this more manageable and visible, I'd like to be able to dynamically display these numbers in the page header, to confirm to the User what is actually being chosen.

 

I believe I've seen code where a single value is entered as a parameter, and then passed through to the report, invisible to the User, but the setup eludes me, and I don't know if that can be done for multiple values.

 

What method can I use to do this?  I imagine it's possible, but the syntax eludes me.

 

I would need an option for both numerics and strings.

 

Thank you.

How to sum rows for specific columns

$
0
0

Hello,

 

I am trying to calculate the sum of rows for all months except for future months. Currently we are in month of Feb so I only need the sum for month of Jan and Feb column only. I have already created a new column named "YTD". I need your help to provide me a formula so I can add it to YTD column.

 

I am guessing here are the steps:

 

1) Right-click one of the zero values in the summary fields

2) Select Calculated Member

3) Edit Calculation Formula and type in your formula

 

Note: F: Forecast and A: Actual

 

Below is a sample of my crosstab

 

Untitled.png

 

 

Any help would be appreciated.

 

-- Jean

Filtering data with conditions

$
0
0

Hi All,

I have students' different term grade of different years. Each year has four terms (R1, R2, R3, R4). Any time of the year when I will run the report, students may or may not have the grade available for all terms of the current year (let's say in the following case only R1 & R2 is available, but

not R3 and R4).

 

 

Can anyone write the code for me so that I get the following:

 

 

- All R4 grades of the previous years,

- All grades of the latest term of current year (eg: if R1,R2 & R3 availble, I want R3).

- Some later terms of the current years will appear with blank data, I want to remove them too. (eg: R3 and R4 is the available in the case below)

- All Dec Marks should be removed.

 

Can somebody help please.

 

 

 

 

Studuent_IDGradeTermSession
2323375R42012-2013
4435475R42014-2015
4435475Dec Marks2015-2016
11232R42015-2016
2323372R42014-2015
2323375R22015-2016
1123284R42014-2015
2232180R42014-2015
1123284R42012-2013
2232174R12015-2016
4435483R12015-2016
2232184R22015-2016
44354R42015-2016
2232182Dec Marks2015-2016
2323377R12015-2016
1123277R12015-2016
4435476R22015-2016
22321R42015-2016
1123278Dec Marks2015-2016
2323378R22015-2016

how to group vertically

$
0
0

Hello all,

 

I have to create Crystal report 2011 with grouping.

 

Is it any way to create report in following format?

 

dispatch.png

 

I have created group party name, Area name and Sales person name. And i want to size group in above format.

 

There is no drill down in any group level.

 

Please, let me know if it is possible by group or any other way.

 

Thank you,

 

Vanita

How to write this formulae

$
0
0

Dear

 

My aim is to sum the Sharedtotal if the coloumn = optional 1. i have written the formulae but it throws the error.

 

Formulae Field = sum {@sharedtotal} if {qut1.u_ea_opt}=optional 1

 

it shows me the error

 

"the remaining text does not appear to the part of the formulae."

Crystal report 2013 of B1 is not showing the server name under my connections in the Database expert screen

$
0
0

HI Experts,

 

I have newly implemented the SAP B1 9.1 PL05 version in the server.

 

and then i have installed the Crystal Report 13 PL05  and then in have installed the setups inside the

"crystal server integration" folder of the SAP b1 package.

 

Note:all server, client and CR integration are all X64 bit.

 

 

Now, my problem is in the CR - database expert - my connections - "no item found"  my server name is not showing as per below pic.

what is the issue and how to fix it ?

 

thanks in advance,

Dwaraka

Looking for a formula on a report

$
0
0

Hi,

 

I have the following formula  @sqft:

 

global stringvar etikettnr8;

numberVar sqft8 := 0;

 

 

if   {awbar_teile.etikettnr} = etikettnr8

then sqft8  := 0

else sqft8  := {pool_teile.breite}/304800 * {pool_teile.hoehe}/304800;

etikettnr8  := {awbar_teile.etikettnr};

sqft8;

 

It's on the detail line.

 

I have Summaries at Groups 1,2,3

 

It doesn't work consistantly, sometimes it 0's, sometimes not.  I can hit <F5><Enter>, and watch the total summary jump around.  The variables do not exist anywhere else in the report.

 

So, when I add WhilePrintinRecords, I get an error:

 

A summary has been specified on a non-recurring field.  Details: @sqft

 

i don't understand what this is telling me, noe do I understand how a field on a detail line could be non-recurring.

how can i fixed this problem

$
0
0

    please help how i can fixed CrystalReport viewer

 

hata.jpg

Official Product Tutorials – SAP BusinessObjects Crystal Reports for Enterprise 4.x

$
0
0

The following tutorials have been developed to help you get started using the Business Intelligence Suite products. New content is added as soon as it becomes available, so check back on a regular basis.

 

You can submit and vote on ideas for enhancements to this product.

 

Looking for eLearning for the rest of the Business Intelligence Suite? Go to sap.com/LearnBI.

 

Key Concepts

  • NEW for 4.1 SP6 What's new in Crystal Reports for Enterprise 4.1 SP6 (0:57)     interactive / video    
  • What’s New in Crystal Reports for Enterprise 4.1 SP5 (0:24)  interactive / video
  • 4.1 What's new in SAP Crystal Reports for Enterprise 4.1 (2:15)     interactive/ video
  • 4.0 SP5 What's new in SAP Crystal Reports for Enterprise 4.0 SP5 (:55)     interactive / video
  • 4.0 FP3  Concept: What's new in SAP Crystal Reports for enterprise 4.0 Feature Pack 3 (5:04)     interactive / video
  • 4.0  Concept: Navigate the interface (7:12)     interactive /video
  • Concept: Create a report (2:56)     interactive /video
  • Concept: Describe how the semantic layer works (2:11)     interactive /video
  • Concept: Compare Crystal Reports 2011 and Crystal Reports for enterprise     interactive
  • Concept: Compare Crystal Reports 2011 and Crystal Reports for enterprise 4.0 Feature Pack 3     interactive
  • 4.1 SP4  Concept: Navigate the interface (5:09)    interactive /video

 

Getting Started

 

Connecting to Data Sources

  • Connect to SAP HANA using a relational connection (1:53)     interactive /video
  • 4.0  Connect directly to a BEx query (3:50)     interactive /video
  • 4.0  Connect to an Analysis View (1:21)     interactive /video
  • Change the data source for a report (2:31)     interactive /video
  • 4.0 FP3  Create a report based on an unmodeled relational data source (5:51)     interactive / video
  • 4.0 FP3  Bind SAP BEx Report-to-Report Interface (RRI) actions to report objects (2:18)     interactive / video
  • 4.0 FP3  Map a report or report template to a data source (5:38)     interactive / video
  • 4.0 FP3  Work with scaled values in BEx queries (2:30)     interactive / video
  • 4.0 FP3  Perform level or prompt-based member selection on hierarchical data (3:12)     interactive / video
  • 4.1  Work with hierarchy and hierarchy node variables in BEx queries (3:22)     interactive / video
  • 4.1  Use freehand SQL commands with relational data sources (1:20)     interactive/ video
  • 4.1  Create an OLAP connection to a HANA View (1:14)     interactive/video
  • 4.1 SP3  Change the order of BEx variable or universe prompts (1:29)    interactive /video
  • 4.1 SP4  Create a connection and log on to an SAP HANA server (1:12)    interactive /video
  • 4.1 SP4  Save a report to the SAP HANA platform (1:01)    interactive /video
  • 4.1 SP4  Connect to a HANA view and create a report (2:45)    interactive /video
  • 4.1 SP4  Map a report to a new data source (2:23)    interactive /video

 

Working with Charts

 

Working with Tables and Crosstabs

 

Selecting, Sorting, Grouping, and Summarizing Data

 

Setting up Interactive Elements

 

Working with Formulas

 

Working with Subreports

 

Applying Formatting

 

To view the full Crystal Reports for enterprise 4.0 playlist on Youtube, click here.

 

Additional Recommended Content

Crystal Reports 9 Bar Chart Horizontal

$
0
0

Hi,

 

I am using Crystal Reports 9.

 

I created some stacked bar charts. Now, I want to change the spacing between bars. Some one told me that I can't do that because it's totally controlled internally by Crystal Reports.

 



 

relatorioKaizen.jpg

 

There is somehow to do this?


Thank you in advance.


update url's?

$
0
0

I'm running Crystal Reports 2008 on a few client computers on a business network.  I have recently implemented a new web filter that seems to be impacting their functionality.  If I unselect 'Check for updates on Startup' in the CR application, the app runs fine.  If it is checked off, it takes a long time to execute the application.

 

My question is, are there any URL's I can or should whitelist so that these clients can communicate with the BO/SAP updates resource?

Sum a field based on unique value not in sequence

$
0
0

Hi,

 

I have a report that contains:

 

Order Number, Line, Barcode, Process, with a calculated SqFt.

 

Barcode is unique, and consequently Order Number and Line are inconsequential.  There can be multiple Processes for a Barcode.

 

On the current report the Group hierarchy is Order Number, Line, Barcode, and for summary information I zero the SqFt value if Barcode = Previous Barcode.

 

Now I need to regroup by Process.  Summaries on SqFt at the Process grouping can still following this same logic, but since the same Barcode can now appear in different Process groups, I need to find a way to Grand Total by unique barcode.

 

How can I do this?

Can you use Formulas in link for Subreport?

$
0
0

Hi.  I have a formula and don't understand why it's not working.  Obviously I missed something, and I hope someone is kind enough to point it out to me.

 

1. I defined a formula named DateToInclude.  The Content of the formula is DateAdd("d",-1,currentdatetime).  I presume that the formula results in a datetime variable.

2. I dragged the formula onto the Page Header and made it suppress printing.

3.  In the "details a" section, I put in a subreport.

3.  In the subreport, I created a single parameter of date-time with the same name as the formula.

4.  Went back to the main report and chose to change subreport links.  I connected the formula in the main report to the parameter in the subreport.LinkScreen.png

5.  Lastly, I tried to do record selection

RecordSelection.png

 

 

The date to include formula and subreport parameter should be equal to 2/29/2016 3:19pm.  I have at least one record that contains the value of 3/01/2016 9:00AM.  The record selection formula is correct and should pick up one record.  It does not.

 

If I remove the subreport link and allow the parameter to be entered at runtime, I noticed the entry of the date is yyyy-mm-dd hh:mm:ss.  If I enter 2/29/2016 in this reversed format of year being first, the expected data prints.

 

My report is time-sensitive.  It is supposed to pull records less than 24 hours from today's date.  I did the computation in the main report because the second part of the time value could be different by the time the report gets to the subreport.  I have four different subreports in my details section of the main report.  All the subreports should be using the exact same Date-Time value, with no differences in the time value.

 

So, how should I be feeding this value to be used for record selection into the subreport? 

 

Thanks in advance!

Crystal Report for Enterprise record limit

$
0
0

Hi

We are in BOBJ 4.1 SP04 Patch 08.

Please help us with below questions.

1. What is the limit for number of records in view and schedule mode for Crystal Reports for Enterprise from launchpad?
   Also where is the setting available ?

2. What is the limit for number of values in LOV for Crystal Reports for Enterprise from launchpad?
   Also where is the setting available ?


Thanks

SQL error on ASP page

$
0
0

I am getting the following SQL error on an ASP page:

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near ')'.

 

My SQL statement is:

sql = "select count(*) as total"

sql = sql & "From weblog"

sql = sql & "where (IP = '"& ip &"') and (DATEDIFF(mi, Datetime, getdate()) < " & gwaittime & ") "

 

Any thoughts?

Thanks,

Connie

Viewing all 4716 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>