Hiding the Selected field in the Crystal reports 2011
Hi Experts,
I am new to the Crystal reports. How to hide the Selected Field in the Crystal report 2011.
Thanks,
Kavya.C
Hi Kavya,
You can right click on the field, go to Format Field -> Common Tab. Select/Check the option "Suppress". Or if you want to hide/ Suppress the entire section in a Crystal Report, for e.g. Detail section, right click on Details Section and select Section expert. You can select Hide/Supress accordinly.
That should hide the filed/Section when you run the report.
- Kuldeep
Similar Messages
-
Hiding a data field in SAP Crystal Reports 2011
Hello,
I am new to SAP Crystal Reports 2011 (Crystal Reports).
Does any one know how to hide a Special Field in a Crystal Report?
Specifically, I am trying to hide the Special Field, 'Record Number' from displaying on my report.
I need the Special Field, 'Record Number' to know how many records was printed on my report
in order to limit the amount of records printed while I am testing this new report.
Thanks for the help!
TonyHi Tony,
Yes to hide specific field, follow abhilash suggestion..
1. Limit the number of records displayed on your report like that:
section expert -> particular your report section -> click on suppress -> write below formula
RecordNumber > Limited number of records count..
2. limit the number of records per page on your report follow below link:
How to limit the no of records per page in crystal reports 2008
Thanks,
DJ -
How to change the value of the Selection field in the ROOSFIELD table for o
Hi there
I have a standard data source 0CRM_SALES_ACT_1 for which one of the standard field has the status A(Hidden).
In the field selection filed of the table ROOSFIELD and I want to change it to P(Visible) for one of the field in the Data source.
How it can be done. Any suggestion will be greatly appreciated.
kind regards
SarahHi,
Keerthi
Good Question..Even am also new to this issue.
But let me try to find the solution.
Before lookinto this issue. i need clarification on this.
1. You want to see the value in the text box as a color one or you want to change the disable from true to false?
If that is the case, then following one is my suggestion.
In proceesRequest method
1. get the handle for the messageTextInput Bean and based on that set the disable property to false
for example:
OAMessageTextInputBean t1 = (OAMessageTextInputBean )webBean.findChildRecurrsive("ItemId");
t1.setDiabled(false);
In ProcessFormRequest method
1. get the handle for the messageTextInput Bean and based on that set the style class or css property to "OraFieldText"
for example:
OAMessageTextInputBean t1 = (OAMessageTextInputBean )webBean.findChildRecurrsive("ItemId");
t1.setCss(OraFieldText);
(Or)
If it will not work then directly set the cssClass Property to OraFieldText.
I hope it will work....am not sure about this.
Regards
Santhosh kumar.k -
Get the parameter fields defined in crystal report
I am porting my application from crystal 8.5 written in C++ to crystal 2008 in .net.
Here I am not making use of crystal report viewer neither I am creating .rpt in .net code.
I have a set of already created .rpt files.
I have written a function in .net to export the crystal report.
Its a generic function and will be called for multiple crystal reports.
I am passing the parameter values to the report by making use of the following function :
ReportDocument repDoc;
repDoc.SetParameterValue(APPTYPE, strNextToken[0]);
repDoc.SetParameterValue(COMPORROLETYPE, strNextToken[1]);
Similarly I are setting other parameter values.
The problem here is that, all the reports do not have parameter fields defined that I am trying to set.
They may be present for one report and absent for another. In this case , if the report does not have a particular parameter
field, then it gives error on setting parameters and subsequently fails.
Now I want to find out through code what all parameter fields are defined in the report. Then I will only set those
parameter fields?
Please guide how can this be done.
Thanks
SonamNot as trivial as you might think. You will have to loop through all the sections of the report looking for the objects you need. I don't have a code specific to parameters, but looping through al the sections would be something like the code below. But... this will only show you parameters in a section. It will not show you parameters used in a formula, record selection formula, group selection formula, text field or a conditional formula. In order to get those parameters, you's have to parse out each of those objects looking for parameters. And this is probably not an exhaustive list of places to look for a parameter in the report. I get a headache just thinking about this...
Dim crSections As Sections
Dim crSection As Section
Dim crSubreportObject As SubreportObject
'set the crSections object to the current report's sections
crSections = crReportDocument.ReportDefinition.Sections
'loop through all the sections to find all the report objects
For Each crSection In crSections
crReportObjects = crSection.ReportObjects
'loop through all the report objects to find all the subreports
For Each crReportObject In crReportObjects
If crReportObject.Kind = ReportObjectKind.SubreportObject Then
'you will need to typecast the reportobject to a subreport
'object once you find it (***you'd go to setting the parameter here - or not...)
crSubreportObject = CType(crReportObject, SubreportObject)
'open the subreport object
crSubreportDocument = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
'set the database and tables objects to work with the subreport
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup -
How to get the coloumns (fields) width in crystal report
hi,
how to get the coloumns width, date(get and set) and page size in crystal report using ras sdk .
thanksThanks
-
SAP Query; change the name of the selection fields
Hi,
I created a SAP query using SQ01. When I execute the report, the selection field are the names of the table fields. As an example, I would like to change the selection field name «Customer number 1» for «Customer number». How can I change this selection field name in a SAP Query?
Thanks,
JulienCheck Page Number 8 of this below mentioned document
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40bec8da-4cd8-2910-27a9-81f5ce10676c
a® -
SAP Query: Display Selection Fields in the header page of Basic list
Hello,
I have to display the selection fields in the header page of the basic list and statistics
in a SAP Query.
I know the usage of short names for fields in the header page, but this doesn't work
for the selection fields.
How can I display the selection fields in header pages?
Kind regards
ThomasTry using:
DATA: wa_lstab TYPE line
READ LINE sy-index line value INTO wa_lstab
Thanks,
SKJ -
Crystal Report 2011 does not display when keyfigures are zero
I am using Crystal report 2011 with BEX Queries as Data Source. I am not able to see some of the characteristics values when keyfigures are zero or null. In BEX query there is a costCenter Characterstic, few costcenter characteristics values are zero for some months but BEX Query is designed to show as spaces even if the keyfigures are zero for those costcenters. When I am using the same Bex Query with Crystal report 2011 all the costcenters with keyfigures as zero are not showing up on the report. Can anybody suggest how I can show the characterstics values even if all the keyfigures are zero. (I have not selected any kind of suppression in section expert in crystal report), (In Bex Query CostCenter- Properties-Advanced----Access Type for Result values are set to Master Data)
Hi,
Have you made sure the correct Transport files have been loaded on the SAP system? Since you're using CR 2011, you need to make sure the Transports that come with this version of CR are present on the SAP system.
Could you see if the workaround mentioned in SAP Note: 1391673 works for you?
Here's a snippet of the SAP Note:
SAP Development team of BW BEX MDX Interface suggest the following implementation:
Since Crystal Reports is not correctly interpreting the character used to represent NULL values (by default the value: X) please use the Customizing transaction: RSCUSTV4 to change the sent value.
Please note, this is a Global setting, and will also modify the behaviour in BEx application.
WORKAROUND: Create a formula field based on the selection that always returns a number - converting null to 0.
Create a formula in BEx for the KF.
Edit the Selection
Edit the formula to behave like:
COUNT ('KF') * 'KF' + 0
('RKF' + 0) * 1
Not generally acceptable since it requires duplicating fields.
Also, business may not accept 0,00 for a NULL result.
Hope this helps!
-Abhilash -
Crystal Reports 2011 INS00140 error
I have been unsuccessful in installing Crystal Reports 2011. After I enter my name, company name, and key, it will pop up with the error after 30 to 45 seconds of waiting. I am uncertain if I have to uninstall Crystal Reports 2008. I have spoken to technical support. They gave me a few things to try however, the end result was the same. They mentioned to go back to the distributor and get another CD Key. I am not certain if that would even matter at this point considering I am not getting that type of error.
PC Spec:
Dell Precision T3500
Windows 7 Enterprise w/SP1
4GB memory
Intel Xeon W3550
Steps taken:
1. Downloaded latest files from SAP (53005711 and 51041020)
2. Made certain I did not have the MS KB2467175 update
3. Installed Visual Studio Pro 2010
Please let me know what else I can do to get this on my system short of reinstalling the OS.I spoke with Sean Keaney. This is the email I got:
Hello,
Please follow the below steps to install CR 2011.
Symptom
The Product keycode is not valid. INS00140 Error appears in Validation Result window during Crystal Reports 2011 installation
Environment
Crystal Reports 2011 (patch level below SP02)
Reproducing the Issue
1. Run Crystal Reports 2011 setup.exe
2. Enter valid keycode when prompted
3.
Cause
This is known issue and fixed in ADAPT01538339.
There is a conflict between keycode validation process and Microsoft Visual C++ Redistributable Patch KB2467175
Resolution
The issue has been resolved in SP02, but as a quick fix uninstall the Microsoft patch, install Crystal Reports 2011 and reinstall the patch.
The link for patch download: http://support.microsoft.com/?kbid=2467175
Update: According to the latest information Microsoft replaced the patch with a newer security update.
If this does not work for your install please contact the team who provided the license key to you so they can check this against their records.
Should you require any further assistance please do not hesitate to contact us.
Kind regards
Sean Keaney
Support Consultant
AGS Primary Support, Customer Interaction Center
SAP Service Marketplace: www.service.sap.com
http://www.sap.com
To get the most from your support, please review the Global Support Customer Interaction Brochure
Your Feedback Counts - Complete our Survey Today!
SAP Service Marketplace Channel: www.youtube.com/sapsmptv
This communication contains information which is confidential and may also be privileged. It is for the exclusive use of the addressee. If you are not the addressee please contact us immediately and also delete the communication from your computer. Steps have been taken to ensure this e-mail is free from computer viruses but the recipient is responsible for ensuring that it is actually virus free before opening it or any attachments. Any views and/or opinions expressed in this e-mail are of the author only and do not represent the views of SAP.
SAP SSC (Ireland) Limited, Registered in Ireland No. 256220. Registered Office: 1012-1014 Kingswood Avenue, Citywest Business Campus, Dublin 24, Ireland -
Crystal Report 2011 compatibility with dot net 1.1
Hi,
WE have a .dot net application in framework 1.1 where we were using crystal reort 9. we are now upgrading to crystal reports 2011 .
1) is crystal reports 2011 runtimes compatable with dot net 1.1
2) Where can i find the runtimes for crystal reports 2011. for this i was ealier given a Visual studio 2010 crystal reports runtime. ths file was called CRRuntime_32bit_13_0_1.msi. but when i install this it has a readme file which says the following.
If you have installed Crystal Reports 2011 or any of the SAP BusinessObjects XI 4.0 products,
you may notice that their installation contains the same "Crystal Reports 2011" and "SAP
BusinessObjects Enterprise XI 4.0" folders as you see in this folder. Please note that the
folder/files names may be the same but most files have a different version, and are not
compatible with the Crystal Reports 2011 or SAP BusinessObjects XI 4.0 products.
the way i am reading this seems that the runtime i have is not the one i want for Crystal reports 2011
Thanks
Ravinder AkkarajuA bit of a historical review;
VS2010 came out
We created a version of CR that integrates with VS2010. This is Crystal Reports for Visual Studio 2010 (v 13.x), also refered to as CRVS2010
At a later time CR 2011 was released. This version has no SDK.
However, any report created in CR 2011 can be run with CRVS2010, as well as the CR 2008 (v. 12.x) runtime.
As CRVS2010 is for VS2010 only, and VS2010 does not support framework 1.1, CRVS2010 does not support framework 1.1
If you want to use report create in CR 2011 with framework 1.1 based application, you will need to obtain CR 2008 which will install the correct runtime.
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports] -
How to use the distinct key in formula field in SAP Crystal Reports
I want to use the distinct key in formula field in SAP Crystal reports.
When i'm using it shows an error.
Please suggest me....Hi,
Use DistinctCount keyword directly for your calculation instead of count(distinct(....
Alternatively, if you want to avoid duplicate records, under "File" > "Report Options" make the 'Select Distinct Records' as True.
Thanks,
Raghavendra -
Trying to change the data source for a Crystal Report.
<p>The method below represents my best attempt to programatically change the data source of a Crystal Report. The goal is to have a routine that will update the data source for reports after they have been distributed to production servers. So far I have not been successful in saving the report back to the CMS. No exceptions are thrown, but when I view the Database Configuration of the report in the CMC nothing has changed.
</p>
<p>
Am I missing a step, or is there another way to accomplish this?
</p>
<p>
Thank you.
</p>
<hr />
<pre>
private void test(String reportName)
throws SDKException, ReportSDKException, java.io.IOException
IInfoObjects newInfoObjects;
IInfoObject reportObj;
ReportClientDocument clientDoc = new ReportClientDocument();
DatabaseController dc;
PropertyBag pBag;
PropertyBag logonProps;
ConnectionInfo newConInfo;
ConnectionInfo oldConInfo;
ConnectionInfos conInfos;
int connOptions = DBOptions._ignoreCurrentTableQualifiers + DBOptions._doNotVerifyDB; //0;
Fields connFields = null;
String queryStr = "Select * From CI_INFOOBJECTS " +
"Where SI_NAME='wfr.rpt' AND SI_KIND='CrystalReport' AND SI_INSTANCE=0";
newInfoObjects = getCms().executeQuery(queryStr);
if(newInfoObjects.size() > 0)
reportObj = (IInfoObject)newInfoObjects.get(0);
try
clientDoc = getCms().getReportAppFactory().openDocument(
reportObj
, OpenReportOptions._refreshRepositoryObjects
, java.util.Locale.US);
dc = clientDoc.getDatabaseController();
conInfos = dc.getConnectionInfos(null);
for(int i = 0; i < conInfos.size(); ++i)
oldConInfo = (ConnectionInfo)conInfos.getConnectionInfo(i);
newConInfo = (ConnectionInfo)oldConInfo.clone(true);
pBag = newConInfo.getAttributes();
pBag.putStringValue("QE_ServerDescription", "alio");
logonProps = new PropertyBag();
logonProps.putStringValue("Trusted_Connection", "false");
logonProps.putStringValue("Server", "alio");
pBag.put("QE_LogonProperties", logonProps);
newConInfo.setUserName("admin");
newConInfo.setPassword("password");
dc.replaceConnection(
oldConInfo
, newConInfo
, connFields
, connOptions);
catch(ReportSDKServerException Ex)
String msg = "A server error occured while processing the " + reportObj.getKind()
+ " object, " + reportObj.getTitle() + " (" + reportObj.getCUID() + "), from the CMS.";
Utility.errorOut(msg, Ex);
catch(Exception Ex)
String msg = "An error occured while processing the " + reportObj.getKind()
+ " object, " + reportObj.getTitle() + " (" + reportObj.getCUID() + "), from the CMS.";
Utility.errorOut(msg, Ex);
finally
clientDoc.save();
getCms().commitToInfoStore(newInfoObjects);
clientDoc.close();
</pre>
Edited by: Mark Young on Sep 10, 2009 2:16 PM<style type="text/css">
/<![CDATA[/
body
font-size: 1.125em;
font-family: helvetica,arial,"sans-serif";
.code{font-family: "courier new",courier,mono,monospace}
.bi{font-style: italic; font-weight: bold;}
/]]>/
</style>
<p>Justin,</p>
<p>
Thank you for the reply. Time constraints have not allowed me to post back to this tread
till now. I will try your suggestion. My assumption is that <i>Save the report back to the
info store</i> refers to <span class="code">IInfoStore.commit(IInfoObjects)</span>.
</p>
<p>
I'm afraid that I do not understand why I don't want to change the report client document,
or why <i>successfully exporting the report with the new login/password</i> is not what I
want to do. Any explanation on that statement would be appreciated.
</p>
<p>
I did find a way to accomplish my goal. It involved adding the SSOKEY property to the
logon property bag. Below you'll see my revised code which modifies the report logon and
server. I have no idea what
this does, and SAP support has not been able to tell me why it works. However, what I
discovered is that if I changed the report option, <b>Database Configuration -> When
viewing report:</b>, in the CMS to <span class="bi">Use same database logon as when report
is run</span> from <span class="bi">Prompt the user for database logon</span>, then the
SSOKEY property had been added to the logon property bag having an empty string as its
value. This allowed me to successfullyupdate and save the modified logon back to the CMS.
</p>
<p>
So I took a chance and added code to always add the SSOKEY property with an empty string
as its value, and I could then successfully modify and save the report's logon info
and server. Again, I don't know what this means, but it has worked so far. If anyone has
some insight or comments, either are welcome. Thank you in advance.
</p>
<br />
<hr />
<pre>
private void changeDataSourceOfAWFCrystalReports()
throws SDKException, ReportSDKException, java.io.IOException
IInfoObjects newInfoObjects = null;
IInfoObject reportObj = null;
IReport curReport = null;
ReportClientDocument clientDoc = new ReportClientDocument();
DatabaseController dbController;
PropertyBag pBag;
PropertyBag logonProps;
ConnectionInfo newConInfo;
ConnectionInfo oldConInfo;
ConnectionInfos conInfos;
int connOptions = DBOptions._ignoreCurrentTableQualifiers + DBOptions._doNotVerifyDB;
Fields connFields = null;
String outputStr;
int numOfReports;
int numOfQueryPages;
double progressIncrementPerPage = 30;
int progressIncrementPerReport = 0;
// Path query to reports is in a .properties file.
String queryStr = getAppSettingsFile().getWscAwfCrystalReportPathQuery();
try
// Executes IInfoStore.getPageingQuery() and generates a list of queries.
getCms().setPathQueryQueries(queryStr, 100);
numOfQueryPages = 0;
// Gets a List<String> of the IPageResult returned from IInfoStore.getPageingQuery().
if(getCms().getPathQueryQueries() != null)
numOfQueryPages = getCms().getPathQueryQueries().size();
if(numOfQueryPages > 0)
// Use 30% of progress bar for the following loop.
progressIncrementPerPage = Math.floor(30.0/(double)numOfQueryPages);
for(int queryPageIndex = 0; queryPageIndex < numOfQueryPages; ++queryPageIndex)
// Gets the IInfoObjects returned from the current page query
newInfoObjects = getCms().getPathQueryResultSetPage(queryPageIndex);
numOfReports = newInfoObjects.size();
if(newInfoObjects != null && numOfReports > 0)
progressIncrementPerReport =
Math.round((float)Math.floor(progressIncrementPerPage/(double)numOfReports));
for(int reportIndex = 0; reportIndex < numOfReports; ++reportIndex)
reportObj = (IInfoObject)newInfoObjects.get(reportIndex);
curReport = (IReport)reportObj;
clientDoc = getCms().getReportAppFactory().openDocument(
reportObj
, OpenReportOptions._refreshRepositoryObjects
, java.util.Locale.US);
dbController = clientDoc.getDatabaseController();
conInfos = dbController.getConnectionInfos(null);
for(int conInfosIndex = 0; conInfosIndex < conInfos.size(); ++conInfosIndex)
oldConInfo = (ConnectionInfo)conInfos.getConnectionInfo(conInfosIndex);
newConInfo = (ConnectionInfo)oldConInfo.clone(true);
pBag = newConInfo.getAttributes();
pBag.putStringValue(
"QE_ServerDescription"
,getConfigFile().getDBDataSourceConnections());
logonProps = new PropertyBag();
logonProps.putStringValue("Trusted_Connection", "false");
<b>logonProps.putStringValue("SSOKEY", "");</b>
logonProps.putStringValue(
"Server"
,getConfigFile().getDBDataSourceConnections());
pBag.put("QE_LogonProperties", logonProps);
newConInfo.setUserName(getConfigFile().getUNVConnectionUserName());
newConInfo.setPassword(getConfigFile().getUNVConnectionPasswordDecrypted());
dbController.replaceConnection(
oldConInfo
, newConInfo
, connFields
, connOptions);
newConInfo = (ConnectionInfo)conInfos.getConnectionInfo(conInfosIndex);
} // end for on conInfosIndex
clientDoc.save();
} // end for on reportIndex
} // end if on newInfoObjects
} // end for on queryPageIndex
} // end try
catch(ReportSDKServerException Ex)
// handle...
catch(Exception Ex)
// handle...
finally
getCms().commitToInfoStore(newInfoObjects);
if(clientDoc != null)
clientDoc.close();
</pre> -
CRM - change the selection fields in standard extractor
Hello everyone!
I would like to change the selection parameters for the DataSources 0CRM_SRV_PROCESS_H and 0CRM_SRV_CONTRACT_H in order to include the field CHANGED_AT. However, in the DataSource definition this field appears grayed out (even in process mode).
Is there any way I could change this?
If not, I was thinking about appending a custom field with the the same information and include this in the selection criteria. Would this work?
If not, could I create a generic DataSource whose function module would internally call the standard DataSources own FM with the standard selection criteria and then filter it out further with my own criterion?
Performance is not really an issue here.
Thanks in advance for any input on this!
Best Regards,
Luís Andrade.Hi,
>
scoy123 wrote:
> I have added one screen field to the standard report , now i want to change the selection text in the standard report/transaction
Refer:-
CONSTANTS : c_comment(20) TYPE c VALUE 'write your comment'.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(20) c_comment.
PARAMETERS : p_matnr TYPE matnr.
SELECTION-SCREEN END OF LINE.
Hope this helps you.
Regards,
Tarun -
Calling the Selection screen in the Interactive report
Hello,
this is urgent requirement.
I need to call the selection in the interactive report.
my requirement is i have to display list of the table name which is stored in the table DD20T.
in basic list i have to display all the table name.
if i double click the table name that the key field of the particular table with select option should display in the secondary list.
so please help me.
Thanks and regards,
zuberaHi,
Go for Drill down report.
call transaction SE16 or SE16N. pass the tables to the transaction.
exp code:
DATA : lv_field(10) TYPE c VALUE 'MARA'.
WRITE : lv_field.
AT LINE-SELECTION.
SET PARAMETER ID 'DTB' FIELD lv_field.
CALL TRANSACTION 'SE16' AND SKIP FIRST SCREEN.
please reward if help full..........
By
Gupta -
I want to change the selection text in the standard report/transaction .
I have added one screen field to the standard report , now i want to change the selection text in the standard report/transaction
Hi,
>
scoy123 wrote:
> I have added one screen field to the standard report , now i want to change the selection text in the standard report/transaction
Refer:-
CONSTANTS : c_comment(20) TYPE c VALUE 'write your comment'.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(20) c_comment.
PARAMETERS : p_matnr TYPE matnr.
SELECTION-SCREEN END OF LINE.
Hope this helps you.
Regards,
Tarun
Maybe you are looking for
-
Can I use WiFi and other features without activating phone
I want to find out if I can still use WiFi, connect to the computer, etc without activating actual phone service with Verizon. Basically I plan on getting this phone free with a new contract, but I will continue to use my old phone as the actual act
-
hello everyone! my English is very poor ! I receive one E-mail no Attachment ,but in mailboby is begin 666 batch/04665735.xls M/&AT;6P@>&UL;G,Z;STB=7)N.G-C:&5M87,M;6EC<F]S;V9T+6-O;3IO9F9I M8V4Z;V9F:6-E(@T*>&UL;G,Z>#TB=7)N.G-C:&5M87,M;6EC<F]S;V9T+6-O
-
Hello, I am cross checking my configuration with the Readiness_Check_Version3.pdf In one of the test cases on SLDCHECK mentioned below it says "Check if the URL given in this section corresponds to http://<host>:80<sysnr>/sap/xi/engine?type=entry " a
-
Placing the cursor in JTextField
When the form gets loaded i want to place the cursor in a particular JTextBox of the form. How do i do this? thanks in advance.
-
Hello, I have been struggling with this and would appreciate if anyone can guide me here. I am getting a resultset from a database and I need to present it in a particular format. I tried with DataGrid and it doesnt work, I read through OLAP document