Query Pld Output

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           02

Hi 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

Similar Messages

  • Spool file problem,Can't see the query in output file.

    Hello ,
    I am facing a very old school kind of problem .....about spool file ....
    The scenario -
    I have made a script by name DB_Status_checkup.sql which i want to fire on the database to check the database status. In this script their are many queries regarding the data dictionary views to know about the database. It consist of nearly 25-30 different select queries..
    The problem is i want to make a spool file of the output of that query....i want to see the SQL query & the output below in the spool file, so it will be easy for me to judge the result. But i can't see the SQL query , i can only see the output , & in so many queries it all gets jumbled up....even i can't understand where the next output starts ...
    Sample of my SQL Script ....
    clear buffer
    spool D:\DB_status.txt
    /*To check the database startup time*/
    Select to_char(startup_time, 'HH24:MI DD-MON-YY') "Startup time"
    from v$instance
    .........next query n so on....
    spool off;
    In the output pf the spool file at D:\db_status.txt..
    Startup time
    08:25 16-JUL-10It shows only the output of the query in the spool file not the query,
    What should i do to get the SQL query as well as the output of that query just below it in the spool file ???
    Please suggest if you have anymore ideas , regarding this .....
    ORACLE 10g R2
    Windows Server 2008
    Thanks in advance ...

    Why don't you just use database control, instead of re-inventing the wheel?
    Apart from that, SQL*Plus has it's own reference manual, which you apparently refuse to read.
    The answer to your quiz/doc question is
    set echo on
    Sybrand Bakker
    Senior Oracle DBA

  • Query PLD

    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
    Amol

    Hi 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.Jeyakanthan

    it 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

  • 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 Jain

    Hi
    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

  • Problem In Query PLD

    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 Advance

    hi 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

  • Normal pld,query pld

    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 pld

    Hi 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

  • UDF in Query PLD

    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

  • Query in output of sh interface

    Hi all,
    I have a query in output of sh interface on ASA.
    On ASA's when we do 'show interface' for a gig interface, we can get any among two,
    input queue (blocks free curr/low): hardware (255/230)
    output queue (blocks free curr/low): hardware (255/0)
    OR
    input queue (curr/max packets): hardware (0/7)
    output queue (curr/max packets): hardware (0/13)
    cur/low I suppose when we have underruns and overruns going on.
    What i want to know is the meaning of the output. In case of curr/max its very clear.
    input queue (curr/max packets): hardware (0/7)
    output queue (curr/max packets): hardware (0/13)
    Above means (correct me if I am incorrect), there are Zero packets currently in input queue, and 7 were the max packets seen at one time. For output queue, zero are the current packets in ouput queue and 13 were max that were seen in output queue. This is documented.
    But I could not find an explaination for,
    input queue (blocks free curr/low): hardware (255/230)
    output queue (blocks free curr/low): hardware (255/0)
    How should I interpret it? I need supporting documentaion please.
    I have gone through this link :
    http://www.cisco.com/en/US/docs/security/asa/asa84/command/reference/s3.html#wp1497263
    But i couldn't find an explanation for blocks free current/low
    Please explain me the following output:
    2506116 packets input, 2624544574 bytes, 0 no buffer
           Received 0  broadcasts, 0 runts, 0 giants
           8036 input errors, 0 CRC, 0 frame, 8036  overrun, 0 ignored, 0 abort
           0 L2 decode drops
           5065834  packets output, 6024814558 bytes, 0 underruns
           0 pause output, 0 resume  output
           0 output errors, 0 collisions, 0 interface resets
           0  late collisions, 0 deferred
           0 input reset drops, 0 output reset drops,  0 tx hangs
           input queue (blocks free curr/low): hardware  (255/230)
           output queue (blocks free curr/low): hardware (254/0)

    i am mainly concerned about
      input queue (blocks free curr/low): hardware  (255/230)
           output queue (blocks free curr/low): hardware (254/0)

  • Parametrized query with output from sql

    Hey all,
    has anyone figure out how to use the database connectivity toolset to perform a parameterized query with outputs (SQL)? From the other threads that i have read it would seem that this issue is not resolved. The error i get is:
    Error -2147467259 occurred at Cmd Execute.vi->getjobID.vi
    Possible reason(s):
    Exception occured in Microsoft OLE DB Provider for ODBC Drivers: [MySQL][ODBC 3.51 Driver][mysqld-5.0.50sp1a-enterprise-gpl-log]OUT or INOUT argument 3 for routine eln.lv_caperJob_create is not a variable or NEW pseudo-variable in BEFORE trigger in Rec Create - Command.vi->Cmd Execute.vi->getjobID.vi
    However, In Toad for mysql the following call works:
    set @outJobID=-999;
    set @outMsg="";
    call  lv_caperJob_create('TestJune30_2', '207', @outJobID, @outMsg);
    select @outJobID, @outMsg
    Attached is the LV code i am using. Thanks!
    Attachments:
    db code.JPG ‏50 KB

    Your first approach gave you an error because it took the ? parameter inside the '%?%' string and treated it as whole string as '%?%'. As you set the parameter, it did not understood where it need to insert the parameter.
    Your second approach is pretty much OK, only problem is you are trying to set the parameter with a string and aging creating the string while setting the parameter.
    The solution will be to create the whole string before setting the parameter and set the created String as parameter on the query something like this.
    String parameter = "%"+searchString+"%";
    Then set the parameter string to the query.
    Thanks

  • While executing the query the output is completey different from the query

    Dear friends,
    We built a query and loaded the data for that infoprovider.
    While executing the query the output is completey different from the query what we have built.
    Output has no relevance to the query.
    Kindly help the same.
    Regards,
    Sathya

    HI Satya,
    In my opinion the issue is with your front end.
    Results should be identical in RSRT, BEx Analyzer (Workbooks) and the ABAP-Web since all three frontend tools use the "ABAP Runtime layer".
    It may differ In the Portal where the new "Java Runtime layer". (Java-Web.) is used.
    This is given in OSS Note 1296576 - Different Query Behaviour: ABAP - Java.
    So i think the problem lies in your analyser. If you are using Analyzer: BI Add on 7.X (Based on 7.10) try and get support package 8.
    Hope this helps.
    Thanks,
    Rahul

  • Need a procedure to make minus query as output for 2 tables

    Can anybody help me to create a procedure so that I could get minus query of 2 table as a result.
    Requirement:
    I have two table 1- src_table_list ,2- tgt_table_list both tables have 2 columns : serial_no,table_name and 100 records each. and details mentioned in column "table_name" are actually tables name which present in my testing database.
    so I need one procedure which will pick one table_name from src_table_list and one table_name from tgt_table_name each time recursively and provide minus query as a result. as below.
    select c1,c2,c3,c4 from table1 --(fetched from src_table_list)
    minus
    select b1,b2,b3,b4 from table2 --(fetched from tgt_table_list)
    Can any body give or help me to create the procedure..as I have to prepare minus query for more than 200 tables and then I need to test them for integration testing..
    Edited by: 974253 on Nov 30, 2012 5:39 AM

    select 'select '||chr(39)||src_table_list.tblname||chr(39)||','||chr(39)||trg_table_list.tblname||chr(39)||',count(*) from '||' ( select * from '||src_table_list.tblname||'minus select * from '||trg_table_list.tblname||');'
    from src_table_list, trg_table_list
    WHERE src_table_list.serial_no = tgt_table_list.serial_no
    The above statement should give output similar to below code and will list down all the table names in the 2 tables(i.e. above src and trg) -
    select 'src_table_list.tbl1','trg_table_list.tbl1',count(*) from
    (select col1, col2 from src_table_list.tbl1 minus select col1, col2 from trg_table_list.tbl1 );
    select 'src_table_list.tbl2','trg_table_list.tbl2',count(*) from
    (select col1, col2 from src_table_list.tbl2 minus select col1, col2 from trg_table_list.tbl2 );
    Now atleast you can run these statements as script and get to know what all tables are having count differences.
    I might have missed out on some syntax part in above code but hope to have helped you in some way as you will be specific with number of tables to check for differences.

  • In BI Bex Query Designer output, dont want to have unit at column Heading..

    Hi
    I have a BI Bex Query Designer report showing output with Qty unit at Column Heading level. Even in KF's Text i didn't mention unit. I want unit to appear to column fields instead of column heading. Pls let me know how to do that.
    One more thing is: i have 2 reports exactly same except due date range is different. first report showing unit for each KF at the column heading level and for 2nd report showing column fields level... Surprising. Pls let me know what is the reason and how to control it.
    Thanks...

    Hi Harpal,
    Key figures can have scaling factors and units/currencies. Normally, units/currencies are displayed for every key figure, but not the scaling factors. If you activate the Display Scaling Factors for Key Figures, an additional header row is added to the row or column header. Information about the scaling factor and currency/unit appears in this additional header row, as long as it is consistent (for example, 1,000 EURO).
    For more information, You can go through
    http://help.sap.com/saphelp_nw04/helpdata/en/e0/52029f961aa84d869b9b20fa7f7646/frameset.htm
    Hope it helps & resolves your issue.
    Regards,
    Pavan

  • How to update Query PLD

    Hi all,
    I have prepare a query and generated a PLD for it.
    Now I required some changes in Query (say I have selected 2 more fields) and when I executed the PLD, it shows old query only.
    Is there any way to update the PLD according to new query ?
    Thanks in advance,
    Samir Gandhi

    The query code is stored together with the PLD. There is no way to change it.
    But you can copy the design of your old PLD to a new one. So you should:
    1. Create report for the modified query
    2. From its PLD delete every field definition (after select all . . .)
    3. Open the old PLD, copy all field definition from it (after display hidden fields and salact all)
    4. Past the field definition to the new PLD.
    5. Make the necessary modifications.

  • Query PLD Header

    Hi,All
    How display header fields in QPLD
    By
    Firos.C

    Hi 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

Maybe you are looking for