SAP parameter token - Crystal Report 8.8
Hi,
When I want to create a parameter for selection of BPCode, myparameter@select * from OCRD works well. The idea of filtering with properties etc is fantastic.
However, what I need is to create a parameter with value in AddID in OCRD.
I have tried myparameter@select AddID from OCRD, but, it is not displaying the list for AddID capture in OCRD, instead, it display the same UI as myparameter@select * from OCRD.
How do I get by this?
I have tried, range, multiple value, does not work at all.
Did I miss something?
Gordon,
Thanks for replying.
I want to create parameter, as simple as that. Parameter should not be restricted with key value.
In standard Crystal Report, you can create parameter, if you set it as Dynamic, set it to refer to any table field, and use it in report, when running the report, the parameter will be populated with value of the referred field.
How does this work with SAP 8.8?
Are we suppose to use syntax like myparameter@select AddID from OCRD or we just create dynamic parameter as normal?
I have tried both and it does not seems to work properly.
1. If i use myparameter@select AddID from OCRD, it comes out with selecting for OCRD will all those properties, which I am not interested.
2. If I create a dynamic parameter, when runnign the reprot within SAP, nothing has come out on the list for selection.
Has anyone tried that?
No, SQL Command is not what I am interestded,
Similar Messages
-
Optional Prompt for Date type parameter in Crystal Report.
Hi Every One,
I have a date type parameter in crystal report.When I am convert it to optional prompt it is showing following message.
But the Type field is gray out when I was selecting list of values Dynamic.
Please suggest.
Thanks and Regards
DEVHi,
Please check SAP note:
1710595 - CR_Defining "Optional Prompt" as True for SAP Crystal
Reports Does Not Work
Thanks & Regards,
Nagarajan -
No SAP Datasources or SAP Toolbar in Crystal Reports 2008
I cannot see the SAP toolbar or SAP datasources under "Create New Connection" in Crystal Reports 2008 SP1.
After reading many threads on SDN and reistalling Crystal Reports 2008 SP1 and the BOBJ SAP Integration Kit many times I have not been able to get this to work. I have installed the following in order:
- SAP GUI for Windows
Release: 710
Build: 1046700
Patch Level: 12
includes the BW 3.5 AddOn and BI 7 AddOn
Crystall Reports 2008 SP1 which I installed all components except Legacy XML Export.
Business Objects XI Integration Kit XI 3.1 for SAP which I installed all desktop components and all server components excluding web content and SDK. This was a local install on my PC.
I have ensured that I have only one instance of SAPLOGON.ini on my PC.
I have not applied the transports yet because I want to see the SAP datasources and SAP toolbar in Crystal Reports before I progress.
We do not have Business Objects Enterprise and I'm not sure what "BOE 3.1 Client Tools" is referred to earlier in this thread. My understanding is that in addition to SAP and BW we just need Crystal Reports 2008 and the SAP integration kit.
We are on ECC6 and BW 3.5.
I hope someone can help.Hi Stratos,
Thanks for your response. I finally got this working. My issue was that I originally used the Crystal Reports 2008 and BOBJ Int Kit downloads from the SAP support portal. I checked with another SDN user Steven Dierick - thanks Steven - for the version of Crystal Reports 2008 he was using (version 12.0.0.683).
I downloaded Crystal Reports 2008 version 12.0.0.683 and the BOBJ Int Kit from the downloads section of sdn and it works!! SAP Toolbar, datasources and everything.
Considering I'm using Crystal Reports 2008 SP0 are there any disadvantages of not using Crystal Reports 2008 SP1?
If I'm better off using SP1 where should I download Crystal Reports 2008 SP1 and the appropriate BOBJ SAP Integration Kit?
cheers,
John -
Error While connecting to SAP R3 from crystal reports
Hi Experts,
I am trying to connect to a SAP R3 from crystal reports, it gives below mentioned error.
Logon failed.
Details: CMALLC: rc= 27 > Connect from SAP gateway to RFC server failed
Connect_PM GWHOST=10.11.12.13, GWSERV=SAPGW12, SYSNR= 12
Location SAP-gateway on host xyz/sapgw12
Error timeout during allocate
TIME Wed Nov 18..
Release 700
Component SAP Gateway
Version 2
RC 242
Module gwr3cpic.c
LINE 1872
Detail no connect of TP sapdb12 from host 10.11.12.13 after 20 sec
COUNTER 6
Please help me to solve this error.
Regards,
GaneshHi
please ask your network admins if there is a firewall between your CR Designer installation and your SAP R/3 system.
I assume that you have imported the necessary trsansports in your SAP R/3 system.
Which kind of driver do you use for the connection to SAP R/3?
Regards,
Stratos -
How to use Dynamic cascading parameter in crystal Report XI ?
Hi,
I want to use Dynamic cascading parameter in crystal Report XI which is to be viewed through the infoview without using the Business View.Is it possible?
I could implemented Dynamic cascading parameter using the CR XI developer without using Business View, but cannot view the report when uploaded it to BOXI, through infoview.
Please suggest..
Thanks in advance..
RajneeshIn the crystal reports field explorer>right click on parameter field>create new-->name the parameter field and select the type as dynamic. Now in the value field click the row and add the database field also add another field below that by clicking on the next row so..on. The order should be like this parent field first and then child field next...... Also click on the last column to add parmater for each level.
Regards,
Raghavendra -
SAP BW and Crystal Reports XI R2 Parameter list problem??
Hello Experts,
I facing a problem.
I have a crystal report based on a BW Query. It has one parameter called Country.
Eg:
Until now, in BW query country variable has the following values.
USA
JAPAN
GERMANY
Now, from this fiscal year we have the following values for country variable
USA
JAPAN
INDIA
GERMANY
UK
I am trying to edit the list of values for the country variable in crystal reports. It is not getting reflected in SAP BW. I also tried refreshing it several times.
THE VARIABLE IS A HIERARCHY VARIABLE.
Can any one Please help.!!
Regards
NMU
Edited by: Mohammad Usama on Oct 20, 2008 4:26 PMYou said that you are using version XI R2 SP2 (for BO Enterprise) - do you have any FixPacks on this codeline? (FP2.x)
Question: If YES to above, have you made use of the equivalent FixPack for Integration Kit? (known as "Partners Fix Pack 2.x ")
There are a few fixes in this area, I was thinking like:
ADAPT00716808 - When scheduling a report from SAP Business Information Warehouse (BW) that contains parameters from a hierarchy or a hierarchy node variable, the default values fail to be displayed from InfoView. >>
ADAPT00894127 - When users enter date parameters in the Calendar dialog box in SAP InfoView, the dates entered fail to appear in the corresponding field.
Good luck,
Henry -
SAP 8.8 Crystal Report Layout problem in client workstation
Hi Experts,
We have import crystal report to SAP Business One as Form Layout or AP Invoice. We have already created the token DocKey@ so it would automatically be printed and will not ask for the document number. The layout works fine using the server workstation but in the client workstation we cannot proceed with the printing because when we click on the preview button, a login window appears with this details:
Database Login
Server Name : gray out or not active
Database: gray out or not active
Login ID: active
Password: active
We tried to enter the SQL login but fails.
Is there any components that we need to install in the workstation before it could function the same way as PLD?
Thanks,
JaniceYou can try creating the ODBC connection, which is the same as on the server.
Assuming this is the scenario:
1. You write the invoice using crystal report on the server
2. On the server, Control Panel--> ODBC, you have created an ODBC link eg; SAPB1.
3. The report is connecting to ODBC link and pointing to database OECUS
On the client workstation, you need to create:
1. Control Panel--> ODBC, you need to create an ODBC link as on the server. -
Passing Parameter to Crystal Report
Hi Experts,
I have created and designed a Report in Crystal Report 2005. I am displaying the report in SAP B1 using Win Form . Here I want to pass 2 parameters to Report ---@FromDate and @ToDate . I have coded to pass these two parameters this way :
Dim RptDoc As New ReportDocument
Dim ParamValue As String = String.Empty
Dim crtableLogoninfos As New CrystalDecisions.Shared.TableLogOnInfos
Dim crtableLogoninfo As New CrystalDecisions.Shared.TableLogOnInfo
Dim crConnectionInfo As New CrystalDecisions.Shared.ConnectionInfo
Dim CrTables As CrystalDecisions.CrystalReports.Engine.Tables
Dim CrTable As CrystalDecisions.CrystalReports.Engine.Table
Try
RptDoc.Load(Application.StartupPath() & "\" & ReportName & ".rpt")
RptDoc.SetParameterValue("@FromDate", "01/01/2008")
RptDoc.SetParameterValue("@ToDate", "12/31/2008")
Dim oForm_ReportViewer As Frm_ReportViewer = New Frm_ReportViewer()
oForm_ReportViewer.CRViewer.ReportSource = RptDoc
With crConnectionInfo
.ServerName = oCompany.Server '"(local)"
.DatabaseName = oCompany.CompanyDB '"SBODemoIn"
.UserID = oCompany.DbUserName
.Password = "manager@123" 'oCompany.DbPassword
End With
CrTables = RptDoc.Database.Tables
'Loop through each table in the report and apply the
'LogonInfo information
For Each CrTable In CrTables
crtableLogoninfo = CrTable.LogOnInfo
crtableLogoninfo.ConnectionInfo = crConnectionInfo
CrTable.ApplyLogOnInfo(crtableLogoninfo)
Next
oForm_ReportViewer.Text = frmTitle
oForm_ReportViewer.WindowState = FormWindowState.Maximized
oForm_ReportViewer.ShowDialog()
Catch Ex As Exception
MessageBox.Show(Ex.ToString)
End Try
But When I view the report in B1 , it throws an Exception "Report or Procedure expects parameter @FromDate which is not supplied. "
Please help me where I am making mistake , what could be the cause of this exception..
Thanks and Regards,
Pooja Singh.Hi Pooja Singh,
You have only set Dim ParamValue As String = String.Empty. Where are two parameter @FromDate and @ToDate?
SetParameterValue will only work if you have defined the parameters already and the parameters have the right format.
You may check this thread:
Re: Crystal report open instead of PLD with same form reference.
Thanks,
Gordon -
- I have a Product list box (asp.net) used as multiple selected values for a parameter.
- The Product ID is defined in the Oracle procedure as NUMBER data type.
- In my crystal report, I have a parameter field allow multiple values as p_product_id type as Number. This is the code in my Record Selection Formula for the report:
({?p_product_id}[1] = -1 OR {Procedure_name.product_id} in {p_product_id})
- In C#, this is my code
List<decimal?> productUnit = new List<decimal?>();
int counter = 0;
decimal prod;
for (int i = 0; i < lstProducts.Items.Count; i++)
if (lstProducts.Items[i].Selected)
if (decimal.TryParse(lstProduct.Items[i].Value, out prod))
productUnit.Add((decimal?)prod);
counter++;
if (counter == 0)
productUnit.Add(-1);
ReportingDAO rDataFactory = new ReportingDAO();
retVal = rDataFactory.GetProductReport(productUnit);
public CrystalDecisions.CrystalReports.Engine.ReportDocument GetProductReport(List<decimal?> productUnit)
CrystalDecisions.CrystalReports.Engine.ReportDocument retVal = new rptProductDownload();
ReportLogon rptLog = new ReportLogon();
rptLog.Logon(retVal, "RPT_PRODUCT_DOWNLOAD");
retVal.SetParameterValue("p_product_id", productUnit);
I keep having the "Value does not fall within the expected range" when I debug. My question is, is the data type I used for procedure/Crystal report/ and C# correct ? I always have problem with the data type. Any help would be
appreciated
Thank youHi progGirl,
Thank you for your post, but Microsoft doesn't provide support for CrystalReport now. Please post your question in SAP official site here:
http://forums.sdn.sap.com/forum.jspa?forumID=313
Thank you for your understanding.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to supress prompt of database parameter in Crystal report schedule
Hi,
We are using Crystal Reports 2008. In a particular crystal report generated from some SAP WB query, has a parameter (prompt) on month. Now we need to schedule it for monthly execution. But we are still unable to manage the prompt for month automatically. We don,t have API license, so we can not use VBA .Net or Java programming.
Can we manage this database level prompt using Crystal Report formulas. Please suggest how can we manage this prompt so that it can be executed automatically according to schedule.
Thanks & Regards,
AvijitHi,
Thanks for your reply.
But I know the logic that I need to assign the current month date value to the parameter supplied by BW query in the Crystal Report formula. And I tried to write a new formula using "BeforeReadingRecords" under Formula field. But this formula is not assigning any to the parameter and I am with no success.
Can you please mention how and where shoul I write the formula. Looking forward for you answer.
Regards,
Avijit -
Need to use DocNum as parameter in Crystal report
Dear All,
I am developing a report for our customer now. It is a invoice report. We need 2 parameters
1) Customer code (drop-down list. can only choose one each time)
Here is my token
Customer@ SELECT CardCode, CardName FROM OCRD WHERE CardType = 'C' ORDER BY CardCode
2) Then we need another parameter to display all invoice number for the specific customer. How can I create the parameter here?
Thanks in advance.
Regards,
YukaYou create two parameters in Crystal Reports. Try these
One for Cusomer (Customer@Select CardName from OCRD where CardType='C') - This would be String, Dynamic
One for DocNum - Type :Number , Static
Import the crystal report using Report Layout Manager to the app menu.
Then navigate to the patch and click on the report, when the report loads you should see a dropdown list for Customer Name and the DocNum will be blank.
Click on View-->System Information and findout field info
create a query : Select DocNum,CardCode,CardName,DocTotal,DocDueDate from OINV where CardCode=$[TableName.Field] -
SAP NetWeaver Portal Crystal Reports PDF Export Problem
Hallo all,
We are working with BO Edge XI 3.1 with integration on SAP Netweaver Portal. The problem is that integrated in SAP Portal CR reports cannot be exported to PDF or printed out.
I am using an URL iview with the parameter sOutputFormat=P to run the report.
When I want to print out the report I get the warning message from Internet Explorer "The download of files from this page is for security reasons blocked. Click here..." --> Download the file. By clicking on the u201CDownload this fileu201D the report starts to run again. PDF export doesnu2019t happen.
Did somebody have the same problem?
Thanks a lot in advance!Hello Ingo,
thanks a lot for Your help. I have already talked to my IT department and they are looking for the solution of this problem, too.
Is there a documentation about necessary settings in the browser to work with SAP NetWeaver Portal and Crystal reports?
The problem is that on some clients the PDF export is working and on another clients not. The settings of IE seem to be equal.
Regards,
Katharina -
Parameter in Crystal Report 8.8
Dear Experts,
I'm creating a stored procedures with few parameters. When I preview the report using Crystal Report 8.8, i can set parameters to NULL and the stored procedures will know to capture all information without any filtering.
But when i Preview External Crystal Report in SAP B1 8.8, I don't have the option to set the Parameters to NULL, and SAP B1 is expecting all Parameters must be filled up, it prompts me an error Paramenter [] is mandatory.
Is there any setting i can do to set parameter to NULL?
Thanks.
Regards,
Lay ChinHave you tried, the Optional Prompt, select True in the parameter field?
Hope this helps.
Edited by: Denisse Calaquian on Jun 29, 2011 11:58 AM -
How to use list box parameter in crystal Reports
Hi Experts,
How to acheive list box parameter in sap B1 crystal reports.
Regards
VinothHi,
check this thread
Crystal Report Drop Down Selection List
Drop down list parameter
https://scn.sap.com/thread/1782598 -
I dont see the SAP toolbar in Crystal Reports XI
I installed crystal reports XI (I only have one CD) and Business Objects Enterprise. I also installed Business objects integration kit for SAP, after I opened the crystal reports from the start menu I don't see any SAP BW Add On. I dont know why this happened. Please guide through this.
Lulú McDonaldthe add ons installed are:
SAP GUI:
SAP GUI with SAP Logon
SAP GUI with SAP Logon Pad
BW Add-on:
Business Explorer (SAP BW 3.x)
OLE DB for OLAP Provider
Merchandise an Assortment Planning
Lulu
Maybe you are looking for
-
Can't get this multifunction unit to complete a scan! Help!
ARG! I have a Samsung Laser multi-function SCX-4521F. It overall works great, except they designed it so it doesn't send a signal over USB when turned on, therefore, I have to plug and unplug the USB cable or log in and out in order for the printer t
-
BAPI_CUSTOMER_GETCONTACTLIST
Hi! I want to display the data of a contact person (VAP3). When I insert <b>BAPI_CUSTOMER_GETCONTACTLIST</b> as a data source for the iView, what should I use as an entry value? The default input value of the BAPI is the required field <b>MAXROWS</b>
-
SEM 4.0 Management cockpit buffer job - long runtime
Hello, we run SEM 4.0, and have 14 cockpits with each 4 frames. Several frames are based upon the same query, in the buffer job definition we use the CPM variables to select the subset of data from the query that is to be used. The queries themselves
-
Oracle database missing in OracleManagement Server
Hello! I created a Database. And Successfully Created it. But when i now logged to my Oracle9i database as management server i cant see or the database i created is missing. but when i logged as Stand Alone, i see my database.. How can i put my datab
-
Disparity in reported size on same content on 2 disks
I have cc cloned a folder from one disk to another, just before I deleted the content from the original, I checked to see it had all copied with a get info on each file. There would appear to be nothing missing but the file size of the two is massive