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 .

Similar Messages

  • How to use a query in the Print Layout Designer?

    I created a query with the query generator:
    SELECT T0.[Discount], T0.[NumOfDays], T2.[DocNum] FROM CDC1 T0, OQUT T2 INNER JOIN OCTG T3 ON T2.GroupNum = T3.GroupNum WHERE T2.[GroupNum]=T3.[GroupNum] AND  T0.[CdcCode] =  T3.[DiscCode]
    The result shows the cash discout (the days and the percentage) of every record.
    I need this query, because I want to design a sales order report.
    To show the payment conditions with cash discount I need to have the table CDC1 but when I create a new database field in the report I can't see that table.
    So I queried the table CDC1....
    Then I created a new database field and in the list box "table" I made the following steps:
    extras\customizing tools\user defined values - definition\search for saved query in user defined values
    But the problem is that I don't get the result of the query into my report.
    What's the problem? I don't know what I've done wrong...
    please help me

    Hi,
    I am creating the layout for a sales order which will be send to a customer.
    In that order the customer can see the payment conditions.
    It should look like this:
    net price: 1000,00 EUR
    19,00% taxes: 190,00 EUR
    gross price: 1190,00 EUR                          
    payment conditions:
    payable within 30 days net: 1190,00 EUR
    payable within 14 days with discount of 2 %: 1166,20 EUR
    to get the bold marked digits I need to have access on the following tables:
    OCTG and CDC1
    In the OCTG table I get the days (in this example 30)
    In the CDC1 table I get the days of cash discount and the percentage (in this example 14 and 2)
    but in the sales order layout in PLD only the OCTG table is shown when I create a database field and the CDC1 table isn't.
    So what can I do to get this?

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

  • Adding data field in query print layout designer (PLD)

    Dear Experts/Gurus,
    I would like to add data field in query PLD in repetitive area1 but it can't. The query I made excluding sequence no., so I think I must use datafield for that. I  use textfield in the repetitive area header1. is it correct what I have thought, I mean is it really datafield can't be add in the print layout designer if it is from query ? I appreciate your answer. TIA
    Rgds,

    No you can't, you will have to recreate the query with the missing field and recreate a new print layout for this.  Is still a flaw in SAP B1. 
    If you go to the service market place under education you can get the flashbook for the print layout design and the query manager and wizard, study them, they are of great help to understand the technology behind the PLD and the queries in SAP B1.
    Regards,
    WB

  • Print layout designer for develop report based on query

    Dear Experts/Gurus,
    I am amazing about the manage previous reconciliation report. When I opened it using print layout designer, it looks like the report is not built using query, but I am not sure yet. This is very confusing. I created query similar with manage previous reconciliation (MPR), but when I link the query to print layout and try to make similar format/appearance with MPR report (reconciliation management (system)), it is not success.
    Isn't the MPR report built not based on query ? I appreciate your answer. TIA
    Rgds,

    Hi,
    I am not sure I understand what's the problem:
    Is it the layout that is different or the data?
    Regarding the data you can use SQL Profiler (maybe you did?) to find out what queries are fired, but please note that there are some stored procedures in the DB that are used for some specific functions - not sure whether the "MPR" uses any of these.
    Then you must include some non-default filter in SQL Profiler...
    ...but you can also use the logging functionality in B1 for that purpose:
    Just activate the logging (see the "log" folder in the B1 subdirectory) in the corresponding config file: choose the option to have the SQLs logged in conjunction with the logging being triggered in all cases (not just error).
    Thus you will get all the SQLs - just plain - from the B1 application, but note that it will obviously slow it down!
    HTH,
    Frank

  • Can't load Print Layout Designer from Query Manager

    Hi All,
    I'm facing this issue when I try to load the Print Layout Designer from Query Manager.
    I define my own query report and I need to change the layout for the report.
    When I click on the print layout designer button is nothing happen.  I've check the the RDOC table the report already created in the RDOC.
    How do I call out the layout to customize it?
    Please advice.
    Thank you.
    Regards,
    Foong Yee

    Hi
    If i remember correctly you must use the menu at the top. Click tools->queries->query layout designer.
    Hope this helps

  • Print Layout Designer...........Help

    Hi
    Please help me to get a way to load the TIN number (already entered in - BusinessPartner master Data Form and saved in -CRD7 database table for customers) into the PLD Report as customers TIN number (means in the Report creation using Print Layout Designer). Here I want to access the CRD7 table in the PrintLayoutDesigner>Properties>Content-->Database.Is this Possible?

    Dear
    The workaround could be that creating UDF and FMS to get
    those information , and thus in PLD.
    Best Regards,
    Xiaodan AN

  • Help with Print Layout Designer

    Hi all,
    I'm not sure if I should post this here or not, I already posted it in the Business One Forum.  Moderator(s)  if this is not the proper place please delete it and let me know that it is not the appropriate venue.
    I need some help with Print Layout Designer.  I am running 2005A SP01, and my customer wants a modification to the Sales Backorder Report.  They want to add the column "In Stock" to both the report as displayed on the screen and the printed document.  The report rendered to the screen has the In Stock, but it is not checked as visible.  I check it and In Stock shows up as designed.  The part I am having problems with is the printed document. I opened the PLD from the Backorder Report, and saved it under a different name.  I resized some of the columns in the repetitive area (header and data) to make room for the In Stock column.  I CAN add the text field Instock as free text and enter "In Stock" as the content.  I looked at the "backorder" column in the PLD, and it is a text field with the source System Variable and the variable is 109.  I would assume that all I need to do in my added column is to set the source to System Variable and enter the variable number.  That is the problem; I can't find the variable number for that column.  I looked on the report rendered to the screen with system information on and the variable is "3 #000027825,OnHand".  I looked at the Back Order column of the report rendered to the screen and the variable is "3 #000028725,OpenCreQty".  I found a spreadsheet that is supposed to contain a list of system variables for 2007A, but the document type for this report is BRDR and that document type does not appear in the list of document types in that spreadsheet.  I looked for a similar spreadsheet for 2005A SP01 but didn't find one.  I DID find a document "How To Customize Printing Templates with the Print Layout Designer".  According to that document, I should be able to get the system variable from the report rendered to the screen with System Information turned on.  Can anyone help?
    TIA,
    Steve

    I haven't dealt with this before so I can't be certain, but here are my thoughts.
    The Backordered Qty is probably a calculated field, so that's why it's a system variable. The In Stock is a defined field, so you probably can use the file and field number, OITM, OnHand. I would look at maybe the stock number or description to see how those are setup on the form instead of the backordered qty field.

  • Print Layout Designer or Crystal.....! What to do?

    Dear All,
    We need to link our User forms to Print layouts in order to make our reports work exactly the way SAP reports work. Is there a way to enable the print and print preview toolbar buttons and make them show our Report Layout? So far the response from SDK Forum is not encouraging and many questions regarding the same issue remain unanswered there.
    After looking for the solution in the SDK Forums we came across these two replies from Mr. Nick He and Mr.Frank Moebius. Both are of the opinion that currently SAP does not offer a support for this feature and better use a third party tool. We are not in a position right now to opt for any third party tool but if we get a clear response from your side regarding this matter, we can go for it. Kindly have a look at the following links:
    Re: Print Layout  Design for user form in SapBusinessOne2005A(6.80.317) sp:01.?
    Re: Add PLD Layouts in 2005 through sdk
    The recommended solution within SAP B1 to develop Add-on reports is through User Queries and creating a Print Layout and run them via Query Manager Window. This approach in our view has the following drawbacks that make it less friendly with the end user:
    1. Add-on forms appear in the left pane/menu, whereas reports would have to run through Query Manager only, which is in fact a small toolbar button on the top right side. We can add the Query Manager link to user menu but it doesn’t solve the problem.
    2. A user with full authorization over the Print Layout can accidentally overwrite it by clicking the Create Report Button, whereas in case of SAP Reports the Layouts remain unchanged and only saved as a new Layout and set as Default Layout for a report. Add-on Reports cannot do this.
    3. Different behavior of Layouts in Query Manager on Single Click and Double Click. In the Query Manager, if a user just selects a query by a Single Click and views a Print Preview (Layout) then the custom user Layout appears. But if a user Double clicks a query then the Query Window appears, exposing the query and making it editable. Also the Preview(Layout) is different in this case. The user can either view the Window or Table Layout in this case. Hence this exercise would make the user confused and prone to errors.
    4. The Parameter/Criteria window that is SAP generated is not enough to fulfill user friendly interface requirements. Is there a way to add List boxes or Combos to that form. The parameter selection Checkboxes also behave in a strange way that even the experts find difficult to manipulate. If they are of no use, what’s the point in having them on the form in the first place.
    All these points are leading us to confusion over the decision as to whether go for Query Based Reports or use Third Party tools. Kindly help us out in this regard. Your response would help us save some valuable time for our Add-on Development.

    <<< If there is a solution then it has to be from SDK. We can only opt for third party components and frameworks only if any of the SAP representatives ensure us that the current version of SDK does not offer such support.>>>
    The answer to that is to lodge your query as an Issue to SAP directly as a support question or go through your local SAP representative. If the functionality is not offered by SAP you can do a Development Request ( DRQ) and SAP will develop it if they think it will become userful.
    <<<If this Forum is not meant to be answered by SAP representatives then kindly tell me any other Technical Support Portal from where i can get the answer directly. >>>
    This forum is accessed mostly by SAP Business One Developers on SDK. However we are fortunate that some SAP employees who are very knowledgeble take some time off to answer queries.
    Since it is a Forum, no one is obliged to answer. As indicated above , Try SAP directly if you need a definite answer.
    <<<>>>
    Since you mentioned Crystal: We as SAP Business One SDK developers, have come across similar issues and opted for a Inhouse developed Crystal Solution. It has been so popular we are selling it as a Generic add-on to B1.
    Regards,
    Indika.

  • Print layout design (PLD) - Incoming Payment

    Hi All,
    Under incoming payment, can i have the details in terms of line by line? Somehow rather, the design that was produced by the 'system', they details of my payment is gather together in one box. How can i have it to be line by line? It looks more nicer to be given to my customer as an official receipt.
    Anyone has come across on this?
    Need your experts urgently.
    Thanks.
    Harith

    Hi Harith,
    The requirment what you are asking is not possible through PLD but the format what you have asked is possible through Query Print Layout Design.
    here you will create the Query which fetchs the required value the design the PLD for that in the Query Print Layout.
    As we had faced similar situation we resolved it by using Query Print Layout Designer.
    hope this helps you out.
    Regards,
    Shreyas

  • Print Layout Designer \Custom Reports

    Hello All,
    Is there a way to set a custom report as default in the Print Layout Designer for A/R Invoice in SAP B1 ?
    Thank you and Best wishes and Happiness in the New Year 2009.
    Ben

    Hello All,
    Thank you for your answer but I would like to be more exact in my question  because I already know how to set a  Print Layout as default in a screen of SAP B1 like A/R Invoice by the way that Parlati has mentioned :
    1. Open a blank AR Invoice (e.g. service or item type)
    2. Click on Menu >> Tools >> Print Layout Designer... or pen icon on toolbar
    3. With The Document Type selected - choose template and click on Set as Default
    But I usually use the Query Manager Tool of SAP B1 to create new queries and reports and I use the Print Layout Designer to setup the layout of these reports. These reports are printed normally via the print preview Icon of the toolbar. But now I would like to know how can I set one of these Reports as default in A/R Invoice screen of SAP. Because it's a one of my customized Invoices.
    Is there a way to do this?
    Thank you.
    Ben.

  • Print Layout Designer

    Hi, I want to create one report for sales invoice using 'Print Layout Designer'.
    1. Some fields like Price, Tax Amount are not picking up from Table, rather 'variable' is being used for them. So how to use these variables and on what basis variable number is defined????????
    2. If I have defined one new taxcode(for example Insurance with rate 0.75), then how can I display the tax amount on report??????/

    exactly,
    then you can use query assistant to create a customized query
    ciao

  • Print layout design : Very Queer

    Hi all .
    In SAP B1 , I see some report is very queer , for ex : in journal entry , click Print layout design , I see journal entry (system) , double click it to open design , Queer in here ,  in repetitve area , field : Debit , Credit , data source is free text , but when I view report , I see infor by Debit , Credit , Normaly , Field must has source type is database , formular, or system , it will has information .
    Please explain to me about queer .
    Thanks very much .

    Hi
    check this link and search for demo's on
    Print Layout Designer
    https://www.sdn.sap.com/irj/sdn/businessone-elearning
    I hope this helps you out
    regards,
    Shreyas

  • Print layout design

    hi friends,
    using print layout design i am getting reports for a purchased item with all types of taxes included.
    i want to display the total cost of same purchased items but more than one and each purchased items having different taxes included with it.
    Example:
    product1:
    cost price:Rs100
    tax:4%
    total cost price:Rs104
    Product1:
    cost price:Rs100
    tax:5%
    total cost price:Rs105
    i want to have final report as:
    product1
    total cost price:Rs209.
    in 2005 .B version
    so please help me out....
    regards,
    varalakshmi.

    Hi,
    If you want to create a base on tax rate, you can, First, goto to Sort and from the Sort properties, set/sort the Product to by ascending the do not check the summarize, then choose the Field where the tax is then check the Summarize then ok.
    In you report proper, make a formula for the rate with Content : Concat(Field_rate) then put from the Group values as '1' then uncheck visible, then create a your report since the rate is not visible it will group according to rate and sort according to product.
    regards,
    Clint

  • Print Layout Designer question

    In Trial Balance there is a checkbox that I can select to "Hide Titles", but this same checkbox is not available in the Trial Balance Budget Report. How can I hide the titles for Trial Balance Report in Print Layout Designer? (Hide Titles is variable 156)
    Any help is appreciated, thank you.

    The Titles get dynamically populated to the Account Name field on the PLD.  Without the Hide Titles check box there is no logic to intelligently hide just the Titles.  If you hide this field on the PLD all account names would be hidden.

Maybe you are looking for