Default Query Print Layout problem

Hello:
    I have a query below SELECT T0.[ItemCode], T0.[Dscription], sum(T0.[Quantity]) as 'Quantity' FROM INV1 T0 WHERE month(T0.[DocDate]) =month([%0]) AND  year(T0.[DocDate]) = year([%0]) and T0.[ItemCode] IS NOT NULL GROUP BY T0.[ItemCode], T0.[Dscription] ORDER By T0.[ItemCode].
    Which basically output monthly inventory invoiced qty. It works fine. However when I try ti link to the default system print layout and try to print. The column 'quantity' become very small and cut off most of the number. How do I make it bigger? I have been trying to modify it for quiet a while now. Nothing seems to work. I think it's length is preset base on the column lenth in the table! If that's the case how do I make it wider?
    Also the default layout for user query are pretty weired. I think it's dynamically allocating spaces depends on number of column. But what happens when you do functions such as sum, avg..etc. There is no present length. So they just disregard it?
  Any help will be appreciated.. Thank You
Sincerely Yours
Bo Peng

Hi Bo,
I am asuming that u are not yet familiar with how to work with PLD (Print Layout Designer). I would suggest that u see some tutorials from the following link and then try to change that default layout according to ur own requirements
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/51c19891-0901-0010-6eb1-e71abf09298a
Reagrds
Rizwan Hafeez
Team Lead
SAP Addon Development Section
Abacus Consulting - Pakistan

Similar Messages

  • Problem with Query Print Layout

    Hi, i have this type of problem.
    I have create a query with 5 fields,i have saved it, and ,after, i have created a report on this query (Query Print Layout).
    So, i have manipulated the report based on the preferences of the customer.
    After this operation, customer tell me that he want to see one more field in the report, so i must add, in the original query, this field. But i note that i can't add a field. I can do it, but i must remake all the report.
    There is a way to do this type of operation, without remake the report from the start?
    Thanks
    Regards
    Marco

    Hi Marco:
    I asked our Print Layout Expert, and she tolds me that you have to create the report again.
    Some time ago, in the report designer was a  way to change the link to the query, but that option is disable now.
    So, be patient and ask for this functionality to be implemented.
    Harold Gómez V.

  • How to create authorization to access Query Print Layout?

    Hi again..
    i have 10 query print layout, and not every user can view this layout.
    I assume,
    report 1-3 only for user A,
    report 4-7 only for user B, and
    report 8-10 only for user C.
    How to create autorization for Query Print Layout?
    Thankyou for the help

    Dony,
    In order to createthe PL's of customize report (from Query Manager) you will have to go the Tools Tab of the Menu Bar in which you will have to click the Queries tab which will lead to a drop down menu which when clicked will lead to Quaery Print layout. You will have to choose your query based upon whether from the reports tab double click it to open the Query Print Layout Designer.
    Here again in the Menu Bar you will find the under the Tools the first tab is the PLD which when clicked you can do the same process as explined below
    When you go to the document ( Any Document ) in the tool bar you would find the 24th Icon to be the Print Layout Designer Tab when you click this it takes you to the layout designer window.... below there is tab named set as default when you click this the system would ask you 2 choices
    1. Set as default for all users
    2. Set as default for current user
    Which means that you will have to open each and every form?
    for each and every user and set them as default for the user.
    If you feel this answer is helpful then please do remember to reward points
    Regards,
    Nagesh.

  • Query Print Layout column sum in report footer

    Hi Experts,
    I am utilizing a query and created the layout via Query Print Layout. I am using sort and group functions which filters my column sums for a certain field conditions. My problem is that when I want to make a total column sum for all the repetitive footers' column sum, the system shows a message that only repetitive areas can be average/ sum.
    Is this the standard behaviour of the system? Or is this a limitation if we are using the print layout via Query print layout. Any workaround to get the final total for all pages column sum?
    Please advise.
    Thanks,
    Don

    hello
    Don
    what u want actually i dint understood as i now but u need colsum of ur repetitive fields or repetitive footer fields
    I).if u want repetitive footer all columns sum take the contact of those fields ex:(concat(F_a+F_B -
    )) so u can get ur total for repetitive footer fields
    II).if u want repetitive area lines colsum for every field u take as colsum with respect to the unique id of repetitive area fields
    regards
    Jenny

  • Query Print Layout Authorization

    Hi Experts
    Iam facing a problem with  QPLD where i have given full authorization to particular user who is not super user .
    while selecting the print layout iam getting this error  ''You are  not permitted to do this action " that means no authorization
    the procedure which i have given as
    i went 2 manage categories in query manager and assigned one group to one user.
    In general authorization i have given authorization to print layout design ,Query print layout
    and under reports i have given authorization to particular group which i have given to user
    But iam unable to take print .So please kindly solve this Issue Asap ....
    Regards
    Jenny

    Hi
    Rahul there is no additional authorization given to query Pld i have checked in additional authorization .so is there any other to check please let me know
    Regards
    Jenny

  • Help me . Query in " Query Print layout Design "

    Hi Everybody .
    I Design Report by Query Print layout Design , So when I run Report , I see Message : " Table not found Administrator (OA DM)" .
    This is My Query .
    ( Note :this  Query is run ok in Microsoft SQL  . )
    Select Cast(left([dbo].[Get_rate](T0.BatchNum,left(T0.Account,4),T1.U_VNS_JType),5)       as nvarchar(50))+ Cast(T0.BatchNum as nvarchar(50))As No_Number    ,  T0.TaxDate As Date       ,     case left(T0.Account,4)when '1112'then '0.00'     when '1122'then'0.00' else           [dbo].[Get_11](T0.BatchNum,left(T0.Account,4),T1.U_VNS_JType)end  as Amount1              , case left(T0.Account,4) when '1111'then '0.00' when '1121' then '0.00'           else [dbo].[Get_111](T0.BatchNum,left(T0.Account,4),T1.U_VNS_JType) end  As Amount2            , T1.U_VNS_MEMO  As U_VNS_MEMO, T1.U_VNS_VNUMBER as PV_No    , T1.U_VNS_JType as 'Voucher Type'         , T0.Account  As AC_Code    , T3.AcctName as Description  , T0.Debit As Debit ,T0.Credit As Credit        , T1.U_VNS_NAME,     T0.U_VNS_REMARKS   From BTF1 T0                Inner Join OBTF T1 On T0.BatchNum = T1.BatchNum               Inner Join OBTD T2 On T0.TransID = T2.BatchNum                Inner Join OACT T3 On T0.Account = T3.AcctCode                    Where  T0.BatchNum = '[%0]'  Group by   Cast(left([dbo].[Get_rate](T0.BatchNum,left(T0.Account,4),T1.U_VNS_JType),5)       as nvarchar(50))+ Cast(T0.BatchNum as nvarchar(50)) ,  T0.TaxDate   ,       case left(Account,4)when '1112' then '0.00'     when '1122'then'0.00' else           [dbo].[Get_11](T0.BatchNum,left(Account,4),T1.U_VNS_JType)end             , case left(Account,4) when '1111'then '0.00' when '1121' then '0.00'           else [dbo].[Get_111](T0.BatchNum,left(Account,4),T1.U_VNS_JType) end            , U_VNS_MEMO  , T1.U_VNS_VNUMBER    , T1.U_VNS_JType       , Account     , AcctName       , T1.U_VNS_NAME,     T0.U_VNS_REMARKS      order by  Amount1 desc
    Please help me .
    Thank you very much .
    Message was edited by:
            Tran Ba Hai

    Note: This Quey if I change = [%0] by = 1 ,  and I run Report in SAP is ok .

  • How to use query print layout design

    i have a sql query and i want to see its result on report with the help of print layout design.

    In addition to Tuvia's answer, here is the printing procedure of query PLD:
    Printing User-Defined Queries
    Use
    After you have linked a user-defined query to a user report template, you can print it according to its linked print layout.
    Procedure
    To print a user-defined query, use one of the following two procedures:
    Using the Query Print Layout window:
    1. Choose Tools u2192 Queries u2192 Query Print Layout.
    2. Choose the Reports tab page and select the query you would like to print.
    3. Choose File u2192 Print.
    The user-defined query is printed according to its linked print layout.
    Using the Queries Manager window:
    1. From the toolbar, choose with the quick info text Queries Manager.
    2. Select the query you would like to print.
    3. Choose File u2192 Print.
    The user-defined query is printed according to its linked print layout.
    You can also display a print preview for user-defined queries. To do so, choose File u2192 Print Preview.
    Printing User-Defined Queries with Variables
    Use
    When a user-defined query contains variables, its linked print layout will also display the variables data and print them.
    In the print layout linked to that query, you can see that an additional area containing the condition's parameters was added
    There is pdf file relate to Query PLD in  the SAP service marketplace website.
    Rgds,

  • How too set query print layout parameters?

    Hello,
    simple task:
    1. Open "Query Print Layout...": SBO_Application.ActivateMenuItem("4868")
    2. Handle new reports form: SBO_Application.Forms.ActiveForm (I know, the better solution should be get form with proper TypeEx and highest TypeCount, but now it doesn't matter)
    3. Select row with required report: m.Columns.Item(0).Cells.Item(row).Click(BoCellClickType.ct_Regular, 0)
    4. Run printing: SBO_Application.ActivateMenuItem("519")
    5. Handle new parameters form: ???
    How can I get newly created form containing report parameters (TypeEx "4000")? I wanna set proper parameters and click "OK" to show printed report. Doesn't work handling:
    - FORM_LOAD in ItemEvent
    - MenuEvent for "519" (is only BeforeAction
    - PrintEvent (executed after accepting parameters)
    - ReportDataEvent (passed FormUID belongs to reports list, not parameters)
    In each event I've listed all forms and there is no form titled "Query - Selection Criteria" with expected TypeEx.
    Is there any way to achive this?

    when you activate print preview of printing on selected User Query Layout, you can cacth the ET_FORM_LOAD event of formTypeEx =4000
    It is working. Please note if you do not have this event, you may check your filters (?)
    Then you can populate your values. Based on my experience the click ok button is not working.
    Tip: Search the forum in year 2009 i have posted there sample codes
    Regards
    J

  • New customized report using PLD or QUERY PRINT LAYOUT to show customers onl

    I am working with a Software Developing firm as an SAP Consultant.
    Please tell me how to create a new     customized     report displaying various details as required by the client in the report using PLD or Query Print Layout.
    Please help me asap.

    Hi,
    You can create queries using the Query Generator or the Query Wizard tools.
    After you have created your own queries, you can link them to a required print layout.
    for user reports.Look at:
    Tools --> Queries --> Query Print Layout
    Set there your query reports.
    Printing User-Defined Queries
    After you had linked a user-defined query to a user report template, you can now print it
    according to its linked print layout.
    There are two ways for printing your user-defined queries.
    1. Using the Query Print Layout window:
    • Select from the upper menu Tools 􀃆 Queries 􀃆 Query Print Layout.
    • Click the Reports tab page.
    • Click to highlight the required query you would like to print.
    • Click on the printer icon or select from the upper menu File 􀃆 Print.
    • The user-defined query is printed according to its linked print layout.
    2. Using the Queries Manager window:
    • Click the Queries Manager icon on the upper tool bar.
    • Click to highlight the required query you would like to print.
    • Click on the printer icon or select from the upper menu File 􀃆 Print.
    • The user-defined query is printed according to its linked print layout.
    Note! You can also print preview user-defined queries. Do so by selecting the Print
    Preview option as described in the methods above for printing your query.
    Btw, you could search the manual training files relate to query PLD in http://www.service.sap.com/smb
    Rgds,

  • My Menu - Add a Query Print Layout to the Report Folder

    This is a newb question.  I can easily add a Query or form or most anything else to the Folders under My Menus ... But how can I add a specific Print Query Layout to the Reports folder un My Menu?
    I know it is simple but I can not find the steps in the documentation
    Thanks in advance!!! 
    Dana

    Kapil
    I tried that, but it adds the Query not the QPLD to the menu.
    I had figured that I could go the the QPLD memu and add the Report, but that adds the Query Print Layout Menu with all the reports.
    I feel like I am missing something very obvious here!!!
    Thanks for your quick response!!
    Dana

  • Authorization on Query Print Layout Report

    Hi Experts,
    Is there a way to limit users from generating Query Print Layout which they are not suppose to generate? Currently, all query print layout is exposed to all users, but I want to limit which users who can access specific reports only and to prevent from accidentally generating other confidential reports.
    I tried grouping the queries per Query Manager and assigned the query number to designated users in Authorizations, but it seems that this does not apply in Query print layout generation.
    Any help?
    Don

    Hi Gordon,
    Yes, I gave the users authorization for the query print layout so that they can run one of the report, however, all the reports are exposed also, for confidentiality purposes, I don't want to allow the same users to generate other query print layouts.
    Is there a way for this?
    Thanks.

  • Print preivew Query print layout

    Hi All,
    I have a query that I have created a print preview to.  I can click on Query Print Layout, select the report and print preview to show the report. 
    Does anyone know of a way to do this via the SDK? 
    I was trying to use the ReportLayoutsService and managed to get the report loaded into a SAPbobsCOM.ReportLayout but I have not been able to determine how to display the report.
    Thanks
    Karen

    Karen,
    There is not an object or method to do this currently via the SDK.  The ReportLayoutsService Object is a service that enables you to copy the print layout of a specified document type from one company database to another.
    Please also see this post ...
    Run SBO report directly from SDK
    Eddy

  • Query Print Layout / Query Manager

    Hopefully some one here can help me out ...
    I have created a handful of Query Print Layouts.  How or is there a way when I make a change to the underlying query, to reassociate it with the report?  Now when I change the query,  I have to create a new report.  I am currently on SAP B1 2007 PL11.  When I upgraded from PL06 to PL11,  the queries handle prompted dates differently, causing me to have to make a simple syntax change to my query which does not change the data being passed to the report.
    Thanks in advance
    Dana

    Dana,
    This is the short-coming of the Query PLD.  Once you change the Query, you will need to redo the template all over again.
    Therefore, it is a good practise to always finalize the query and then design the layout.
    Re-assigning the revised query to QPLD is not possible
    Suda

  • Query Print Layout - Generated PDF Document Name?

    Hi All,
    Query Print Layouts associated to my user queries work great for printing...but does anyone know if there is a way to set a more appropriate document file name when attaching an edited PDF report to an email? It seems to always automatically create a document name starting with 'Query Manager_-1_12' or something similar when attaching the report document directly to email.
    I do realize that I can save the file locally, choose any name I like, then attach to email... but this defeats the purpose of being able to send the query report directly to the email icon.
    If anyone knows how I can do this it would be much appreciated. There seems no option in the QPLD document properties.
    Best regards,
    John

    Hello,
    Yes, I have the same question. It could be great being able to choose the name of the document when creating a pdf. Even better if you could chose fields of the document for the name of the pdf, such as, name of customer, number of document, date, etc.
    Is there any way for doing this?
    Thanks in advance,
    Javier.
    Hi All,
    Query Print Layouts associated to my user queries work great for printing...but does anyone know if there is a way to set a more appropriate document file name when attaching an edited PDF report to an email? It seems to always automatically create a document name starting with 'Query Manager_-1_12' or something similar when attaching the report document directly to email.
    I do realize that I can save the file locally, choose any name I like, then attach to email... but this defeats the purpose of being able to send the query report directly to the email icon.
    If anyone knows how I can do this it would be much appreciated. There seems no option in the QPLD document properties.
    Best regards,
    John

  • Query Print Layout - Incoming Payment

    Hi All,
    I have done the query print layout for incoming payment. but it cannot show the correct A/R invoice: document number. When I only make the payment for 1 invoice it seems to be correct, but when I choose 2 invoices to be paid, then the A/R invoice: document number for the second row is wrong ( if follows the first row).
    Below is the query:
    SELECT T0.DocNum, T0.DocDate, T0.DocCur, T0.DocTotal,
    T0.DocTotalFC, T1.DocNum, T1.CardCode, T1.CardName,
    T1.DocDate, T1.Comments,T1.TrsfrRef as 'Cheque No',
    T2.BankCode' 'T2.AcctNum as 'Bank Code' , T0.Address , T3.Phone1 , T3.CntctPrsn , T0.PaidToDate, T0.PaidFc , T4.AppliedSys , T4.AppliedFc
    FROM [dbo].[OINV]  T0 INNER JOIN ORCT T1
    ON T0.ReceiptNum = T1.DocEntry LEFT JOIN RCT1 T2
    ON T1.DocNum = T2.DocNum LEFT JOIN RCT2 T4
    ON T4.DocNum = T2.DocNum LEFT JOIN OCRD T3
    ON T1.CardCode = T3.CardCode
    WHERE T1.DocNum = [%0]
    ORDER BY T1.DocNum
    the fields that i want to display in repetitive area are: A/R invoice: Document date , A/R invoice: document number, Amount that they have paid ( partial payment / full payment) i used this database: Incoming payment - a/r invoice: paid, outstanding amount i used formula ( total document - paid to date), and document currency
    Thank you! hope you can help.
    Pauline

    Pauline,
    I've tested your query in B1 2007A SP00 PL30 and works fine. I even created PLD for the query and I can see 2 invoice paid by one incoming payment.
    Rgds,

Maybe you are looking for

  • APPCRASH Error in Access 2010

    I have been using a database for several years with no problem. I added a new button yesterday that opens a new form and now I get this error. Buttons that existed prior to adding this new one all cause this error but the new one is functional. Howev

  • ALV GRID Edit Validations (how to do your own)

    Hi folks, I am using ALV Grid to enter some data, I would like to do some validations on save and also adjust data in the table and validate it upon another few buttons. All is good and works fine using the standard events, however these events are o

  • ITunes will not accept my credit card info

    I had my information stored so that when I wanted to purchase music, I had only to indicate what I wanted to buy and it would present me with a sign in scree, where I could put in my password, and then the account information screen to add my securit

  • Anyone importing h.264 from final cut into Toast 11?

    Hi folks, I'm thinking of finally introducing Blu Ray as a few clients have requested it. I use a compressHD card from matrox to create iphone, ipad, appletv etc.. files. Of course, it also does blu ray. Does anyone know if i can export, from compres

  • Que tabla mantiene la configuración del calendario?

    Tengo a un usuario al que en su calendario se muestra las actividades de otro empleado y no le tiene seleccionado en la parametrización del calendario. Ya he probado a poner-quitar por si se hubiese quedado 'pillado' pero no hay manera. Estoy buscand