Query in PLD
Hi There,
Is it possible to have a query in the PLD to state that If the Item is a Stock Item then the description should NOT be displayed, if the Item is not a stock Item then the description should be displayed in the Production Order Layout.
Regards,
Wynand Cilliers.
Hi,
Yes this is possible.
Add a database field to the repetitive area, the table is Items, Column is Stock Item (yes/no). Untick Visible to hide the field.
Now add a formula field (the field id will need to be from the Stock Item (yes/no) field mentioned above:
Field_001=='N'
This formula field will give you a 1 when the stock item flag is No. Simply use the Link To field for the Item description to link it to the new formula field.
Regards,
Adrian
Similar Messages
-
How to get value in variable from query in PLD / ALD
Hi, everyone,
I want to retrieve value from database via query in PLD/ALD variable on basic of PLD / ALD variable's content. is it possible ?Hi
Try this,
->> Open the GRPO document.
->> Click the Tools on menu bar and Open the Form Setting widnow.
->> put the tick mark in BaseRef, BaseDoc, TrgetDoc
i think, Base Document no field default in SAP B1.
try to search the Base doc. Date in row level on GRPO document.
Try to Create UDF & FMS then assign the FMS in UDF
SELECT Distinct T1.DocDate
FROM PDN1 T0 INNER JOIN POR1 T1
ON T0.BaseEntry=T1.DocEntry
WHERE
T1.[DocNum]=$[PDN1.BaseRef]
OR
SELECT Distinct T1.DocDate
FROM PDN1 T0 INNER JOIN POR1 T1
ON T0.BaseEntry=T1.DocEntry and
T0.BaseLine=T1.LineNum and T0.BaseType=22
WHERE T0.[BaseType] =22
and T1.[DocNum]=$[PDN1.BaseRef]
IF you more details, Check the below thread.
Re: How to store the invoice number in the head of the related delivery ?
Regards,
Madhan.
Edited by: Madhan Babu C on Dec 11, 2009 6:57 AM -
Hi Experts,
Currently, I'm re designing a PLD for Profit and Loss Statement. Is it possible to include a query and insert it in the PLD? and How?Thanks for your replies.
The situation is like this: The report was generated for a particular segment ( in the Profit and Loss Statement - Select Criteria >> Choose Segments). In the Profit Loss report, I have to include a title to indicate that the report is created for the selected segment only. In the PLD, Page Header, I inserted a Field (Text) with Source Type is Database, Table is G/L Accounts and Column is Segment_2. I saved the PLD and preview the result. To my surprise, it displayed a code showing the value of the above field Segment_2.
I would like to display the Name of segment instead of the value of Segment_2. The Name of segment is related to another table OASC.Name . Going back to PLD Properties>Content, Table dropdown choices does not include the OASC. So how can I go around and include in the report the OASC.Name in the Page Header. -
Hi,
I'm going to modify an existing report using PLD. I've added a database field. But the tables available in the Content Tab is limited. How can I get other tables to map a column with that field?
I can use Query Print Layout but is there any other way to modify the existing report?
Thanx.hello Sibasish Sengupta,
to clarify what Sridharan, has suggested press the ALT + Click on the data tab ->> file then all the tables in the database will be available to choose. all u have to do is press the ALT + click simultineously.
best regards...
FIDEL -
When I save my query in PLD it throws error
When i write a query and click Save button it throws error as "Define Numbering Series in Administration module" Can anybody help
Regards
Cool IceHello,
Did by any chance you used CopyExpress to transfer information to that database?
If so, that's the problem, and as far as I know there is no way to solve it...
Best Regards,
Vítor Vieira -
Add custom query to standard PLD layout
Hi Everybody,
I need to change the standard Invoice PLD report, in order to include additional data that is
kept in my UDO.
Is it possible to define a custom query inside PLD to retrieve data from the UDO
(the UDO is linked to the Invoice) and show it in the Invoice layout?
Thanks all,
Manuel DiasHi Manuel,
One workaround you can try is to use UDF and formatted search to retrive the info on the invoice screen and then directly display it on the invoice PLD.
Hope it helps.
Regards,
Hamsa -
Hi,All
How display header fields in QPLD
By
Firos.CHi Firos,
Try to Create this SAMPLE Query Report PLD.
Copy and Paste the below Query Report in Query Generator
and Save as the Query Manager than Create the QPLD.
for example: Outgoing Payments Detail.
SELECT T0.DocNum, T0.DocDate, T0.CardName, T0.Address,
T1.AcctCode, T1.AcctName,
T1.Descrip, T0.CashAcct, T0.CheckAcct, T0.Comments,T1.SumApplied, T0.DocTotal,
FROM OVPM T0
LEFT JOIN VPM4 T1 ON T0.DocEntry = T1.DocNum
INNER JOIN OPID T2 ON T0.PIndicator = T2.Indicator
WHERE
T0.[DocNum]>='[%0]'
AND
T0.[DocNum]<='[%1]'
AND
T2.[Indicator]='[%2]'
ORDER BY
T0.[DocNum]
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 Header1 increase the Height on Properties Window.
->> Create the Formula fields in Repetetive Area Header1.
->> Which Field you want to print in header. Drag the Field ID(in Repetetive Area) Copy & Paste to Formula Field.
ex.
->> Create 3 Database Fields in Repetetive Area Header1 and Copy/Paste Require Field ID.
1 database field -> DocNum Field ID(Copy/Paste).
2 database field -> CardName Field ID(Copy/Paste).
3 database field -> Address Field ID(Copy/Paste).
-> Hide the 3 Fields in Repetetive Area1.
->> 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.
1st you can Select Field Name (Sort by) -> DocNum
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. .
Regards,
Madhan.
Edited by: Madhan Babu C on Dec 2, 2009 1:26 PM -
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,
AgungHi,
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 -
Changing a Query do not show Results in the PLD Format
Hello Experts!!
I have a PLD report, and I changed the query a BIt
let say the oiginal query is select 'HELLO' from OINV where DocEntry between 100 and 110
but then I Changed to +select 'HELLO' + World' from OINV where DocEntry between 100 and 110+
But The PLD do not reload Data, there is any way to change this?Gordon Thanks for your answer,
but maybe i didnt explain myself clear.
let me explain a bit:
When you create a Query in the Query Manager, you can create a Print Layout.
then you can modify in
Tools>Queries>Query Print Layout
but that Layout is related to the Query you just did.
but when you change the query the Layout wont change ...
I think SAP do not work well with this, I think that Query Manager shoud have and Update button and then go and upate the query in PLD ... well thats all -
Is it possible in PLD to add sql query ?
Hi
In Order report in PLD , i need to add the total amount of down payment . it doesn't exists in Order , so i need to do a sql query to display this amount .
is it possible to add sql query in pld formula ?
thanks ,
regards
laurentHi,
You cannot add sql query in PLD.If you need SQL query use Crystal report or on the document add UDF and try by adding FMS and then selecting UDF in pld
Thanks,
Neetu -
Sale Order Query Print layout/Crystal Report Query required
Hi Experts,
I created a Sale Order. Items included in it are service and material.
(I created a BOM, bound the child material item to the parent service item. Moreover child item will have unit price where as parent item will not have unit price)
I need the report on it please let me know how i can do it.
I tried with below query
select a.DocEntry, a.DocNum, a.CardCode, a.CardName, b.DocEntry,b.ItemCode, b.Dscription, b.Quantity, b.Price, b.LineTotal, a.DocTotal, a.VatSum
from ORDR a inner join RDR1 b on a.DocEntry = b.DocEntry
--and b.TreeType <> 'N'
where a.docnum = '14240621'
output of above query is
DocEntry
DocNum
CardCode
CardName
DocEntry
ItemCode
Description
Qty
Unit Price
Line Total
DocTotal
Tax Amount
621
14240621
CDR0001
ABCDEFGH
621
302010001
PROVIDING & LAYING
17.62
2493.76
43940.05
354652
18888.46
621
14240621
CDR0001
ABCDEFGH
621
MT0001
Material for PROVIDING & LAYING
17.62
2800
49336
354652
18888.46
621
14240621
CDR0001
ABCDEFGH
621
305010005
BM CM INCLUDING CEMENT
10.055
1980
19908.9
354652
18888.46
621
14240621
CDR0001
ABCDEFGH
621
MT0002
Material for BM CM INCLUDING CEMENT
10.055
1650
16590.75
354652
18888.46
621
14240621
CDR0001
ABCDEFGH
621
302040001
P/APPLYING
65
116.5
7572.5
354652
18888.46
621
14240621
CDR0001
ABCDEFGH
621
MT0003
Material for P/APPLYING
65
65
4225
354652
18888.46
621
14240621
CDR0001
ABCDEFGH
621
301000001
P& FIXING
2.233
31625.05
70618.74
354652
18888.46
621
14240621
CDR0001
ABCDEFGH
621
MT0004
Material for P& FIXING
2.233
44000
98252
354652
18888.46
621
14240621
CDR0001
ABCDEFGH
621
306010001
PROVIDING RMC
3
3593
10779
354652
18888.46
621
14240621
CDR0001
ABCDEFGH
621
MT0005
Material for PROVIDING RMC
3
4847
14541
354652
18888.46
and my desired output is
Unit price of both child item and parent item should be display in single column. ie. cumulative in Unit Price Column and Linetotal respectively.
DocEntry
DocNum
CardCode
CardName
DocEntry
ItemCode
Description
Qty
Unit Price
Line Total
DocTotal
Tax Amount
621
14240621
CDR0001
ABCDEFGH
621
302010001
PROVIDING & LAYING
17.62
5293.76
93276.05
354652
18888.46
621
14240621
CDR0001
ABCDEFGH
621
305010005
BM CM INCLUDING CEMENT
10.055
3630
36499.65
354652
18888.46
621
14240621
CDR0001
ABCDEFGH
621
302040001
P/APPLYING
65
181.5
11797.5
354652
18888.46
621
14240621
CDR0001
ABCDEFGH
621
301000001
P& FIXING
2.233
75625.05
168870.7
354652
18888.46
621
14240621
CDR0001
ABCDEFGH
621
306010001
PROVIDING RMC
3
8440
25320
354652
18888.46
please let me know the update on this.
with regardsHi Nagarajan,
thanks for reply..
1) Yes, i.e i have taken into BomType: Template
2) i did not get any helpful output by using treetype by keeping 'S' and 'N', i kept in comment.
3) Actually MT0001-05 - these are material item- unit prices are fixed. see in attached image
for parent item, unit prices are not fixed. I give the price for them in Sale Order.
I want unit price for parent and child should be summed/cumulative for Sale Order print.
(in my above post, first matrix exactly same as sale order line items plz check it)
Please help me, how i can achieve this by query(for PLd or Crystal report)
With Regards -
I Have designned a simple report in PLD which consist of two fields. The Customer Name and the Dates on which he is delivered goods. The Query base PLD By default shows the Report like:
Customer Delivery Date
Crest 01/05/2007
Crest 05/08/2007
Crest 06/09/2007
What I want is that I want to show the name of the Customer only once (possibly somewhere in header and in repetative area only Delivery Dates would be shown). i.e. the report should be like:
Customer : Crest
Delivery Dates:
01/05/2007
05/08/2007
06/09/2007
How Can I do this plz help someone.....Hi
Highlight the repetitive area. Print Layout Designer>Repetitive Area>Sort. Sort on Cust Code, tick Summary.
Print Layout Designer>Group>Group1. Now add a formula field in Repetitive Area -
SortValue().
Now your report will group on the Customer code (displayed in Repetitive Area (Header). Make the Customer Code field in Repetitive Area not visible)
Daan -
Hi All,
I have a long running sql which I am tuning for oltp environment.
Here is the sql
explain plan for
SELECT a.* ,rownum as rnm
FROM ( SELECT /*+ FIRST_ROWS(100) STAR_TRANSFORMATION PARALLEL(PLS,2) */
/* End of Hint in Query Builder */
PLD.PRVDR_LCTN_IID AS "ProviderLocationIid", PLD.PRVDR_LCTN_DTL_SID AS "ProviderLocationDetailSid",
PLD.ENRLMNT_TYPE_CID AS "EnrollMentTypeCid", PLD.PRVDR_TYPE_CODE AS "ProviderTypeCode",
PLD.MAINECARE_ID AS "Provider Id", PLD.PRVDR_NAME AS "Provider Name",
PLD.PRVDR_TYPE_CODE || '-' || PLD.PRVDR_TYPE_NAME AS "Provider Type",
TO_CHAR(PLS.FROM_DATE,'MM/dd/yyyy') AS "Start Date",
TO_CHAR(PLS.TO_DATE,'MM/dd/yyyy') AS "End Date", PLD.COUNTY_NAME AS "County",
PLD.CITY_TOWN_NAME AS "Town", PLD.ENRLMNT_TYPE_NAME AS "Enrollment Type",
PLS.STATUS_CID AS "StatusCid", STSBS.STATUS_NAME AS "Business Status",
PLD.LCTN_PHONE_NMBR AS "Phone Number", PLD.PRVDR_TYPE_NAME AS "PrvdrTypeName",
SP.SPCLTY_CODE||'-'||SP.SPCLTY_NAME ||'/'|| SP1.SPCLTY_CODE||'-'||
SP1.SPCLTY_NAME AS "Specialty/Subspecialty",
UPPER(SP1.SPCLTY_CODE) AS "SubSpclty", UPPER(SP.SPCLTY_CODE) AS "Spclty"
FROM /*Query Builder Clause*/
STATUS STS,
STATUS STSBS,
SPECIALTY_SUBSPECIALTY SSP,
(SELECT PRVDR_LCTN_STATUS_SID, PRVDR_LCTN_IID, PRVDR_LCTN_DTL_SID, FROM_DATE, TO_DATE,
STATUS_TYPE_CID, STATUS_CID, OPRTNL_FLAG,
FN_GETANCHORDT(FROM_DATE,TO_DATE) AS ANCHOR_DATE
FROM PRVDR_LCTN_STATUS
WHERE STATUS_TYPE_CID = 1
AND OPRTNL_FLAG = 'A'
) PLS,
PRVDR_LCTN_X_SPCLTY_SUBSPCLTY PXSP,
PRVDR_LCTN_STATUS PLSBS,
PROVIDER_LOCATION_DETAIL PLD,
SPECIALTY SP1,
SPECIALTY SP
WHERE
STS.STATUS_TYPE_CID = 1
AND STS.STATUS_CID = 2
AND STSBS.STATUS_TYPE_CID = 15
AND PLSBS.OPRTNL_FLAG = 'A'
-- UPPER(UPPER(SP1.SPCLTY_CODE)) LIKE UPPER('1%')
AND SP1.SPCLTY_CODE LIKE '1%'
-- AND UPPER(UPPER(SP.SPCLTY_CODE)) LIKE UPPER('1%')
AND SP.SPCLTY_CODE LIKE '1%'
AND PLS.OPRTNL_FLAG = 'A'
AND SP1.OPRTNL_FLAG = 'A'
AND PXSP.OPRTNL_FLAG = 'A'
AND PXSP.STATUS_CID = 2
AND SSP.OPRTNL_FLAG = 'A'
AND SP.OPRTNL_FLAG = 'A'
AND PLS.ANCHOR_DATE >= PLSBS.FROM_DATE
AND PLS.ANCHOR_DATE <= PLSBS.TO_DATE
AND PLS.STATUS_TYPE_CID = STS.STATUS_TYPE_CID
AND PLS.STATUS_CID = STS.STATUS_CID
AND PLD.PRVDR_LCTN_DTL_SID = PLS.PRVDR_LCTN_DTL_SID
AND PLSBS.PRVDR_LCTN_IID = PLS.PRVDR_LCTN_IID
AND PLSBS.STATUS_TYPE_CID = STSBS.STATUS_TYPE_CID
AND PLSBS.STATUS_CID = STSBS.STATUS_CID
AND PLS.ANCHOR_DATE >= SP1.FROM_DATE
AND PLS.ANCHOR_DATE <= SP1.TO_DATE
AND PXSP.PRVDR_LCTN_IID = PLS.PRVDR_LCTN_IID
AND PXSP.SPCLTY_SUBSPCLTY_SID = SSP.SPCLTY_SUBSPCLTY_SID
AND PLS.ANCHOR_DATE >= PXSP.FROM_DATE
AND PLS.ANCHOR_DATE <= PXSP.TO_DATE
AND SSP.SPCLTY_CODE = SP.SPCLTY_CODE
-- AND SSP.SUBSPCLTY_CODE = SP1.SPCLTY_CODE
AND SSP.SUBSPCLTY_CODE = SP1.SPCLTY_CODE
AND PLS.ANCHOR_DATE >= SSP.FROM_DATE
AND PLS.ANCHOR_DATE <= SSP.TO_DATE
AND PLS.ANCHOR_DATE >= SP.FROM_DATE
AND PLS.ANCHOR_DATE <= SP.TO_DATE
ORDER BY /*Query Builder Clause*/
"Provider Id" DESC
) A
WHERE rownum < 101
Here is the Emplain plan
SQL> @c:\mohammed\tune\UTLXPLS
Plan Table
| Operation | Name | Rows | Bytes| Cost | Pstart| Pstop |
| SELECT STATEMENT | | | | | | |
| COUNT STOPKEY | | | | | | |
| VIEW | | | | | | |
| SORT ORDER BY STOPKEY | | 1 | 358 | 120 | | |
| SORT ORDER BY STOPKEY | | | | | | |
| NESTED LOOPS | | 1 | 358 | 117 | | |
| NESTED LOOPS | | 1 | 313 | 116 | | |
| NESTED LOOPS | | 1 | 268 | 115 | | |
| NESTED LOOPS | | 1 | 240 | 114 | | |
Plan Table
| NESTED LOOPS | | 1 | 209 | 112 | | |
| NESTED LOOPS | | 1 | 95 | 111 | | |
| NESTED LOOPS | | 1 | 74 | 110 | | |
| NESTED LOOPS | | 7 | 294 | 103 | | |
| INDEX UNIQUE SCAN |SYS_C00489936 | 1 | 7 | | | |
| TABLE ACCESS FULL |PRVDR_LCTN_STATUS | 1K| 53K| 102 | | |
| TABLE ACCESS BY INDEX ROWID |PRVDR_LCTN_STATUS | 57K| 1M| 2 | | |
| INDEX RANGE SCAN |TUNE_PNBS2_1 | 57K| | 1 | | |
| TABLE ACCESS BY INDEX ROWID |STATUS | 5 | 105 | 1 | | |
| INDEX UNIQUE SCAN |SYS_C00489936 | 5 | | | | |
| TABLE ACCESS BY INDEX ROWID |PROVIDER_LOCATION_D | 40K| 4M| 1 | | |
Plan Table
| INDEX UNIQUE SCAN |XPKPROVIDER_LOCATIO | 40K| | | | |
| TABLE ACCESS BY INDEX ROWID |PRVDR_LCTN_X_SPCLTY | 1M| 39M| 3 | | |
| INDEX RANGE SCAN |TUNE_SARWAR_0503200 | 1M| | 2 | | |
| TABLE ACCESS BY INDEX ROWID |SPECIALTY_SUBSPECIA | 549 | 15K| 1 | | |
| INDEX UNIQUE SCAN |SYS_C00489888 | 549 | | | | |
| TABLE ACCESS BY INDEX ROWID |SPECIALTY | 11 | 495 | 1 | | |
| INDEX UNIQUE SCAN |SYS_C00489875 | 11 | | | | |
| TABLE ACCESS BY INDEX ROWID |SPECIALTY | 11 | 495 | 1 | | |
| INDEX UNIQUE SCAN |SYS_C00489875 | 11 | | | | |
32 rows selected.
I have tried with several hints and several driving tables and tires. Any help in this regard will be highly appreciated.
Thanks a lot,
Mohammed Sarwar
ocp dba
Email: [email protected]
[email protected]
Phone : 301-944-2029 w
913-484-9204 cellThis should be better. Any help on tuning the above sql statement using the following explain plan will be highly appreciated.
Plan Table
| Operation ------------------| Name -------------| Rows | Bytes| Cost | Pstart| Pstop |
| SELECT STATEMENT -----------| ------------------| -----| -------|------| | |
| COUNT STOPKEY --------------|-------------------|------|--------|------| | |
| VIEW -----------------------|-------------------|----- | -------| -----| | |
| SORT ORDER BY STOPKEY ------|------------------ |--- 1 | ---358 | 120 -| | |
| SORT ORDER BY STOPKEY ------| ------------------|----- |------- | -----| | |
| NESTED LOOPS ---------------|-------------------|--- 1 |--358 -|- 117 | | |
| NESTED LOOPS ---------------|----------------- -|--- 1 | -313 -| -116 | | |
| NESTED LOOPS ---------------|----------------- -|--- 1 | 268-- | 115 -| | |
| NESTED LOOPS--------------- |-------------------| --1- | -240 -| -114 | | |
Plan Table
| NESTED LOOPS--------------- |------------------ | ---1 |- 209 -|- 112 | | |
| NESTED LOOPS--------------- | ------------------|--- 1 |-- 95- | -111 | | |
| NESTED LOOPS ---------------|----- -------------|--- 1 |-- 74 -| -110 | | |
| NESTED LOOPS ---------------|----------------- -|--- 7 | -294- |- 103| | |
| INDEX UNIQUE SCAN ----------|SYS_C00489936------| ---1 |--- 7--|-----| | |
| TABLE ACCESS FULL ----------|PRVDR_LCTN_STATUS -| --1K | 53K-- | 102 | | |
| TABLE ACCESS BY INDEX ROWID |PRVDR_LCTN_STATUS- | 57K -|---- 1M|-- 2 | | |
| INDEX RANGE SCAN -----------|TUNE_PNBS2_1 ------| 57K- |------ |-- 1 | | |
| TABLE ACCESS BY INDEX ROWID |STATUS------------ | 5 |105----|-- 1 | | |
| INDEX UNIQUE SCAN---------- |SYS_C00489936 -----| 5--- | ------|-----| | |
| TABLE ACCESS BY INDEX ROWID-|PROVIDER_LOCATION_D| 40K | 4M----|-- 1 | | |
Plan Table
| INDEX UNIQUE SCAN ----------|XPKPROVIDER_LOCATIO| 40K |----- |----- | | |
| TABLE ACCESS BY INDEX ROWID-|PRVDR_LCTN_X_SPCLTY| 1M -|---39M|--- 3 | | |
| INDEX RANGE SCAN -----------|TUNE_SARWAR_0503200| 1M -| -----|--- 2 | | |
|TABLE ACCESS BY INDEX ROWID- |SPECIALTY_SUBSPECIA| 549 |---15K| ---1 | | |
| INDEX UNIQUE SCAN ----------|SYS_C00489888 -----| 549 |----- | -----| | |
|TABLE ACCESS BY INDEX ROWID- |SPECIALTY ---------| 11- |---495|--- 1 | | |
| INDEX UNIQUE SCAN ----------|SYS_C00489875----- | 11 -|----- |----- | | |
|TABLE ACCESS BY INDEX ROWID -|SPECIALTY ---------| 11- |---495|----1 | | |
| INDEX UNIQUE SCAN-----------|SYS_C00489875----- | 11 -|----- |----- | | |
-------------------------------------------------------------------------------- -
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
Maybe you are looking for
-
CS3 Uninstaller won't run in Lion - how to uninstall manually?
I migrated from a Snow Leopard Mac to a new Lion Mac (keeping the same username and keychain) and CS3 Web Premium runs fine, except Dreamweaver won't launch (just a blank dialog). I want to uninstall just Dreamweaver (if possible) so I can try reinst
-
Dictation problems after ios 8.2 upgrade
I rely heavily upon dictation. 2 problems occur (at minimum) after ios 8.2 upgrade to iphone 6. . 1. I wasnt going to add this dictation bug (feature ;-)) b/c couldnt reproduce the seemingly safari bug when got home, but as I was dictating my first
-
Error while sending mail to external id
Hai all, I am trying to send mail to external mail id using the FM SO_NEW_DOCUMENT_ATT_SEND_API1. After executing when i check in sost i m getting an error 'Cannot process message, no route from sapuserto external mail id. Can anyone help me resolve
-
Why should I need to press the link twice?
Hi Everyone, I have developed an application in the Sun's MIDP 2.0 API, in which I have used Custom Designed Items. I have designed a LINK item. Application is working fine. BUT only problem is, I have to press the link Item TWICE. It should work on
-
Condition record not found for service net price
Hi Experts, I have seen other posts related to this topic but didnt solve my issue. Issue is: in one system when trying to create PO for requisition, it says please enter a price for service item since "condition record not found" (because package nu