Quantcast
Channel: SCN: Message List - Reporting and Printing
Viewing all 2719 articles
Browse latest View live

Re: Report parameter and Crystal Report Viewer ?

$
0
0

Are you referring to a Crystal Reports for SAP Business One application?  What CR Viewer are you using?

 

If you are referring to SAP Business One and CR integration then you get a free Crystal Reports Designer license so get your partner to give you the software.

 

There is a flag in the options of the parameter called "Show on (Viewer) Panel" and it has options Do Not Show, Editable and Read Only.  Perhaps you set it to read only?

 

Could you post a screenshot of your selection criteria window or even post the .RPT?  (Assuming it uses an SAP Business One datasource).  Also, if you are making the .RPT for SAP Business One, you should import it directly into SBO to see if it works there for your parameters.

 

Let me know,

Mike

http://goo.gl/yEXUro


Re: Certain Crystal reports don't show data - are there restrictions

$
0
0

Do you maybe have inner joins for all of your tables and views?

 

Maybe it's a parameter issue causing no rows to be displayed.  Did you test the exact DocEntry@ for your layouts?

 

No, from my experience I have not seen any limits when using SBO and CR inside the client.

 

Mike

Re: Crystal Reports in SAP

$
0
0

Hello Nadav,

 

If you are on SBO 8.8 then you should have the (system) CR versions of layouts and reports.  They are included and integrated into SAP Business One.  Both reports and layouts can be installed and deployed right in the SAP Client for your users.

 

If you go to a Sales Order for example, click the pencil icon at the top right side of the screen to see the different layouts, you should see:

 

layouts.png

You can see the top two are Crystal Reports layouts.  If you push "Manage Layout" and then click "Edit" your system should launch your Crystal Reports Designer.

 

Crystal Reports Designer 2008/2011 will be included with your regular SBO maintenance so your partner will be able to provide the software for you.

 

If you do not have the default layouts and you would like them, I could provide a couple for you to see.  Invoice, order, quote, etc. but they should be included in your current version.

 

If you want more information about how SAP works with Crystal Reports go here: Crystal Reports for SAP Business One by Michael Taylor | Udemy

 

Mike

Re: Creating a Crystal Check Layout

Re: ObjectId@: How to drawn the ObjectId@ token into the Crystal Report????

$
0
0

The ObjectId@ token is always included in the default system layouts and is passed when generating a marketing document within the SAP Business One client.

 

If you are working with a system layout then it is a required field that is part of the TmSp_DocLineTypeLayout;1 storproc.  It uses this to determine row text and subtotals, etc.

 

If you do not use the storproc you will not be able to show text rows or subtotals in your layouts.

 

My guess is SAP was developing a single layout that could work with all marketing documents such as a "Master Layout" but I have not seen this or attempted to make this work yet.

 

Mike

Re: Preview Crystal Report form layout before document is added

$
0
0

Hi John,

 

Did you make the layout from scratch?  Or did you use a system layout.

 

Starting from the system layout is much easier than making one from scratch.  I have done both and the amount of trouble for making a manual one is much more than even extreme formatting changes to the default ones because of some of the specific tokens and storprocs that the default layouts use.

 

Also, if you modify from a default layout it will let you preview before adding the document.  You can disable the draft watermark as well in the Print Preferences (Administration >> System Initialization >> Print Preferences).

 

Mike

Re: Change company info on CR

$
0
0

Hi Jose,

 

Right click the field in Crystal and select "Find in Field Explorer" or "Find in Formulas" and you should see what table it came from.

 

It might also be a formula which references different fields.  Most likely the fields would be something like OADM.[TaxIdNum], OADM.[TaxIdNum2], OADM.[TaxIdNum3].  Administration >> System Initialization >> Company Details > "Accounting Data" tab.

 

Or if you could let us know the layout you are using and which field you are specifically referencing if it's a system layout I will check for you.  Just share a screenshot with the field highlighted.

 

Mike

Re: Want to use a B1 token to limit fields in a Command in Crystal

$
0
0

Hi Denise,

 

By and far the easiest way to do this is to convert your command into an SQL view.  Likely there will be almost no changes in the actual code and your report will run exponentially faster because it will run on the server side instead of pulling ALL the data into the CR and then running the command.

 

If you add an SQL view you can then just use your normal parameter tokens and filter based on the field.  Something like Your_View.CardCode = {?YOUR_RANGE_PARAMETER}

 

If you don't want to use a view then you would have to make the parameter inside the command exactly how you want it to appear.  It should then make the same parameter in the main "Field Explorer" sidebar and that would do the filtering.

 

Something like this:

 

command.png

parameter.png

 

You can see that I made my command, then made a parameter from the command window with my token name and "Allows multiple values" checked.  Then you should see this same parameter when you add your command.  I also reference the parameter within the command in the WHERE clause.  (See the screenshot).

 

But again, you can sidestep this entire process by running a VIEW and then just making your parameter token and using the normal SELECTION CRITERIA.

 

I have had nothing but trouble trying to work with parameters inside a command so I avoid commands as much as possible for doing any heavy lifting.

 

Let me know if this makes sense,

 

Mike


Re: Inventory query

$
0
0

Hi Amber!


Try this one. I just forgot to include "T0.U_EXT_DESC" in the 'group by' clause. You can still use the query above but make sure to delete T0.U_EXT_DESC on the 'select' clause


SELECT

 

T0.[ItemCode], T0.U_EXT_DESC, T0.[ItemName], T1.[WhsCode], SUM(T1.[OnHand]) 'On Hand', SUM(T1.[IsCommited]) Comitted, T2.[Location]

 

 

FROM OITM T0

left JOIN OITW T1 ON T0.ItemCode = T1.ItemCode

left JOIN OSRN T2 ON T0.ItemCode = T2.ItemCode

 

 

WHERE

T1.[OnHand] > 0 and

T1.[WhsCode]  IN ('MAIN','TECH')

 

 

GROUP BY T0.[ItemCode], T0.U_EXT_DESC, T0.[ItemName], T2.[Location], T1.[WhsCode], T2.[U_STATED_COST], T2.[U_SUGGESTED_PRICE]

 

 

If it is still error, please write the error message.

Thanks!

Token parameter, cascading, conditional

$
0
0

Hi,

 

In a crystal report I am creating I need a cascading parameter, wherein it is also conditional.

 

The parameters

 

Type, values: Client or Employee

BPCode From:

BPCode To:

 

The BPCodeFrom and BPCodeTo values are dependent on the selected Type.

Type is like GroupCode of the BP. However the current paramater values is not equivalent to actual GroupCode.

 

Can I do something like:

 

BPCodeFrom @case when {?Type}='Employee' then (select CardCode, CardName from OCRD where CardType='C' and GroupCode=116) else (select CardCode, CardName from OCRD where CardType='C' and GroupCode<>116)

 

currently using the {?Type} does not work... actually, I can't insert the Type parameter in the token parameter statement

 

Any help / suggestions is greatly appreciated.

Re: Printing Error:Invalid variable number (RPT -6300) (Field: F_060) Variable '69'  [Message 200-38]

$
0
0

Dear Nagarajan.garu,

 

Could you please guide me how i can raise a ticket to SAP on the discussed issues.

 

 

Thanks and regards

Rajesh babu

Re: Printing Error:Invalid variable number (RPT -6300) (Field: F_060) Variable '69'  [Message 200-38]

$
0
0

Hi,

 

Do you have S-user and password? If you have, you can raise ticket at SAP business one customer portal.

 

Thanks & Regards,

Nagarajan

Re: Printing Error:Invalid variable number (RPT -6300) (Field: F_060) Variable '69'  [Message 200-38]

$
0
0

ok, will do it through client login only,thank you

 

Thanks&Regards

Rajesh

Re: Printing Error:Invalid variable number (RPT -6300) (Field: F_060) Variable '69'  [Message 200-38]

$
0
0

Hi,

 

Please close this thread by marking helpful answer. If possible, share solution with us.

 

Thanks & Regards,

Nagarajan

Re: Preview Crystal Report form layout before document is added

$
0
0

Hi John!

 

Have you tried creating Crystal Report using table names only (e.g. OPOR, POR1) as your database fields?

This happens to me also and I try using tables instead of stored proc. or commands.

 

Regards,


Re: Change company info on CR

$
0
0

Hi!

 

Have you tried using formula?

maybe you can use "if" or "case".

 

Regards,

Re: Printing Error:Invalid variable number (RPT -6300) (Field: F_060) Variable '69'  [Message 200-38]

Opening,Closing,Purchase,Purchase FOC,Sales,Return,Netsales,FOC,StockIN,StockOut,Quantity Report

$
0
0

Hi all,

 

Can anybody give me modified query for the following code. I need Item Group wise sales & Stock.

As of this query data values are not getting perfect,opening stock and  Closing stock values are not getting prefect.

Some items are not getting,which item code is starting form 5%.

 

 

*Start of the Query *


select * from ( SELECT T0.Itemcode, min(T0.Dscription) as 'Item Description', W1.Whscode,

 

 

(isnull((Select sum(isnull(inqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode and O1.docdate&lt;@FromDate and O1.transtype in (59,20,18,16,14,67,-2)),0) - isnull((Select sum(isnull(outqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode and O1.docdate&lt;@FromDate and O1.transtype in (21,19,60,15,67,-2,13)),0)) as [Opening Stock],

 

 

 

 

(isnull((Select sum(isnull(inqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode and O1.docdate&gt;=@FromDate and O1.docdate&lt;=@ToDate and O1.inqty&gt;0 and o1.Price &gt;0 and O1.transtype in (20,18)),0))-(isnull((Select sum(isnull(outqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode and O1.docdate&gt;=@FromDate and O1.docdate&lt;=@ToDate and O1.outqty&gt;0 and o1.Price &gt;0 and O1.transtype in (19)),0)) as [Purchase Quantity],

 

 

(isnull((Select sum(isnull(inqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode and O1.docdate&gt;=@FromDate and O1.docdate&lt;=@ToDate and O1.inqty&gt;0 and o1.Price = 0 and O1.transtype in (20,18)),0))-(isnull((Select sum(isnull(outqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode and O1.docdate&gt;=@FromDate and O1.docdate&lt;=@ToDate and O1.outqty&gt;0 and o1.Price = 0 and O1.transtype in (19)),0)) as [Purchase FOC Qty],

 

 

 

 

( isnull((Select sum(isnull(outqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode and O1.docdate&gt;=@FromDate and O1.docdate&lt;=@ToDate and O1.outqty&gt;0 and O1.Price&gt;0 and O1.transtype in (13,15)),0)) as [Sale Qty],

 

 

(isnull((Select sum(isnull(inqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode and O1.docdate&gt;=@FromDate and O1.docdate&lt;=@ToDate and O1.inqty&gt;0 and O1.Price&gt;0 and O1.transtype in (14,16)),0))as [Return Qty],

 

 

( isnull((Select sum(isnull(outqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode and O1.docdate&gt;=@FromDate and O1.docdate&lt;=@ToDate and O1.outqty&gt;0 and O1.Price&gt;0 and O1.transtype in (13,15)),0))- (isnull((Select sum(isnull(inqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode and O1.docdate&gt;=@FromDate and O1.docdate&lt;=@ToDate and O1.inqty&gt;0 and O1.Price&gt;0 and O1.transtype in (14,16)),0))as [NetSale Qty],

 

 

(isnull((Select sum(isnull(outqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode and O1.docdate&gt;=@FromDate and O1.docdate&lt;=@ToDate and O1.outqty&gt;0 and O1.Price=0 and O1.transtype in (13,15)),0))-(isnull((Select sum(isnull(inqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode and O1.docdate&gt;=@FromDate and O1.docdate&lt;=@ToDate and O1.inqty&gt;0 and O1.Price=0 and O1.transtype in (14,16)),0))as [FOC Quantity],

 

 

(isnull((Select sum(isnull(inqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode and O1.docdate&gt;=@FromDate and O1.docdate&lt;=@ToDate and O1.inqty&gt;0 and O1.transtype in (59)),0)) as [StockIN Quantity],

 

 

(isnull((Select sum(isnull(outqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode and O1.docdate&gt;=@FromDate and O1.docdate&lt;=@ToDate and O1.outqty&gt;0 and O1.transtype in (60)),0)) as [StockOUT Quantity],

 

 

(isnull((Select sum(isnull(inqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode and O1.docdate&lt;=@ToDate and O1.transtype in (59,20,18,16,14,67,-2)),0) - isnull((Select sum(isnull(outqty,0)) from OINM O1 where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode and O1.docdate&lt;=@ToDate and O1.transtype in (21,19,60,15,67,-2,13)),0)) as [Closing Stock]

 

 

FROM OINM T0 INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode INNER JOIN OITW T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OITB B1 ON T1.ItmsGrpCod=B1.ItmsGrpCod INNER JOIN OWHS W1 ON T2.WhsCode = W1.WhsCode INNER JOIN OLCT C1 ON W1.Location=C1.Code and T0.ItemCode Like '5%' and W1.WhsCode not in ( 'WH-DEMO', 'WH-AHM-R','WH-MUM-R','WH-NDL-R')

Group by T2.MinStock ,T1.itemcode, T0.Itemcode, W1.WhsCode, C1.Location) a

 

  • End of the Query*

Error message while printing sales order

$
0
0

The following message was displayed while trying to print a sales order from a particular computer.  Logging in on another computer with the same credentials worked fine.  any thoughts?

 

Error in file Temp (bea4fc21-346f-4d31-93d6-8260b04be0a4)-(B002A516-3EB2-47FF-BAE7-3941126D5257).rpt:

Error in formula Record Selection:

‘(OCTG.GroupNum) = (?Pm=OQUT.GroupNum)’

This field name is not known

Details: errorKind

Re: Error message while printing sales order

Viewing all 2719 articles
Browse latest View live


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