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

Linking to a subreport

$
0
0

I am using Crystal Reports version 11 and need help using a shared variable from a sub report.

 

I have a total from a subreport.  In the sub report I have created a formula called sharedtotalqty.  The actual formula is shared number var totqty:=({@total qty}).  This appears to be working just fine because it appears to be storing the value correctly.

 

In my main report I would like to take a summary total sum(qty diff) and subtract it from the total from the subreport.  The name of the formula in the report is called shared totqty.  The actual formula is shared number var totqty:totqty.  The subreport shared value does not appear to be getting passed to the report shared value.

 

If any of this makes any sense or can direct me to a better place to go I would appreciate any help.

 

Thanks


How to provide prompt in a derived table in business universe

$
0
0

Hi,

 

I need to create a report based on specific period's data from a derived table (created to get all records with a complex join between multiple tables).

 

I know I can give that period criteria in crystal report, but it is taking too much time to load as derived table contains all data(irrespective of any period).

 

To improve, the quality of this report, I am thinking to pass criteria (as prompt) selected by user and populate only those records in derived table, and then generate report,

 

1) How to pass prompts in derived table, I am using following syntax

where <date field>=  @prompt('Select Values','n','<table name>\<date field>',Multi,Free')

It is giving me error i.e. [Microsoft SQL Server Native Client 10.0] : Must declare the scalar variable "@prompt".

 

2) Any other way to solve this issue, i.e. get only selected data in derived table ?

 

I am using SAP Business Objects Information design tool Version: 14.0.7.v20130726-1147 and SAP crystal report for enterprise 14.0.7.

 

Thanks,

Poonam

ERROR IN SAP Business one query

$
0
0

Hi everone,   i have this query . only i want to exclude canceled dln1.quantity i put it in where clause ordr.canceled='n' and odln.canceled='n' it remove some record when i use it like this 

((ORDR.Canceled='N') OR (ODLN.CANCELED='N')) this is not working . i want both of this canceled quantity to exclude.

 

 

 

 

 

SELECT

ORDR.DocNum, ORDR.DocDate, ORDR.CardCode, ORDR.CardName, OSLP.SlpName, ORDR.U_delterm, ORDR.U_U_MU,ORDR.U_DueDateStatus,

RDR1.ItemCode, RDR1.Dscription, RDR1.Quantity AS RDR1QTY, RDR1.Price, RDR1.Commission,ODLN.DocNum as DeliveryDocNum, ISNULL(DLN1.Quantity, 0) AS DLN1QTY,

ISNULL(RDN1.Quantity, 0) AS RDN1QTY, RDR1.U_ratelb, RDR1.U_freight, RDR1.U_toe, DLN1.QtyToShip, ORDR.DocEntry,

ORDR.DocStatus, RDR1.OpenQty, RDR1.DelivrdQty, ORDR.DocDueDate,ORDN.DocNum as ReturnDocNum,

ORIN.DocNum as ORINDocNum,isnull(RIN1.Quantity,0) as RIN1Qty,

  isnull(RIN1.Quantity,0)+ISNULL(RDN1.Quantity, 0) as totalreturn

FROM   ORDR Inner join RDR1 On ORDR .Docentry = RDR1 .Docentry

   Inner join OSLP ON ORDR.SlpCode = OSLP.SlpCode

   Left outer join DLN1 on DLN1.BaseLine = RDR1.LineNum AND DLN1.BaseEntry = RDR1.DocEntry and DLn1.Basetype = RDR1 .ObjType

   left outer join ODLN on ODLN .Docentry = DLN1 .Docentry

   Left outer join RDN1 on RDN1.BaseLine = DLN1.LineNum AND RDN1.BaseEntry = DLN1.DocEntry and RDN1.Basetype = DLn1 .ObjType

   left outer join ORDN on ORDN.DocEntry = RDN1.DocEntrY

   Left outer join inv1 on INV1.BaseLine = DLN1.LineNum AND INV1.BaseEntry = DLN1.DocEntry and INV1.Basetype = DLn1 .ObjType

   left outer join oinv on OINV.DocEntry = INV1.DocEntrY

  

   Left outer join RIN1 on RIN1.BaseLine = INV1.LineNum AND RIN1.BaseEntry = INV1.DocEntry and RIN1.Basetype = INV1 .ObjType

   left outer join ORIN on ORIN.DocEntry = RIN1.DocEntrY

WHERE     (ORDR.DocStatus = 'O') AND ORDR.DocDate Between '15.May.2013' and Convert(date,@ToDate) and ORDR.U_U_MU=@MillUnit AND ((ORDR.Canceled='N') OR (ODLN.CANCELED='N'))

Crystal Reports XI ActiveX redistributable??

$
0
0

Hi

 

I am in the unfortunate position of trying to get a VB6 app which uses Crystal Reports XI working on Windows server 2012.  Not having much luck and getting error Application-specific error 50003 a lot. 

 

I have tried building a package with the VB6 package and deployment wizard and also editing the paths in the setup.lst this produces so that the components are registered in c:\program files (x86) rather than c:\program files\ and it hasn't worked.

 

What I would ideally want is a way of installing everything on the target server which the VB6 app needs to work with the Crystal Reports.  I believe that at one time there would have been a redistributable piece of software to do this.  Note I dont need the .net version, but the ActiveX version.  I cant find this on the SAP website anywhere.  Does anyone have any ideas where I could get it, or any other comments on how I could get the app working.  I cant get dependency walker to work on the target machine (the "Profile" option crashes) so I cant use it to work out exactly which dll/ocx its moaning about.

 

crviewer.dll is present on the target machine in c:\program files(x86)\Common Files\Business Objects etc and has been registered.

 

Sadly rewriting this large legacy app in .net isn;'t an option just now, so if we could skip the "why are you still using VB6" answers that would be great, as I have been well and truly round those houses myself.

 

Thanks

Jonathan

Working with Parameter

$
0
0

Hi,

 

in a new report i have lot of telephone numbers in it and tried to get a better result and faster report with a parameter entry before starting the report execution. This works fine if i use and search 1234567.

 

The parameter is in the sql with: Parameter like Database Field

 

But if i try to get all results containing for example a 5 in it it does not work. How to use the parameter in right form with it?

 

Thanks

How to create one global lov in CR

$
0
0

We have 4 regions , client want to create a global list of value for all the region in crystal report for enterprise. so users can select from the global lov's.

Please help

Text Field prints intermittently - AR Invoice

$
0
0

Hi All

 

We have an issue at a customer when printing AR invoices.

 

The header Tax Invoice doesnt print all the time. But if a reprint is done, then it print.

 

Tax Invoice.JPG

This is a standard SAP B1 crystal layout. I replaced the field @doctype with a text field "Tax Invoice"

 

Any ideas on what it can be?  Can be related to the SAP patch? or printer? or it is an issue in the layout?

 

Thanks

 

Jerusha

Central Management Console - An unexpected error has occurred

$
0
0

Hi,

 

We have a very old installation of the Central Management Console (v12.0) and all seemed fine.  However, in the past coupe of days if you try to load a new Crystal Reports file (Manage > Add > Crystal Reports) you get this 'An unexpected error has occured' after having identified the report file and clicked 'OK'.

 

I can't find any documentation that might point me to what is wrong and how to fix it.

 

All existing reports are continuing to run correctly, it seems just the adding new reports that is impacted.

 

Regards,

Andy.


Take a long time to change data source location

$
0
0

I recently purchased Crystal Reports 2013 and everything works fine.  But today when I tried to set the data source location after I verify the databse, it takes over 15 minutes for Crystal Reports 2013 to change my data source location and  when I tried to refresh my report data, it takes over 30 minutes just to get parameter page to come up.  I even uninstall and CR and re-install it but the problem persist.  Can anyone give me some idea of how to fix this problem?

Error in Crystal Report

$
0
0

When I tired to run a report in Crystal Reports 2013, it came up with the error "Failed to rerieve data from database", when I clicked ok the following error appears:

 

"Database Connector Error: '42000:[Microsoft][ODBC SQL Server Driver][SQL Server] Could not find 'adbasexxx' in sys.servers. Verify that the correct server name was specified.  If necessary, execute the stored procedure sp_addlinkedserver to add the server to sys.servers. [Database Vendor Code: 4413]'

 

The problem is that the server 'adbasexxx' is not being used anymore.  We have move this database and rename it to another name,  I searched all over in Crystal Reports and see if there is a link to the server and I couldn't find any.  I looked at an article and it seems like we need to update the sys.server in MSSQL. Am I in the right track?

Serious box alignment issue when exporting to PDF

$
0
0

Hello,

i have serious alignment issues when exporting to PDF.

I use CR 2013 version.

I use "Snap to grid" = ON


Boxes on header was not aligned with boxes on details.

They are right aligned in CR, even the same X position.

But when exported to PDF box are unaligned.

Box on header has  "Extended to Bottom of Section when Printing", Box on details starts at the top of detail because I want do have a Table of content.

 

This issue drives me crazy. HTML output works like a charm.

 

What should I do?

 

Thank You

 

Roberto

Need help spliting a string into 2 lines

$
0
0

Hi

 

I have a string that I want to split into 2 lines if it has a '-' as a delimiter and remain 1 line if it doesnt.

I have tried the following, however if the string doesnt have a dash delimiter then it repeats line 1 rather than be blank.

 

stringvar array a; 
a := split({Vx_Command.ORG_CABIN_CAT_DESCR},chr(45)); 
a[1] + "- " + chr(10) + a[ubound(a)];

 

Can anyone help ?

Oracle Date as Datetime

$
0
0

Hello,

 

I am trying to work with data I am pulling form a table in an Oracle 11gR2 Database.

I am connected with the Oracle Native client and am using Crystal Reports 2013 14.1.4.1327


I have a field called MONTH that I am selecting into a report.

 

I have tried setting this field as DATE, TIMESTAMP, TIMESTAMP WITH TIMEZONE, TIMESTAMP WITH LOCAL TIME ZONE .

It doesn't matter how I set the Datatype on the Oracle server I am always ending up with

1) a DateTime datatype in Crystal Report

2) the datetime is offset by a number of hours which leasves me with the wrong month Example: '01-AUG-2015' becomes '26-JUL-2015 3AM' in Crystal

 

Why doesn't crystal pick up that I am sending a Date? Why does it change the time on me? Is there something I can do to fix this that will work as well in PEI as it will in Houston?

Using Report Data in an Sql Command

$
0
0

Hi All,

 

I'm wondering if what I'm trying to achieve is even possible or not as I've been banging my head against the wall for a couple of days now with no joy, so I thought I'd come straight to the horses mouth.

 

I'm trying to display some information in a details section of a report that is independent of the main report data source. Let me explain my scenario.

 

We have a number of products in our database (over 3 million at last count) and a warehouse which holds the stock. We have orders placed online which then generate a picking slip for the warehouse staff to use to pick and pack the stock for the order. The picking slip is generated in CR and contains all the information about the various lines on the order. For each product line on the order I need to be able to display the total amount of each product that has currently been picked across all orders. The datasource for the picking slip report only has the data relevant to the order in question whereas I need to be able to query the database again for each order line and find the amount of stock allocated in total throughout the warehouse.

 

I thought this would be easily possible using a Sql Command via the database expert. I have written the following (very simple) query to achieve what I'm after:

 

SELECT (IsNull(Qty_Packed), 0)

FROM tblPickingSlipStockLines

WHERE Status = 'Active'

AND StockCode = '[this is where I'm stuck]'

 

The Stock Code is held within a text field within the report and I somehow need to pass it into the command for each line in the section details of the report.

 

I've tried {tblStock.StockCode} (tblStock.StockCode being the DB field that populates the required text field), @StockCode, ?StockCode plus many other permutations too weird to mention here , all to no avail.

 

I've also tried with parameters but this does not suit my purposes as I don't want to have to prompt the user or pass a static value in from my warehousing application as the picking slip will have many lines each of which requires the data.

 

I have previously used another reporting tool, very similar to CR which allowed this sort of thing to be done from the code behind but this does not seem to be possible within CR (is that correct?)

 

Any suggestions would be greatly appreciated.

 

Thanks,

 

Stuart

Reg: Print Crystal report with Uniprinter

$
0
0

Hi,

 

  We are using crystal reports to display image, We are having one issue while printing the report with Uniprinter. In the very first page we are getting image is clear from second page onwards image gets black. Can you please let us know what is the reason to printing the image as black.

 

Regards,

Chakradhar.


Follow Up

$
0
0

I am new to your site. How would you like me to post and do you just want a page or the entire dataset?

Crystal Report Formula

$
0
0

I have created a formula in Crystal Reports 2013 but I receive the error " boolean is required here" The purpose of the formula is to put the title of each work center next to the work center number. So this is my formula

 

IF GROUPNAME ({job_routing.work-ctr})= "1400" then "HEAT TREAT" OR

IF GROUPNAME ({job_routing.work-ctr})= "1410" then"OV PLATING-3DAY"

IF GROUPNAME ({job_routing.work-ctr})= "1415" then "OV GRIND" OR

IF GROUPNAME ({job_routing.work-ctr})= "1425" then"SANDBLAST-3DAY"

IF GROUPNAME ({job_routing.work-ctr})= "1450" then "OV WELD" OR

IF GROUPNAME ({job_routing.work-ctr})= "1455" then"OV MISC"

ELSE ""

 

The editor suggest a boolean be put where I have the red lettering. However i am not sure what boolean it wants because none of them seem like they belong at that point.

SAP crystal report 2013 support Universe ( .UNX)?

$
0
0

hello Experts,

 

i just wanted to know is there a way to use universe (.UNX) which is created in IDT (information design tool) in SAP Crystal report 2013 ????

CR Enterprise 4.1 Data wont display from the 2nd table

$
0
0

I have used CR 2013 for several years now and I am trying to write my first CR for Enterprise using a Universe.

 

I have created the universe which has two tables in it.

 

I can display any data from the first table just fine on the report.

 

When I select any data from the 2nd table, nothing will show up in CR Enterprise.

 

I assumed its a join issue with the Information Design Tool, but I have verified the join and tested the query within IDT and it works fine.  What am I missing?  Below is a screen shot of the join to verify its correct.

 

Any help would be appreciated.

 

join.jpg

Crystal Reports using an Access database

$
0
0

I am running the latest version of Crystal Reports 2008.  In which I am using an Access database to populate my report.  However, when I make changes to the Access database. For Example I add additional detail line(s) to a particular record.  When I review the report it doesn't reflect the detail line(s) that I added.  I have verified that I am updating the table that is being used by the report. I hope that someone has had this issue before and can help me resolve my issue.  Thanks, Tony

Viewing all 4716 articles
Browse latest View live


Latest Images

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