Query PLD Error
Hi all,
I have made query on PLD below :
SELECT T0.DocNum, LTRIM(LEFT(T0.JrnlMemo,17)) AS Tipe, (T0.CardCode' - 'T0.CardName) AS Nama, T0.CashSum, T0.CheckSum, T0.TrsfrSum,(SELECT CreditSum FROM RCT3
WHERE RCT3.DocNum=T0.DocNum AND RCT3.CreditCard=4) AS Debit,(SELECT CreditSum FROM RCT3
WHERE RCT3.DocNum=T0.DocNum AND NOT(RCT3.CreditCard=4)) AS Kredit,(SELECT SUM(CashSum) FROM ORCT T1 WHERE T1.Canceled='Y' AND T1.DocNum=T0.DocNum) As R_Cash,(SELECT SUM(TrsfrSum) FROM ORCT T1 WHERE T1.Canceled='Y' AND T1.DocNum=T0.DocNum) As R_Trans,(SELECT SUM(CreditSum) FROM RCT3 WHERE RCT3.DocNum=T0.DocNum AND (T0.Canceled='Y') AND RCT3.CreditCard=4) AS R_Debit,(SELECT SUM(CreditSum) FROM RCT3
WHERE RCT3.DocNum=T0.DocNum AND (T0.Canceled='Y') AND NOT(RCT3.CreditCard=4)) AS R_Kredit,(SELECT RCT2.DocEntry FROM RCT2
WHERE RCT2.DocNum=T0.DocNum) AS No_Invoice
FROM ORCT T0
WHERE (T0.DocDate >= [%0]) AND (T0.DocDate <= [%1]) AND T0.CashAcct = [%2]
ORDER BY T0.DocNum
We tried that query in Tools --> Query print Layout and the screen msg error after that query run. The message is "Internal Error (8153) occured (message 131-183)".
Why is the message error appeared? How to solve this error? Because the query if we run on SQL enterprise manager did not problem. It can be run normally.
Please help me about this matter.
Thanks a lot,
Agung
Hi,
Add dbo. infront of the table name in from clause.
As shown below.
SELECT T0.DocNum, LTRIM(LEFT(T0.JrnlMemo,17)) AS Tipe, (T0.CardCode' - 'T0.CardName) AS Nama, T0.CashSum, T0.CheckSum, T0.TrsfrSum,(SELECT CreditSum FROM dbo.RCT3
WHERE RCT3.DocNum=T0.DocNum AND RCT3.CreditCard=4) AS Debit,(SELECT CreditSum FROM dbo.RCT3
WHERE RCT3.DocNum=T0.DocNum AND NOT(RCT3.CreditCard=4)) AS Kredit,(SELECT SUM(CashSum) FROM dbo.ORCT T1 WHERE T1.Canceled='Y' AND T1.DocNum=T0.DocNum) As R_Cash,(SELECT SUM(TrsfrSum) FROM dbo.ORCT T1 WHERE T1.Canceled='Y' AND T1.DocNum=T0.DocNum) As R_Trans,(SELECT SUM(CreditSum) FROM dbo.RCT3 WHERE RCT3.DocNum=T0.DocNum AND (T0.Canceled='Y') AND RCT3.CreditCard=4) AS R_Debit,(SELECT SUM(CreditSum) FROM dbo.RCT3
WHERE RCT3.DocNum=T0.DocNum AND (T0.Canceled='Y') AND NOT(RCT3.CreditCard=4)) AS R_Kredit,(SELECT RCT2.DocEntry FROM dbo.RCT2
WHERE RCT2.DocNum=T0.DocNum) AS No_Invoice
FROM dbo.ORCT T0
WHERE (T0.DocDate >= %0) AND (T0.DocDate <= %1) AND T0.CashAcct = %2
ORDER BY T0.DocNum
This clue was given by suda from the same forum and it worked for me.
Tell me whether this has worked or not for you.
Thanks
Ravi
Similar Messages
-
Hi All
Iam designing a PLD for Query Report
*In the PLD iam designing the Report for Open Purchase Order Status Report Query run fine but the problem came under designing the Document.My Query as above.
My Client have requirement not repeat the PO No, PO Date,Due Date and Vendor Name that's row level record not repeated.(Under that row level record repeat (For Eg : Item Code,Item Description,Order Qty,PO Amount etc) But it is possible from me in Query PLD.
SELECT
T1.DocNum,T1.CardName as "Vendor Name",t0.[Itemcode],t0.[dscription],T0.[Project] as "Project Name",
T1.[DocDate] as "PO Date",
T0.[ShipDate] as "Due Date",
Sum(T0.[Quantity]) as "Order Qty",
Sum(T0.[LineTotal]) as "PO Amount",
Sum(T0.[OpenQty]) as "Pending Qty",
Sum(((T0.[OpenQty]) * (T0.[Price]))) as "Pending Amount"
FROM
[dbo].[POR1] T0 INNER JOIN [dbo].[OPOR] T1 ON T0.DocEntry = T1.DocEntry left join OPDN T2 ON T2.DocEntry = T0.TrgetEntry
WHERE
T1.[DocDate] >=[%0] and T1.[DocDate] <= [%1] and t1.[Docstatus] = 'O' and t0.[linestatus] = 'O'
Group By
t0.[Itemcode],t0.[dscription],T1.[CardName], T1.[DocNum], T1.[DocDate], T0.[ShipDate],
T0.[Project], T2.[DocDate]
order by
T1.DocDate
Regards
AmolHi Amol,
Note: All SELECT statement fields will be Stored and Display in Repetetive Area1. and
Parameter Fields are in Repetetive Area0 so you can Try to Copy & Paste the Field_ID's to Repetetive Area Header (or) Repetetive Area Footer.
for example.
Try this,
->> Open the QPLD and Goto Field index Window, then
->> Select the Repetetive Area Header & Repetetive Area Footer increase the Height on Properties Window.
->> Create the Formula fields in Repetetive Area Header & Repetetive Area Footer.
->> Which Field you want to print in header or footer. Drag the Field ID(in Repetetive Area) Copy & Paste to Formula Field.
->> Select the Repetetive Area 1 on Field Index Window.
->> Goto the Print Layout Designer on Tool bar.
->> Click Repetetive Area. -> Sort...
->> Open the Sort Widnow and Select the Requrie fields by sort.
ELSE Try this,
->> Click the Repetetive Area Footer 1.
->> then, Right Click in Repetetive Area Footer 1.
->> Choose the GROUP -> 1. then,
->> Create the Formula Fields in Repetetive Area Footer 1 and copy paste field ID's from Repetetive Area 1.
->> Select the Repetetive Area 1 on Field Index Window.
->> Goto the Print Layout Designer on Tool bar.
->> Click Repetetive Area. -> Sort...
->> Open the Sort Widnow and Select the Requrie fields by sort.
Ex.
->> Select Field Name, Sort by, Order, Summary, New Page.
->Select Field Name (Sort by) -> DocNo or CardCode,
Sort Type - Alpha.
Order -> Descending (or) Ascending.
Summary -> Select the Tick Mark.
New Page -> UnCheck the Tick Mark because if you need the second page Print of GROUP BY.
You can select the Tick Mark in New Page.
SAVE IT and see the Print Preview. it will be get exact Print. .
Check the below thread, You will be get some idea or solution.
Re: Two Repetitive areas in one PLD
Regards,
Madhan. -
Distinct count of GRN's in Query PLD
hi all,
We have developed a daily grn report and designed report
using Query PLD.
Report contains
(grn no,date,vendor name,vendor ref no,item code,item
description,quanity & line total)
We want to display no of grn's(distinct count)
@ repetitive area footer.
Is there any function available in formula field to display
distinct count of no. of grn's ? / It should done thru query.
Thanks,
with regards,
A.Jeyakanthanit will be hard from PLD, instead u can have ur query like,
SELECT 'Details', ' ',T0.Docnum, T0.CardName, .... FROM OPDN T0 WHERE Month( T0.DocDate ) = Month ('{%0]')
Union
SELECT 'Counts', count(T0.DocNum) as 'Doc(s) No', ' ', ' ', ... FROM OPDN T0 WHERE Month( T0.DocDate ) = Month ('{%0]')
(Replace { with [ )
Note ' ' is a gap in order to fill the other fields. in first query have given tht ' ' gap purposely so tht the display will not affect ur designing part
union is used b'coz Count() fn is like aggregate, so wont allow further individual fields coming along with it.
the 2nd query will occupy only one row, which by grouping u can separate and can hide from repetitive and take the value via formula field by writing that field's id to it into Footer Area.
Regards,
Dhana.
Edited by: Dhanalakshmi C on Mar 5, 2008 1:31 PM -
See my query and error, see my query and error
hi master
sir i use inner query but not run
please see my query with error
query :==========
select accid as acccode,fstatus, case when fstatus=1 then
(select sum(drbal) from accbal where substr(accbal.accid,1,length(acccode))=acccode)
end what
from chartofacc
error :========
SQL> /
(select sum(drbal) from accbal where substr(accbal.accid,1,length(acccode))=acccode)
ERROR at line 2:
ORA-00904: "ACCCODE": invalid identifier
please sir give me any idea *Does this column ACCCODE exist in your table accbal?
The columns in the outer query will not be visible in the inner query but the vise versa is true. -
Getting default value in query PLD
Hi Experts,
I have made a query PLD.When I preview the pld,I shows me someother value.
For eg
If I want to see preview of vendor let say V0007 but in preview I can see only for V002.V002 is default in pld.If I use any vendor code instead of v0007,it give preview of v0002 only.
So pls help me out in this regard.
Thanks,
Saurabh JainHi
From what I understand, my suggestion would be to create a Customer Exit variable to read from the table RSECVAL for i_step = 1. U can get the user from system variable -.sy-uname.
Could u also check the below document on Dynamic Authorization?
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f0f9f33c-0f17-2d10-d3a2-ae52ccd00780
Regards,
Aparna -
Hi All
We have problem while generating the query pld in SAP B1 2005 PL 34. We have given query for Goods Receipt PO with batch/serial no details. The details of batch no and serial no is working properly. When we execute the query if query pld comes to second page it is not displaying the details of GRN PO no, date, etc...
Our customer require GRN PO details in the suceessive pages. How to achieve this?
Thanks in Advancehi Consultant,
Where did you put the GRN PO No, Date and Details?
Did you Use of Group by method in Repetetive Area (or) Repetetive Area Footer?
Do you want GRN PO No., Date and Other GRN Details in Header Level?
Try this,
1. Select GRN No. in Row Level and Copy (GRN No.) Field ID on Properties Area Window.
2. Create 1 Formula Field in Page Header and Put GRN No. Field ID.
Regards,
Madhan.
Edited by: Madhan Babu C on Aug 3, 2009 1:36 PM -
hello experts,
I dont know how to create normal pld and query pld . Anyone tell me step by step procedure of normal pld and query pldHi Perinba
for query pld you need to create your query and save it and select query manager -->select your query then click on the create report button on the bottom right. A create user report window will appear, click on the base template (User Report (System)) then click ok.
To modify the report double click the report name that you just created and that will give you your designer view.
For Normal pld select the document you want like marketing documents , e.g. PO then select pen icon next to the form settings icon , select the report and click edit report button.
you can also check this link
https://websmp209.sap-ag.de/smb/sbo/pld
Bongani Dlamini -
Hi All,
I have designed query pld for a screen in which i have few user defined fields also.
When i excute a query pld with values in user defined field it is not giving any out put. Same query with out user defined field values is working problem.
Can some one help on this.Please post your query here so that we get an idea of what you are referring to?
One think to understand about QPLD's..is
If you have a Query in which you select 4 fields and then create a PLD for the same..after this if you add fields to the query they will not reflect in your PLD.
This is because the query is stored in a table and PLD is linked to it. Therefore in such cases you will need to delete the original QPLD and create a new one -
Hello Experts,
I have done a query pld in which item code , description, is repeating. How to restrict this?
My Current out put is
Itemcode Item Desc Qty Rate Batch No. Batch Qty
001 ABC 10 15000 01 05
001 ABC 10 15000 02 03
001 ABC 10 15000 03 02
My desired out put should be
Itemcode Item Desc Qty Rate Batch No. Batch Qty
001 ABC 10 15000 01 05
02 03
03 02Hi Consultant
For this no need to Create Crystal Report, It can be possible through Group by and Sort by in PLD.
For Using Sort By
Click on the repetative area in field index
Go to Printlayout designer on menu bar - repetative area - sort
It will open another window sort
1.In the field name give item no. and second Item Name
2.sort type alpha numeric
3.Check summary and uncheck new page
All the items with item code 001 will come in series.
Now we have to use group by
For Using Group By
Place Two formula fields in repetative area Above
001 ABC 10 15000 01 05
Put SortValue() for first
and also Sort Value for Second also.
Select two fields then go to Print Layout designer group. Select group 1 over there
Then the out put will be as
001 ABC
001 ABC 10 15000 01 05
001 ABC 10 15000 02 03
001 ABC 10 15000 03 02
Hide the field ItemCode and Name.
We can have
001 ABC
10 15000 01 05
10 15000 02 03
10 15000 03 02
Thanks & Regards
Siva Reddy -
Save Query - An error occurred while creating connection strings for the query
A workbook trying to edit and reload I get the following error "Save Query - An error occurred while creating connection strings for the query" No Power Pivot data model or anything.
I am getting the same error when editing a Power Query in an Excel spreadsheet. It happens when I change a Group By step to do a Sum instead of Count Rows.
-
Query Engine Error when adding to repository.
I'm using Crystal 9. I am trying to using the Add Command function as a datasource from an ODBC connection. The SQL is straightforward.
Select dbo.CDS_STATDAY.Meta_ID
From dbo.CDS_STATDAY
I get an error when I select the "Add to Repository" checkbox in the "Add Command to Report" dialog box. I don't get an error if I don't select it and the query seems to run fine.
The errors I get are 'Query Engine Error:"' and then 'Not supported. Details: Failed to create object.'
Is this a permissions problem?Hi Mark,
Do you have Business Objects / Crystal Enterprise in stalled in your network? If so, what is the version of Enterprise you are using ? This is becuase, the Crystal Query enginene have changed from CR server XI.
Thanks,
Sastry -
Query Engine Error in Crystal Report
I have a asp application with crystal report as reporting tool. Every thing works fine with Oracle 9i, but when i migrate to Oracle Database 10g Release2 some of the reports in crystal report shows following error report.
Query Engine Error:'HY00:[oracle][ODBC][ora]ora-01456:may not perform insert/delete/update operation inside a Read Only transaction.
ORA-06521:at "<dbusername>.<procedure name>,line 58
ORA-06512:at line1
I checked the database is in READ WRITE mode.
any help wolud be appreciated.
Thanks in Advance
DebashisHi,
This is posted in the wrong forum. This forum is for Oracle Berkeley DB. Please find the correct forum and post your question there.
Regards,
Alex Gorrod,
Oracle Berkeley DB -
Hi, all.
In our PROD system we faced one problem. When we run query we get error
"Cannot create characteristic combination: type \BI0\0100000100" doesn't exit"
"Special situation CX_SY_CREATE_DATE_ERROR"
I think we have problem with temporary database objects what is described in SAP note 1139396. And we execute report "SAP_DROP_TMPTABLES", but it doesn't help.
Can anybody help us with this problem?
wbr, Fanil.This probably won't solve your issue... but have you tried to regenerate your query using RSRT -> Generate button? I've found that this feature has helped resolved some query execution errors after transporting.
Can you give us any information about what dates are used in your query (standard or custom, any variables created on these date InfoObjects?). Thanks! -
Post Author: swordfish8
CA Forum: General
Hi, Many thank for taking the time to read this thread, the web application work on development box but fails when deployed.
Please help, the problem is detailed below, cheers, Praveen
Developed Environment
Web Application Developed in VS .NET 2002
Crystal Reports 9.0
Set Up Package :
Project Output: Primary Output and Content Files selected
Merge Modules: Database_Access.msm
Database_Access_enu.msm
Managed.msm
Regwiz.msm
VC_CRT.msm
VC_STL.msm
Code:
mycommand.CommandText = "ASR_STATISTICS"
mycommand.CommandType = CommandType.StoredProcedure
With mycommand.Parameters
.Add(New SqlParameter("@WeekStartDate", SqlDbType.DateTime)).Value = _CDate(Me.txtDate.Text.Trim)
.Add(New SqlParameter("@WeekEndDate", SqlDbType.DateTime)).Value = _
CDate(Me.txtEndDate.Text.Trim)
.Add(New SqlParameter("@Customer", SqlDbType.VarChar)).Value = _
(Me.lstCustomer.SelectedItem.Value.Trim)
End With
Dim myDA As New SqlClient.SqlDataAdapter()
myDA.SelectCommand = mycommand
Dim myds As New Dataset1()
myDA.Fill(myds, "ASR_STATISTICS")
Dim oRpt As New crptStatistics()
oRpt.SetDataSource(myds)
Me.CrystalReportViewer.ReportSource = oRpt
Installed the web application on the server
Operating System: Windows Server 2003
ERROR
Server Error in '/ASDReports' Application.
Query Engine Error: 'C:\WINDOWS\TEMP\temp_dff30854-29f4-4c4e-8fe0-66dbea4cd19b.rpt'
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: CrystalDecisions.CrystalReports.Engine.DataSourceException: Query Engine Error: 'C:\WINDOWS\TEMP\temp_dff30854-29f4-4c4e-8fe0-66dbea4cd19b.rpt'Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:
[DataSourceException: Query Engine Error: 'C:\WINDOWS\TEMP\temp_dff30854-29f4-4c4e-8fe0-66dbea4cd19b.rpt']
. K(String
, EngineExceptionErrorID ) +514
. F(Int16 , Int32 ) +493
CrystalDecisions.CrystalReports.Engine.FormatEngine.GetPage(PageRequestContext reqContext) +462
CrystalDecisions.ReportSource.LocalReportSourceBase.GetPage(PageRequestContext pageReqContext) +201
CrystalDecisions.Web.ReportAgent.v(Boolean `) +137
CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e) +99
System.Web.UI.Control.PreRenderRecursiveInternal() +77
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832Post Author: Bandit07
CA Forum: Upgrading and Licensing
I would go through and add in each criteria 1 at a time to see which one is causing the error. -
Hi Experts,
I am facing problem with Bex Queries in Dashboards..
I am using Bex Queries in the Dashboard. When i go to Preview Mode i am getting an error "Query Result Error".
In this dashboard i do have an Hierarchical Data.
Please help me in solving this Problem..
I am using Dashboard 4.1 SP3Hi Suman,
Thanks for your quick reply...
I am trying to just Preview data..
I even checked the Bex Query its working fine. And i am not using any filters or prompts.
I can even preview the data when i try to edit query in the Query Browser Tab in the Dashboard. But i don't know wts the problem i am unable to see the data in the SWF mode.
Maybe you are looking for
-
Application Sudo listed in Activity Monitor - Is this a default app that should be running?
First Question: Do other MBP users have an application Sudo listed in Activity Monitor from start up of their mac or with typical use? Second Question: If you have Sudo process listed in your Activity Monitor, do you also use an Huawei USB w
-
I have a MacBook and it will not connect to the Internet. It connects to wifi, but then when I open Safari, the page does not load. I have tried forgetting the wifi network, deleting keychain passwords, and restarting the computer, but nothing has wo
-
Connecting Macbook Pro to LCD Display using MiniDVI to HDMI Cable
I currently use an LCD TV to play movies from my Macbook Pro via the MiniDVI - HDMI cable. At the moment I just connect everything up and then use the Mirror Display in the arrangement settings. So my laptop screen is the same as my LCD TV screen. Wh
-
Low quality DVD outcome.. need help for high quality result ASAP!
Hi every 1, (This is my first post, as I only got my iMac 2 weeks ago.. so please be gentle with me :P ) I have just been asked to turn a Microsoft powerpoint (PPT) into a DVD for "induction training video" purposes with voice overs and backing mus
-
How can I access programmatically the content of the application.xml file ? I want to read the description element and show its value in my web application (I'm storing the version number in this element).