Group By In PLD

HI all,
Can we use Group by clause in PLD.
IF yes how to use group by..
Thanks,
Neetu

Hi,
Please follow :
1. Right click on the Repetitive Area Header1 and below to other Header since when you right click from Repetitive Area Footer and above its Header it will the grouping of the table, description, condition and value.
2. Click the Sort., Sort is where we find the grouping, the Grouping is equivalent to Summary option.
3. Choose which Field Name you want to group, then Sort Type if what datatype do want to sort the value of the field.Check the Summary to activate the grouping, without checking the Summary it just a simple sorting.
4. After it is done, remember that the Summary or Grouping features can be activated if a Text Field or Formula properties must have an value. example.
   Add a formula.. General Properties.. Group.. put a value of one 1. Content .. Concat(Field_xxx) where the value of Field_xxx is the Field Name in no. 3
5. If you want to have another Grouping or Summary just repeat step 1 to 3. Remember if you want another grouping put the General Properties.. Group.. put a value of one 2 for the next grouping and so on and so on...
The result if you have multiple Summary or Grouping the style is hierarchical.
   Field_xxx - for group value is equal to 1
       Field_xx2 for group value is equal to 2
         and so on...
Hope it helps.
Regards,
Clint

Similar Messages

  • Using the Group option in PLD

    Hi,
    Please tell me how to use the Group option in PLD ? it always appears disabled.

    Do you want to use SDK for PLD?  I am afraid your question is better posted on SAP Business One Reporting & Printing forum.
    Thanks,
    Gordon

  • Group functionusage in PLD

    Hi everyone,
              In PLD i like to display the summation of similiar items , for that i like to know the usage of Group function, is there is any other ways also kindly mention.
    For ex
        PO No         shade No  Quantity
        PO1                1            10
        PO2                2            20
        PO1                1            10
        PO2                2            20
    Here i like to  display the total of similiar PO no and shade no in Total field.
    Thanks in advance
    R.Vijaya kumar

    Hi Vijaya
    For the group function to work you must first sort the repetitive area on one or more fields (Print layout designer>Repetitive Area>Sort). Click the summary tickbox.
    Now you can group -  Print layout designer>Group. The default group is 0 so you select 1. Note that the Repetitive area header and footer areas are empty now so you can put in your own headers  if you need to.
    You need the following calculation field in the repetive area (header) - 'Sortvalue()' and the grouping will be on the field you selected initially.
    You can have subtotals for that group in the Repetitive area footer (The sub-total must be assigned to that groupno on the general tab of the field properties)
    I don't know of a better way to do this. The advanced layout designer will handle this more easily but the standard layout designer is ok for grouping and totals.
    Hope this helps.
    DAAN

  • Subtotal QTY by unit on marketing document layout

    Hi,
    How to print out the subtotal QTY by unit on marketing document layout?
    Henry
    Edited by: Philip Eller on Jun 20, 2008 10:10 AM
    Edited by: Philip Eller on Jul 4, 2008 10:16 AM*
    Edited by: Rui Pereira on Aug 8, 2008 1:57 PM

    Hi Henry,
    In order to do this you may try to use SortValue and Group feature in PLD, you can refer to SAP Note 917674, which is about 'Printing Tax Summary per Tax Groups on Marketing Documents', the steps should be the same but with different fields.
    Regarding this function, detailed information can be found in session below:
    service.sap.com/smb
    -> Business One
        -> Getting Support Services from SAP
           -> SAP Business One Self-Help
              -> Other Support Services
                 -> SAP Business One Expert Sessions
                    -> Archive
                       -> Access to Expert Empowerment Sessions Archive
                          -> Print Layout Designer
                             -> 12.03.2007 - Print Layout Designer: Grouping and Sorting in Print Layout Designer
                                Templates
    Please notice S-user is needed. Hope it helps.
    Regards,
    Canna Mu
    SAP Business One Forums Team

  • PLD - How to link Items and Items Group

    Hi guys, I'm having a problem that seems simple, but I can't solve it.
    My sales order layout was working fine, showing items and grouping by items group. Then all of a sudden, it started not to show anything in the repetitive area.
    When I was studying the problem I realized that when I add anything from the Items table (OITM) it doesn't list any results.
    I suppose PLD should link RDR1.ItemCode with OITM.ItemCode automatically, no?
    Is there anything I can try?
    Thanks!!
    Dan

    Hi Dan,
    Your assumption is not true.  RDR1 is not linked to OITM after created.  If you need anything from OITM table, it can only through UDF in Marketing Document Row.
    Thanks,
    Gordon

  • Group Items - Pick List PLD

    Hi Guys,
    Is it possible to change the standard 2007A PLD Pick List document so that it can group items together?
    For example a pick list is created for 5 orders. In 3 of the orders is the same product, item AAA.
    Instead of the standard report grouping the documents so that AAA appears 3 times, is there a way to group items so that it will appear only once?
    Thanks,
    Liam.

    Hi Liam,
    Crystal would be easy to get this.
    Here's a link to how to do this in PLD (I've tried it - it takes some testing):  http://www.sdn.sap.com/irj/scn/businessone-elearning
    Part 3 - Depencies covers grouping & sorting.
    Hope that helps,
    Heather

  • PLD: Grouping Item description: Line number is not sequential

    Hi All,
    I am facing a typical problem.
    I have invoice PLD where I am grouping item description and other details like price and tax. Which is working correctly.
    However Line number is also getting grouped.
    ex  line 1(sl No) : xyz (item description)
          line 10(Sl No) :abc (item description) where in correct line number should be "line 2"
    Please let me know how can we solve this.
    Thanks In advance
    Regards,
    Aditya

    Thanks Fasolis,
    But I have added a column Linenum() both in repitative area and repitative footer where grouping is done.
    the value it retrieves is not sequential since grouping is done. That is the problem, the Field Linenum() gives the output like 1, 15, 55 etc.. based on the starting of line of the item description from transaction which is grouped in PLD.
    To be more clear example: there are 2 item codes with same description which is being grouped in PLD.
    In transaction,
    Line 1: itemcode 01: item name A Quantity: 3
    Line 2: Itemcode 02: item name A Quantity: 5
    Line 3: Itemcode 03: item name B Quantity: 10
    Line 4: Itemcode 04: Item name B Quantity: 15
    So in PLD
    Line 1: Item name A Quantity 8
    Line 3: Item name B Quantity 25
    Desired result should be
    Line 1: Item name A Quantity :8
    Line 2: Item name B Quantity : 25
    Regards,
    Aditya
    Edited by: Aditya Rao on Mar 7, 2012 10:10 AM
    Edited by: Aditya Rao on Mar 7, 2012 10:35 AM
    Edited by: Aditya Rao on Mar 7, 2012 12:48 PM

  • PLD sorting and grouping

    Hello
    I would like to raise a question I am not able to answer
    I want to group invoice at the end of the month with all delivery notes created within the month
    The question is that some lines are text lines and there is no DN attached to the the line
    as a result on the invoice the first group is DN without number grouping all empty lines
    then I can see the grouping of delivery notes number
    My question is how to delete on the lay-out the text lines so the document is clean and not showing a group of empty lines at the start of the document
    thank you

    Hi,
    1. Create a field with variable 157, let's say it's field F_001
    2. Create a formula field: F_002: F_001!='T'
    3. Link all the row level fields on the repetitive area to this formula field. They will be displayed only if the row type is not text.
    Regards,
    Nat

  • 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

  • Plz Help in PLD

    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

  • 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

  • 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

  • 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

  • PLD Freight in Repetative Area

    Hi Experts,
    I have 20 items in A/R Invoice, and have 1 Freight amount say at 1500/-
    I am trying to give detail in the A/R Invoice PLD, for this I added one more Repetative Area, but the Freigt details are appearing 21 times (as many times the number of items there are in the invoice).
    How can I make the detail appear only once in the another repetative area.
    Is there any way to group the freight field, and prevent it from appearing more than 1 number of times
    Regards,
    Murtaza R.E.

    Hi,
    Could you please try out the following:
    1. Create UDFs on Marketing Document header level - number of UDF
       depending on the max number of Additional Expenses from the OEXD
    2. Use query like below for UDF1:
       SELECT T2.EXPNSNAME + ' ' + STR(T1.LINETOTAL) + ' ' +
              STR(T1.VATSUM) + ' ' + STR(T1.VATPRCNT)
              + ' ' + STR(T1.LINEVAT)
       FROM   OINV T0
         INNER JOIN INV3 T1
           ON T0.DOCENTRY = T1.DOCENTRY
         INNER JOIN OEXD T2
           ON T1.EXPNSCODE = T2.EXPNSCODE
       WHERE  T0.DOCNUM = $[OINV.DocNum]
         AND T1.LINENUM = 0
       Use query like below for UDF2:
       SELECT T2.EXPNSNAME + ' ' + STR(T1.LINETOTAL) + ' ' +
              STR(T1.VATSUM) + ' ' + STR(T1.VATPRCNT)
              + ' ' + STR(T1.LINEVAT)
       FROM   OINV T0
         INNER JOIN INV3 T1
           ON T0.DOCENTRY = T1.DOCENTRY
         INNER JOIN OEXD T2
           ON T1.EXPNSCODE = T2.EXPNSCODE
       WHERE  T0.DOCNUM = $[OINV.DocNum]
         AND T1.LINENUM = 1
    and so on.
    3. Add the UDF to the Layout.
    NOTE: The line number is important as there can be more than
    one additional expense for the same Document Number;
    Note that the query draws the details of one single record per
    from the Add Expenses Table. You can make the amendments in the
    query as required by either removing or adding more fields;
    like increase space between the fields etc
    Hope this will help.
    Regards,
    Gagan Thareja
    SAP Business One Forums Team

Maybe you are looking for

  • Is it possible to be connected with a 3G modem for internet access and a WiFi router for printer sharing at the same time?

    For our only internet access we have a 3G wireless modem. I have since purchased a WiFi printer and router to connect all the comptuters to in the house. The PCs have no problem with using both the 3G connection and the WiFi signal at the same time t

  • Adobe Reader corrupted. Won't update

    I thought  there was something wrong when I was downloading updates for the Adobe Reader 10 series when I already had Adobe 11 series. But the updates came right from Adobe, or at least they made themselves look like it. And the updates kep coming fo

  • HT4623 iOS7.0.2 download problem

    Hi. I tried to download iOS7.0.2 on my iphone 5, but after several hours, it is frozen. the screen shows the iTunes logo with an image of the plug and an up-arrow. I tried to reboot several times and unplug, but nothing happens.  any suggestions?  Th

  • My track pad is not as responsive as it use to be how can I fix

    I have to press really hard to get my track pad to respond, also I have to press in the middle.  What can I do to fix this?

  • Problem using two displays...

    So I'm running my G5 with OSX 10.4.10 with a Radeon 9800 XT. I have two displays connected. A 23" Apple Cinema display conneded, via a Belkin ADC to DVI adaptor, to the ADC port. The second display is a Princeton VL 1919 connected directly to the DVI