Crystal Reports Statement Ignored
Can someone explain to me why there are records on my Crystal Reports that have values that are equal to "Cash" (in data column "") although my logic (Line #4) is suppose to exclude all records with "Cash" for the "" data column ? Thanks ! ! !
1) in {?RWDate}
2) And Not( in ["5021", "5022", "5023", "5024",
3) "5025", "5026", "5027", "5028", "5029", "5030", "5031", "5032"]
4) And <> "Cash")
5) And ((Not( Like 'TBD'
6) And ( = 5 Or = 8)))
7) And Not( Like 'Approval'))
Edited by: Lenell Hooker on Mar 5, 2010 6:52 PM
Micah/Carl/Fuskie/Graham,
I got it . . . I used trim(ucase(field)) and removed ")" from the fourth (4th) line
and placed it on the third (3rd) line as shown below. Thanks to all ! ! !
StringVar strRef_Purpose;
strRef_Purpose := ;
strRef_Purpose := Trim((ucase(strRef_Purpose)));
1) in {?RWDate}
2) And Not( in ["5021", "5022", "5023", "5024",
3) "5025", "5026", "5027", "5028", "5029", "5030", "5031", "5032"] )
4) And strRef_Purpose "<" and ">" "Cash"
5) And ((Not( Like 'TBD'
6) And ( = 5 Or = 8)))
7) And Not( Like 'Approval'))
Similar Messages
-
Is it possible to add a crystal report to BP maintenance screen
In SAP 8.8 we would like to use a Crystal Report statement of account and be able to click on the screen and run the report. is there a way in 8.8 to attach a Crystal report to a screen? Thanks
BP Master table has different structure with most tables. I don't think you could associate with any reports here. Better create a standalone report.
Thanks,
Gordon -
Importing Crystal Report layout for customer statements
Hello,
I have imported a crystal report layout to use for the customer statements when running them from the ageing report. The problem is even if we only select one business partner in the ageing report, when we print preview the statement it displays statements for all business partners - this is because in the crystal report there are no parameters. I know that when you import a layout like this for other documents you need to use for example, {ORDR.DocEntry}={DocKey@} as the parameter however the customer statements don't have a docentry. When I look at the system statement layout (collection layout), when you run the report you get an ADO.NET (XML) connection prompt. Is it possible to use the crystal layout i have for the customer statements but for only the customer(s) showing on the ageing report?
Many thanks,
KateSo just to make it clear,
you want an overview of open invoices from 1 customer.
If so, try this in crystal reports :
Create a parameter field (field explorer)
Name : CardName
Type : String
Value : Static
do not select a value field (none)
press ok.
Select expert
Create new
Starts with
type this : {?CardName}
press add
Click formula editor and make it look like this :
{OINV.DocStatus} = "o" and
{OINV.CardName} startswith {?CardName} -
Crystal reports run through infoview stuck in running state
We have some Crystal reports that are executed via InfoView that contain calls to function modules in SAP R/3. Out of 200-300 exectutions, we will get one or two of them that get stuck in a "running" state and they never complete. When we reschedule the report they complete in a few seconds. Has anyone else experienced this? We're trying to determine if it's a problem on the BOE side or in the gateway in R/3. Again, 99% of the time the reports work, but just an occasional one or two get stuck each day. We are using BOE XI 3.1 SP3.
OK. Sorry, but now I want you to read over what you wrote. Put your self in my shoes and see if you can even start to troubeshoot this. Looking at the following may also help;
[Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]
Step 2 Asking Your Question; Provide Enough Information
/people/ludek.uher/blog/2008/11/24/what-do-i-need-to-do-to-get-the-fastest-issue-resolution
- Ludek -
Passing parameter into SQL statement in Crystal Reports
Hi all,
I would like to call Crystal Reports in JSP. I can handle it well now. But I hope to let user input their selection criteria before printing out the report. I know how to get the parameter value in JSP, but I really dunno how to pass these parameter values into the SQL statement in Crystal Report. Actually, is it possible to do so?
If anyone has idea, please tell me. Thx Thx!
Regards,
BettyDear Sir,
I want to use Crystal Report as a web base using JSP. But, I am getting how to call .rpt file in .jsp file & passing of parameter.
If you have any idea, please reply as early as possible
Thanking U.
My userid = [email protected]
Regds
Pankaj.. -
Crystal Reports publication personalization with an OR statement
Hello,
I want to publish a crystal report but do not see a method to implement an OR statement like you can with interactive filters or query prompts.
Currently any personalization’s I make are all AND filter. My report when run on demand can bring back data where a Program (department) is either the Identifying Program OR the Responsible program. 80% of the time they are the same, but there are cases where they can be different. For example a Laboratory identifies an issue that the Emergency department is responsible for.
Example Filter for Publication
Health Authority = Organization 1
AND Facility = Hospital 1
AND (
Responsible Program = Medicine
OR
Identifying Program = Medicine
AND Specific Location = 3 South
Currently am using dynamic recipients, but am open to any method to make it work. Dynamic recipients are used since we send 90% of publications to users outside of our analytics.
Thank you
DarrenHi Dareen,
This is related to BI Admin(Infoview), But this is crystal design forum. I think you can post this thread in this link (BI Platform)
--Naga -
SAP 8.8 - statement in crystal report
Hi,
We have imported layout and reports available in SAP 8.8 Information Center, however, Customer statement (in Crystal version) does not seem to be part of it.
Will statement in Crystal report version be released in any near future?Hi Paulo,
I am aware that the Crystal report layout available for download. Unfortunately Customer statement is not one of them.
Yes, it is good that Crystal report is provided as a report writing tools. However, we need to look beyond that.
Customer Statement is expected as standard report in all accounting packages and is a document that needs to be sent to third party, ie the customers.
Therefore, the presentatipon of it is important and also the information required is often more than what the existing one has.
The problem is, the data on the existing customer statement are populated by the program and what we can see is just field type "text".
The following screnarios are not taken care of.
Example:
1. It is normal that there are part payment invoice.
The normal request is showing original invoices amount, applied details (ie the receipts/credit notes applied against it) and also the outstanding balance.
2. Posting Date and Document Date are not the same.
SAP B1 allows posting date and document date to be different, but the Document Date fields is not avaialble in PLD.
3. No transactions available for the period.
Customer has no transaction in 1 March 2009 - 30 Apr 2009, however, there are opening balance prior to March 2009.
It is normal expectation that when you run the customer statement for 1 March 2009 to 30 March 2009, it will still produce a statement, with the prior balance row populated.
However, it just does not print the statement at all.
So, Customer has not choice but to keep posting date from blank.
These are just some of the problems.
I would hope SAP could look into this standard report, to add to the list, Stock Aging and Bank Reconciliation report should also be looked into.
Regards, -
Crystal Reports - Customer Statements with Ageing
Hi,
I have created a custom accounts receivable statement in Crystal reports 2011.
However, I am currently facing some challenges:
1. How can I put a specific date so that the statement will show data upto that date e.g. today is 22/05/2014, but I want to run a statement as 30/04/2014 - how do i achieve this?
2. How can I insert formulas into crystal report that will allow me to calculate the ageing on the above as at date?
Any help would be highly appreciated.Hi Nishit,
Please try below Query.
select T1.cardcode 'Bp Code',T1.cardname 'Name',sysdeb 'Debit Amount',syscred 'Credit Amount',
T0.BALDUEDEB as 'Balance Due',
case T0.transtype
when '13' then 'INV'
when '14' then 'AR CN'
when '24' then 'INCOMING'
else 'Other'
end 'Type',
Ref1,
fccurrency 'BP Currency',
CONVERT(VARCHAR(10), refdate, 103) 'Posting Date',
CONVERT(VARCHAR(10), duedate, 103) 'Due Date',
CONVERT(VARCHAR(10), taxdate, 103) 'Doc Date' ,
CASE
when (DATEDIFF(dd,refdate,current_timestamp))+1 < 31
then
case
when syscred <> 0 then -syscred
else sysdeb
end
end "0-30 days",
case when ((datediff(dd,refdate,current_timestamp))+1 > 30
and (datediff(dd,refdate,current_timestamp))+1< 61)
then
case
when syscred <> 0 then -syscred
else sysdeb
end
end "31 to 60 days",
case when ((datediff(dd,refdate,current_timestamp))+1 > 60
and (datediff(dd,refdate,current_timestamp))+1< 91)
then
case
when syscred <> 0 then -syscred
else sysdeb
end
end "61 to 90 days",
CASE
when (DATEDIFF(dd,refdate,current_timestamp))+1 > 90
then
case
when syscred= 0 then sysdeb
when sysdeb= 0 then -syscred
end
end "90 + days"
from dbo.JDT1 T0
INNER JOIN dbo.OCRD T1 ON T0.shortname = T1.cardcode and T1.cardtype = 'c'
where T0.intrnmatch = '0' and T0.BALDUEDEB != T0.BALDUECRED and t1.CardCode='[%0]'
ORDER BY T1.CARDCODE, T0.taxdate
Hope this help
Regards::::
Atul Chakraborty -
How to generate Income Statement from Crystal Report
Hi, Experts,
I have:
SAP BUSINESS ONE 2007A
CRYSTAL REPORT 2008
I have a problem with generating Income Statement related reports from CRYSTAL.
For example,
My revenue accounts are: '411000-00-00' and '412000-00-00', my expense accounts are: '510000-00-00' and '520000-00-00'.
I'd like to generate the Income statement for Dec 1 - 31, 2008. Please advise how to generate this report. Thanks!
LorrieHi, Experts,
Currently, what I tested to generate the income statement is:
1. find out the account detail table: JDT1. My database path: Company Name -> dbo -> Tables -> JDT1
2. follow the standard report menu: add 'JDT1', show 'RefDate', 'ContraAct'; group by'Account', summarize by 'Account'.
I have the following problems:
1. with this method, I am not able to find the amount for each transaction. Because the amount does not have a name as 'RefDate' or some other fields.
2. the 'Account' and 'ContraAct' are all shown as 'SYS00000001685'. It's sysmtem message but not the actual account number or contra account number.
Thanks!
Lorrie -
Crystal reports always stay in queued state
When I run any crystal report, they stay in queued state forever.I have rebooted the appserver and process schedulerand cleared the cache,but the same problem persists.
Application:FSCM 8.8
Tools:8.47
What might be the problem and how can i rectify it?It's possible that you have some previous Crystal processes that are in a non-final status. They may be 'stuck' in Processing or Initiated status. If the number of these incomplete processes has reached your maximum concurrent process level, then no additional Crystal processes will run until those incomplete processes are cleared out. I have also seen situations where 'Error' or 'Canceled' processes can prevent future processes from running.
If you have Crystal processes in anything other than 'Success' status, try deleting those processes through Process Monitor, and see if that allows your queued processes to start. -
BusinessObject 4.0 API to get SQL statement from webi or crystal report
Hello,
Need your help.... could you confirm whether BusinessObjects 4.0 provides any SDK, API or Web Service to get physical SQL statement from the webi or crystal reports file?
If so, could you provide name of package, class and method?
If I am not wrong, there is an SDK in v3.0 that allows to extract the SQL. But I am reading a lot on these forums that lot of SDK classes and functions are deprecated / removed in v4.0.
Thanks for your help.
OmerFor Crystal Reports in BI 4.0 to retrieve the SQL query you can use Report Application Server SDK. Here is a code snippet that retrieves the SQL statement.
//oInfoObjectReport is of type IInfoObject corresponding to the crystal report.
ReportClientDocument reportClientDoc = reportAppFactory.openDocument(oInfoObjectReport, 0, Locale.ENGLISH);
//for all crystal reports
GroupPath grpPath = new GroupPath();
//get CR SQL query string
String reportSQL=reportClientDoc.getRowsetController().getSQLStatement(grpPath,null);
System.out.println("report SQL String: "+reportSQL);
//for report whose datasource is command object:
Tables tables = reportClientDoc.getDatabaseController().getDatabase().getTables();
for (int i = 0; i < tables.size(); i++)
ITable table = tables.getTable(i);
ICommandTable ic= (ICommandTable) table;
//Command can be obtained from the report using getCommandObject() method
//get CR SQL query string
String SQLText=ic.getCommandText();
System.out.println("SQLText_"+i+": "+SQLText);
Here are useful links for BI 4.0
[RAS API Specification|http://help.sap.com/businessobject/product_guides/boexir4/en/xi4_rasjava_apiRef_en.zip]
[RAS Developer Guide|http://help.sap.com/businessobject/product_guides/boexir4/en/xi4_rasjava_dg_en.zip] -
State information/Crystal Reports
Hi :
If there's an FAQ somewhere which answers these (or similar) question,
pardon me, and please direct me to it.
Q1. When I have a service object with Environment visibility and a
Transaction/Session Dialog Duration, how's state information maintained
? Is it automatic, or do I have to turn on the IsShared attribute on the
service object class ?
Q2. I was trying to create a Crystal Report interface (CR V 5.0) to
forte (2.0.f2) and ran into some problems. I know it has been done by
others and would appreciate some help. After I created the C++ wrapper
code, I had to go in and remove the prototypes (both for
FORTE_NO_PROTOTYPE and the alternate one) for the code to compile. I
also had some problem in mapping HWND to forte data type. Any help on
these will be greatly appreciated.
Please respond to either/both of the addresses brlow.
Thanks.
[email protected]
[email protected]Priya Rath asks...
Q1. When I have a service object with Environment visibility and
a Transaction/Session Dialog Duration, how's state information
maintained? Is it automatic, or do I have to turn on the IsSharedattribute on the service object class ?First of all, the IsShared attribute deals with ensuring multiple tasks
are not accessing/updating the same object concurrently. And while
setting this attribute helps to ensure that "state information" is not
corrupted by multiple tasks, it has nothing to do with "maintaining"
state information.
So, the simple answer to your question is yes... assuming the state
information you mention is stored in SO attributes, then it will be
maintained automatically. However, as is the case with most simple
answers, there are numerous problems/issues that need to be considered.
1) For message duration SOs, the state information would generally only
last for a single method invocation, which normally means that all state
information is passed as parameters to the method and not maintained in
the SO.
2) For transaction duration SOs, the state information lasts for the
duration of the transaction. Therefore, any initiating state information
needs to be passed as method parameters. Subsequently, any changes to
the SO state information (made during the current transaction) will be
maintained automatically. Once the transaction completes, Forte will
release the transactional lock making the SO available to other tasks.
However, should the SO/partition etc. crash during the transaction, all
state information is lost and the transaction will have to be restarted
(generally on a replicated copy of the SO).
3) For EVSOs which permanently maintain state (regardless of duration),
the state information lasts for the entire life span of the SO and is
shared by all distributed tasks executing in the environment. As stated
earlier, setting the IsShared attribute can help ensure that this state
information is not corrupted by multiple tasks. However, if your EVSOs
have "permanent" state, then they can NOT generally be replicated for
failover or load balancing (since this state information will not be
available to the failed-over SO and will not be shared by load balanced
SOs).
If, however, you truly wish to maintain "permanent" or "semi-permanent"
state in EVSOs, then I suggest you look at the Memento Design Pattern in
Erich Gamma's Design Patterns book. With some ingenuity and thoughtful
partitioning, this pattern can be adopted to maintain transient,
semi-permanent and permanent EVSO state information, INCLUDING REMOTE
OBJECT REFERNCES, and can recover this state in the event of FAILOVER
(though it does nothing to help with sharing state between load balanced
EVSOs). If you having any questions about how to adopt the Memento
pattern, please let me know.
Steve McIntyre
MCI Systemhouse
[email protected]
-------------------------- -
IF Statement Help in Crystal Report
Hi
I have written a SQL Query to use in my Crystal Report but it is wrong:
IF Currency = 'ZAR'
BEGIN
(SELECT LineTotal FROM PCH1)
END
ELSE
BEGIN
(SELECT TotalFrgn FROM PCH1)
END
Basically I am wanting to create a field in the Crystal Report that checks the Price Currency (PCH1) and if a specific currency then select the relevant PCH1 Table, so if it is ZAR then LineTotal will be shown in the report, IF USD is displayed then TotalFrgn.
Not to sure how to acheive this in Crystal as I used the Crystal Syntax fields but no luck (IF, THEN, ELSE), and if I select LineTotal it will display the converted LC for the report and not the USD value.
Any Ideas?
Regards
Kurt WaltersHi..
Check this thread you will get idea for If Condition on Crystal Report
[crystalreport variable problem.;
Regards,
Bhavank -
Crystal Report 13- self generated error :: Don't just ignore,Please help!
I was planning to develop this desktop application with VB.net 2010, SQL 2008 and Crystal Reports. I have downloaded the latest "SAP Crystal Reports, version for Visual Studio 2010". I faced some problems ...some error. I read on a [thread |Re: CRYSTAL Reports 2010 for VS 2010 issues; about changing the target framework from the Project>Properties>Compile>Advanced Compile Properties> from framework 4.0 client profile to framework 4.0, then the errors were gone but different errors occurred in the CrystalReport1.vb file. What got me confused is ... how come the errors come without me not even editing or writing the code, it was generated by VS 2010 itself. I've posted the code and the error below (It looks hard to read, I guess SAP has to change its text editor). I tried to look for solutions for the errors but couldn't get them. I hope this would be the right place to get the solution. Thank you in advance!
Mike F.
Edited by: mk1987 on Feb 19, 2011 4:49 PM
There is a 2500 character limit and then Forums removes formatting.
Edited by: Don Williams on Feb 19, 2011 5:51 PM+++CODE+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.1
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
Option Strict Off
Option Explicit On
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.ReportSource
Imports CrystalDecisions.CrystalReports
Imports CrystalDecisions.Data
Imports CrystalDecisions.Enterprise
Imports CrystalDecisions.ReportAppServer
Imports CrystalDecisions.Reporting
Imports CrystalDecisions.VSDesigner
Imports CrystalDecisions.Web
Imports CrystalDecisions.Windows
Imports WindowsApplication1.CrystalReport1
Imports WindowsApplication1.CrystalDecisions
Imports WindowsApplication1.CachedCrystalReport1
Imports WindowsApplication1.ReportClass
Imports CrystalDecisions.Shared
Imports System
Imports System.ComponentModel
Public Class CrystalReport1
Inherits ReportClass
Public Sub New()
MyBase.New()
End Sub
Public Overrides Property ResourceName() As String
Get
Return "CrystalReport1.rpt"
End Get
Set(ByVal value As String)
'Do nothing
End Set
End Property
Public Overrides Property NewGenerator() As Boolean
Get
Return True
End Get
Set(ByVal value As Boolean)
'Do nothing
End Set
End Property
Public Overrides Property FullResourceName() As String
Get
Return "WindowsApplication1.CrystalReport1.rpt"
End Get
Set(ByVal value As String)
'Do nothing
End Set
End Property
<Browsable(False), _
DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)> _
Public ReadOnly Property Section1() As CrystalDecisions.CrystalReports.Engine.Section
Get
Return Me.ReportDefinition.Sections(0)
End Get
End Property
<Browsable(False), _
DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)> _
Public ReadOnly Property Section2() As CrystalDecisions.CrystalReports.Engine.Section
Get
Return Me.ReportDefinition.Sections(1)
End Get
End Property
<Browsable(False), _
DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)> _
Public ReadOnly Property Section3() As CrystalDecisions.CrystalReports.Engine.Section
Get
Return Me.ReportDefinition.Sections(2)
End Get
End Property
<Browsable(False), _
DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)> _
Public ReadOnly Property Section4() As CrystalDecisions.CrystalReports.Engine.Section
Get
Return Me.ReportDefinition.Sections(3)
End Get
End Property
<Browsable(False), _
DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)> _
Public ReadOnly Property Section5() As CrystalDecisions.CrystalReports.Engine.Section
Get
Return Me.ReportDefinition.Sections(4)
End Get
End Property
End Class -
Can I have a SQL statement in a Custom Function in Crystal Reports 2008
I'd like to create a custom Crystal Reports function which does a database lookup. Is this possible? In the pseudo code below "v_le_afe_xref" is a dataource in the report. A syntax check fails on the select.
Function legal_entity_co (old_co AS number) AS number
SELECT v_le_afe_xref.NEW_BURKS FROM v_le_afe_xref WHERE old_co = v_le_afe_xref.OLD_BURKS
END FUNCTION
Thanks.Hi David,
Not sure where you are trying to use the function but CR doesn't support Functions directly, this changes so try Service PAck 3 to see if it's been added. Try using a SQLExpression, and do not include a SELECT in the SQL or using a Command Object.
You may be able to define it on the server and then call it from CR using a Command also.
Thank you
DOn
Maybe you are looking for
-
Why is my page count always 1 (regardless of number of pages)?
I just created a new Numbers document. It has 3 pages. In the footer I display (page number) of (page count). I would expect to see "1 of 3", "2 of 3", "3 of 3". What I get is "1 of 1", "2 of 1", "3 of 1". What do I have to do to get the page count t
-
I just got a WD My Passport 1TB External Harddrive and i have already backed everything up to it but im still a little nervous about erasing things off the physical drive on my macbook pro since it says my disk utility is out of space an implying i n
-
Bluescreen! Updating Lenovo's nVidia driver for Win7 64bit on my w520
No other messages were found that addressed this: Audio out disappeared for no obvious reason playing web content on a TV through the DisplayPort (DP->HDMI adapter) on discrete graphics settings (in BIOS.) Most important, clicking the nVidia icon in
-
Does Creator WAR work with Weblogic 7.x
Hi, When I try to deploy Creator generated WAR on WebLogic 7.x, I get the following error: <Feb 21, 2005 4:50:25 PM CST> <Error> <HTTP> <101216> <Servlet: "Faces Servlet" failed to preload on startup in webapp: "webapp1" javax.servlet.ServletExceptio
-
Voice dialing in different languages
In my contacts, there are people from many different countries - their names are therefore pronounced in completely different ways. My E71 however pronounces (and recognizes) all the names according to just one language that is set up. Is it possible