Crystal report as Layout
Hi Experts,
i have designed a report for a customer using stored procedure.
The customer saves an outgoing payment as a draft a then i have made some Auto-generating number which they use as a parameter to generate a report.
Now the customer says they want to add the outgoing payment without saving as a draft and that they want the report i have made to be like SAP layout in the system without them entering parameters. But on the outgoing payment after adding they can preview it at anytime Just as SAP reports previews are.
Attached is my stored procedure which saves as a draft.
This time we do not want to save as draft and we want to be previewing it without entering parameters just as SAP report previews are.
Urgent help is needed.
Regards
Justice
Hi,
Try this:
SE [NPA_TEST]
GO
/****** Object: StoredProcedure [dbo].[ON_INVOICE] Script Date: 03/13/2014 11:06:31 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[ON_INVOICE]
BEGIN
--IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tbl]') AND type in (N'U'))
--DROP TABLE [dbo].[tbl]
SELECT T2.[DocNum],
T2.[DocType], T2.[CardName] as "supplier Name",
--T2.JrnlMemo as "description" ,
T2.DocDate ,t2.CardCode as "code",t2.DocCurr as "currency"
,T2.[Address], T2.DocTotal,t2.DocTotalFC,
T3.[WtAppld] as "applied with-holding tax",T2.u_CA as "Account Chargeable", t2.Comments,
t4.U_NAME as " Name ",t3.SumApplied ,t3.InvType ,t2.NoDocSum ,t3.WtAppldFC
--ROW_NUMBER ()over(PARTITION by t2.docnum order by t2.cardname) as "Test"
--,t5.NumAtCard as "invoice number",
--into tbl
--,t5.DocEntry,t5.OwnerID
FROM OVPM T2
INNER JOIN VPM2 T3 ON T2.DocEntry = T3.DocNum
inner join OUSR t4 on t4.USERID = t2.UserSign
--inner join OPCH t5 on t5.CardCode =t2.CardCode and t5.DocEntry=T3.Docentry
--inner join OWDD t5 on t5.DocEntry =t2.DocEntry and t5.OwnerID =t4.USERID
-- inner join WDD1 t6 on t5.WddCode = t6.WddCode and t6.UserID =t4.USERID
WHERE T2.[DocType] = 'S'
--group by T2.[DocNum],
-- T2.[DocType], T2.[CardName], T2.JrnlMemo ,T2.DocDate ,t2.CardCode ,t2.DocCurr
--,T2.[Address], T2.DocTotal,t2.DocTotalFC,
-- T3.[WtAppld] ,
-- T2.u_CA , t2.Comments,
--t4.U_NAME ,t3.SumApplied
--and t5.ObjType = 140
--t5.NumAtCard ,
--delete from tbl
--where test > 1
--select * from tbl
END
Thanks & Regards,
Nagarajan
Similar Messages
-
Crystal Report print layout error during print preview
Hi Everyone,
When I try print preview a marketing document, it will work the first time, and then when I try to print preview again it brings up a window asking me to login into the database with the sa username and password.
When putting in the correct password, the login fails.
When I click cancel, SAP hangs up and requires a restart.
All print layouts were done in Crystal Reports, and imported via the report layout manager.
This occurs on all marketing documents where there is a crystal print layout.
Anyone will be able to help me with this?
Thanks
Best Regards
Dario Moutinho
Edited by: Dario Lopes Moutinho on Jul 7, 2011 3:19 PM
Edited by: Dario Lopes Moutinho on Jul 7, 2011 3:19 PMHi Rahul,
Your solution worked. Thank you very much.
I also did not include a stored procedure into the connection that was needed in the layout.
This could have also added to the problem (for future reference).
Best Regards
Dario -
Library of Crystal Reports (not Layouts) for 8.8
Hello All,
Is there a library of sample CRystal Reports for SBO 8.8.
I don't mean Layouts.
I mean Crystal Reports for typical business reports like Ageing, Stock LIstings, SAles Analysis etc..Hi Christian
Here is the latest version for you with 64 Bit compatibility 2.0.0.7
[Crystal Add-On with 64 Bit Compatibility|https://sapmats-de.sap-ag.de/download/download.cgi?id=0G5XHIZJQPZGO012YOH7W95H7M7SA4UOHHZZ28HQZGMOO5OH8R] -
Possible solution: Open Crystal Reports Print Layout from UDO form
Hi all,
I recently had to print information of a UDO which I have on a new form. I searched through the forum and found different solutions, but none that used the new "integrated" crystal reports viewer. So I came up with this workaround, which so far works great. I post it here for anybody else needing this kind of workaround, or in case somebody has a better solution, pick that up.
Here it is:
1) Create your Crystal Report file and import using the Reports and Layouts screen in SAP Business One. Give it a meaningful name and location in the menu. Have at least one parameter to take the DocNum or DocEntry, or whatever your primary key is. (Note: I know the import can be done by SDK, but as far as I can see there's no way to place it in the menu structure just yet.)
2) In your Add-On in the event ID 520 (print), call the following function with the Document Number grabbed from the open form:
public static bool printUDO(string strDocNum)
// get menu UID of report
Recordset oRS = (Recordset)B1Connections.diCompany.GetBusinessObject(BoObjectTypes.BoRecordset);
oRS.DoQuery("SELECT MenuUID FROM OCMN WHERE Name = 'ReportName' AND Type = 'C'");
if (oRS.RecordCount == 0)
B1Connections.theAppl.MessageBox("Report layout 'ReportName' not found.", 0, "OK", null, null);
return false;
// execute menu and enter document number
B1Connections.theAppl.ActivateMenuItem(oRS.Fields.Item(0).Value.ToString());
Form form = B1Connections.theAppl.Forms.ActiveForm;
((EditText)form.Items.Item("1000003").Specific).String = strDocNum;
form.Items.Item("1").Click(BoCellClickType.ct_Regular); // abrir reporte
return true;
I know it's kind of a dirty solution, but it works, and if you have any suggestions, I'd be happy to hear them.
Thanks!
Joerg.Hi Joerg,
It's not a dirty solution... I like it and i'm using it
Thanks!
Best regards,
Ana Silva -
Crystal Report installation roadmap
Hi All,
I googled and found that the the SAP data can be extracted only if SAP BW is configured. We have a different requirement
InfoSet Queries are developed, which extracts data from SAP tables
We need to customize the design of the report, therefore plan to have temporary extracted data in InfoSet query and
install and integrate Crystal Report with Infoset Queries for customizing the layout.
Are our concepts correct about crystal report? If yes, how can we integrate CR with SAP, keeping in consideration that we haven't implemented SAP BW.
In short, installation/configuration of the following scenerio
SAP Tables -> InfoSet Query -> Crystal Report -> Custom Layout with Infoset Query data -> Print
Thanks in advance.Thank you Ingo for your valuable response. Infact, I'm a big fan of your blogs @Business Objects.
Actually, the objective is to design reports with customized heading without using ABAP. For the purpose, InfoSet queries are created. Now I'm looking for a tool, e.g. Crystal Reports etc., to design queries output in professional way.
What do you suggest, which product should I opt for temporary purpose? We will be acquiring BOBJ in next fiscal year, which I hope will make our life easy for developing/designing new reports. But at current, which product/roadmap should be focus on?
Thanks !
BR -
Open a crystal report on B1 look in feel
There's a way to open a crystal report on B1 look in feel?
In SAP B1 8.8 we have a way to open a external crystal file. In menu Tolls >> Preview External Crystal Reports File, you inform the file and the report will open in a SAP B1 form.
I need open a report from my add-on, and I'll wish make this way.
any suggestions?
Regards!Hi
You can use Report and Layout Manger for uploading reports in SAP B1 Administration>Setup>General--->Report And Layout manager. Try this link for displaying report from your addon
Possible solution: Open Crystal Reports Print Layout from UDO form
Hope this helps
Regards
Arun -
Crystal Reports and Adobe Flex Connectivity
Good evening fellow Crystal Reports and SAP experts.
Im developing a small application in Adobe Flex that after feeding some extra data, allows me to call a Crystal Reports Print Layout that feeds its information from SAP Business One. Does anyone know if its possible to call the print layout directly from my application in Adobe Flex like SAP does for printing?
If so, could anyone help me with the SDK and code needed?
I thank everyone in advance.Hello,
Try the Business 1 forum. I've never seen anyone who tried using all 3 parts at one time.
Thank you
Don
PS - sorry I can't move your post. -
Sales quote layout rows doubled in crystal report layout
Dear All,
Sales quote layout rows doubled in crystal report layout.
In sales quote layout the rows are doubled. Even in the standard layout. If the quote contains only two rows. Then it is doubled as 4 rows in the crystal report layout.
It is happening in the particular database. Other database are working fine. I request you people to help me to overcome this issue.
Regards,
SivaHi Siva,
If this is regarding CR in SAP B1 then please repost to the SAP Business One Application space.
-Abhilash -
Huge delay in Printing Crystal Report Layout
Good Day Experts,
I am experiencing big delays when printing a document that makes use of a Crystal Report Layout Design.
For example,
The Sales Quote is set to automatically print when added by the user.
When clicking 'Add', SAP freezes up and only about 30 seconds later does the printer finally print the document.
During that time, the user cannot use SAP at all.
The layout does have a lot of fields and a few formulas here and there.
Logically, I am thinking that that is the reason for the delay, as SAP needs to calculate and populate those fields.
Is there any other way that I could speed up this process? Or if you know what might be causing this speed issue?
Your assistance will be appreciated,
Thanks
Regards
DarioHi Dario,
Pl Try the Below Threads and Ref SAP Notes Provided by NagaRajan.
http://scn.sap.com/message/13419121#13419121
http://scn.sap.com/thread/2024941
Regards,
Vamsi -
Cannot save Crystal report layout or view new layout of report
I am trying to make a change to a system crystal report (cust. recievables detailed aging). I had to make the date feild a little wider, so I edited the "system layout" that came with SAP (in my test DB of course), and I go to add-ins>sap business one>save. I get the following error "current user has no permissions for this operation". I am logged in as a superuser and full perm.
If I "save-as" and save it to a layout in sap....when I go to open the aging with my newly created layout it freezes and asks for DB logon info to connect to my server from crystal. I do not normally have to do this when I preview my reports in the out of the box layouts. WHat am I doing wrong? I am new to crystal.The system will not allow me to export the system crystal report....it is grayed out, and it IS a crystal report. HOwever I can open it in crystal, then save it to my desktop, then from INSIDE of SAP in the report and layout manager I import the crystal report I made the changes to from my desktop into SAP and it saves and imports no problems. However when I go to view the report (and this is only the ones I import), it prompts me with the db login for our server to connect, and it is only with that report, once I enter sa credentials it is fine and shows up from there on in, but not if I log out of SAP and back in...then I have to put in my credentials again. Is this something having to do with the report when I make changes to it? I cant have users entering login info each time they run the new aging details report. Please advise what I may be doing wrong when I make changes to a crystal report. It was a very minor change....just moved a feild width.
-
Purchase Order Crystal Report Layout Error
The stock Crystal Report Layout for Purchase Orders is giving me the following error:
A subscript must be between 1 and the size of the array.
Details: errorKind
Error in File POR20002 {b89f97ad-bf1f-447b-8bb4-b3d2e5219269}
{3C375C81-7D37-475D-9BCB-1703CE533B65}.rpt
Error in formula N_Decimal_Places:
'// To get the length of decimals
A subscript must be between 1 and the size of the array.
Details: errorKind
I looked in the Crystal Reports Formula fields and could not find N_Decimal_Places.
Has any one else had the problem with the PO layout that comes with Business One? If so, how did you fix it?Couldn't find how to copy the PO layout over using copy express.
I did compare the RDOC fields for POR20002 in both databases and they are Identical.
In Crystal Reports, I did a formula search for N_Decimal_Places and it found nothing. Then I did a search for 'length' in all formulas and it finds length in N_Decimal_Places. When I double click on N_Decimal_Places it clears the screen and never shows the formula. This happens in both layouts for my test database and SBODemoUS.
Again, SBODemoUS works correctly and AAA_TEST give the error. -
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} -
Adding a Crystal Report (report or layout) in a specific menu location
Hi,
i want to import a CR Report through SDK.
I found an example in the sdk help center. You can find it searching 'Adding a Crystal Report (report or layout)'.
It works but going in the Report and layout manager i find it under 'Lost Reports'.
i cannot find a way to specify the MENU LOCATION just like the Import Wizard allows.
Can anyone help me?
Thanks
Paolohi how you solve this??
-
Delete Crystal Report Design in Report and Layout Manager
Hi All
How to permanently delete a customised Crystal Report Design imported in Report and Layout Manager?
There is no Delete button at all unlike Form Design?
Kedalene ChongHi Nagarajan
Please see image attached, already login as superuser but there is no Delete button for imported Crystal Report Design in Report and Layout Manager. -
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.
Maybe you are looking for
-
Bank Analyzer - Error while creating the Position Structure
Hi, We are implementing Bank Analyzer 6.0 and Implementing Financial Instrument and Financial Transaction. We facing an Error while creating the Position Structure, Error Message: Status of structure S40CURRACC is "New" Anyone has an idea how to fix
-
My LMS 3.2 won't detect Switch 29xx , router 39xx and 7200
Hi , my LMS 3.2 won't detect my new Switchs 29xx , router 39XX and my 7200 router !!!! Thanks
-
Hi, I'm new to Java. Pls help. double firstValue=1.1; String secondValue; secondValue=(String) firstValue; I have error compiling this. Can anyone pls tell me how to cast a double to a String? Can I do that?
-
Hi, I have a table with below data TableA id email 1 [email protected],bbb@abc,com,[email protected] 1 [email protected],[email protected],[email protected] 2 [email protected],[email protected] 2 [email protected],[email protected],[email
-
I have Elements 3.0 on a Windows XP computer system. I'm looking to buy a plug-in which gives you a soft focus effect. I been to the Adobe store and cannot find this type of plug-in for 3.0. Does anyone know of a soft focus plug-in for Elements 3.0?